Description
- diffgram works well for 2 days after installation(on docker in cloud) but then when i try to log in the diffgram website, it shows error below mentioned
error: { "message": "Service is unreachable. Please check the connection to the http://default:8080 service.", "port": 8080, "service": "http://default" }
server: 503. Service unavailable. Are all services up?
-
I checked the container. db migration and minio/mc container had exited. in this, minio is used for creating bucket and we configured to create bucket in aws so i hope it will not create any error related to that.
-
db migration shows postgres is up but docker logs of postgres shows below error.
2024-11-18 07:19:38.530 UTC [308696] FATAL: database "diffgram" does not exist
2024-11-18 07:19:54.313 UTC [308705] FATAL: role "root" does not exist
2024-11-18 07:20:07.839 UTC [308707] FATAL: database "diffgram" does not exist
2024-11-18 07:20:09.368 UTC [308708] FATAL: database "diffgram" does not exist
2024-11-18 07:20:24.531 UTC [308716] FATAL: role "root" does not exist
2024-11-18 07:20:54.732 UTC [308726] FATAL: role "root" does not exist
-
I can see that volume is located inside the db of the yaml file. But why does this error persist?
-
In the container of diffgram/default:latest python3 shows below mentioned error
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 686, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 574, in connect
return dialect.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 598, in connect
return self.dbapi.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "db" (172.18.0.4), port 5432 failed: FATAL: database "diffgram" does not exist
(Background on this error at: https://sqlalche.me/e/14/e3q8)
- I could understand that all these things related DB error .So kindly provide me any suggestion or solution!!!!!!!!!!!!!!!!!!!!!!!!!