I would have opened up an old topic on this but they’re all closed.
Ran vagrant up on a project I was working on last week and my browser says it can’t be reached. This just happened out of nowhere it seems. I’m able to boot up other instances of other projects just fine but this one particular project won’t run.
So I went ahead and destroyed the instance and tried again. Vagrant up completes the process without issues or errors and virtual box says the instance is running but I get nothing.
I ran vagrant reload --provision and it runs through the process and spits out the following error:
ERROR! Unexpected Exception, this is probably a bug: 'PlaybookCLI' object has no attribute 'options'
Nothing has changed since last week when I was working on it.
Running Ansible 2.8
I decided to update Trellis to latest version based on the response posted by @MWDelaney, here:
Now that I’ve done that, the original error on this post is gone but now I’m getting the following error with no clear indication of what the problem is:
TASK [wordpress-install : Setup composer authentications - project.com] ***
System info:
Ansible 2.9.5; Vagrant 2.2.4; Darwin
Trellis Head
---------------------------------------------------
fatal: [default]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
PLAY RECAP *********************************************************************
default : ok=104 changed=10 unreachable=0 failed=1 skipped=38 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
If there’s any details I need to provide to help sort this out, please let me know.
With zero success overcoming these issue, I started from scratch and spooled up a new instance locally and all is well.
I copied over the bedrock directory and synced down the database from staging as well.
Now I’m attempting to get the staging and production servers provisioned with the latest version of trellis so that lets encrypt will auto renew on it’s own.
This is the error I’m receiving now:
Failed to update apt cache: W:This must be accepted explicitly before updates
for this repository can be applied. See apt-secure(8) manpage for details.,
E:Repository 'http://ppa.launchpad.net/nginx/development/ubuntu bionic
InRelease' changed its 'Label' value from 'NGINX Mainline' to 'NGINX Mainline
(1.15.x)'
fatal: [staging.project.com]: FAILED! => {"changed": false}
I found this post, which is a similar issue:
So I began to perform the steps from the included article:
Something must have been corrupt on the droplet because I created a new droplet and was able to provision and deploy just fine AND that was using Ansible 2.9.5???
ALSO, I just now finished provisioning the production droplet with 2.9.5 also?
Hi @swalkinshaw do you know the command for downgrading ansible? I’ve found loads to install and update but not for downgrading to specific version(s).
Copy config files as listed above into the new /trellis
Run vagrant provision
I’ve got this error:
TASK [wordpress-install : Setup composer authentications - mydomain.co.uk]
System info:
Ansible 2.8.0; Vagrant 2.2.5; Darwin
Trellis Head
---------------------------------------------------
fatal: [default]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
RUNNING HANDLER [common : restart memcached] ***********************************
changed: [default]
RUNNING HANDLER [common : reload php-fpm] **************************************
changed: [default]
RUNNING HANDLER [common : reload nginx] ****************************************
changed: [default]
RUNNING HANDLER [common : perform nginx reload] ********************************
changed: [default]
RUNNING HANDLER [fail2ban : restart fail2ban] **********************************
changed: [default]
RUNNING HANDLER [ferm : restart ferm] ******************************************
[DEPRECATION WARNING]: evaluating ferm_enabled as a bare variable, this
behaviour will go away and you might need to add |bool to the expression in the
future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This feature
will be removed in version 2.12. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
skipping: [default]
RUNNING HANDLER [ntp : restart ntp] ********************************************
changed: [default]
RUNNING HANDLER [sshd : restart ssh] *******************************************
changed: [default]
RUNNING HANDLER [mariadb : restart mysql server] *******************************
changed: [default]
PLAY RECAP *********************************************************************
default : ok=123 changed=86 unreachable=0 failed=1 skipped=28 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Some further notes:
My version of Bedrock isn’t the latest, I’m updating only Trellis currently, is there often a requirement to update bedrock at the same time?
Update
I have now even deleted my old site (bedrock) directories and replaced with latest copy too.
Did a vagrant destroy, updated the site directory with a fresh bedrock clone, tried a vagrant up and it failed again, same error.