Running "railway up --service my-service" but I get 404

I'm trying to deploy my image to railway using the railway cli in my github actions. But when I use "railway up --service my-service" I get 404. I have multiple projects but in this project I only have one service and that is pulling my image from ghcr.io
50 Replies
Percy
Percy2d ago
Project ID: aaecae2f-8290-431a-86ea-b4163e4e8852
Patnas
Patnas2d ago
aaecae2f-8290-431a-86ea-b4163e4e8852 The problem might be that my docker image is private, where can I add credentials?
Brody
Brody2d ago
railway up has nothing to do with images to begin with?
Patnas
Patnas2d ago
Yea you right. forget about the image.. I just need help selecting my service using the railway up command Shouldn't "railway up --service my-service" work if I have unique name on my service?
Brody
Brody2d ago
i think you dont really know what that command is used for? please read the help description for it
Patnas
Patnas2d ago
I'm sorry for asking, this is a help support chat. If I knew I wouldn't be here.. Have a wonderful day
Brody
Brody2d ago
Upload and deploy project from the current directory

Usage: railway up [OPTIONS] [PATH]

Arguments:
[PATH]

Options:
-d, --detach Don't attach to the log stream
-c, --ci Stream build logs only, then exit (equivalent to setting $CI=true)
-s, --service <SERVICE> Service to deploy to (defaults to linked service)
-e, --environment <ENVIRONMENT> Environment to deploy to (defaults to linked environment)
--no-gitignore Don't ignore paths from .gitignore
--verbose Verbose output
--json Output in JSON format
-h, --help Print help
-V, --version Print version
Upload and deploy project from the current directory

Usage: railway up [OPTIONS] [PATH]

Arguments:
[PATH]

Options:
-d, --detach Don't attach to the log stream
-c, --ci Stream build logs only, then exit (equivalent to setting $CI=true)
-s, --service <SERVICE> Service to deploy to (defaults to linked service)
-e, --environment <ENVIRONMENT> Environment to deploy to (defaults to linked environment)
--no-gitignore Don't ignore paths from .gitignore
--verbose Verbose output
--json Output in JSON format
-h, --help Print help
-V, --version Print version
start by telling us what you want to achieve
Patnas
Patnas2d ago
Yes, I'm asking about the --service attribute. If you read my question again.
Brody
Brody2d ago
right but you also mentioned an image, railway up has nothing to do with images, so I'd like to know what you'd actually like to achieve
Patnas
Patnas2d ago
I use your default deploy docker image functionality selecting my docker image from my docker image repository. Then I click "deploy" every time I have a new Image. So you have docker image functionality, but you still say railway has nothing to do with images? ok. I'm trying to get rid of the manual step using your cli in my github action workflow. To spin up the railway service after I created a docker image.
Brody
Brody2d ago
please read my messages a little more carefully, I am talking about the railway cli, specifically the railway up command, it has nothing to do with deploying from an image
Patnas
Patnas2d ago
So you say that running "railway up --service service-name" does not run my service?!
Brody
Brody2d ago
please see the help printout above, it sends code to Railway to build and deploy, nothing to do with ghcr images
Patnas
Patnas2d ago
I'm not saying it has anything to do with images. I'm saying doesnt "railway up" start my service?!
Brody
Brody2d ago
no, it sends code to railway to build and deploy, start is the wrong term
Patnas
Patnas2d ago
okey so railway up will build and deploy my service which is a docker image..
Brody
Brody2d ago
it has nothing to do with images, railway up is not to be used when your source is an image
Patnas
Patnas2d ago
So why do you have a docker image option on the web interface
Brody
Brody2d ago
because that's the web interface, it has nothing to do with the cli completely different usecase do you have an action to build an image?
Patnas
Patnas2d ago
Soo my service i have in my project can not run using the railway cli
Brody
Brody2d ago
the cli has nothing to do with running your service from an image you've already selected the image, it's already running with the image
Patnas
Patnas2d ago
dude, stop talking about the image I have a railway service on my railway project
Brody
Brody2d ago
you mentioned the image in your original post, and you are continuing to mention it yourself
Patnas
Patnas2d ago
I've told you twice to forget about the image now.
Brody
Brody2d ago
do you not have a service deployed from an image?
Patnas
Patnas2d ago
no
Brody
Brody2d ago
then why did you say you did?
Patnas
Patnas2d ago
i didnt dude its like talking to a child im sorry I just google this bye
Brody
Brody2d ago
I only have one service and that is pulling my image from ghcr.io
Brody
Brody2d ago
No description
Patnas
Patnas2d ago
yes the service is a connection to my docker image thats not what you asked. do you not have a service deployed from an image? my service is not beeing deployed from my image
Brody
Brody2d ago
and you said no, the answer is yes yes it is!
Patnas
Patnas2d ago
You need HR
Brody
Brody2d ago
source image
you service is deployed from an image, see the screenshot i can't help with incorrect information
Patnas
Patnas2d ago
You call the code my image is containing "service" i'm talking about railway service
Brody
Brody2d ago
from the build logs -
We were unable to connect to the registry for this image. If you are using a private image, please make sure your credentials are valid. If this error persists, please reach out to the Railway team.
We were unable to connect to the registry for this image. If you are using a private image, please make sure your credentials are valid. If this error persists, please reach out to the Railway team.
the railway service is deployed from an image, yes it is
Patnas
Patnas2d ago
Are you always this disrespectful to Railway costumers? Is this how you keep costumers?
Brody
Brody2d ago
im not being disrespectful, im trying my best to work with incorrect information
Patnas
Patnas2d ago
Is there anyone I can talk to about your behavior? You have been rude from your first message Is there anyone I can talk to about your behavior?
Brody
Brody2d ago
i was trying to understand the situation better
Patnas
Patnas2d ago
You been basically calling me stupid the entire session Is there anyone I can talk to about your behavior?
Brody
Brody2d ago
i'm sorry you have felt that way, but that is not the case at all
Patnas
Patnas2d ago
You need HR
Brody
Brody2d ago
respectfully, they would tell you the same thing i am, ive done my best to work with the information given
Patnas
Patnas2d ago
Im paying for this service cause I think its cool but this just makes me wanna quit
Brody
Brody2d ago
this is not productive
Patnas
Patnas2d ago
I wanted to end this conversation along time ago. Now I just want to talk to your boss.
Brody
Brody2d ago
truthfully, he is on PTO
Patnas
Patnas2d ago
It's not about the information (which is not much) you give me its how you respond. You need HR training to before you communicate with costumers and paying costumers is even worse. This conversation feels like I've been talking to an annoyed 15 yo kid.. Think about that when you talk to another costumer.
Brody
Brody2d ago
alright
Want results from more Discord servers?
Add your server