Comments (12)
Have you tried with a newer version of Ansible / Jinja? If you can't get a newer version installed, you may also run Ansible in a container, as described in docs/ansible.md
from matrix-docker-ansible-deploy.
I'm trying to work out how to update it now.
I just restarted in the hope that would do something, and just noticed that in my /var/log/syslog
there's lots of these messages:
matrix-traefik-certs-dumper[4947]: /in/acme.json is missing.. Waiting (297/inf.)...
Is that something I need to fix?
from matrix-docker-ansible-deploy.
matrix-traefik-certs-dumper is a component which looks for new SSL certificates (obtained by Traefik and stored into the /matrix/traefik/ssl/acme.json
file). If it discovers new certificates, it dumps them into another directory as standalone files, so that other components (like the Coturn TURN server - installed by default; or Postmoogle email bridge) can use the certificates.
Since it's reporting acme.json
as missing, it seems like Traefik cannot obtain any SSL certificates at all.
The Traefik log in systemd-journald would contain more information. See:
journalctl -fu matrix-traefik
and see if the latest entries indicate any problemjournalctl -u matrix-traefik | less
and paginate through everythingsystemctl status matrix-traefik
and see if Traefik is running or dead
Generally, the problem is that DNS records are not configured correctly or port 80 in your firewall is not open. Both of these problems cause Let's Encrypt to fail validating your ownership of the domain, so it doesn't issue a certificate for you.
from matrix-docker-ansible-deploy.
journalctl -u matrix-traefik
has no entries.
-- Logs begin at Wed 2024-01-10 07:45:41 AEDT, end at Fri 2024-02-02 18:29:36 AEDT. --
-- No entries --
systemctl status matrix-traefik
● matrix-traefik.service - Traefik (matrix-traefik)
Loaded: loaded (/etc/systemd/system/matrix-traefik.service; disabled; vendor preset: enabled)
Active: inactive (dead)
from matrix-docker-ansible-deploy.
Everything was working today until I tried to update, wouldn't that mean that the DNS records must be ok?
from matrix-docker-ansible-deploy.
matrix-traefik
seems to be stopped and likely never even started, so.. it seems like the playbook managed to start some services (like matrix-traefik-certs-dumper
) somehow, but not Traefik.
In any case, I'd first investigate why the playbook cannot run until completion before trying to chase other problems.
Upgrade your Ansible/Jinja or try running Ansible in a container like described in docs/ansible.md
.
Once the playbook runs until completion, you can investigate what's going on.
from matrix-docker-ansible-deploy.
Thanks for your help and advice.
I just tried the info from docs/ansible.md - apt-get remove ansible
then pip install ansible
, but it ended up with the same version.
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current
version: 3.7.17 (default, Jun 6 2023, 20:10:10) [GCC 9.4.0]. This feature will be removed from ansible-core in
version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ansible [core 2.11.12]
config file = /home/redacted/matrix-docker-ansible-deploy/ansible.cfg
configured module search path = ['/home/redacted/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redacted/.local/lib/python3.7/site-packages/ansible
ansible collection location = /home/redacted/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redacted/.local/bin/ansible
python version = 3.7.17 (default, Jun 6 2023, 20:10:10) [GCC 9.4.0]
jinja version = 3.1.2
libyaml = False
I came across this and mucked around to eventually get pipx upgrade ansible
ansible is already at latest version 6.7.0 (location: /home/redacted/.local/pipx/venvs/ansible)
But I can only seem to run that one using /home/redacted/.local/pipx/venvs/ansible/bin/ansible --version
ansible [core 2.13.13]
config file = /home/redacted/matrix-docker-ansible-deploy/ansible.cfg
configured module search path = ['/home/redacted/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redacted/.local/pipx/venvs/ansible/lib/python3.8/site-packages/ansible
ansible collection location = /home/redacted/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redacted/.local/pipx/venvs/ansible/bin/ansible
python version = 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
jinja version = 3.1.3
libyaml = True
Otherwise it runs the older version.
The instructions for running ansible in a container seem so complicated I'm scared to attempt it!
Do you happen to know how I can get just setup-all
to use the newer version?
from matrix-docker-ansible-deploy.
One way is to activate
the new Python environment by running: /home/redacted/.local/pipx/venvs/activate
or /home/redacted/.local/pipx/venvs/bin/activate
(I forgot where the binary was).
Then you can call ansible-playbook
and it may work. I'm not sure.
Alternatively, you can directly use /home/redacted/.local/pipx/venvs/bin/ansible-playbook
in your commands. Also consider uninstalling your regular Ansible to avoid calling it accidentally.
from matrix-docker-ansible-deploy.
Wooo! It worked with:
/home/redacted/.local/pipx/venvs/ansible/bin/ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start
I did get one error, but I'll try stop-all, start-all once I work out how to get the arguments from the justfile:
failed: [matrix.redacted.org] (item={'name': 'matrix-coturn.service', 'priority': 900, 'groups': ['matrix', 'coturn']}) => changed=false
ansible_loop_var: item
item:
groups:
- matrix
- coturn
name: matrix-coturn.service
priority: 900
msg: |-
Unable to start service matrix-coturn.service: A dependency job for matrix-coturn.service failed. See 'journalctl -xe' for details.
Thanks!
from matrix-docker-ansible-deploy.
To add to the above: if you invoke from just
, it will just call ansible-playbook
and it's up to your PATH
environment variable which one would be found first.
Your matrix-coturn.service
error is most likely related to Coturn failing to start because the certs dumper cannot get SSL certificates. Check the Traefik status and logs as mentioned in my previous comment.
from matrix-docker-ansible-deploy.
It's all working now after
/home/redacted/.local/pipx/venvs/ansible/bin/ansible-playbook -i inventory/hosts setup.yml --tags=stop-all
/home/redacted/.local/pipx/venvs/ansible/bin/ansible-playbook -i inventory/hosts setup.yml --tags=start-all
When I've recovered from all that, I'll attempt to fix the wrong ansible version getting run by default problem...
Thanks so much for your help!!
from matrix-docker-ansible-deploy.
Forgot to mention, I also changed my external ip in inventory/hosts
because I'm on dynamic ip and it had changed from the initial install years ago, not sure if that had any effect.
Just in case someone else comes across this issue.
Thanks again.
from matrix-docker-ansible-deploy.
Related Issues (20)
- Can't create users - ERROR! Received 500 Internal Server Error HOT 1
- Latest change to static website serving is disabling static website serving
- Synapse Worker Metrics exposed at wrong path since Traefik migration HOT 1
- matrix-traefik.service doesn't start - node: insecure HOT 3
- Cannot run --tags=start after a recent commit HOT 2
- rust-synapse-compress-state no longer works: Error connecting to the database
- Matrix federation API returns '404 page not found' HOT 1
- Playbook adds docker repository even tho it shouldn't install docker HOT 3
- Running Ansible on NixOS (hopefully simple2anwser newbie qeustion) HOT 1
- How to get a `Photoprism` container to be routed through `matrix-traefik`?? HOT 2
- Postgres 14 to 16 update fails. HOT 3
- Authorization via login/password for Coturn HOT 3
- Mautrix Signal version tag does not work with matrix_architecture variable
- Conference Calls Using Jitsi Instead of Element Call UI
- matrix-dendrite.service service fails to start when whatsapp bridge is enabled HOT 9
- Update SchildiChat to v1.11.36 HOT 2
- matrix-cactus-comments-client Service starts, but serve no files
- matrix_ldap_registration_proxy Undefined variable
- '404 page not found' after installation and migration old data HOT 8
- please start and enable {{ matrix_static_files_identifier }}.service if matrix_static_files_container_labels_base_domain_enabled true HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-docker-ansible-deploy.