Thank you for reminding me of that troubleshooting page @swalkinshaw - there’s a lot of helpful tips in there . The project was not created with trellis new
, but I have been using trellis-cli and have run trellis init
.
I’ve been pressing ahead on the Lima front and have a few more clues:
When I run trellis vm shell
and cd /srv/www/site.com/current/web
that directory does exist, but it is empty except for the .env
file, which looks complete. It’s not clear to me what command I should run in the VM to try to make the rest of the sync happen.
I did notice that shortly before the
TASK [wordpress-install : Install Dependencies with Composer] ******************
failure, I see this warning:
TASK [wordpress-install : include_tasks] ***************************************
[WARNING]: TASK: wordpress-install : include_tasks: The loop variable 'site' is
already in use. You should set the `loop_var` value in the `loop_control`
option for the task to something else to avoid variable collisions and
unexpected behavior.
included: /Users/sam/Code/site/trellis/roles/wordpress-install/tasks/composer-authentications.yml for default => (item=(censored due to no_log))
… which seems like it could be related to this post: Composer Issue with HTTP auth. I tried changing the site
variable to site2
to avoid conflicts as suggested in the thread, and now when I run trellis vm delete
and trellis vm start
the wordpress-install Task fails at the Composer auth setup step:
TASK [wordpress-install : Setup composer authentications (HTTP Basic) - site.com] ***
failed: [default] (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
fatal: [default]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
I am using packagist.com with a local auth.json
file that holds the credentials. My composer.json is likewise set up to use my Packagist.com:
"repositories": [
{
"type": "composer",
"url": "https://repo.packagist.com/my-org/"
},
{
"packagist.org": false
}
],