R
Join ServerRailway
βο½help
"Database URL cannot be empty" error on CLI
Today I started getting error "Database URL cannot be empty" when running:
railway run rails c
railway run rails c
my project ID is 1e715dda-f769-4167-bae5-3c58d685441c
my instance is running ok for the webserver but i can't run console on it
what os?
and have you ran both railway link and railway service inside of that project folder?
macOS
railway run was working a few days ago.
i did run railway service
'railway run --service web rails c' didnt work either
did any of railway login, railway link, or railway service give you any errors?
mmm, not really. i can try to logout and re-login
no errors on login
not really? I think it was a yes or no question lol
aand after logout and re-login CLI still same error when running 'railway run rails c'
sorry. english not my native language.
NO, no errors on logout and login
NO, no errors on logout and login
okay what about the other commands I listed, any errors with them?
they all work ok
but dont resolve the issue
right okay
can you run railway shell and then run env
lmao no
sorry, wout run
retrying
railway shell
hit enter
env
does the database url variable show up?
when running railway shell it thinks for a while and nothing happens
is railwayapp 3.0.1
the latest?
the latest?
no
i'll try updating
yeah but also try listening to what I'm saying
railway shell?? i did it and it didnt work.
i told you here
close that terminal now
open a new terminal in the project
run
hit enter
run
check if the printed environment variables contain the database url
open a new terminal in the project
run
railway shell
hit enter
run
env
check if the printed environment variables contain the database url
still getting this problem on the new terminal
screenshot please
there is a screenshot in the mentioned message. but i'll take a new one
that screenshot you already sent shows that you didn't do what I'm asking
please carefully read over this message
^
aah, no prompt will come after railway shell
got it
what do you mean no prompt? there's a white rectangle, that's the prompt
sure, sorry
when running 'env'
among all variables this appears:
DATABASE_URL=
among all variables this appears:
DATABASE_URL=
there we go
have you setup the references?
not sure. as i said, it's been working until now.
you're a beta tester
you mean the new variables references for plugin that where announced on the last changelog?
yes
did you watch the video where Greg explained it all
i didnt configure it manually no.
no
please watch the video
ah, yes
that video yes
but on the UI it seems to be ok
normally I would refrain from asking you to go through all the above steps and just test it myself, but my power is out and I'm on mobile
so once I'm able to get back on the computer, I will check if I can replicate this issue and if I can I will bring it up to the team
Message Not Public
Sign In & Join Server To View
running "railway variables" returns this
trying
railway run env
nowDATABASE_URL is blank in "railway run env"
Message Not Public
Sign In & Join Server To View
yep
Message Not Public
Sign In & Join Server To View
railway --version
railwayapp 3.0.1
2 Messages Not Public
Sign In & Join Server To View
aaah, maybe its related to the brew install rlwy
how do I run rlwy ?
Message Not Public
Sign In & Join Server To View
oh, ok
best install source?
Message Not Public
Sign In & Join Server To View
i'll try that
ok, running
railway --version
railwayapp 3.0.13
now
railway --version
railwayapp 3.0.13
now
aaand worked!
thanks
4 Messages Not Public
Sign In & Join Server To View
appreaciated
i'm good now. getting back to work! π
thanks for the help
2 Messages Not Public
Sign In & Join Server To View