Open zorlaski opened 2 years ago
same here
I have had the same issue for a few months now.
All services do start successfully, but the ansible command ansible-playbook -i inventory/hosts setup.yml --tags=start
fails with the above error.
Debugging a bit, it seems that Dimension does start up, but is faster than matrix-nginx-proxy
and begins issuing requests when matrix-nginx-proxy
is not ready yet to receive them.
This causes the container to fail and the service gets restarted after 30 seconds -- which in turn will cause the playbook to fail, since matrix_common_after_systemd_service_start_wait_for_timeout_seconds
is configured at a default 15 seconds.
To verify my suspicion, I set matrix_common_after_systemd_service_start_wait_for_timeout_seconds
to 45 seconds and ran the command ansible-playbook -i inventory/hosts setup.yml --tags=start
again.
This stopped the error from occurring.
I am not certain how this could be addressed, but wanted to give some more info on this.
We could introduce an intentional delay ot matrix-dimension.service
(the systemd service starting Dimension).
We could also open an issue in the Dimension repository and ask to change Dimension so that it doesn't hard-fail when the homeserver is temporarily unavailable. Not sure how maintained Dimension is nowadays (I suspect it's not), so we'll probably be out of luck reporting issues there.
I also found that setting the (now called) variable devture_systemd_service_manager_up_verification_delay_seconds: 60
to 60 seconds solves the error on my slower machine while 45 was still to slow.
However on my production host, which is way beefier, the default 15s seem to be enough
Describe the bug Enabling dimension in the playbook succeeds with no errors, and I am able to load the test page at dimension..com, however attempting to add sticker packs, widgets, etc. fails consistently. I have followed all the reccomended settings in the dimension guide, and am still receiving the following requests consistently in the matrix-dimension logs:
Every time I start using the standard ansible script to start up dimension, the following error occurs midway through startup:
Running the t2bot connection test widget fails on the homeserver step as well.
Error contacting homeserver. This usually means your federation setup is incorrect, or your homeserver is offline. Consult your homeserver's documentation for how to set up federation.
To Reproduce My
vars.yml
file looks like this:Expected behavior
Additional context running the following command to start the playbook:
sudo ansible-playbook -i </path/to/playbook>/inventory/hosts setup.yml --tags=start -e ansible_python_interpreter=/usr/bin/python3