Closed ppkhoa closed 7 months ago
Interesting. I'm on Ansible 2.16.2 (with Jinja 3.1.3 though) and I can't reproduce it.
This has come up before and is most likely related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3076 I can't find where it was reported before, so it may have been in the Matrix room.
There are 2 keepalive
sections in the roles/custom/matrix-synapse-reverse-proxy-companion/templates/nginx/conf.d/matrix-synapse-reverse-proxy-companion.conf.j2
file.
You may try the following changes:
-keepalive {{ workers | length * 2 }};
+keepalive {{ ((workers | length) * 2) | string }};
-keepalive {{ generic_workers | length * 2 }};
+keepalive {{ ((generic_workers | length) * 2) | string }};
If this fails, you can try removing the keepalive
lines one by one to figure out which one is causing the problem.
Forcing string
type worked, Synapse workers started OK.
Do I have to edit roles/custom/matrix-synapse-reverse-proxy-companion/templates/nginx/conf.d/matrix-synapse-reverse-proxy-companion.conf.j2
again in the future or you'll update this file in upcoming commit?
Thanks for confirming! I've fixed it for everyone now
Describe the bug Set
matrix_synapse_workers_enabled: true
invars.yml
and playbook failed at this step:To Reproduce My
vars.yml
file looks like this:Expected behavior No error
Matrix Server:
Ansible: ansible [core 2.15.8] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3) jinja version = 3.0.3 libyaml = True
Using ansible 2.10.x, I did not encounter any error and workers can be enabled fine. Issue appeared after upgrading to ansible 2.15.x, same behavior with 2.16.x
Additional context None