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
create key in backend at "any local dir" failed: Calibrate: scrypt.Calibrate: scrypt: the parameters provided are invalid #676
Comments
Hey, thanks for reporting this. I find it really unexpected. What happens here is that restic calibrates What hardware do you run restic on? Is that especially low- or high-end (in terms of CPU)? |
Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz So yes maybe this is a low end machine. |
Hm, that's not what I would call "low-end" ;) I'll write something up so we can debug this further. |
I tested it on a 64bit system and it seems to work fine the 32bit system always fails. Maybe there is some 64 bit specific code that fails on 32bit. |
Ah, that's an interesting information! I can reproduce it (on my amd64 machine) when building and running a 32 bit restic binary:
|
I've found the cause and implemented a solution, it was caused by an integer overflow in the |
Nice you got a specific branch I can test? |
I'll create one once the PR is merged :) |
See branch |
Yup that fixes the problem. |
Great, thanks for having a look! |
Hi All, Thanks for fixing this for oldies 32bits systems ;) However, vendor version on master is not up-to-date with master (including the fix) of source repository. I tested the fix with sucess though. Could you please update vendor on restic master repo ? Thanks for your great work ;) ! |
That is probably because we've recently switched to a different repo layout and are now using |
The master branch includes a fix for i386, otherwise the calibration panics. See #676 for details.
Done, the code in master uses simple-scrypt master. |
Output of
restic version
restic 0.3.0 (v0.3.0-29-g190673b)
compiled at 2016-11-15 21:58:36 with go1.7.3 on linux/386
Expected behavior
create a new repo
Actual behavior
create key in backend at "any local dir" failed: Calibrate: scrypt.Calibrate: scrypt: the parameters provided are invalid
Steps to reproduce the behavior
replace "any local dir" with anything on the local filesystem
I tried several different dirs also with the root user. The result is always the same.
The text was updated successfully, but these errors were encountered: