Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Github permission issues on deploy in Railway #5416

Answered by cshenoy
cshenoy asked this question in Q&A
Discussion options

Hi there - I followed the Railway deploy guide today and after some tinkering found out I couldn't clone from an organization private repo. I ended up moving my project to a private repo under my personal account (this one) but am still getting issues during the deploy in Railway. I registered with Railway through github and have authorized full access to all repos. I even changed the GIT_REPO env to a personal public one to make sure it wasn't something else (that worked). I've pasted relevant portions of the deploy logs below.

[deploy-code-server] RCLONE_DATA is not specified. Files will not persist
Cloning into '/home/coder/project'...
fatal: could not read Username for 'https://github.com';: No such device or address
[deploy-code-server] Starting code-server...

Using code-server v4.5.1. I feel like I'm missing something simple here but can't pinpoint it. Would appreciate some help. Thank you

You must be logged in to vote

I ended up creating a personal access token and adding to the git https url.

e.g. https://{token}@github.com/{name}/{repo}.git

Replies: 4 comments 5 replies

Comment options

This actually happens to me sometimes. Perhaps use the GitHub CLI client to clone from org repos - it could be a permission issue. I fix it by using the CLI for Git control, which includes cloning repos.

You must be logged in to vote
0 replies
Comment options

I ended up creating a personal access token and adding to the git https url.

e.g. https://{token}@github.com/{name}/{repo}.git

You must be logged in to vote
4 replies
Comment options

did this resolve your issue?

Comment options

It did. Is it worth adding to the docs or was my case not common?

Comment options

Seems a bit uncommon. Thanks for posting the solution! That should suffice for now.

Comment options

I think it's actually common though and should be added to the doc

Answer selected by cshenoy
Comment options

I'm on the same boat here and would encourage adding this to the docs

You must be logged in to vote
1 reply
Comment options

Is that in this repo? For the life of me I cannot seem to find anything about Railway here aside from a mention and a link to https://github.com/coder/deploy-code-server, so maybe we need to open an issue there.

Comment options

this is still a problem i have to make my repository public else it fails at the snapshot is says object not found! this is quite a critical issue

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /