Backup quits with
-
Cloudron v 9.1.3
Any idea how to solve the problem?
5fc22e33-is a freescout app instance. Backup site is sshfs (rsync) to hetzner storage box.Mar 13 23:20:49 box:backupformat/rsync sync: done processing adds. error: null Mar 13 23:20:49 box:syncer finalize: patching in integrity information into /home/yellowtent/platformdata/backup/d25302c6-2b1d-446e-a05d-b5f7cb39eb87/5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7.sync.cache Mar 13 23:20:49 box:backupupload upload completed. error: SyntaxError: Unterminated string in JSON at position 83 (line 1 column 84) at JSON.parse (<anonymous>) at Object.finalize (file:///home/yellowtent/box/src/syncer.js:183:33) at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async sync (file:///home/yellowtent/box/src/backupformat/rsync.js:211:5) at async Object.upload (file:///home/yellowtent/box/src/backupformat/rsync.js:309:12) at async Object.upload (file:///home/yellowtent/box/src/backuptask.js:101:37) Mar 13 23:20:49 box:backuptask runBackupUpload: result - {"errorMessage":"Unterminated string in JSON at position 83 (line 1 column 84)"} Mar 13 23:20:50 box:shell backuptask: /usr/bin/sudo --non-interactive -E --close-from=4 /home/yellowtent/box/src/scripts/backupupload.js snapshot/app_5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7 d25302c6-2b1d-446e-a05d-b5f7cb39eb87 {"localRoot":"/home/yellowtent/appsdata/5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7","layout":[]} errored BoxError: /usr/bin/sudo exited with code 50 signal null Mar 13 23:20:50 at ChildProcess.<anonymous> (file:///home/yellowtent/box/src/shell.js:70:23) Mar 13 23:20:50 at ChildProcess.emit (node:events:508:28) Mar 13 23:20:50 at maybeClose (node:internal/child_process:1101:16) Mar 13 23:20:50 at ChildProcess._handle.onexit (node:internal/child_process:305:5) { Mar 13 23:20:50 reason: 'Shell Error', Mar 13 23:20:50 details: {}, Mar 13 23:20:50 stdout: '', Mar 13 23:20:50 stdoutString: '', Mar 13 23:20:50 stdoutLineCount: 0, Mar 13 23:20:50 stderr: '', Mar 13 23:20:50 stderrString: '', Mar 13 23:20:50 stderrLineCount: 0, Mar 13 23:20:50 code: 50, Mar 13 23:20:50 signal: null, Mar 13 23:20:50 timedOut: false, Mar 13 23:20:50 terminated: false Mar 13 23:20:50 } Mar 13 23:20:50 box:backuptask fullBackup: app support.indielux.com backup finished. Took 1051.191 seconds Mar 13 23:20:50 box:locks write: current locks: {"full_backup_task_d25302c6-2b1d-446e-a05d-b5f7cb39eb87":null} Mar 13 23:20:50 box:locks release: app_backup_5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7 Mar 13 23:20:50 box:tasks setCompleted - 10911: {"result":null,"error":{"message":"Unterminated string in JSON at position 83 (line 1 column 84)","reason":"External Error"},"percent":100} Mar 13 23:20:50 box:tasks updating task 10911 with: {"completed":true,"result":null,"error":{"message":"Unterminated string in JSON at position 83 (line 1 column 84)","reason":"External Error"},"percent":100} Mar 13 23:20:50 box:taskworker Task took 1246.114 seconds Mar 13 23:20:50 BoxError: Unterminated string in JSON at position 83 (line 1 column 84) Mar 13 23:20:50 at runBackupUpload (file:///home/yellowtent/box/src/backuptask.js:192:15) Mar 13 23:20:50 at process.processTicksAndRejections (node:internal/process/task_queues:103:5) Mar 13 23:20:50 at async uploadAppSnapshot (file:///home/yellowtent/box/src/backuptask.js:359:34) Mar 13 23:20:50 at async backupAppWithTag (file:///home/yellowtent/box/src/backuptask.js:382:26) Mar 13 23:20:50 Exiting with code 0 -
Relevant part:
// for await (const line of rl) { if (!line) continue; debug(`Current line: ${line}`); const cacheEntry = JSON.parse(line); // ... }I added the debug. And yes, line is just invalid json.
Log:
// ... Mar 14 21:19:59 box:syncer Current line: {"path":"data/storage/app/myfile.txt","stat":{"mtime":1723408804000,"size":26604,"mode":33188}} Mar 14 21:19:59 box:syncer Current line: {"path":"data/storage/app/myfile2 Mar 14 21:19:59 box:backupupload upload completed. error: SyntaxError: Unterminated string in JSON at position 83 (line 1 column 84) at JSON.parse (<anonymous>) at Object.finalize (file:///home/yellowtent/box/src/syncer.js:184:33) at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async sync (file:///home/yellowtent/box/src/backupformat/rsync.js:211:5) at async Object.upload (file:///home/yellowtent/box/src/backupformat/rsync.js:309:12) at async Object.upload (file:///home/yellowtent/box/src/backuptask.js:101:37)More context:
root@5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7:/# ls app/data/storage/app/attachment/6/0/1/myfile2_ foo.pdf 'app/data/storage/app/attachment/6/0/1/myfile2_'$'\342\200\251''foo.pdf' root@5fc22e33-ac60-4f99-bbe3-2ca8cf9e12c7:/# file app/data/storage/app/attachment/6/0/1/myfile2 _foo.pdf app/data/storage/app/attachment/6/0/1/myfile2\051foo.pdf: PDF document, version 1.5 (zip deflate encoded) -
G girish has marked this topic as solved
-
I'm facing a similar issue, with a new file downloaded today and renamed afterwards, the backup is for syncthing.
Mar 17 17:00:09 box:syncer Current line: {"path":"data/folders/AndroidDownloads/Librera/Dhirendra Sinha Mar 17 17:00:09 box:backupupload upload completed. error: SyntaxError: Unterminated string in JSON at position 62 (line 1 column 63) at ... Mar 17 17:00:10 box:backuptask fullBackup: app syncthing.<REDACTED_DOMAIN> backup finished. Took 251.408 secondsMore context:
root@0427ab50-22da-43dd-871e-3ab54bfed577:/app/data/folders/AndroidDownloads/Librera# stat Dhirendra\ Sinha \,\ Tejas\ Chopra\ -\ System\ Design\ Guide\ for\ Software\ Professionals_\ Build\ scalable\ solutions\ –\ from\ fundamental\ concepts\ \(2024\,\ Packt\ Publishing\ Pvt\ Ltd\)\ -\ libgen.li.epub File: Dhirendra Sinha , Tejas Chopra - System Design Guide for Software Professionals_ Build scalable solutions – from fundamental concepts (2024, Packt Publishing Pvt Ltd) - libgen.li.epub Size: 16217520 Blocks: 31688 IO Block: 4096 regular file Device: 8,32 Inode: 3043429 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/cloudron) Gid: ( 1000/cloudron) Access: 2026-03-17 12:34:16.112227988 +0000 Modify: 2026-03-17 12:28:32.210986818 +0000 Change: 2026-03-17 12:28:44.894161942 +0000 Birth: 2026-03-17 12:28:44.751161060 +0000how to address this?
-
I'm facing a similar issue, with a new file downloaded today and renamed afterwards, the backup is for syncthing.
Mar 17 17:00:09 box:syncer Current line: {"path":"data/folders/AndroidDownloads/Librera/Dhirendra Sinha Mar 17 17:00:09 box:backupupload upload completed. error: SyntaxError: Unterminated string in JSON at position 62 (line 1 column 63) at ... Mar 17 17:00:10 box:backuptask fullBackup: app syncthing.<REDACTED_DOMAIN> backup finished. Took 251.408 secondsMore context:
root@0427ab50-22da-43dd-871e-3ab54bfed577:/app/data/folders/AndroidDownloads/Librera# stat Dhirendra\ Sinha \,\ Tejas\ Chopra\ -\ System\ Design\ Guide\ for\ Software\ Professionals_\ Build\ scalable\ solutions\ –\ from\ fundamental\ concepts\ \(2024\,\ Packt\ Publishing\ Pvt\ Ltd\)\ -\ libgen.li.epub File: Dhirendra Sinha , Tejas Chopra - System Design Guide for Software Professionals_ Build scalable solutions – from fundamental concepts (2024, Packt Publishing Pvt Ltd) - libgen.li.epub Size: 16217520 Blocks: 31688 IO Block: 4096 regular file Device: 8,32 Inode: 3043429 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/cloudron) Gid: ( 1000/cloudron) Access: 2026-03-17 12:34:16.112227988 +0000 Modify: 2026-03-17 12:28:32.210986818 +0000 Change: 2026-03-17 12:28:44.894161942 +0000 Birth: 2026-03-17 12:28:44.751161060 +0000how to address this?
The fix is not released.
You could back up the app with another backup destination which does not uses rsync or patch the file manually with https://git.cloudron.io/platform/box/-/commit/6e0dc24ecae47ba3175ce1574a86c6724fbc98aa.diff
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
