Closed tonybeato closed 3 years ago
+1 Having the same behavior.
Okay... finally tracked down the problem. I should have paid more attention to the commit you said broke this @tonybeato. I naively thought the 2 PRs merged since then couldn't possibly have broken it. Turns out https://github.com/roots/trellis/pull/1261 broke this.
Summary:
composer help install --format-json
to get information about the options it supports
composer help install --format=json
Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
* obviously that isn't valid JSON, which caused the JSON decoding error you saw
* #1261 defined the PHP CLI config with that deprecated option which broke it
So before this, we never had a config for PHP CLI and everything was fine 😅
Conclusion: https://github.com/roots/trellis/pull/1264 is the fix for this
For me, updating and running again still failed in the same spot.
TASK [ntp : Populate service facts.] *******************************************
System info:
Ansible 2.8.0; Vagrant 2.2.14; Linux
Trellis version (per changelog): "Fix #1263 - Remove deprecated PHP option `track_errors`"
---------------------------------------------------
Malformed output discovered from systemd list-unit-files: accounts-
daemon.service enabled enabled
fatal: [default]: FAILED! => {"changed": false}
RUNNING HANDLER [fail2ban : restart fail2ban] **********************************
changed: [default]
RUNNING HANDLER [ferm : restart ferm] ******************************************
skipping: [default]
PLAY RECAP *********************************************************************
default : ok=30 changed=11 unreachable=0 failed=1 skipped=16 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
@dirad that isn't the same spot and it's not related to Composer? It failed on TASK [ntp : Populate service facts.]
.
Description
Initial "vagrant up" fails at the "Install Dependencies with Composer" task.
Steps to reproduce
Error Message (verbose):
Reproduces how often:
I've experienced the error consistently on multiple new installs of the latest version of Trellis.
Versions
Trellis v1.7.0
HEAD Validate that letsencrypt_contact_emails is a list (#1250) Add config for PHP CLI (#1261)
-macOS Big Sur v11.0.1 -Ansible v2.10.4 -Composer v2.0.8
Additional information
Reverting Trellis version back to [2383753] temporarily solved the issue.