Project not found. Run
railway link
to connect to a project.

duglikespiano
HOBBY

3 months ago

Hi, I am attempting to access to my project's server by ssh.

And I am facing message 'Project not found. Run railway link to connect to a project.' repeatedly.

This is log on my terminal and I think it is connected with my project, service project properly and environment is well designated.

---

suho@SUHOs-PC ~ % railway status                                                        

Project: dugsworks

Environment: production

Service: dugsworks-backend

---

---

suho@SUHOs-PC ~ % railway ssh --project dugsworks --environment production --service dugsworks-backend

Project not found. Run railway link to connect to a project.

---

Maybe there's something I am missing.

Where should I check more?

Solved

7 Replies

3 months ago

Right click your service -> Copy SSH Command

Use that.


Status changed to Awaiting User Response Railway 3 months ago


Status changed to Solved ray-chen 3 months ago


ray-chen

Right click your service -> Copy SSH CommandUse that.

duglikespiano
HOBBY

3 months ago

oh thanks! that works!


Status changed to Awaiting Railway Response Railway 3 months ago


scarpent
HOBBY

3 months ago

With railway ssh and with right-click copy ssh command I'm getting:

Expected welcome message, received: ServerMessage { type: "error", payload: ServerPayload { data: Empty, message: "Could not establish SSH connection to application", code: None } }

railway link and railway login both run successfully, but ssh has been erroring out the past couple of hours.


scarpent

With railway ssh and with right-click copy ssh command I'm getting:Expected welcome message, received: ServerMessage { type: "error", payload: ServerPayload { data: Empty, message: "Could not establish SSH connection to application", code: None } }railway link and railway login both run successfully, but ssh has been erroring out the past couple of hours.

duglikespiano
HOBBY

3 months ago

Oh! It was not erroring out when I tried the right-click copy ssh command

Maybe I tried after the problem has been solved, thanks by the way!


scarpent
HOBBY

3 months ago

Sorry I'm just hijacking your thread for a perhaps related issue. Might be a whole different thing.


scarpent

Sorry I'm just hijacking your thread for a perhaps related issue. Might be a whole different thing.

scarpent
HOBBY

3 months ago

(A redeploy resolved this for me.)


3 months ago

If you've got a separate issue, please make a separate through and we'll merge em


Status changed to Awaiting User Response Railway 3 months ago


Status changed to Solved jake 3 months ago