Run on Server with Matrix installed (traefik and port challanges)

Describe the problem/error/question

I am trying to use the dockers-compose install guide on a server that also runs matrix and run into certificate and 404 errors

What is the error message (if any)?

I run into this problem: Error response from daemon: driver failed programming external connectivity on endpoint root-traefik-1 and fixed that by changing the ports to 8080:80 and 445:443

I have a Matrix server running on the same server that is also using traefik - so maybe there is a way to “reuse” the service and not double it?

and i guess because of that and some other mismatch on my end its having a lot of other issues
here is a list of the dockers

docker logs root-n8n-1
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: Exiting due to an error.
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: EACCES: permission denied, open '/home/node/.n8n/crash.journal'
Error: Exiting due to an error.
[+] Running 1/0
 ✔ Container root-traefik-1  Running                                                                                                                                  0.0s
Attaching to root-n8n-1, root-traefik-1
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-client-element@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-client-element@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-nginx-proxy-matrix-client@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-nginx-proxy-matrix-client@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"matrix-federation\" doesn't exist" routerName=matrix-nginx-proxy-matrix-federation@docker entryPointName=matrix-federation
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-nginx-proxy-matrix-federation@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-synapse-admin@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-synapse-admin@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-client-element@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-client-element@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-nginx-proxy-matrix-client@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-nginx-proxy-matrix-client@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"matrix-federation\" doesn't exist" routerName=matrix-nginx-proxy-matrix-federation@docker entryPointName=matrix-federation
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-nginx-proxy-matrix-federation@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="entryPoint \"web-secure\" doesn't exist" routerName=matrix-synapse-admin@docker entryPointName=web-secure
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="no valid entryPoint for this router" routerName=matrix-synapse-admin@docker
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="the router matrix-client-element@docker uses a non-existent resolver: default"
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="the router matrix-nginx-proxy-matrix-client@docker uses a non-existent resolver: default"
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="the router matrix-nginx-proxy-matrix-federation@docker uses a non-existent resolver: default"
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="the router matrix-synapse-admin@docker uses a non-existent resolver: default"
root-traefik-1  | time="2023-08-16T17:48:49Z" level=error msg="Unable to obtain ACME certificate for domains

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

is there an easy fix for an idiaot like me or is this something i should keep my fingers off because i dont have a clue?

thanks

Hey @dukevannori,

It looks like it is actually a permission error which has been answered on here a few times over the last couple of days.

I would update your config to use a docker volume and that should get you up and running, with the Traefik part as long as you know how to configure it you probably could use it for multiple services.

with the new configs and install updates i get the server running… but with matrix on the same server i get a traefik-1 service where of course the ports are taken already …

how can i “combine” the two so that it works … is there any documentation that i can go through? thanks!

Hey @dukevannori,

We don’t have a guide for that but I suspect there could be something in the Traefik documentation for using it with multiple sites.

can i use different ports than 80 and 443 in n8n config?
i will google a bit and just put this aside for now using it locally

thanks in the meantime

Hey @dukevannori,

n8n itself uses 5678 and the reverse proxy is what will listen on 80 / 443 to proxy the request so you could configure the reverse proxy to use different ports but that will likely cause other issues with the automatic SSL setup.

i created a new server setup without matrix and it works like a charm with your dockers compose setup intructions

will have to find another solution for the matrix setup

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.