mysqldump: Got error: 2005: Unknown MySQL server host 'monorail.proxy.rlwy.net'

viethocPRO

9 months ago

Hi railway team,
Please support my project with ID bd3f942a-c02d-40a9-8a67-584563fadb86.
My project setup a cronjob to run a ruby file to backup my db in railway.
I run docker success and can backed up my db like image below:

But when i push to railway and cronjob of railway run it and return this error:
mysqldump: Got error: 2005: Unknown MySQL server host 'monorail.proxy.rlwy.net'.

Please help me check that case, maybe railway setting block the network.
Thanks and please check it ASAP.

Solved

7 Replies

9 months ago

We recommend using private networking: https://docs.railway.app/guides/private-networking


Status changed to Awaiting User Response railway[bot] 9 months ago


9 months ago

Marking this thread as public as this is an application level issue


9 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open david 9 months ago


viethocPRO

9 months ago

hummn. Why did you change my thread to public? @david?
In my posted image had log information of my database. I posted in private thread and if you wanna publish it, you need request my approval.


9 months ago

Hey, that is a generic domain and is not unique to your database.

Project Ids are also not sensitive.


viethocPRO

9 months ago

Yes, but in my image, i log the backup command: Backup command like that: mysqldump -h mysql.railway.internal -P 3306 -u USER -pPW DB > backups/backup_20240815052608.sql.
It contain full information of my db: host, port, db, password.
Did you check carefuly it?
I have deleted my image in my post to keep it secret.


viethocPRO

9 months ago

I tried to use internal host before but get the same error.
But in local, i can run my project with docker and can backup the db.
Please help me check again


viethocPRO

9 months ago

Please help he sovle this issue. Thanks


Status changed to Solved angelo 9 months ago