Hello there,
I’m deploying a site on a Ubuntu 20.04 LTS VPS on Python 3.8.10 while on my local environment I’m still using Python 3.7.12.
Today I had to downgrade composer to 1.10.13 because Composer 2 was blocking pivvenit’s acf-pro-installer and upgrade PHP from 8.0 to 8.1 but I’m running into this error.
TASK [deploy : Install Composer dependencies] **********************************
System info:
Ansible 2.11.12; Darwin
Trellis version (per changelog): "Add built-in fail2ban filters"
---------------------------------------------------
MODULE FAILURE
See stdout/stderr for the exact error
Traceback (most recent call last):
File "<stdin>", line 100, in <module>
File "<stdin>", line 92, in _ansiballz_main
File "<stdin>", line 40, in invoke_module
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_composer_payload_gpayuef2/ansible_composer_payload.zip/a
nsible_collections/community/general/plugins/modules/composer.py", line 310,
in <module>
File "/tmp/ansible_composer_payload_gpayuef2/ansible_composer_payload.zip/a
nsible_collections/community/general/plugins/modules/composer.py", line 256,
in main
File "/tmp/ansible_composer_payload_gpayuef2/ansible_composer_payload.zip/a
nsible_collections/community/general/plugins/modules/composer.py", line 182,
in get_available_options
File "/tmp/ansible_composer_payload_gpayuef2/ansible_composer_payload.zip/a
nsible/module_utils/basic.py", line 1445, in from_json
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
fatal: [staging_host]: FAILED! => {"changed": false, "module_stdout": "", "rc": 1}
It looks like an issue on the VPS and not on my local environment. Anyone had this issue? Thanks!