Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matrix-traefik missing acme.json #3026

Closed
vengefulpunk opened this issue Dec 7, 2023 · 6 comments
Closed

matrix-traefik missing acme.json #3026

vengefulpunk opened this issue Dec 7, 2023 · 6 comments

Comments

@vengefulpunk
Copy link

vengefulpunk commented Dec 7, 2023

Playbook Configuration:

  GNU nano 6.2                                                                                                                                                          vars.yml                                                                                                                                                                    ---
# The bare domain name which represents your Matrix identity.
# Matrix user ids for your server will be of the form (`@user:<matrix-domain>`).
#
# Note: this playbook does not touch the server referenced here.
# Installation happens on another server ("matrix.<matrix-domain>").
#
# If you've deployed using the wrong domain, you'll have to run the Uninstalling step,
# because you can't change the Domain after deployment.
#
# Example value: example.com
matrix_domain: redacted

# The Matrix homeserver software to install.
# See:
#  - `roles/custom/matrix-base/defaults/main.yml` for valid options
# - the `docs/configuring-playbook-IMPLEMENTATION_NAME.md` documentation page, if one is available for your implementation choice
matrix_homeserver_implementation: synapse

# A secret used as a base, for generating various other secrets.
# You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
matrix_homeserver_generic_secret_key: 'redacted'

# By default, the playbook manages its own Traefik (https://doc.traefik.io/traefik/) reverse-proxy server.
# It will retrieve SSL certificates for you on-demand and forward requests to all other components.
# For alternatives, see `docs/configuring-playbook-own-webserver.md`.
matrix_playbook_reverse_proxy_type: playbook-managed-traefik

# This is something which is provided to Let's Encrypt when retrieving SSL certificates for domains.
#
# In case SSL renewal fails at some point, you'll also get an email notification there.
#
# If you decide to use another method for managing SSL certificates (different than the default Let's Encrypt),
# you won't be required to define this variable (see `docs/configuring-playbook-ssl-certificates.md`).
#
# Example value: someone@example.com
devture_traefik_config_certificatesResolvers_acme_email: redacted

# A Postgres password to use for the superuser Postgres user (called `matrix` by default).
#
# The playbook creates additional Postgres users and databases (one for each enabled service)
# using this superuser account.
devture_postgres_connection_password: 'redacted'

# By default, we configure Coturn's external IP address using the value specified for `ansible_host` in your `inventory/hosts` file.
# If this value is an external IP address, you can skip this section.
#
# If `ansible_host` is not the server's external IP address, you have 2 choices:
# 1. Uncomment the line below, to allow IP address auto-detection to happen (more on this below)
# 2. Uncomment and adjust the line below to specify an IP address manually
#
# By default, auto-detection will be attempted using the `https://ifconfig.co/json` API.
# Default values for this are specified in `matrix_coturn_turn_external_ip_address_auto_detection_*` variables in the Coturn role
# (see `roles/custom/matrix-coturn/defaults/main.yml`).
#
# If your server has multiple IP addresses, you may define them in another variable which allows a list of addresses.
# Example: `matrix_coturn_turn_external_ip_addresses: ['1.2.3.4', '4.5.6.7']`
#
# matrix_coturn_turn_external_ip_address: ''

Matrix Server:

  • OS: ubuntu 22.04
  • Architecture amd64

Ansible:
If your problem appears to be with Ansible, tell us:
ansible [core 2.16.0]
config file = /home/ansible/matrix-docker-ansible-deploy/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ansible/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
executable location = /home/ansible/.local/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

Problem description:

Describe what you're doing, what you expect to happen and what happens instead here.
Tell us what you've tried and what you're aiming to achieve.

I am installing matrix and running ansible-playbook -i inventory/hosts setup.yml --tags=install-all,ensure-matrix-users-created,start when I receive the error below

failed: [redacted] (item={'name': 'matrix-coturn.service', 'priority': 4000, 'groups': ['matrix', 'coturn']}) => changed=false
ansible_loop_var: item
item:
groups:
- matrix
- coturn
name: matrix-coturn.service
priority: 4000
msg: |-
Unable to start service matrix-coturn.service: A dependency job for matrix-coturn.service failed. See 'journalctl -xe' for details.

from journalctl

Dec 06 18:56:07 emerald matrix-traefik-certs-dumper[96288]: /in/acme.json is missing.. Waiting (2331/inf.)

With this being a default traefik setup, I am not sure what, if anything, I should modify for this.

@vengefulpunk
Copy link
Author

My apologies for the poor formatting. I can't edit it to fix that.

@aaronraimist
Copy link
Contributor

@vengefulpunk You can edit it to fix the formatting.

  1. Click on this button: screenshot
  2. Click Edit.
  3. Add three backticks (```) on their own line before the start of the vars.yml contents
  4. Add three more on their own line after the end of the vars.yml contents.

@vengefulpunk
Copy link
Author

@aaronraimist thanks! I'm not sure how I failed at that.

@spantaleev
Copy link
Owner

Traefik probably cannot retrieve SSL certificates. Check its logs: journalctl -fu matrix-traefik

You likely have a firewall issue and port 80 is not publicly accessible, or you have a DNS problem.

@vengefulpunk
Copy link
Author

vengefulpunk commented Dec 7, 2023

It is a fresh container but turns out it had nginx installed and that was causing a port issue.

It is moving past that but giving another error during installation

(item={'name': 'matrix-coturn.service', 'priority': 4000, 'groups': ['matrix', 'coturn']}) => changed=false
  ansible_loop_var: item
  item:
    groups:
    - matrix
    - coturn
    name: matrix-coturn.service
    priority: 4000
  msg: |-
    Unable to start service matrix-coturn.service: A dependency job for matrix-coturn.service failed. See 'journalctl -xe' for details.

journalctl -xe

    session-5.scope: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit session-5.scope has successfully entered the 'dead' state.
Dec 07 08:31:09 emerald systemd[1]: session-5.scope: Consumed 47.138s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit session-5.scope completed and consumed the indicated resources.
Dec 07 08:31:09 emerald systemd-logind[642]: Session 5 logged out. Waiting for processes to exit.
Dec 07 08:31:09 emerald systemd-logind[642]: Removed session 5.
░░ Subject: Session 5 has been terminated
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ Documentation: sd-login(3)
░░
░░ A session with the ID 5 has been terminated.

@vengefulpunk
Copy link
Author

I fixed it, the container just needed a bit more memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants