Thanks for rclone, it is an incredibly useful tool! I am having issues uploading files to backblaze from a local vfs mount. Rclone is started with the following parameters:
ExecStart=/nix/store/x94wy48bmz6w5mbnwdi2nd62nqhhjccy-rclone-1.64.0/bin/rclone mount 'b2:nixos-server-torrents/' /var/www/files.haering.dev/backbl> --config=/run/agenix/backblaze \ --allow-other \ --allow-non-empty \ --log-level=INFO \ --buffer-size=50M \ --drive-acknowledge-abuse=true \ --no-modtime \ --vfs-cache-mode full \ --vfs-cache-max-size 20G \ --vfs-read-chunk-size=32M \ --vfs-read-chunk-size-limit=256M
/run/agenix/backblaze is my backblaze config like so:
[b2] type = b2 account = redacted key = redacted hard_delete = true versions = false
When I copy something to the mounted dir (
/var/www/files.haering.dev), I see this every minute:
Sep 24 10:24:44 server rclone: INFO : vfs cache: cleaned: objects 2 (was 2) in use 2, to upload 0, uploading 2, total size 2.635Gi (was 2.635Gi) Sep 24 10:25:44 server rclone: INFO : vfs cache: cleaned: objects 2 (was 2) in use 2, to upload 0, uploading 2, total size 2.635Gi (was 2.635Gi) Sep 24 10:26:44 server rclone: INFO : vfs cache: cleaned: objects 2 (was 2) in use 2, to upload 0, uploading 2, total size 2.635Gi (was 2.635Gi)
And I can also see the upload starting in the backblaze webinterface. But it does not actually upload anything (there is no upload traffic). Also, when I try to access the directory on the command line, it simply hangs the terminal and I have to umount the directory. Any ideas how to debug?
/nix/store/x94wy48bmz6w5mbnwdi2nd62nqhhjccy-rclone-1.64.0/bin/rclone version rclone 1.64.0 - os/version: nixos 23.11 (Tapir) (64 bit) - os/kernel: 6.1.52 (x86_64) - os/type: linux - os/arch: amd64 - go/version: go1.20.8 - go/linking: dynamic - go/tags: cmount
rclone mount 'b2:nixos-server-torrents/' /var/www/files.haering.dev/backblaze
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
/nix/store/x94wy48bmz6w5mbnwdi2nd62nqhhjccy-rclone-1.64.0/bin/rclone config redacted 2023/09/24 10:40:33 NOTICE: Config file "/home/tim/.config/rclone/rclone.conf" not found - using defaults ; empty config ### Double check the config for sensitive info before posting publicly
I ran with
--log-level=DEBUG which I assume is identical to
-vv. I had to set the cache dir explicitly so it uses the same one as in the systemd unit. Logs are here: https://paste.rs/T0QM5 any help is greatly appreciated!