Disk Analyzer fails
Unsolved
Support
-
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.
-
-
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)