Unable to login to CLI
Anonymous
PROOP

a year ago

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

Attachments

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
PROOP

a year ago

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


Anonymous
PROOP

a year ago

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


Anonymous
PROOP

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
PROOP

a year ago

21.2.1


Anonymous
PROOP

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
FREE

a year ago


michaelmaust
FREE

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
PROOP

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 • 11 months ago


Anonymous
PROOP

a year ago

mac


Status changed to Awaiting Railway Response Railway • 11 months 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 • 11 months ago


Anonymous
PROOP

a year ago

Didn't work:(


Status changed to Awaiting Railway Response Railway • 11 months ago


Anonymous
PROOP

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 • 11 months ago


Anonymous
PROOP

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 • 11 months 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 • 11 months 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
PROOP

a year ago

same thing, unauthorized


Status changed to Awaiting Railway Response Railway • 11 months ago


Anonymous
PROOP

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
PROOP

a year ago

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


Anonymous
PROOP

a year ago

This is going on seven days now:(


Anonymous
PROOP

10 months ago

hello?


Anonymous
PROOP

10 months ago

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


10 months ago

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


Anonymous
PROOP

10 months ago

config.json version.json


echohack
EMPLOYEE

10 months 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 • 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...