urBackup server hang on file backup (Flushing file client)

Hello,

I’m trying urbackup on raspberry Pi.

➜  ~ uname -a
Linux apps 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

Client and server are on the same machine for testing purpose.

➜  ~ urbackupclientctl --version
UrBackup Client Controller v2.5.25.0
Copyright (C) 2011-2019 Martin Raiber
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
➜  ~ urbackupsrv --version
UrBackup Server v2.5.33.0
Copyright (C) 2011-2019 Martin Raiber
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I can run small backups without problem.

I try to backup a directory (joplin for information 8Gb) to a sshfs share on a Synology Nas.

➜  cat /etc/fstab
BackupUser@192.168.1.10:Backups/urBackupsSshFs /mnt/NasSshfs fuse.sshfs uid=113,gid=123,_netdev,allow_other,identityfile=/home/admin/.ssh/id_rsa 0 0

After some time de server hangs, web server did not respond until i restart the server service.
Here is the end of the server log it hang forever on Flushing FileClient…

024-12-15 21:15:20: Loading file "errors.js"
2024-12-15 21:15:20: PT: Hashing file "copy-file.js"
2024-12-15 21:15:20: HT: Copying file: "/mnt/NasSshfs/apps/241215-2100/joplin_1/Assets/WebsiteAssets/images/flags/country-4x3/gr.png" (id=5077)
2024-12-15 21:15:20: HT: Renaming file to "/mnt/NasSshfs/apps/241215-2100/joplin_1/Assets/WebsiteAssets/images/flags/country-4x3/gr.png" with hash output
2024-12-15 21:15:20: GT: Loaded file "errors.js"
2024-12-15 21:15:20: Loading file "fs.js"
2024-12-15 21:15:20: PT: Hashing file "errors.js"
2024-12-15 21:15:20: GT: Loaded file "fs.js"
2024-12-15 21:15:20: Loading file "index.js"
2024-12-15 21:15:20: PT: Hashing file "fs.js"
2024-12-15 21:15:20: Flushing FileClient...

Here is the client log :

024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.json"
2024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-visitor-keys/LICENSE"
2024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-visitor-keys/README.md"
2024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-visitor-keys/package.json"
2024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs"
2024-12-15 20:05:44: Hashing file "/home/joplin/joplin/packages/turndown/node_modules/eslint-visitor-keys/lib/visitor-keys.js"

I don’t see other errors in kernel logs, or system logs.

I can do more tests if needed.

Have a nice day,
Ouille

Some extra informations.

Running server from command line, got a bus error.

sudo urbackupsrv run --config /etc/default/urbackupsrv -v debug

2024-12-15 22:07:27: Loading file "OrdinaryCreateFromConstructor.js"
2024-12-15 22:07:27: PT: Hashing file "ObjectDefineProperties.js"
2024-12-15 22:07:27: GT: Loaded file "OrdinaryCreateFromConstructor.js"
2024-12-15 22:07:27: Loading file "OrdinaryDefineOwnProperty.js"
2024-12-15 22:07:27: PT: Hashing file "OrdinaryCreateFromConstructor.js"
2024-12-15 22:07:27: Flushing FileClient...
[1]    10182 bus error  sudo urbackupsrv run --config /etc/default/urbackupsrv -v debug

Running inside gdb (without debug build). Got this error :

2024-12-15 22:24:14: HT: Copying file: "/mnt/NasSshfs/apps/241215-2211/joplin_1/Assets/WebsiteAssets/images/flags/maritime/n.png" (id=5562)
2024-12-15 22:24:14: HT: Renaming file to "/mnt/NasSshfs/apps/241215-2211/joplin_1/Assets/WebsiteAssets/images/flags/maritime/n.png" with hash output
2024-12-15 22:24:14: GT: Linked file "isBinding.js.map"
2024-12-15 22:24:14: Loading file "isBinding.js.map" (metadata only)
2024-12-15 22:24:14: Flushing FileClient...

Thread 46 "fbackup load0" received signal SIGBUS, Bus error.
[Switching to Thread 0xf22f81c0 (LWP 10572)]
0x0060fa7c in ?? ()
(gdb)

I would suggest using the docker version of urbackup and joplin.
Also, check the ACL and perms of the joplin data you are attempting to backup.
BTW - I eventually went for Joplin server provided by joplin (at a fee) and someone wrote a really nice script to backup all my joplin data that is locally cached on my machines. Just a thought.