You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hosting a 592 MB chunk store on a remote machine using Python 3.7.1's http.server. A casync extract on a Raspberry Pi 3 fails with a broken pipe error.
$ uname -a
Linux alarmpi 4.14.78-2-ARCH #1 SMP Sun Oct 28 17:05:07 UTC 2018 armv7l GNU/Linux
$ sudo strace -ff -o /tmp/trace casync extract -v --store=http://pedro:8000/default.castr /tmp/usr.caidx /mnt/home/john/usr
[...]
Acquiring http://pedro:8000/default.castr/05f6/05f6b0f31d8f3d0f209dfadceff29655e7ccde2edeadaa3201df660ed1262180.cacnk...
Acquiring http://pedro:8000/default.castr/c83a/c83af52286b19cb26e89af2fbfa677dc360214ab0e9d2feea13f11b4a7d13461.cacnk...
Extracted bin/mke2fs
Extracting bin/mkfifo
Extracted bin/mkfifo
Extracting bin/mkfs
Extracted bin/mkfs
Extracting bin/mkfs.bfs
Extracted bin/mkfs.bfs
Extracting bin/mkfs.cramfs
Acquiring http://pedro:8000/default.castr/c571/c571bf8f795d5e769e34866e73ce399d7c026e7cc605c7534233ae60ee2d6e79.cacnk...
Extracted bin/mkfs.cramfs
Extracting bin/mkfs.ext2
Extracted bin/mkfs.ext2
Extracting bin/mkfs.ext3
Failed to acquire http://pedro:8000/default.castr/c571/c571bf8f795d5e769e34866e73ce399d7c026e7cc605c7534233ae60ee2d6e79.cacnk
Failed to run synchronizer: Broken pipe
Some experiments extracting the same chunk store on an x86_64 machine with plenty of memory show that the extraction requires more memory than the Raspberry Pi 3 has. Extracting on the Pi might be running into some other problem, however, given that the error message is different.
$ sudo systemd-run -t -p MemoryLimit=500M casync --store=http://pedro:8000/default.castr extract http://pedro:8000/usr.caidx /tmp/usr_test
Running as unit: run-u371.service
Press ^] three times within 1s to disconnect TTY.
Failed to run synchronizer: Cannot allocate memory
$ sudo rm -rf usr_test/
$ sudo systemd-run -t -p MemoryLimit=1500M casync --store=http://pedro:8000/default.castr extract http://pedro:8000/usr.caidx /tmp/usr_test
Running as unit: run-u380.service
Press ^] three times within 1s to disconnect TTY.
Failed to run synchronizer: Cannot allocate memory
$ sudo rm -rf usr_test/
$ sudo systemd-run -t -p MemoryLimit=3000M casync --store=http://pedro:8000/default.castr extract http://pedro:8000/usr.caidx /tmp/usr_test
Running as unit: run-u392.service
Press ^] three times within 1s to disconnect TTY.
I'm hosting a 592 MB chunk store on a remote machine using Python 3.7.1's http.server. A casync extract on a Raspberry Pi 3 fails with a broken pipe error.
Some of the strace output:
After that fails, trying to run the same command again gets a bit farther, but then fails with a different error message.
Some of that strace output:
Is there a limit I'm running up against here? If so, is there a workaround?
The text was updated successfully, but these errors were encountered: