a year ago
project id: af3a9477-0f60-4b89-bf4f-fa5ff16bc99b
Rails 7.2.1 app that is fairly barebones is having issues building. Locally, the app works fine. There is a Dockerfile present, however I'm not using it when developing locally. But it is the one that auto generates with rails.
Looks to me it got through almost all of the build steps, but ultimately failed and says:
=========================
Container failed to start
=========================
We were unable to connect to the registry for this image. If this error persists, please reach out to the Railway team.24 Replies
a year ago
what service? i dont see anything failed
a year ago
that service does not exist within the given project
a year ago
thank you
a year ago
it looks to be a very missleading message, i think this is user error
Let me try something - I just tweaked some files and got a different output.
a year ago
from our logs - open executable: Permission denied
a year ago
we get that when we try starting your container, dont know why the user facing error is mentioning a registry
I was able to setup the railway cli, and do a deploy up and now I can clearly see the issue.
a year ago
awsome
<:thinkingverymuch:1230712484399288371> I'm still having issues getting my DB connected. It seems like everything is setup correctly. I'm also getting
Attempt #1 failed with service unavailable. Continuing to retry for 4m52s
Attempt #2 failed with service unavailable. Continuing to retry for 4m51s
Attempt #3 failed with service unavailable. Continuing to retry for 4m49s
Attempt #4 failed with service unavailable. Continuing to retry for 4m45s
Attempt #5 failed with service unavailable. Continuing to retry for 4m37s
Attempt #6 failed with service unavailable. Continuing to retry for 4m21s
Attempt #7 failed with service unavailable. Continuing to retry for 3m51s
Attempt #8 failed with service unavailable. Continuing to retry for 3m21s
Attempt #9 failed with service unavailable. Continuing to retry for 2m51s
Attempt #10 failed with service unavailable. Continuing to retry for 2m21s
Attempt #11 failed with service unavailable. Continuing to retry for 1m51s
Attempt #12 failed with service unavailable. Continuing to retry for 1m21s
Attempt #13 failed with service unavailable. Continuing to retry for 51sdespite this page working just fine: https://relisa-api-production.up.railway.app/up
a year ago
please read this section -
Thx.
As for the DB, I'm getting:
[2f5ce1fe-5e91-4392-92f8-db953a8d95bd] Mysql2::Error::ConnectionError (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))my db config in code:
production:
<<: *default
database: <%= ENV['DATABASE_NAME'] %>
username: <%= ENV['DATABASE_USERNAME'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
host: <% ENV['DATABASE_HOST'] %>
port: 3306and I've got those 4 things set in my env in railway. Am I missing something?
a year ago
is your app is trying to connect to a socket, then it is most definitely not using those environment variables
I’m not sure why it’s even doing the socket, I’ve never had a rails app do that.
a year ago
sounds good
a year ago
awsome, what was the issue?
ultimately, i had to use a database_url within rails to get railway to be happy. once i did that, it all worked. it's possible i wasn't using a db port or some piece of it that was causing the connection via env vars to fail
a year ago
sounds good