Roots Discourse

Trellis deploy environment error

By deploying my development environment i use ./bin/deploy.sh development matomic.test.
This command will give me the error below:

   MODULE FAILURE
See stdout/stderr for the exact error
Traceback (most recent call last):
  File "<stdin>", line 102, in <module>
  File "<stdin>", line 94, in _ansiballz_main
  File "<stdin>", line 40, in invoke_module
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/runpy.py", line 188, in run_module
    fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/var/folders/zb/6pk0mkb51jq4s_dm73y_vrr80000gn/T/ansible_deploy_helpe
r_payload_57W8Yh/ansible_deploy_helper_payload.zip/ansible/modules/web_infras
tructure/deploy_helper.py", line 521, in <module>
  File "/var/folders/zb/6pk0mkb51jq4s_dm73y_vrr80000gn/T/ansible_deploy_helpe
r_payload_57W8Yh/ansible_deploy_helper_payload.zip/ansible/modules/web_infras
tructure/deploy_helper.py", line 482, in main
  File "/var/folders/zb/6pk0mkb51jq4s_dm73y_vrr80000gn/T/ansible_deploy_helpe
r_payload_57W8Yh/ansible_deploy_helper_payload.zip/ansible/modules/web_infras
tructure/deploy_helper.py", line 344, in create_path
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.
7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/srv'

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 30] Read-only file system: '/srv'
fatal: [192.168.50.5]: FAILED! => {"changed": false, "module_stdout": "", "rc": 1}

PLAY RECAP *******************************************************************************************************************************************
192.168.50.5               : ok=3    changed=0    unreachable=0    failed=1    skipped=9    rescued=0    ignored=0   
localhost                  : ok=0    changed=0    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0  

I am running the newest version of Mac catallina

:thinking: seems like you don’t have write permissions to /srv which is where the site is deployed to (ie: /srv/www/example.com.

Can you SSH into the server and check the permissions? ls -l /srv. Here’s a working output:

drwxr-xr-x 5 web www-data 4096 Jun 26  2018 www

The output I get is:
drwxr-xr-x 3 vagrant www-data 4096 Dec 2 06:33 www

Oh sorry I missed originally that you were trying to deploy to development. Is there a reason for that? Vagrant syncs the contents in development so you don’t need to deploy.