Closed magnuhho closed 5 years ago
Thanks for catching this.
What kind of size is the file you are uploading?
Does it happen immediately or as the upload is finishing?
It seems to be a timing issue of some kind. Somehow the timespent between two loops of ui-updates is 0ns. Not sure how that is possible, but i'm fairly sure i can prevent the panic.
I have not watched it closely - I' uploading alot of files and it happens every now and then. The fact that the re-upload finishes in a flash suggests that it happens as the upload is finishing up.
The size of the file it last happened to was 1183312 bytes.
Next time it happens, I will delete the file from the web gui and re-upload to see if its reproducible for the same file.
Another hunch: can it be related to jotta-cli's gui (percent uploaded/left calculation, for instance)?
1: the file was not uploaded successfully, but was shown in the web gui 2: downloading the file from the web gui gave a zip file which contained an empty folder with the same name as the file 3: re-uploading with jotta-cli archive worked as expected
Crashed again. Source size: 1444928 bytes
It should be fixed in 0.5.14545
Make sure you are running the latest version of jotta-cli before reporting an issue.
jotta-cli release (
jotta-cli version
): 0.5.14050 jottad running as a service on Win10x64 1809, fully patchedDescription of problem: When uploading files with jotta-cli archive, jotta-cli often terminates with "panic: runtime error: integer divide by zero" and gives the exit code 2
Expected: I expect jotta-cli to upload the file and exit with OK / exit code 0
jotta-cli status (
jotta-cli status
):Relevant logs for the issue (
cat ~/.jottad/jottabackup.log
)Traceback
Additional info:
When retrying the upload, it seems as if the file was uploaded successfully at the first attempt (re-upload finishes in the blink of an eye). I'll see if I can confirm that