a month ago
Hey, I’m having trouble logging into Railway using my GitHub account. I already cleared cookies for both railway.com and github.com. It was working fine earlier, but now it’s broken and I can’t connect my repositories for deployment.
Here’s exactly what happens:
I go to railway.com and click “Login”
I try redeploy my service
It throws error - "Repository not found"
I go to setting to reconnect the same repo. I remove the previous one and try reconnecting the github.
I click “Continue with GitHub”
I choose the repo and save
redirect back to railway with error - Error authenticating with github - "Invalid github OAuth callback"
Now can't redeploy my service
I saw similar issues earlier happened as well. Please fix it.
12 Replies
a month 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!
a month ago
Can you try removing the Railway app from GitHub, and then relogging in from railway.com with GitHub?
Status changed to Awaiting User Response Railway • 28 days ago
a month ago
I am using company email and password to login into railway, not github account. I also can't use github to login into railway. Can you please suggest any other solution?
Status changed to Awaiting Railway Response Railway • 28 days ago
a month ago
We don't support passwords on Railway. Are you sure you have the right credentials?
Status changed to Awaiting User Response Railway • 28 days ago
a month ago
Yes now it moved to password less via OTP in email. I was just referring to the method. This question doesn't solve anything. Can we please focus on the actual problem here? I am in a pro Workspace plan and would expect to connect with github smoothly. I saw very similar issues here in the forum. As a result we can't deploy any new updates/critical bug fixes to railway and it is affecting the actual business.
Status changed to Awaiting Railway Response Railway • 28 days ago
Status changed to Awaiting User Response Railway • 28 days ago
a month ago
This is the error I am getting while connecting the Github repo now. This is the full background:
1. we started using railway long back
2. we connected out github repo and started deploying the micro service
3. It was running just fine till few days earlier. Last successful deployment was 3 months ago via the same github repo
4. Previously it was auto deploy so if something got pushed to the branch it'll trigger auto deployment
5. Now if the User isn't on the Railway team, their commit needs approval.
6. Open the railway dashboard to manual deploy
7. clicking on the deploy button gives error - "cannot access the github repo"
8. I remove the github to reconnect the same repo to resolve the error
9. Now open Settings tab Connect Source option to connect the github repo
10. login to github and add the repo. click on save
11. auth callback to railway. throwing error - "Invalid GitHub OAuth callback"
I have attached the step by step screenshot to the uploaded pdf. Hope that helps!
Attachments
Status changed to Awaiting Railway Response Railway • 26 days ago
a month ago
Acknowledge the bug. In the short term, you can use railway up
to unblock your business. I am trying to see what might have caused this, but it's difficult because I don't see any other reports.
Can you give me your GitHub username so I can see if there is a user conflict in our DB?
Status changed to Awaiting User Response Railway • 26 days ago
25 days ago
We are digging into this error and I have another question besides what Angelo asked. Are you using GitHub enterprise or have some other company SSO authentication to GitHub? There seems to be an issue with the OAuth flow on your GitHub account where we are not receiving the data we expect (our fault for not handling it).
25 days ago
Hi Angelo and Jr,
Here are the requested details:
GitHub username - sdhasbusiness
It is not a GitHub enterprise or company SSO. It is a personal account.
Repo - https://github.com/sdhasbusiness/FlowersChamp-service (it is a private repo)
Railway email - admin@flowerschamp.com
Also can you please explain the usage of railway up
command? do I need any setup before I run this command from cli? You can share me any document link if you have.
Status changed to Awaiting Railway Response Railway • 25 days ago
24 days ago
Status changed to Awaiting User Response Railway • 24 days ago
23 days ago
Thanks team. I could connect with Github via account integration and successfully redeployed application. Thanks for your support.
Status changed to Awaiting Railway Response Railway • 23 days ago
Status changed to Solved flowerschamp • 23 days ago