Bug#982850: duperemove: first run fails errror 13?

2021-02-16 Thread Dennis Filder
Control: tag -1 moreinfo

This doesn't look like a bug to me.  Notice that the database is 5 GB
in size, and the indexes aren't even created yet.  You just need more
diskspace.  Try running duperemove on a subset of your files to see
how much space the DB needs for that and extrapolate from there.

You could also politely ask the developer on github whether he'd
consider adding a feature that more accurately computes the projected
diskspace; I cobbled together this awk program using the formula
mentioned in the manpage which should already be close after some
tweaking:

find /home -type f -printf '%s %p\n' \
| awk -M -e '{h+=$1;c+=length($0)-length($1)-1;};' \
 -e 'END{printf "%i bytes\n", 90*(int(h/(128*1024))+1)+c}'

If you want to investigate this further, try to run the command again
like this (install package strace if you haven't already) and post the
last 30 or so lines:

strace -f duperemove -r -A -h --skip-zeroes \
--hashfile=/var/cache/duperemove-home-user /home/user/

Otherwise you should watch how the disk space situation develops while
duperemove is running:

while sleep 10; do df -h /var ; done | tee /tmp/df.log

Regards,
Dennis.



Bug#982850: duperemove: first run fails errror 13?

2021-02-15 Thread Don Alex
Package: duperemove
Version: 0.11.2-3
Severity: grave
Tags: upstream
Justification: renders package unusable
X-Debbugs-Cc: de...@roosoft.ltd.uk

Dear Maintainer,

So running duperemove for the first run.

duperemove -r -A -h --skip-zeroes --hashfile=/var/cache/duperemove-home-user
/home/user/

At the end this happened.

Total files: 2261918 Total extent hashes: 4666300 create_indexes()/45330:
Database error 13 while creating database index: database or disk is full

the folder is not full

 df -h /var

Filesystem Size  Used Avail Use% Mounted on
/dev/mapper/pulseforn--vg-var  9.4G  7.4G  1.8G  81% /var

ls -lah /var/cache/duperemove-home-user*

-rw-r--r-- 1 root root 5.0G Feb 13 17:04 /var/cache/duperemove-home-user
-rw-r--r-- 1 root root 4.6K Feb 13 17:03 /var/cache/duperemove-home-user-
journal

EDIT: For reference.

Platform: Debian 10/Testing
Kernel: 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
duperemove v0.11.2
btrfs-progs v5.10.1



-- System Information:
Debian Release: bullseye/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-3-amd64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages duperemove depends on:
ii  libc6 2.31-9
ii  libglib2.0-0  2.66.6-2
ii  libsqlite3-0  3.34.1-1

duperemove recommends no packages.

duperemove suggests no packages.

-- debconf-show failed