Unauthorized. Please login with railway login
guscsales
PROOP

2 months ago

Hey team,

I’m trying to redeploy using the following command with the correct Railway token and service ID (this was working a few days ago):

RAILWAY_TOKEN=... railway redeploy --service=... -y

Now, every time I run this I get the error: "Unauthorized. Please login with railway login".

Even after running railway login, the issue persists.

Any idea how we can fix this?

Thanks,

Gus

$10 Bounty

8 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Railway

Hey there! We've found the following might help you get unblocked faster: - [🧵 Clerk auth breaks after Railway redeploy: sessions not recognized, tRPC UNAUTHORIZED despite unchanged env](https://station.railway.com/questions/clerk-auth-breaks-after-railway-redeploy-e30a726b) - [🧵 error on railway build service](https://station.railway.com/questions/error-on-railway-build-service-e29831d7) - [🧵 Redeploy Error](https://station.railway.com/questions/redeploy-error-7e7351ec) - [🧵 Postgree Redeploy Error ](https://station.railway.com/questions/postgree-redeploy-error-a0a834d2) If you find the answer from one of these, please let us know by solving the thread!

guscsales
PROOP

2 months ago

none of this are related...


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 2 months ago


crisog
PRO

2 months ago

Hey there!

Whats your version of railway/cli ? I saw a recent case of someone with an outdated version and it worked after updating. So might be worth trying.


guscsales
PROOP

2 months ago

It was 4.5.3, then I updated to 4.10.0 and it's working again. Probably something changed and it's not working on 4.5.3.

Thanks!


onpreo
PRO

2 months ago

We have issues with this as well since 03. October, we have this running in bitbucket pipelines and it just stopped working. The cli version we use was pinned to 3. We tried upgrading to 4 but does not change anything. No changes were done - not in the bitbucket pipeline and not on railway.

Happy for any pointers anyone can give!


onpreo

We have issues with this as well since 03. October, we have this running in bitbucket pipelines and it just stopped working. The cli version we use was pinned to 3. We tried upgrading to 4 but does not change anything. No changes were done - not in the bitbucket pipeline and not on railway. Happy for any pointers anyone can give!

crisog
PRO

2 months ago

What specific tag for version 4?


crisog

What specific tag for version 4?

onpreo
PRO

2 months ago

nevermind, worked now with 4.10.0 as well - sry for the misunderstanding and thanks for the quick reply!


kzgrey
HOBBY

2 months ago

I'm running 4.10.0 and I get the same error:
```
kevingrey@MacBookPro invkid % railway --version

railway 4.10.0

kevingrey@MacBookPro invkid % railway login    

> Open the browser? Yes

Unauthorized. Please login with railway login
```


Loading...