Skip to content
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

Error: requested zero bytes from [...] (skip=65536) #45

Open
brianrmurphy opened this issue Dec 21, 2022 · 6 comments
Open

Error: requested zero bytes from [...] (skip=65536) #45

brianrmurphy opened this issue Dec 21, 2022 · 6 comments

Comments

@brianrmurphy
Copy link

I'm running on a pretty big set of files (4M+ files, about 2TB), and I get this error partway through.

Progress line looks like:
Sets : 117207/ 161500 65138564K ( 64302K/s) 0q 1%b 3075f 1013 s
error: requested zero bytes from [omitted_filename] (skip=65536)

The mentioned file exists, has data, and is readable. I am already trying to reproduce in gdb for more info, but suggestions/ideas could be useful.

@jvirkki
Copy link
Owner

jvirkki commented Dec 21, 2022

Which version of dupd are you running? Looking at the source, that particular message is probably from 1.6 or earlier.

I suggest first try with the latest released version (1.7.1).

In general though, such an error might be caused by the file contents/size changing while the scan is running.

@brianrmurphy
Copy link
Author

brianrmurphy commented Dec 22, 2022 via email

@jvirkki
Copy link
Owner

jvirkki commented Dec 22, 2022

Thanks, I see.

The development version (master branch) might be in an unstable state as it is work in progress, although I'm not aware of specific bugs in it so this is helpful. You could still try the released version (1.7.1) to see if it hits the same issue or not.

Seems like the file size and block layout on disk is just so that it triggers a bug in the next block size computation.

A few debugging commands may give more useful info:

Disk layout for the file as dupd sees it:

dupd info --x-extents /mnt/4t/w530-brm/Desktop/admin/oldcopy/usr/lib/locale/locale-archive

There's also an option to print more debug output only for a given size to avoid overwhelming amount of output:

dupd scan --debug-size 4763056

(Those seem to be the size and path of the file causing the crash from the stack trace, but change accordingly if not.)

@brianrmurphy
Copy link
Author

brianrmurphy commented Dec 22, 2022 via email

@brianrmurphy
Copy link
Author

brianrmurphy commented Dec 24, 2022 via email

@jvirkki
Copy link
Owner

jvirkki commented Jan 15, 2023

Please include output of

dupd info --x-extents /mnt/4t/w530-brm/Desktop/admin/oldcopy/usr/lib/locale/locale-archive

it should be same as in the size debug output, but good to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants