I’ve been trying to step up my WP development for my next side project with trellis + ansible + vagrant + bedrock + sage + git + digital ocean and I’m having the darndest time.
Over the last few days I’ve gone through dave kiss’ tutorial, which is the only decent tutorial I can find on the topic, 5 times now with only partial success.
I’ve been able to get a local version of mysite.dev working or, a git-deployed-to-DO mysite.com, but not both at the same time and never without some errors output during the process.
Today, I updated all of the software/packages in use (I’m on a Mac Air runnin’ 10.9) and went through the tutorial again. I got the local .dev version running, git seems to be working, the DO server is provisioned, but with one seemingly non-fatal error:
TASK [wordpress-setup : Create/assign database user to db and grant permissions] *** fatal: [55.55.123.123]: FAILED! => {“failed”: true, “msg”: “ERROR! ‘dict object’ has no attribute u’mysite.com’”}
When I attempt to deploy, I get another error during Initialize that stops everything (possibly caused by updating ansible):
fatal: [55.55.123.123]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “”, “module_stdout”: “Traceback (most recent call last):\r\n File “/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper”, line 2409, in \r\n main()\r\n File “/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper”, line 434, in main\r\n changes += deploy_helper.create_path(facts[‘project_path’])\r\n File “/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper”, line 297, in create_path\r\n os.makedirs(path)\r\n File “/usr/lib/python2.7/os.py”, line 150, in makedirs\r\n makedirs(head, mode)\r\n File “/usr/lib/python2.7/os.py”, line 157, in makedirs\r\n mkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: ‘/srv/www’\r\n”, “msg”: “MODULE FAILURE”, “parsed”: false}
I’m surprised at how difficult and buggy this has been. I thought all this VM-ing, scripting and abstraction action was supposed to make it easy? Is this how it is?
I’m also surprised at the lack of an “official” up-to-date tutorial for setting everything up. Maybe I’m not finding it?
A tutorial explaining how to set up multiple roots sites on one DO droplet would be extremely cool.
Feelin’ pretty over it at this point. If anyone has any info that could help me, I’d appreciate it!
Thx