ownphotos icon indicating copy to clipboard operation
ownphotos copied to clipboard

Not possible to finish the setup

Open Happyfeet01 opened this issue 5 years ago • 5 comments

Hello,

i use the Docker-compose.yml file from this github repo.

But when i try to login i get the Message "no connection to the backend server" when i look at http://domain.tld:3000/api i see this error:

`

Request Method: GET
http://backend/api/auth/token/obtain
2.1.2
OperationalError
FATAL: password authentication failed for user "postgres"
/venv/lib/python3.5/site-packages/psycopg2/init.py in connect, line 130
/venv/bin/python3
3.5.2
['', '/code', '/venv/bin', '/venv/lib/python35.zip', '/venv/lib/python3.5', '/venv/lib/python3.5/plat-x86_64-linux-gnu', '/venv/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/venv/lib/python3.5/site-packages', '/venv/lib/python3.5/site-packages/dlib-19.16.99-py3.5-linux-x86_64.egg', '/venv/lib/python3.5/site-packages/IPython/extensions', '/root/.ipython']
Wed, 16 Jan 2019 17:58:31 +0000

`

The Settings are correct in the docker-compose.yml file

` - POSTGRES_PASSWORD=AaAa1234

  • POSTGRES_DB=ownphotos

[...] - DB_BACKEND=postgresql - DB_NAME=ownphotos - DB_USER=postgres # This db password is internal, you can change it if you want, but also change it in ownphotos-db container - DB_PASS=AaAa1234

  • DB_HOST=ownphotos-db

`

Docker Log:

backend log:

2019-01-16 17:58:31.218 UTC [58] FATAL: password authentication failed for user "postgres" 2019-01-16 17:58:31.218 UTC [58] DETAIL: Password does not match for user "postgres". Connection matched pg_hba.conf line 95: "host all all all md5"

The passwords are the same...

Happyfeet01 avatar Jan 16 '19 18:01 Happyfeet01

Could you see if docker pull hooram/ownphotos:dev helps?

hooram avatar Jan 18 '19 01:01 hooram

Hi,

I use the dev image.

Happyfeet01 avatar Jan 18 '19 08:01 Happyfeet01

@Happyfeet01 What @hooram is trying to say is you might be using an out of date version of the dev image.

guysoft avatar Jan 20 '19 18:01 guysoft

Closing if no reply.

guysoft avatar Feb 05 '19 14:02 guysoft

Sorry for the late response,

this weekend i have the time to try the setup again. But get the same message when i check it over domain:3000/api

Status: Image is up to date for hooram/ownphotos:dev

But DB Pass is the same in ownphotos-db and backend


2019-02-23 16:57:54.963 UTC [50] FATAL:  password authentication failed for user "postgres"
2019-02-23 16:57:54.963 UTC [50] DETAIL:  Password does not match for user "postgres".
        Connection matched pg_hba.conf line 95: "host all all all md5"

`

Request Method: GET
http://backend/api
2.1.2
OperationalError
FATAL: password authentication failed for user "postgres"
/miniconda/lib/python3.7/site-packages/psycopg2/init.py in connect, line 130
/miniconda/bin/python
3.7.1
['', '/code', '/miniconda/bin', '/miniconda/lib/python37.zip', '/miniconda/lib/python3.7', '/miniconda/lib/python3.7/lib-dynload', '/miniconda/lib/python3.7/site-packages', '/miniconda/lib/python3.7/site-packages/dlib-19.16.99-py3.7-linux-x86_64.egg', '/miniconda/lib/python3.7/site-packages/cmake-3.13.3-py3.7-linux-x86_64.egg', '/miniconda/lib/python3.7/site-packages/IPython/extensions', '/root/.ipython']

`

Happyfeet01 avatar Feb 23 '19 16:02 Happyfeet01