a month ago
I am not able to deploy the code on my repo, suddenly its loading branches. I was able to do 2 hours ago. I am geting this error
[ERROR] ##NOT-AUTHORIZED## repository not authorized
Repo: SymbioticSystems/bitebuddy-backend (private)
Error: [ERROR] ##NOT-AUTHORIZED## repository not authorized
Deployment ID: b0fcb4e7-4541-4b03-aadd-f319939481ef
Previous deployment succeeded 2 hours ago
Re-auth didn't fix it
1 Replies
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • about 1 month ago
a month ago
This looks like a GitHub App authorization problem and not a branch problem.
The important clue is:
[ERROR] ##NOT-AUTHORIZED## repository not authorized
Because the repo is private, Railway has to be authorized for that exact repository. Re-authenticating your Railway login can still leave the GitHub App installation without access to the private repo.
Check the GitHub installation first:
GitHub -> Settings -> Applications -> Installed GitHub Apps -> Railway -> Configure
Then verify that SymbioticSystems/bitebuddy-backend is included in the Railway installation. If the installation is set to selected repositories, add that repo and save.
If the repo belongs to an organization, also check whether the organization requires SSO approval for the Railway app. In that case, authorize Railway for the org as well.
After that, reconnect the service source in Railway:
Railway service -> Settings -> Source -> disconnect/reconnect GitHub source
Then choose the repo and branch again and trigger a new deployment.
I would not change build settings, environment variables, or branch names yet. The error is happening before Railway can read the repository properly.
If the branch list still does not load, do a clean source reconnect:
- Remove the GitHub source from the Railway service.
- In GitHub, configure or reinstall the Railway GitHub App for this exact repo.
- Return to Railway and connect the service source again.
- Select the branch again.
Also check whether the repo was renamed, transferred, archived, or moved under a different GitHub account or organization. A previous deploy succeeding two hours ago does not rule this out, because GitHub App repository access can change independently of the last successful deployment.
The quick test is to create a temporary new Railway service and try Deploy from GitHub repo with the same private repo. If that new service also cannot see the branches, the issue is GitHub/Railway App repository access. If the new service can see the branches, the existing service has a stale source binding and reconnecting the source should fix it.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 26 days ago