Skip to content

Prebuild failed "fatal: 'origin/main' is not a commit and a branch 'main' cannot be created from it #12118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
david-bakin opened this issue Aug 13, 2022 · 5 comments
Labels
team: workspace Issue belongs to the Workspace team type: bug Something isn't working

Comments

@david-bakin
Copy link

david-bakin commented Aug 13, 2022

Bug description

Prebuild failed as follows:
image

SYSTEM ERROR
Prebuild failed for system reasons. Please contact support. cannot initialize workspace: cannot initialize workspace: git initializer clone: git checkout -B main origin/main failed (exit status 128): fatal: 'origin/main` is not a commit and a branch 'main' cannot be created from it

Main repo: https://gitlab.com/bakins-bits/gitpod-setup-for-bitcoin-core-dev/ (default branch is main, commit c800c2e3)

Additional repos:

Prebuild url: https://gitpod.io/projects/gitpod-setup-for-bitcoin-core-dev/7cfe11d0-5d28-47fd-963d-7d47c18859ec

Incremental prebuilds not enabled.

Note that this used to work. Nothing has changed recently in any of these repos (especially no change of default branch). Also only minor (unrelated) changes to .gitpod.yml and the custom docker image. (Though you can check that.)

Steps to reproduce

Just try to open / prebuild this workspace. Same thing also happens when opening new workspace off this repo w/o prebuild.

Workspace affected

https://bakinsbits-gitpodsetupf-gpparx4s13d.ws-us60.gitpod.io/

Expected behavior

Prebuild should work! Main repository and additional repositories should be fetched from their appropriate default branch (main for the main repo, master for the additional repos.)

Example repository

https://gitlab.com/bakins-bits/gitpod-setup-for-bitcoin-core-dev/-/tree/main

Anything else?

Commit hashes given above so I can advance gitpod.yml to try to get unwedged.

Front logo Front conversations

@david-bakin david-bakin added the type: bug Something isn't working label Aug 13, 2022
@david-bakin
Copy link
Author

Also the error messages shown are inadequate for a multi-repo workspace: which repository is causing the trouble, eh?

@david-bakin
Copy link
Author

david-bakin commented Aug 14, 2022

Dup of #11854 ?

@axonasif
Copy link
Member

Possibly.

@geropl
Copy link
Member

geropl commented Aug 15, 2022

Dup of #11854 ?

@david-bakin Yes, that seems to be the case. Moving over to workspace, but assume we can close it once rolled out.

@jenting
Copy link
Contributor

jenting commented Sep 6, 2022

This is duplicated of #11854, and it's deployed already.
Closing this issue now. Feel free to reopen it once you still encounter it.
Thank you.

@jenting jenting closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2022
@jenting jenting moved this to Awaiting Deployment in 🌌 Workspace Team Sep 6, 2022
@jenting jenting moved this from Awaiting Deployment to Done in 🌌 Workspace Team Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: workspace Issue belongs to the Workspace team type: bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants