Disk Analyzer fails
-
When running via System Info > Disk usage > Analyze Disk:
Mar 29 00:22:57 box:tasks startTask - starting task 8216 with options {}. logs at /home/yellowtent/platformdata/logs/tasks/8216.log Mar 29 00:22:57 box:shell tasks /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 8216 /home/yellowtent/platformdata/logs/tasks/8216.log 0 400 0 Mar 29 00:22:57 box:shell Running as unit: box-task-8216.service Mar 29 00:22:57 Mar 29 00:22:58 box:shell Finished with result: exit-code Mar 29 00:22:58 Main processes terminated with: code=exited/status=50 Mar 29 00:22:58 Service runtime: 737ms Mar 29 00:22:58 CPU time consumed: 1.170s Mar 29 00:22:58 Memory peak: 6.3M Mar 29 00:22:58 Memory swap peak: 0B Mar 29 00:22:58 Mar 29 00:22:58 box:shell Service box-task-8216 failed to run Mar 29 00:22:58 Mar 29 00:22:58 box:shell Service box-task-8216 finished with exit code 1 Mar 29 00:22:58 Mar 29 00:22:58 box:shell tasks: /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 8216 /home/yellowtent/platformdata/logs/tasks/8216.log 0 400 0 errored BoxError: tasks exited with code 1 signal null Mar 29 00:22:58 at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:137:19) Mar 29 00:22:58 at ChildProcess.emit (node:events:519:28) Mar 29 00:22:58 at ChildProcess.emit (node:domain:488:12) Mar 29 00:22:58 at ChildProcess._handle.onexit (node:internal/child_process:294:12) { Mar 29 00:22:58 reason: 'Shell Error', Mar 29 00:22:58 details: {}, Mar 29 00:22:58 code: 1, Mar 29 00:22:58 signal: null Mar 29 00:22:58 } Mar 29 00:22:58 box:tasks startTask: 8216 completed with code 1 Mar 29 00:22:58 box:tasks startTask: 8216 done. error: { stack: "TypeError: Cannot read properties of undefined (reading 'contents')\n" + ' at getFilesystems (/home/yellowtent/box/src/system.js:126:42)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' + ' at async updateDiskUsage (/home/yellowtent/box/src/system.js:231:25)', message: "Cannot read properties of undefined (reading 'contents')" }The UI shows nothing, just the button again.
-
J joseph marked this topic as a question on
-
Which version of Cloudron are you on?
You will get a full trace at /home/yellowtent/platformdata/logs/tasks/8216.log
@joseph v8.3.1 (Ubuntu 24.04.2 LTS)
/home/yellowtent/platformdata/logs/tasks/8216.log:2025-03-28T23:22:58.129Z box:taskworker Starting task 8216. Logs are at /home/yellowtent/platformdata/logs/tasks/8216.log 2025-03-28T23:22:58.156Z box:taskworker Running task of type updateDiskUsage 2025-03-28T23:22:58.158Z box:shell df: df -B1 --output=source,fstype,size,used,avail,pcent,target 2025-03-28T23:22:58.176Z box:shell df: df -B1 --output=source,fstype,size,used,avail,pcent,target /home/yellowtent/platformdata 2025-03-28T23:22:58.184Z box:taskworker Task took 0.111 seconds 2025-03-28T23:22:58.184Z box:tasks setCompleted - 8216: {"result":null,"error":{"stack":"TypeError: Cannot read properties of undefined (reading 'contents')\n at getFilesystems (/home/yellowtent/box/src/system.js:126:42)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async updateDiskUsage (/home/yellowtent/box/src/system.js:231:25)","message":"Cannot read properties of undefined (reading 'contents')"}} 2025-03-28T23:22:58.184Z box:tasks update 8216: {"percent":100,"result":null,"error":{"stack":"TypeError: Cannot read properties of undefined (reading 'contents')\n at getFilesystems (/home/yellowtent/box/src/system.js:126:42)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async updateDiskUsage (/home/yellowtent/box/src/system.js:231:25)","message":"Cannot read properties of undefined (reading 'contents')"}} TypeError: Cannot read properties of undefined (reading 'contents') at getFilesystems (/home/yellowtent/box/src/system.js:126:42) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async updateDiskUsage (/home/yellowtent/box/src/system.js:231:25) -
@lukasgabriel seems like there is a bug in the code somewhere, but we can't reproduce it here . Maybe something to do with the fliesystem type. Is there anything special in your disks or just normal ext4 disks?
Is there a chance you have an unmounted disk?
-
I haven't symlinked any of these directories.
However, I'm running Cloudron on a luks-encrypted partition.
Maybe that has to do with the problem? -
I can't quite make out why it's crashing . @lukasgabriel if possible, can you write to support@cloudron.io and I can debug this further ?
-
J joseph has marked this topic as solved on
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