Error loading your book
Hello guys
I'm getting the following error when I open a book
An unexpected error occurred when trying to load your book: References 'refs/remotes/origin/master' not found
OS: Ubuntu 15.10 64-bit Gitbook Editor: 5.0.5
Hi,
This usually comes up for me when I have the repo opened in another editor (like Atom).
Cheers, Imre
@nagim thanks
Actually, I didn't, until this error appeared, then I open it with Kwrite/Kate
Any fix for that, plz?
Same error for me. It was working one day then the next day, without having changed anything, I opened Gitbook Editor and got this error. While looking around on web I found that the Gitbook errors.html file doesn't exist. That yields a 404 error. In general, I find that user documentation is really lacking and seems that nobody is responding to these comments either.
@KINGSABRI @Abel-Torres Sorry for the late response. A few questions to help me debug the issue:
- Does the Git repository associated to your book still has the remote
origin? You can paste me the output ofgit remote show originin the book's folder. - What is the output of
git branch?
@Abel-Torres Since a few weeks, we are working on improving our documentation, both for GitBook.com and the GitBook toolchain.
The documentation for the GitBook Toolchain lives at toolchain.gitbook.com, and its source at GitbookIO/gitbook/tree/master/docs The new documentation for GitBook.com lives at help.gitbook.com, and its source at GitbookIO/help.gitbook.com.
Feel free to collaborate on both (issues or PRs are welcome).
There are still a few dead links that we are working on fixing.
@SamyPesse
Error loading your book:
An unexpected error occurred when trying to load your book: Branch "undefined" doesn't exist
I changed the name of the book in the settings & linked it to GitHub; now it won't load.
Running into this issue as well.
It's very discouraging after having invested several hours in creating the content.
Resolved by unlinking from the Github repository I was trying to sync to.
Here was the error message, if helpful:

Same here, you have to unlink from Github repo, this is really strange behavior.
This occurred for me when I tried to link to a Github repo that I had not yet added any content to.
To repro:
- Create github repo. Add no content.
- Create gitbook book
- Link gitbook with Github repo
- Attempt to edit through Gitbook interface
Committing to the Github repo and then repeating 4 removed the error.
Note: I expected Gitbook to commit the boiler plate pages to Github. Instead, Gitbook was wiped and contents pulled from Github.
the same to me
I have the same issue... Any update?