Unable to access databases from a PR environment
rbrdigital
HOBBYOP

a year ago

Hi there, i have a problem with all databases that was generated by the PR environment.
I'm using the beta functionality that duplicates all databases from another env and when i tried to access some of the databases, i receive an authentication error.
The railway dashboard also receives an error when tries to connect them.

I recognize that this feature is in beta test. I'm just reporting the error and if its simple to fix, i'd appreciate so much.

Project ID: e60124ce-5bb4-41cb-8517-9606dbe5b9f7
Environment: pr-929 (Environment ID: a3badbef-9764-400e-b70e-c27654ca4475)

Solved

17 Replies

rbrdigital
HOBBYOP

a year ago

Just correcting: Not all databases are like this, I was able to access one of them normally from the beginning.


mikexie360
PRO

a year ago

is your railway dashboard connected to the db through private connection?


rbrdigital
HOBBYOP

a year ago

The railway dashboard probably connects using private network.. my microservices also connects like this. I also tried to connect through by public network.. had no effect


a year ago

data tab connects to the database via the public network


a year ago

service id please?


mikexie360
PRO

a year ago

try using environment variables

1331101432362827800


rbrdigital
HOBBYOP

a year ago

0cbe5bab-64b2-4565-af92-308d2e2c6622


rbrdigital
HOBBYOP

a year ago

i copied the environment variables correctly. Internally everything is linked, so I believe it was not a user error.


rbrdigital
HOBBYOP

a year ago

as everything was duplicated from another environment, theoretically it was supposed to work


a year ago

MONGO_INITDB_ROOT_PASSWORD

as the name suggests, its only used on init for a blank db, once the database has been initialized, the password is now stored in the volume.

but when the pr env got created, the templates generator created a new variable.

data tab now uses the wrong password, and cannot connect.


a year ago

ah looks like as of 30 minutes ago this is fixed (your pr env was created 3 days ago)

for all pr envs with copy volume data enabled, we do not run the generators anymore, so all passwords in pr envs will be the same as the passwords in the base pr branch


rbrdigital
HOBBYOP

a year ago

Ohh, nice! Is it possible to regenerate a PR environment?


a year ago

maybe close and re-open? not too sure the best practices around that are


rbrdigital
HOBBYOP

a year ago

I'll try that


rbrdigital
HOBBYOP

a year ago

It worked, thank you very much @Brody


a year ago

awsome!


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...