Skip to content
Unable to login to CLI
Anonymous
OP

a year ago

It says success, I'm logged in... but terminal says unauthorized?

Solved

32 Replies

Railway
BOT

a year 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!


Anonymous
OP

a year ago

tried it from mac term, intellij term, warp term, why can't I login?


Anonymous
OP

a year ago

is anyone there? big blocker for me, why can't I log in??


Anonymous
OP

a year ago

hello?


a year ago

What is your CLI version? You can check that by typing railway --version

You can also try deleting ~/.railway and doing the flow again.


Anonymous
OP

a year ago

21.2.1


Anonymous
OP

a year ago

deleted it, tried to log in again, same issue, but it did recreate the ~/.railway with a token so something is messed


michaelmaust

a year ago


michaelmaust

a year ago

Okay, they fixed the issue for me. You should try it for yourself again.


a year ago

Team just pushed a fix for this, can you guys try again?


Anonymous
OP

a year ago

didn't work:(


a year ago

Are you on a mac or windows based machine?


Status changed to Awaiting User Response Railway • about 1 year ago


Anonymous
OP

a year ago

mac


Status changed to Awaiting Railway Response Railway • about 1 year ago


a year ago

Run rm -rf ~/.railway/config.json then railway login and you should be good to go!


Status changed to Awaiting User Response Railway • about 1 year ago


Anonymous
OP

a year ago

Didn't work:(


Status changed to Awaiting Railway Response Railway • about 1 year ago


Anonymous
OP

a year ago

is this gonna be fixed any time soon? It's been days now:( so many things I'd like to be able to do with this, but I can't even use claude mcp or anything scripting related cause I can't get the damn cli to login... what gives?


I would love to fix it but your last message of: 21.2.1 doesn't seem to be valid version, you should be on 4.x


Status changed to Awaiting User Response Railway • about 1 year ago


Anonymous
OP

a year ago

hmm, don't know where I got that but this is it: railway 4.11.0


Status changed to Awaiting Railway Response Railway • about 1 year ago


Railway
BOT

a year ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


Okay, raised to the engineer.


Status changed to Awaiting User Response Railway • about 1 year ago


What does railway login --browserless do?


Railway
BOT

a year ago

🛠️ The ticket Authentication issue with SSH has been marked as in progress.


angelo-railway

What does railway login --browserless do?

Anonymous
OP

a year ago

same thing, unauthorized


Status changed to Awaiting Railway Response Railway • about 1 year ago


Anonymous
OP

a year ago

any progress? I really need this!


Railway
BOT

a year ago

✅ The ticket Connection issue with SSH authentication has been marked as completed.


Anonymous
OP

a year ago

Why is this ticket completed? I still cannot login!?


Anonymous
OP

a year ago

This is going on seven days now:(


Anonymous
OP

a year ago

hello?


Anonymous
OP

a year ago

this is getting a bit rediculous now.....


a year ago

Can you run ls ~/.railway and tell me what shows up?


Anonymous
OP

a year ago

config.json version.json


echohack
EMPLOYEE

a year ago

I was able to diagnose this with Webmaster FRNT, we discovered the following:

```

railway login

> Open the browser?

Yes Unauthorized.

Please login with railway login

Note: Using RAILWAY_TOKEN environment variable

cat ~/.railway/config.json { "projects": {}, "user": { "token": "myToken" }, "linkedFunctions": null }%

```

The issue here is that the user had the RAILWAY_TOKEN set, and that the error message was not specific enough to prompt the user to unset RAILWAY_TOKEN

Solved!


Status changed to Solved echohack • about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...