You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Docker matrixdotorg/synapse:latest: libpython3.7m.so.1.0: cannot open shared object file #8038
Tried to start the docker image matrixdotorg/synapse:latest via docker-compose and getting the following error:
synapse_1 | /usr/local/bin/python: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
synapse_synapse_1 exited with code 127
Steps to reproduce
Start the matrixdotorg/synapse:latest via docker-compose or docker directly
rav@fred:~/tmp$ docker pull matrixdotorg/synapse:latest
latest: Pulling from matrixdotorg/synapse
Digest: sha256:f66fa7b3bf5250d14d23c847d48cbabbe58c4d26217250dac2b0b90975a38731
Status: Image is up to date for matrixdotorg/synapse:latest
docker.io/matrixdotorg/synapse:latest
rav@fred:~/tmp$ docker run --rm -it -v `pwd`/tmp:/data -e SYNAPSE_SERVER_NAME=localhost -e SYNAPSE_REPORT_STATS=yes matrixdotorg/synapse:latest generate
Creating log config /data/localhost.log.config
Generating config file /data/homeserver.yaml
Generating signing key file /data/localhost.signing.key
A config file has been generated in '/data/homeserver.yaml' for server name 'localhost'. Please review this file and customise it to your needs.
rav@fred:~/tmp$ docker run --rm -it -v `pwd`/tmp:/data -p 18008:8008 matrixdotorg/synapse:latest
Starting synapse with config file /data/homeserver.yaml
...
please can you give more information on how to reproduce this?
I'd suggest asking on #synapse:matrix.org if anyone is using docker compose with Synapse and have a working config. If so, it'd be great to update the one in our contrib directory.
Activity
jaltek commentedon Aug 6, 2020
Additional Information: matrixdotorg/synapse:v1.17.0 works perfectly.
richvdh commentedon Aug 6, 2020
It seems to work here:
please can you give more information on how to reproduce this?
jaltek commentedon Aug 7, 2020
@richvdh Thanks. Yes, your examples worked for me also.
I'm using the following docker-compose.yml
richvdh commentedon Aug 7, 2020
I'm not that familiar with docker-compose, but does this mean you are building your own docker image?
I'd suggest you are adding a library that is linked against the wrong version of python.
clokep commentedon Aug 7, 2020
I don't know if it matters, but the synapse image was switched to debian in #7839
jaltek commentedon Aug 7, 2020
The build section is only triggerd by using
docker-compose build. If you provide an image inside the yml file the build section will be skipped.I took this compose file from
https://github.com/matrix-org/synapse/blob/b2b86990705de8a099093ec141ad83e09f182034/contrib/docker/docker-compose.yml
@clokep Hm...the error occurs inside the synapse container, not the synapse-db container...Even if I choose
image: postgres:10it doesn't work.
clokep commentedon Aug 7, 2020
I'd suggest asking on #synapse:matrix.org if anyone is using docker compose with Synapse and have a working config. If so, it'd be great to update the one in our contrib directory.
jaltek commentedon Aug 7, 2020
@clokep Talking on #synapse:matrix.org the problem seems to be this mount:
which seemed to work with the alpine image, but not the debian one. So I think this can be closed. Thank you all.
clokep commentedon Aug 7, 2020
@jaltek Glad you figured it out! Thanks for pointing out the issue in case someone else runs into this. 👍