vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Checking out a remote PR causes an error: "A non-recoverable error occurred during a database lookup"

Open Snailedlt opened this issue 3 years ago • 1 comments

  • 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:

  1. Go to the All Open tab
  2. Right click on a PR and click on Checkout Pull Request

Additional information:

  1. The remote branch is called master, which is the same as one of my local branches.
  2. 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 avatar Jun 27 '22 21:06 Snailedlt

@Snailedlt can you share the output of git remote -v? If you run the command "Git: Fetch" from the command palette does it work?

alexr00 avatar Jul 12 '22 12:07 alexr00

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

Snailedlt avatar Oct 03 '22 07:10 Snailedlt

👍 please do comment if you see again!

alexr00 avatar Oct 03 '22 13:10 alexr00

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. )

MH-11103 avatar Oct 06 '22 09:10 MH-11103

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.

alexr00 avatar Oct 10 '22 18:10 alexr00