Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Cloudron 7.3.2: "Analyze Disk" doesn't do anything

    Support
    disk usage graphs
    7
    16
    289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • necrevistonnezr
      necrevistonnezr last edited by girish

      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')"
      
      1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff last edited by

        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.

        necrevistonnezr 1 Reply Last reply Reply Quote 0
        • necrevistonnezr
          necrevistonnezr @nebulon last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            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 then systemctl restart box

            necrevistonnezr 1 Reply Last reply Reply Quote 4
            • girish
              girish Staff last edited by

              We replaced the df module now and it's locale independent now.

              M 1 Reply Last reply Reply Quote 2
              • Topic has been marked as solved  girish girish 
              • necrevistonnezr
                necrevistonnezr @nebulon last edited by

                @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 then systemctl restart box

                That did the trick!

                1 Reply Last reply Reply Quote 2
                • M
                  msbt App Dev @girish last edited by

                  @girish is that supposed to be fixed in v7.3.4? Still experiencing the same issues on one of my machines.

                  imc67 1 Reply Last reply Reply Quote 1
                  • imc67
                    imc67 translator @msbt last edited by imc67

                    @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
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • robi
                      robi last edited by robi

                      I'm not seeing any errors on this in 7.3.4, initially I did not get any graphs at all, but after a full tab refresh, the CPU and Memory graphs popped in and I had to hit the reload/refresh button for the disk graph to pop in.

                      Life of Advanced Technology

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        msbt App Dev @robi last edited by

                        @robi that's just the thing, the reload button doesn't work:
                        d5f157e0-dca2-4963-9c51-76cd255da6b4-grafik.png

                        1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff last edited by

                          Seems to work here atleast in 7.3.4 . @imc67 @msbt do you both have swap ? You can test with swapon command . There is a bug that the code crashes with no swap on the server 😕

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            msbt App Dev @girish last edited by

                            @girish

                            ~# swapon
                            NAME       TYPE SIZE   USED PRIO
                            /apps.swap file   4G 165.5M   -2
                            
                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @msbt last edited by

                              @msbt Oh ok, mm, are you on 7.3.4 already ? If so, can you write to support@ . I can take a look.

                              1 Reply Last reply Reply Quote 1
                              • girish
                                girish Staff last edited by girish

                                OK, I have fixed this now. The code is was not handling CIFS/SSHFS volumes correctly.

                                M jdaviescoates 2 Replies Last reply Reply Quote 4
                                • M
                                  msbt App Dev @girish last edited by

                                  @girish looking good, thanks!

                                  1 Reply Last reply Reply Quote 2
                                  • jdaviescoates
                                    jdaviescoates @girish last edited by

                                    @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?

                                    I use Cloudron with Gandi & Hetzner

                                    1 Reply Last reply Reply Quote 1
                                    • First post
                                      Last post
                                    Powered by NodeBB