R
Railway2mo ago
Patnas

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
Percy2mo ago
Project ID: aaecae2f-8290-431a-86ea-b4163e4e8852
Patnas
PatnasOP2mo ago
aaecae2f-8290-431a-86ea-b4163e4e8852 The problem might be that my docker image is private, where can I add credentials?
Brody
Brody2mo ago
railway up has nothing to do with images to begin with?
Patnas
PatnasOP2mo 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
Brody2mo ago
i think you dont really know what that command is used for? please read the help description for it
Patnas
PatnasOP2mo 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
Brody2mo 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
PatnasOP2mo ago
Yes, I'm asking about the --service attribute. If you read my question again.
Brody
Brody2mo 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
PatnasOP2mo 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
Brody2mo 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
PatnasOP2mo ago
So you say that running "railway up --service service-name" does not run my service?!
Brody
Brody2mo ago
please see the help printout above, it sends code to Railway to build and deploy, nothing to do with ghcr images
Patnas
PatnasOP2mo ago
I'm not saying it has anything to do with images. I'm saying doesnt "railway up" start my service?!
Brody
Brody2mo ago
no, it sends code to railway to build and deploy, start is the wrong term
Patnas
PatnasOP2mo ago
okey so railway up will build and deploy my service which is a docker image..
Brody
Brody2mo ago
it has nothing to do with images, railway up is not to be used when your source is an image
Patnas
PatnasOP2mo ago
So why do you have a docker image option on the web interface
Brody
Brody2mo 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
PatnasOP2mo ago
Soo my service i have in my project can not run using the railway cli
Brody
Brody2mo 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
PatnasOP2mo ago
dude, stop talking about the image I have a railway service on my railway project
Brody
Brody2mo ago
you mentioned the image in your original post, and you are continuing to mention it yourself
Patnas
PatnasOP2mo ago
I've told you twice to forget about the image now.
Brody
Brody2mo ago
do you not have a service deployed from an image?
Patnas
PatnasOP2mo ago
no
Brody
Brody2mo ago
then why did you say you did?
Patnas
PatnasOP2mo ago
i didnt dude its like talking to a child im sorry I just google this bye
Brody
Brody2mo ago
I only have one service and that is pulling my image from ghcr.io
Brody
Brody2mo ago
No description
Patnas
PatnasOP2mo 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
Brody2mo ago
and you said no, the answer is yes yes it is!
Patnas
PatnasOP2mo ago
You need HR
Brody
Brody2mo ago
source image
you service is deployed from an image, see the screenshot i can't help with incorrect information
Patnas
PatnasOP2mo ago
You call the code my image is containing "service" i'm talking about railway service
Brody
Brody2mo 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
PatnasOP2mo ago
Are you always this disrespectful to Railway costumers? Is this how you keep costumers?
Brody
Brody2mo ago
im not being disrespectful, im trying my best to work with incorrect information
Patnas
PatnasOP2mo 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
Brody2mo ago
i was trying to understand the situation better
Patnas
PatnasOP2mo ago
You been basically calling me stupid the entire session Is there anyone I can talk to about your behavior?
Brody
Brody2mo ago
i'm sorry you have felt that way, but that is not the case at all
Patnas
PatnasOP2mo ago
You need HR
Brody
Brody2mo ago
respectfully, they would tell you the same thing i am, ive done my best to work with the information given
Patnas
PatnasOP2mo ago
Im paying for this service cause I think its cool but this just makes me wanna quit
Brody
Brody2mo ago
this is not productive
Patnas
PatnasOP2mo ago
I wanted to end this conversation along time ago. Now I just want to talk to your boss.
Brody
Brody2mo ago
truthfully, he is on PTO
Patnas
PatnasOP2mo 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
Brody2mo ago
alright
Want results from more Discord servers?
Add your server