-
Notifications
You must be signed in to change notification settings - Fork 233
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
Docker: Login fail - due to backend failing connection to db because of wrong psql version #114
Comments
Thanks for the tip, but it seems to not be working anyway. I'm getting it stuck in restarting now:
|
I removed all containers and the volumes and started from scratch, now it shows all containers as running, but I still get the message "No connection to backend server" |
please ignore me, it's working now, I had misunderstood the BACKEND_HOST variable, so setting it to my host made it working. |
@hartmark what is the value that needs to go into BACKEND_HOST ? i tried my Docker Host (Synology DNS name), i tried the Docker Host IP address, both result in "No Connection to Backend". Thanks |
I'm not using ownphotos any longer and I don't remember, but I think it was just the dns-name of the docker-host. |
Trying to install using docker-compose was causing login error without much information. Checking logs from ownphotos-backend indicated a communication problem with ownphotos-db. Checking ownphotos-db showed this:
docker-compose.yml file does not specifies which
postgres
image version to use. So when docler-compose downloaded postgres image, it gotlatest
(https://hub.docker.com/_/postgres) which at current time is11.5
.Please specify a version to all your external dependencies where you do not have control to avoid future issues.
The fix to this is to put
postgres:9.6
for the image on ownphotos-db container section of docker-compose.ymlThe text was updated successfully, but these errors were encountered: