Cloudron 7.3.2: "Analyze Disk" doesn't do anything
-
Under 7.3.2 the button "Analyze Disk" under "System Info" doesn't do anything for me. I have an internal and external disk (the latter properly mounted for backups).
I see the following in the log:
Oct 18 10:09:48 box:tasks startTask: 11025 done. error: { stack: "TypeError: Cannot read properties of undefined (reading 'contents')\n" + ' at getDisks (/home/yellowtent/box/src/system.js:69:36)\n' + ' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' + ' at async updateDiskUsage (/home/yellowtent/box/src/system.js:155:19)', message: "Cannot read properties of undefined (reading 'contents')"
-
@nebulon said in Cloudron 7.3.2: "Analyze Disk" doesn't do anything:
so some datastructures are not as expected. Can you send a mail to support@cloudron.io and enable remote SSH support for us, to take a direct look. Then this should be quickly fixable.
Done.
-
So the root issue was the locale system setting being set to DE rather than C. This in turn confuses a df node module we are using https://github.com/sindresorhus/df
To reduce dependencies on such modules, we will replace it with our own code for the next patch release. Until that one can put the system locale back to C with
localectl set-locale C
thensystemctl restart box
-
We replaced the df module now and it's locale independent now.
-
-
@nebulon said in Cloudron 7.3.2: "Analyze Disk" doesn't do anything:
To reduce dependencies on such modules, we will replace it with our own code for the next patch release. Until that one can put the system locale back to C with
localectl set-locale C
thensystemctl restart box
That did the trick!
-
@msbt @girish same here on 7.3.4
Dec 06 21:53:20 box:apphealthmonitor app health: 27 running / 2 stopped / 0 unresponsive Dec 06 21:53:23 box:tasks startTask - starting task 12679 with options {}. logs at /home/yellowtent/platformdata/logs/tasks/12679.log Dec 06 21:53:23 box:shell startTask spawn: /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 12679 /home/yellowtent/platformdata/logs/tasks/12679.log 0 400 Dec 06 21:53:23 box:shell startTask (stdout): Running as unit: box-task-12679.service Dec 06 21:53:24 box:shell startTask (stdout): Finished with result: exit-code processes terminated with: code=exited/status=50 runtime: 750ms Dec 06 21:53:24 box:shell startTask (stdout): Service box-task-12679 failed to run Dec 06 21:53:24 box:shell startTask (stdout): Service box-task-12679 finished with exit code 1 Dec 06 21:53:24 box:shell startTask code: 1, signal: null Dec 06 21:53:24 box:tasks startTask: 12679 completed with code 1 Dec 06 21:53:24 box:tasks startTask: 12679 done. error: { stack: "TypeError: Cannot read properties of undefined (reading 'contents')\n" + ' at getDisks (/home/yellowtent/box/src/system.js:106:60)\n' + ' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' + ' at async updateDiskUsage (/home/yellowtent/box/src/system.js:182:19)', message: "Cannot read properties of undefined (reading 'contents')" Dec 06 21:53:24 box:shell startTask (stdout): 0 (process group ID) old priority 0, new priority 0
-
-
-
OK, I have fixed this now. The code
iswas not handling CIFS/SSHFS volumes correctly. -
@girish said in Cloudron 7.3.2: "Analyze Disk" doesn't do anything:
The code is not handling CIFS/SSHFS volumes correctly.
was not, is now?