-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error on container boot #67
Comments
Hi @RiffyDivine thanks for open an issue. The turnserver permission denied message is not pretty but it also does not has any impact. Btw, you can disable the turnserver if you set the environment variable To your database error. My first question would be, if there is a homeserver.db file in your config directory? If yes, then have a look if the permission are 991:991. If yes, then please take a look into the homeserver.yaml file and share us the database part. It should looks similarly to this one:
Thanks. :-) |
Thanks, but yes I believe I need the turn server to get it all up and running for the users I got. Mostly based on any attempt to get voip/streaming working so far have failed. Chat is fine. But for the database it says this. But looking at what you posted, does the args need to be indented more since mine is inline with name line. I will go try that just to see.
Well here was the output from moving things around.
|
The error you posted last means that you have an issue with your That should look like:
Second: you really should consider using postgresql for your database rather than sqlite. That's not specific to this container, but general synapse advice. See here. Third: if you decide to keep sqlite you'll want to make sure that the |
Morning, so I had some issues getting this up and running. I have fixed most of said issues but I am not sure about this one. I am not sure what the permission issue is with the turnserver or how to correct it, unless that is normal. But also the error during initialization has me stumped right now. Anyone know how to fix it or even where I should start?
Added my compose file at the end in case the error is there.
WARN[0000] /home/riffy/docker/matrix-synapse/compose.yaml:
version
is obsolete[+] Running 0/0
⠋ Container matrix-synapse-docker-matrix-1 Recreated 0.1s
Attaching to docker-matrix-1
docker-matrix-1 | -=> start turn
docker-matrix-1 | -=> start matrix
docker-matrix-1 | Cannot create pid file: /var/run/turnserver.pid: Permission denied
docker-matrix-1 | This server is configured to use 'matrix.org' as its trusted key server via the
docker-matrix-1 | 'trusted_key_servers' config option. 'matrix.org' is a good choice for a key
docker-matrix-1 | server since it is long-lived, stable and trusted. However, some admins may
docker-matrix-1 | wish to use another server for this purpose.
docker-matrix-1 |
docker-matrix-1 | To suppress this warning and continue using 'matrix.org', admins should set
docker-matrix-1 | 'suppress_key_server_warning' to 'true' in homeserver.yaml.
docker-matrix-1 | --------------------------------------------------------------------------------
docker-matrix-1 | **********************************************************************************
docker-matrix-1 | Error during initialisation:
docker-matrix-1 | Traceback (most recent call last):
docker-matrix-1 | File "/matrix/venv/lib/python3.11/site-packages/synapse/app/homeserver.py", line 359, in setup
docker-matrix-1 | hs.setup()
docker-matrix-1 | File "/matrix/venv/lib/python3.11/site-packages/synapse/server.py", line 347, in setup
docker-matrix-1 | self.datastores = Databases(self.DATASTORE_CLASS, self)
docker-matrix-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker-matrix-1 | File "/matrix/venv/lib/python3.11/site-packages/synapse/storage/databases/init.py", line 72, in init
docker-matrix-1 | with make_conn(database_config, engine, "startup") as db_conn:
docker-matrix-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker-matrix-1 | File "/matrix/venv/lib/python3.11/site-packages/synapse/storage/database.py", line 165, in make_conn
docker-matrix-1 | native_db_conn = engine.module.connect(**db_params)
docker-matrix-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker-matrix-1 | sqlite3.OperationalError: unable to open database file
docker-matrix-1 |
docker-matrix-1 | There may be more information in the logs.
docker-matrix-1 | **********************************************************************************
Gracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
✔ Container matrix-synapse-docker-matrix-1 Stopped 21.1s
canceled
version: "3.3"
services:
docker-matrix:
user: 991:991
ports:
- 8448:8448
- 8008:8008
- 3478:3478
- 3479:3479
- 5350:5350
- 5349:5349
- 49152-49300:49152-49300/udp
volumes:
- ./config:/data
- ./media:/media_store
image: avhost/docker-matrix:latest
command: start
networks: {}
The text was updated successfully, but these errors were encountered: