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)
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