Unable to login to CLI
Anonymous
PROOP

4 months ago

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

Attachments

Solved

32 Replies

Railway
BOT

4 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!


Anonymous
PROOP

4 months ago

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


Anonymous
PROOP

4 months ago

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


Anonymous
PROOP

4 months ago

hello?


4 months 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

4 months ago

21.2.1


Anonymous
PROOP

4 months 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

4 months ago


michaelmaust
FREE

4 months ago

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


4 months ago

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


Anonymous
PROOP

4 months ago

didn't work:(


4 months ago

Are you on a mac or windows based machine?


Status changed to Awaiting User Response Railway 4 months ago


Anonymous
PROOP

4 months ago

mac


Status changed to Awaiting Railway Response Railway 4 months ago


4 months ago

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


Status changed to Awaiting User Response Railway 4 months ago


Anonymous
PROOP

4 months ago

Didn't work:(


Status changed to Awaiting Railway Response Railway 4 months ago


Anonymous
PROOP

4 months 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 4 months ago


Anonymous
PROOP

4 months ago

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


Status changed to Awaiting Railway Response Railway 4 months ago


Railway
BOT

4 months 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 4 months ago


What does railway login --browserless do?


Railway
BOT

4 months ago

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


angelo-railway

What does railway login --browserless do?

Anonymous
PROOP

4 months ago

same thing, unauthorized


Status changed to Awaiting Railway Response Railway 4 months ago


Anonymous
PROOP

4 months ago

any progress? I really need this!


Railway
BOT

4 months ago

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


Anonymous
PROOP

3 months ago

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


Anonymous
PROOP

3 months ago

This is going on seven days now:(


Anonymous
PROOP

3 months ago

hello?


Anonymous
PROOP

3 months ago

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


3 months ago

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


Anonymous
PROOP

3 months ago

config.json version.json


echohack
EMPLOYEE

3 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 3 months ago


Loading...