We were unable to connect to the registry for this image.
coreycondardo
TRIALOP

2 years 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

2 years ago

what service? i dont see anything failed


coreycondardo
TRIALOP

2 years ago

Believe its service id: fea98c3a-19b1-44cc-8e0d-57c0189aebce


2 years ago

that service does not exist within the given project



2 years ago

thank you


2 years ago

it looks to be a very missleading message, i think this is user error


coreycondardo
TRIALOP

2 years ago

do you have any other information about the issue?


coreycondardo
TRIALOP

2 years ago

Let me try something - I just tweaked some files and got a different output.


2 years ago

from our logs - open executable: Permission denied


2 years ago

we get that when we try starting your container, dont know why the user facing error is mentioning a registry


coreycondardo
TRIALOP

2 years ago

I was able to setup the railway cli, and do a deploy up and now I can clearly see the issue.


2 years ago

awsome


coreycondardo
TRIALOP

2 years ago

<: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 51s

despite this page working just fine: https://relisa-api-production.up.railway.app/up


2 years ago

please read this section -


coreycondardo
TRIALOP

2 years ago

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:
  &lt;&lt;: *default
  database: &lt;%= ENV['DATABASE_NAME'] %&gt;
  username: &lt;%= ENV['DATABASE_USERNAME'] %&gt;
  password: &lt;%= ENV['DATABASE_PASSWORD'] %&gt;
  host: &lt;% ENV['DATABASE_HOST'] %&gt;
  port: 3306

and I've got those 4 things set in my env in railway. Am I missing something?


2 years ago

is your app is trying to connect to a socket, then it is most definitely not using those environment variables


coreycondardo
TRIALOP

2 years ago

I’m not sure why it’s even doing the socket, I’ve never had a rails app do that.


coreycondardo
TRIALOP

2 years ago

Okay socket must mean by env vars are bad. I’ll try to sort that out.


2 years ago

sounds good


coreycondardo
TRIALOP

2 years ago

Was able to get it all done, thanks @Brody !


2 years ago

awsome, what was the issue?


coreycondardo
TRIALOP

2 years ago

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


2 years ago

sounds good


Anonymous
HOBBY

2 years ago

fk me


Welcome!

Sign in to your Railway account to join the conversation.

Loading...