R
Railway•13mo ago
ofirtan

hi i need help with migration to new DB, my website crash!!!!!

No description
35 Replies
Percy
Percy•13mo ago
Project ID: N/A
ofirtan
ofirtanOP•13mo ago
you can help me?
ofirtan
ofirtanOP•13mo ago
ofirtan
ofirtanOP•13mo ago
please help
Brody
Brody•13mo ago
I don't see anything wrong with those logs, can you connect to the database locally?
ofirtan
ofirtanOP•13mo ago
I try
ofirtan
ofirtanOP•13mo ago
maybe now you see?
Brody
Brody•13mo ago
still don't see anything wrong, where you able to connect to the database locally?
ofirtan
ofirtanOP•13mo ago
yes, but it very slow now
Brody
Brody•13mo ago
try restarting the database
ofirtan
ofirtanOP•13mo ago
i tryed this, but i will try again
Brody
Brody•13mo ago
are you perhaps far away from the region your database is in? it's default region is us-west1
ofirtan
ofirtanOP•13mo ago
yes
Brody
Brody•13mo ago
then that's likely why it's slow what is your region?
ofirtan
ofirtanOP•13mo ago
im from israel
Brody
Brody•13mo ago
yeah that's quite far, regions are available on the pro plan
ofirtan
ofirtanOP•13mo ago
but it work ok when i deploy only in local that slow but now it now work at all
Brody
Brody•13mo ago
because your app would also be deployed to us-west1 can you show me logs for your app?
ofirtan
ofirtanOP•13mo ago
[2023-11-17 17:28:48 +0000] [1] [INFO] Starting gunicorn 20.1.0 [2023-11-17 17:28:48 +0000] [1] [INFO] Listening at: http://0.0.0.0:6441 (1) [2023-11-17 17:28:48 +0000] [1] [INFO] Using worker: sync [2023-11-17 17:28:48 +0000] [9] [INFO] Booting worker with pid: 9 [2023-11-17 17:30:59 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:9) [2023-11-17 17:31:00 +0000] [1] [WARNING] Worker with pid 9 was terminated due to signal 9 [2023-11-17 17:31:00 +0000] [10] [INFO] Booting worker with pid: 10
Brody
Brody•13mo ago
use the bookmarklet please
ofirtan
ofirtanOP•13mo ago
what you mean?
Brody
Brody•13mo ago
please use this
Brody
Brody•13mo ago
how long are the requests to your app supposed to take?
ofirtan
ofirtanOP•13mo ago
2 sec
Brody
Brody•13mo ago
okay then this is just looking like a code issue, but without error logs it would be extremely hard to debug, so please add as much logging and telemetry as you can
Brody
Brody•13mo ago
again, I don't see anything wrong with those logs please add as much logging and telemetry as you can
ofirtan
ofirtanOP•13mo ago
from where? i sent you all what i have...
Brody
Brody•13mo ago
to your code, add logging to your code
ofirtan
ofirtanOP•13mo ago
maybe you cam make the migration procceses restart? i dont know what to do
Brody
Brody•13mo ago
does the new database not have any data in it?
ofirtan
ofirtanOP•13mo ago
it have I may have found the problem, I'll update in a second Ok it was a problem for me, I found it 🙂 Thanks and have a good day! *I had a problem with the code
Brody
Brody•13mo ago
have a good day as well!
Want results from more Discord servers?
Add your server