i am geeting mad by this error

elctr0n
FREE

3 days ago

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/app.py", line 5, in <module>

from database import db

File "/app/database.py", line 860, in <module>

db = DatabaseManager()

^^^^^^^^^^^^^^^^^

File "/app/database.py", line 11, in init

self.init_database()

File "/app/database.py", line 55, in init_database

raise Exception("No database connection available in production environment")

Exception: No database connection available in production environment

$10 Bounty

3 Replies

Railway
BOT

3 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


clashing
FREETop 1% Contributor

3 days ago

Are you using a Railway-deployed DB. If yes, then please ensure that the variables are there for the services that you want to connect with DB?

And make sure to use private-networking to do internal talking, as it would supress/bypasss the egress cost, as compared to public networking

https://docs.railway.com/guides/private-networking#communicating-over-the-private-network


clashing

Are you using a Railway-deployed DB. If yes, then please ensure that the variables are there for the services that you want to connect with DB?And make sure to use private-networking to do internal talking, as it would supress/bypasss the egress cost, as compared to public networkinghttps://docs.railway.com/guides/private-networking#communicating-over-the-private-network

clashing
FREETop 1% Contributor

a day ago

Any update, elctr0n