3 months ago
When I commit changes to Github and a deployment is triggered, I consistently experience the following error:
Initialization › Snapshot code (00:03)
Failed to clone: couldn't find remote ref "refs/heads/main"
I can only resolve if I disconnect my Github connection and reconnect, my other alternative is to trigger a deployment from the CLI. Any idea as to why this is happening?
3 Replies
3 months ago
It seems your Github branch is "main" but for some reasons I can see that it is "master" connected to the service.
Please can you ensure it is the same branch that you push a change to that is connected to your service?
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
It is the same branch. I verified the git configuration but it is also triggering a deployment for approval. I am seeing an error indicating that the user that checked the changes in is not part of the team and so I need to approve the deployment. However, the username from Git is the same that is linked to the repository. Not sure what's happening here, but again, as I mentioned, disconnecting the Github connection, deploying, then reconnecting the Github integration and then deploying again seems to resolve the issue; however, its a pain to disconnect and reconnect the integration every time.
I'm not sure if this is related but I also had a connection to Vercel that appears to be stuck, it isn't disconnecting. Every time I go to my account settings there's a spinning circle, but I've disconnected Vercel from Railway so this should be gone.
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
How many users apart from you are checking in changes to the repo? And do these users have a railway account connected to their GitHub?
Status changed to Awaiting User Response railway[bot] • 3 months ago