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
Internal exception: jgit - length of null array #153
Comments
There is some more information in #34 (below the closed fold) but I think it would make more sense to use this ticket instead as the other one's topic was not about this initially |
This happens now for me in Password Store version 1.2.0.48. |
I have the same problem with Password Store version 1.2.0.51 from F-Droid. I tried the workaround found in issue 94, but couldn't apply it. My configuration is: Protocol: ssh:// And I'm using a ssh-key. The fun fact is that it has worked at least once yesterday. edit : 2016-07-31 : Today the git pull worked again, at least once. I don't know what changed. |
Ok, I think my problem is related to the passphrase of my ssh-key which is too complicated. I get the "Attempt to get length of null array" error when I mistype the passphrase. Sorry... |
Interesting! I will check if there is a way to get the correct error code Thank's Le lun. 1 août 2016 08:01, iGor milhit notifications@github.com a écrit :
|
Now that I can attempt the Clone again, this bug occurs in Password Store 1.2.0.52. I am confident the passphrase is correct for the key. |
@bignose-debian what kind of key is it? The app doesn't support newer kinds of encryption yet. Can you try testing a new key, maybe one generated from the app, and temporarily adding it to your server. |
@wongma7, as stated earlier, this is exactly the same file that has worked fine in earlier versions of Password Store. The file is unchanged from many months ago when I put it on the device. As for “what kind of key”, I don't know what answer is needed. How can I get the information from the device? Can the Password Store program not provide better diagnostic on what it doesn't like about the key data? |
I mean the type of encryption if you know (RSA, DSA?) but I'm just taking a guess, that probably has nothing to do with it as it should give a different error. We only have the errors the libraries give us to work with, and as you can see they can be quite useless. :/ @bignose-debian to confirm, the latest version that worked is 1.2.0.47? The cloning functionality hasn't been touched in a long time so I will have to do some digging... |
(Using the same SSH secret key from another copy, imports fine now in Password Store 1.2.0.52. I'm willing to blame user error on this specific failure.) |
Is any more diagnostic information needed for this? Perhaps a new release could be made that catches these errors and emits some more contextual message, so we can have a better idea when reporting this bug. |
I was having the same (or similar?) issue. Capturing the log with
I thought this meant that there was an issue with handling SSH keys in JGit that didn't have passwords, but this ended up being incorrect. Running Another situation that can generate the exact same error message is to specify the port as 22 (ie don't leave it blank, but add the port explicitly as 22). The trace generated from that is
The fix is to edit your settings to leave the port field in the configuration blank. Summary
|
This is difficult for the developers and impossible for the users to even diagnose, because the message should not be this uninformative. Issue #219 requests better treatment of exceptions like this one. |
I've just found out that JGit expects a ".git" at the end of your git url. Miine was ssh://jelly@awesome.server:/var/lib/git/passwords Might be nice to mention in the FAQ. Or I can make a bug report upstream (JGit) |
Well, not really. It depends on your server configuration. |
I'm trying to clone from a bare repo now and get the error message "Attempt to get length of null array" |
Hm. I am cloning from a bare repo too. With only user@server.tl:pass-store where pass-store is the bare repo in the users home dir. Works for me.. |
Edit: I've successfully cloned the repo with git from another computer using the same user account. |
I am still having this problem with port 2202. None of solutions found on this tracker actually worked. |
This will be our next priority. |
Is there a way to access the internal repository and do the merge manually? I have root access via adb. |
You can, it's on the |
I feel like this issue is the same root issue as #94 which is also triggered by bad auth (as well as custom port, which is solved by prepending ssh://) |
Actually #219 will probably be a better ticket to merge with, as that is todo with the error messages themselves |
Apparently yet another way to cause the same error is to not have the relevant public key in ~/.ssh/authorized_keys on the server ... |
The most common scenario for this to occur should be fixed in master. Being unauthorised to access the repository is a different problem altogether. |
Whenever I try to pull my git repo, I get an error titled "Internal exception occurred."
The body says:
The text was updated successfully, but these errors were encountered: