Hi, I am switching from managed services to self h...
# general
n
Hi, I am switching from managed services to self hosted. I am using python django, postgres database and docker. I have added db and supertoken service in my docker-compose.yml file and added connection_uri='http://localhost:3567' . I am getting hello response also if i call GET http://localhost:3567/hello. But I am getting error as "bmerit-api-supertokens-1 | Loading supertokens config. bmerit-api-supertokens-1 | Completed config.yaml loading. bmerit-api-supertokens-1 | Loading storage layer. bmerit-api-supertokens-1 | Loading PostgreSQL config. bmerit-api-supertokens-1 | Loading supertokens version.yaml file. bmerit-api-supertokens-1 | 04 Aug 2023 11:24:27:406 +0000 | INFO | pid: 2a4d173e-cfae-4b4d-9ad4-79486e5e31b6 | [main] thread | io.supertokens.storage.postgresql.ConnectionPool.initPool(ConnectionPool.java:136) | Setting up PostgreSQL connection pool. bmerit-api-supertokens-1 | bmerit-api-supertokens-1 | Setting up PostgreSQL connection pool. bmerit-db-super | 2023-08-04 11:24:27.662 UTC [75] ERROR: relation "apps" does not exist at character 15 bmerit-db-super | 2023-08-04 11:24:27.662 UTC [75] STATEMENT: SELECT 1 FROM apps LIMIT 1 bmerit-db-super | 2023-08-04 11:24:27.693 UTC [75] ERROR: relation "tenants" does not exist at character 15 bmerit-db-super | 2023-08-04 11:24:27.693 UTC [75] STATEMENT: SELECT 1 FROM tenants LIMIT 1 bmerit-db-super | 2023-08-04 11:24:27.705 UTC [75] ERROR: relation "key_value" does not exist at character 15 bmerit-db-super | 2023-08-04 11:24:27.705 UTC [75] STATEMENT: SELECT 1 FROM key_value LIMIT 1 " Please guide me in this.
r
hey @Namratha the core starts successfully? And the hello response works?
if that works, then you can ignore the above error logs
n
but these logs keep on coming , can i remove that healthcheck code from docker compose file
r
yea, you can remove ther healthcekc code, or make it lesser frequent.
We even have a way to configure the log levels. Search our docs for "log level"
n
I am getting this error while make an api call to signup/code
I am using passwordless recipe
supertokens_python.exceptions.GeneralError: No SuperTokens core available to query
r
Hey. Are you using docker for the python process?
n
yes
r
What’s the connectionURI you have set?
n
connection_uri='http://supertokens:3567',
r
And all the services on the same network as defined in the docker compose?
n
yes this is my docker-compose file
r
I’m not gonna be able to see the config right now
But if they are all on the same network, then I’m not sure what’s wrong
If you can’t figure it out, maybe open an issue about this on our python repo with steps to reproduce. We can have a look
n
yes all are in same network.
supertokens: image: registry.supertokens.io/supertokens/supertokens-postgresql:6.0 depends_on: dbsuper: condition: service_healthy ports: - 3567:3567 environment: POSTGRESQL_CONNECTION_URI: "postgresql://supertokens_user:somePassword@bmerit-db-super:5431/supertokens" networks: - app_network
r
Maybe open an issue about this ok our GitHub with steps on how to replicate it. We will have a look asap
n
solved it myself thanks
14 Views