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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Cloudron 7.3.2: "Analyze Disk" doesn't do anything

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

Scheduled Pinned Locked Moved Solved Support
disk usagegraphs
16 Posts 7 Posters 2.0k Views
  • 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.
  • N Offline
    N Offline
    necrevistonnezr
    wrote on Oct 18, 2022, 8:12 AM last edited by girish Oct 18, 2022, 6:33 PM
    #1

    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
    1
    • N Offline
      N Offline
      nebulon
      Staff
      wrote on Oct 18, 2022, 3:55 PM last edited by
      #2

      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.

      N 1 Reply Last reply Oct 18, 2022, 4:19 PM
      0
      • N nebulon
        Oct 18, 2022, 3:55 PM

        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.

        N Offline
        N Offline
        necrevistonnezr
        wrote on Oct 18, 2022, 4:19 PM last edited by
        #3

        @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
        0
        • N Offline
          N Offline
          nebulon
          Staff
          wrote on Oct 18, 2022, 5:12 PM last edited by
          #4

          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

          N 1 Reply Last reply Oct 18, 2022, 7:57 PM
          4
          • G Offline
            G Offline
            girish
            Staff
            wrote on Oct 18, 2022, 6:33 PM last edited by
            #5

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

            M 1 Reply Last reply Dec 6, 2022, 8:29 PM
            2
            • G girish has marked this topic as solved on Oct 18, 2022, 6:33 PM
            • N nebulon
              Oct 18, 2022, 5:12 PM

              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

              N Offline
              N Offline
              necrevistonnezr
              wrote on Oct 18, 2022, 7:57 PM last edited by
              #6

              @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
              2
              • G girish
                Oct 18, 2022, 6:33 PM

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

                M Offline
                M Offline
                msbt
                App Dev
                wrote on Dec 6, 2022, 8:29 PM last edited by
                #7

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

                I 1 Reply Last reply Dec 6, 2022, 8:52 PM
                1
                • M msbt
                  Dec 6, 2022, 8:29 PM

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

                  I Offline
                  I Offline
                  imc67
                  translator
                  wrote on Dec 6, 2022, 8:52 PM last edited by imc67 Dec 6, 2022, 9:00 PM
                  #8

                  @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
                  0
                  • robiR Offline
                    robiR Offline
                    robi
                    wrote on Dec 6, 2022, 9:03 PM last edited by robi Dec 6, 2022, 9:33 PM
                    #9

                    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.

                    Conscious tech

                    M 1 Reply Last reply Dec 6, 2022, 9:31 PM
                    0
                    • robiR robi
                      Dec 6, 2022, 9:03 PM

                      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.

                      M Offline
                      M Offline
                      msbt
                      App Dev
                      wrote on Dec 6, 2022, 9:31 PM last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        girish
                        Staff
                        wrote on Dec 7, 2022, 11:58 AM last edited by
                        #11

                        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 Dec 7, 2022, 8:20 PM
                        0
                        • G girish
                          Dec 7, 2022, 11:58 AM

                          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 Offline
                          M Offline
                          msbt
                          App Dev
                          wrote on Dec 7, 2022, 8:20 PM last edited by
                          #12

                          @girish

                          ~# swapon
                          NAME       TYPE SIZE   USED PRIO
                          /apps.swap file   4G 165.5M   -2
                          
                          G 1 Reply Last reply Dec 7, 2022, 8:42 PM
                          0
                          • M msbt
                            Dec 7, 2022, 8:20 PM

                            @girish

                            ~# swapon
                            NAME       TYPE SIZE   USED PRIO
                            /apps.swap file   4G 165.5M   -2
                            
                            G Offline
                            G Offline
                            girish
                            Staff
                            wrote on Dec 7, 2022, 8:42 PM last edited by
                            #13

                            @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
                            1
                            • G Offline
                              G Offline
                              girish
                              Staff
                              wrote on Dec 8, 2022, 8:03 AM last edited by girish Dec 8, 2022, 9:24 AM
                              #14

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

                              M jdaviescoatesJ 2 Replies Last reply Dec 8, 2022, 8:21 AM
                              4
                              • G girish
                                Dec 8, 2022, 8:03 AM

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

                                M Offline
                                M Offline
                                msbt
                                App Dev
                                wrote on Dec 8, 2022, 8:21 AM last edited by
                                #15

                                @girish looking good, thanks!

                                1 Reply Last reply
                                2
                                • G girish
                                  Dec 8, 2022, 8:03 AM

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

                                  jdaviescoatesJ Offline
                                  jdaviescoatesJ Offline
                                  jdaviescoates
                                  wrote on Dec 8, 2022, 9:17 AM last edited by
                                  #16

                                  @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
                                  1
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Bookmarks
                                  • Search