Checking out a remote PR causes an error: "A non-recoverable error occurred during a database lookup"
- Extension version: v0.44.0
- VSCode Version: 1.68.1 30d9c6cd9483b2cc586687151bcbcd635f373630 x64
- OS: Windows 10 Pro Version 21H1 (OS Build 19043.1766)
Steps to Reproduce:
- Go to the
All Opentab - Right click on a PR and click on
Checkout Pull Request
Additional information:
- The remote branch is called
master, which is the same as one of my local branches. - I'm using SSH to push to the repo, which may or may not be an issue.
Error (in pop-up notification):
fatal: unable to look up [email protected]:PyreticDev (port 9418) (A non-recoverable error occurred during a database lookup. ) . Please check git output for more details
Error (in git output):
[2022-06-27T21:06:22.736Z] > git config --local -l [36ms]
[2022-06-27T21:06:22.785Z] > git status -z -uall [45ms]
[2022-06-27T21:06:22.821Z] > git symbolic-ref --short HEAD [33ms]
[2022-06-27T21:06:22.821Z] fatal: ref HEAD is not a symbolic ref
[2022-06-27T21:06:22.857Z] > git rev-parse HEAD [33ms]
[2022-06-27T21:06:22.898Z] > git remote --verbose [37ms]
[2022-06-27T21:06:22.902Z] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [43ms]
[2022-06-27T21:06:22.939Z] > git config --get commit.template [33ms]
[2022-06-27T21:06:22.975Z] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/pr/PyreticDev/85 refs/remotes/pr/PyreticDev/85 [34ms]
[2022-06-27T21:06:23.015Z] > git remote add PyreticDev7 git://[email protected]:PyreticDev/splitscreenme-www [37ms]
[2022-06-27T21:06:23.065Z] > git status -z -uall [46ms]
[2022-06-27T21:06:23.100Z] > git symbolic-ref --short HEAD [33ms]
[2022-06-27T21:06:23.100Z] fatal: ref HEAD is not a symbolic ref
[2022-06-27T21:06:23.134Z] > git rev-parse HEAD [32ms]
[2022-06-27T21:06:23.171Z] > git remote --verbose [32ms]
[2022-06-27T21:06:23.175Z] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [38ms]
[2022-06-27T21:06:23.210Z] > git config --get commit.template [32ms]
[2022-06-27T21:06:23.244Z] > git config --local remote.PyreticDev7.github-pr-remote true [32ms]
[2022-06-27T21:06:23.294Z] > git status -z -uall [48ms]
[2022-06-27T21:06:23.329Z] > git symbolic-ref --short HEAD [33ms]
[2022-06-27T21:06:23.329Z] fatal: ref HEAD is not a symbolic ref
[2022-06-27T21:06:23.364Z] > git rev-parse HEAD [33ms]
[2022-06-27T21:06:23.404Z] > git remote --verbose [34ms]
[2022-06-27T21:06:23.408Z] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [41ms]
[2022-06-27T21:06:23.442Z] > git config --get commit.template [31ms]
[2022-06-27T21:06:23.494Z] > git fetch PyreticDev7 master:pr/PyreticDev/85 --depth=1 [48ms]
[2022-06-27T21:06:23.494Z] fatal: unable to look up [email protected]:PyreticDev (port 9418) (A non-recoverable error occurred during a database lookup. )
[2022-06-27T21:06:24.598Z] > git status -z -uall [52ms]
[2022-06-27T21:06:24.633Z] > git symbolic-ref --short HEAD [33ms]
[2022-06-27T21:06:24.633Z] fatal: ref HEAD is not a symbolic ref
[2022-06-27T21:06:24.667Z] > git rev-parse HEAD [32ms]
[2022-06-27T21:06:24.705Z] > git remote --verbose [33ms]
[2022-06-27T21:06:24.711Z] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [41ms]
[2022-06-27T21:06:24.744Z] > git config --get commit.template [31ms]
@Snailedlt can you share the output of git remote -v? If you run the command "Git: Fetch" from the command palette does it work?
Sorry for the late response. I have not been able to reproduce this behaviour lately. It seemingly got fixed by a newer version of VSCode, or was dependent on some other environment variable.
Anyways, it does not happen for me anymore, so feel free to close the issue if you find it appropriate. I'll make a comment here again if it starts happening again
👍 please do comment if you see again!
The same problem occurred... what should I do? $ git fetch fatal: unable to look up [email protected]:MH-Otsutsuki (port 9418) (A non-recoverable error occurred during a database lookup. )
Thanks for the git fetch output @MH-Otsutsuki. Since the error happens when you run git from the command line that indicates that it's not an issue with the extension and is instead a problem with either your local git configuration or your remote repository.