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.4: "Analyze Disk" doesn't do anything and no statistics shown...

    Support
    disk usage
    6
    23
    611
    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.
    • DanTheMan
      DanTheMan last edited by girish

      I recently discovered that "analyze disk" isn't doing anything and there are no statistics shown.

      The logs show this error:

      screen cloudron.jpg

      What to do?

      jdaviescoates 1 Reply Last reply Reply Quote 0
      • jdaviescoates
        jdaviescoates @DanTheMan last edited by

        @DanTheMan there is lots wrong with it, I think a fix is in pipeline for the next version

        I use Cloudron with Gandi & Hetzner

        DanTheMan 1 Reply Last reply Reply Quote 1
        • DanTheMan
          DanTheMan @jdaviescoates last edited by DanTheMan

          @jdaviescoates Thanks for the update.

          I hope there's a fix soon, because I can't monitor the actual disk space on the system, which is a big risk when things get full.

          Isn't there something like a temporary solution to this problem? To prevent disks from filling up, without monitoring them now...

          Maybe an idea for the future is to put some notification warning to disk monitoring when things get alarming full on the system disk?

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

            We already have fixed something there. Is it possible that you do not have any swap on your system?

            DanTheMan jdaviescoates 3 Replies Last reply Reply Quote 1
            • DanTheMan
              DanTheMan @nebulon last edited by DanTheMan

              @nebulon I want to check that, but how? Not sure how to do that

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

                @DanTheMan you can run swapon to see the swap files or partitions on a system

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

                  @nebulon said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                  We already have fixed something there.

                  The graphs are still pretty borked in 7.3.4

                  e.g. my volume shouldn't be showing here:

                  1203cb60-5201-48f8-9018-cd4f2916f798-image.png

                  Also, I recently noticed that my Everything else (Ubuntu, etc) just say NaN undefined (whatever that means?)

                  7d57743f-d799-4f39-8283-4e49cf7fe158-image.png

                  Also just noticed a load of tiny amount for Uninstalled apps - what's that all about? Why are uninstalled apps leaving anything behind?

                  I use Cloudron with Gandi & Hetzner

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

                    @nebulon
                    I checked my swap and this is the result on my system...
                    screen cloudron swapon.jpg

                    i must say i have never checked it before, but it's always nice to learn new stuff 😉

                    1 Reply Last reply Reply Quote 0
                    • jdaviescoates
                      jdaviescoates @jdaviescoates last edited by

                      @jdaviescoates said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                      @nebulon said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                      We already have fixed something there.

                      The graphs are still pretty borked in 7.3.4

                      e.g. my volume shouldn't be showing here:

                      1203cb60-5201-48f8-9018-cd4f2916f798-image.png

                      Also, I recently noticed that my Everything else (Ubuntu, etc) just say NaN undefined (whatever that means?)

                      7d57743f-d799-4f39-8283-4e49cf7fe158-image.png

                      Also just noticed a load of tiny amount for Uninstalled apps - what's that all about? Why are uninstalled apps leaving anything behind?

                      In addition to all that it also keeps on saying "Last updated: 1 months ago" even immediately after hitting the refresh button.

                      I use Cloudron with Gandi & Hetzner

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

                        @jdaviescoates do you see any errors in the box.log file? If the collected data cache is not updated, I guess the task crashes.

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

                          @nebulon just checked, seeing this:

                          Dec 26 19:21:56 box:tasks startTask - starting task 11118 with options {}. logs at /home/yellowtent/platformdata/logs/tasks/11118.log
                          Dec 26 19:21:56 box:shell startTask spawn: /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 11118 /home/yellowtent/platformdata/logs/tasks/11118.log 0 400
                          Dec 26 19:21:56 box:shell startTask (stdout): Running as unit: box-task-11118.service
                          Dec 26 19:21:58 box:shell startTask (stdout): Finished with result: exit-code
                          processes terminated with: code=exited/status=50
                          runtime: 1.744s
                          Dec 26 19:21:58 box:shell startTask (stdout): Service box-task-11118 failed to run
                          Dec 26 19:21:58 box:shell startTask (stdout): Service box-task-11118 finished with exit code 1
                          Dec 26 19:21:58 box:shell startTask code: 1, signal: null
                          Dec 26 19:21:58 box:tasks startTask: 11118 completed with code 1
                          Dec 26 19:21:58 box:tasks startTask: 11118 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')"
                          

                          I use Cloudron with Gandi & Hetzner

                          jdaviescoates 1 Reply Last reply Reply Quote 0
                          • jdaviescoates
                            jdaviescoates @jdaviescoates last edited by jdaviescoates

                            @jdaviescoates said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                            logs at /home/yellowtent/platformdata/logs/tasks/11118.log

                            @nebulon and here is what is in there:

                            2022-12-26T19:21:58.100Z box:settings initCache: pre-load settings
                            2022-12-26T19:21:58.116Z box:taskworker Starting task 11118. Logs are at /home/yellowtent/platformdata/logs/tasks/11118.log
                            2022-12-26T19:21:58.271Z box:taskworker Task took 0.249 seconds
                            2022-12-26T19:21:58.271Z box:tasks setCompleted - 11118: {"result":null,"error":{"stack":"TypeError: Cannot read properties of undefined (reading 'contents')\n    at getDisks (/home/yellowtent/box/src/system.js>
                            2022-12-26T19:21:58.271Z box:tasks update 11118: {"percent":100,"result":null,"error":{"stack":"TypeError: Cannot read properties of undefined (reading 'contents')\n    at getDisks (/home/yellowtent/box/src/sys>
                            TypeError: Cannot read properties of undefined (reading 'contents')
                                at getDisks (/home/yellowtent/box/src/system.js:106:60)
                                at processTicksAndRejections (node:internal/process/task_queues:96:5)
                                at async updateDiskUsage (/home/yellowtent/box/src/system.js:182:19)
                            

                            I use Cloudron with Gandi & Hetzner

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

                              @jdaviescoates this looks like the bug when the system has no swap configured. If so, then this is fixed with next release. https://git.cloudron.io/cloudron/box/-/commit/d126f056fcdd6e6dcb06b95be976156885903658

                              If you have a swap configured, then we should debug this on your system ideally.

                              jdaviescoates 2 Replies Last reply Reply Quote 2
                              • Topic has been marked as a question  nebulon nebulon 
                              • jdaviescoates
                                jdaviescoates @nebulon last edited by jdaviescoates

                                @nebulon said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                                If you have a swap configured, then we should debug this on your system ideally.

                                I just ran swapon

                                This is what I get:

                                root@vxxxxxxxxxx:~# swapon
                                NAME       TYPE SIZE USED PRIO
                                /apps.swap file   4G   4G   -2
                                

                                I just used the standard Ubuntu image on Netcup.

                                I use Cloudron with Gandi & Hetzner

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

                                  @nebulon said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                                  @jdaviescoates this looks like the bug when the system has no swap configured. If so, then this is fixed with next release. https://git.cloudron.io/cloudron/box/-/commit/d126f056fcdd6e6dcb06b95be976156885903658

                                  If you have a swap configured, then we should debug this on your system ideally.

                                  Does what I've posted above indicate that I have swap configured, or not? 🙂

                                  I know basically nothing about partitions and swap and wotnot and mostly never touch whatever the defaults.

                                  Like I said, I just got a Netcup VPS and then installed their Ubuntu image on it then installed Cloudron on it.

                                  Happy for you to debug on my system if need be.

                                  (just a thought, but I don't think I ever undid the kernel fix thing, so perhaps that has something to do with these quirks?)

                                  Edit: nope, just undid that fix and it didn't seem to make any difference. I still have loads of random Uninstalled apps being displayed and Everything else (Ubuntu, etc) is still NaN undefined 😕

                                  I use Cloudron with Gandi & Hetzner

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

                                    @jdaviescoates maybe you are hitting some unknown bug there. It might help if you enable remote SSH support for us and send a mail to support@ with your IP so we can debug this directly.

                                    imc67 DanTheMan 2 Replies Last reply Reply Quote 1
                                    • imc67
                                      imc67 translator @nebulon last edited by

                                      @nebulon same issue here, swap is on and stilll no disk stats

                                      1 Reply Last reply Reply Quote 1
                                      • DanTheMan
                                        DanTheMan @nebulon last edited by

                                        @nebulon me too, still no disk status..

                                        nichu42 1 Reply Last reply Reply Quote 1
                                        • nichu42
                                          nichu42 @DanTheMan last edited by nichu42

                                          Even stranger here: It used to work, but it stopped updating 3 days ago. No manual update either.

                                          Jan 04 12:46:21 box:tasks startTask - starting task 630 with options {}. logs at /home/yellowtent/platformdata/logs/tasks/630.log
                                          Jan 04 12:46:21 box:shell startTask spawn: /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 630 /home/yellowtent/platformdata/logs/tasks/630.log 0 400
                                          Jan 04 12:46:21 box:shell startTask (stdout): sudo: unable to resolve host 1001585-634: Name or service not known
                                          Jan 04 12:46:21 box:shell startTask (stdout): Running as unit: box-task-630.service
                                          Jan 04 12:46:22 box:shell startTask (stdout): Finished with result: exit-code
                                          processes terminated with: code=exited/status=50
                                          runtime: 856ms
                                          time consumed: 731ms
                                          Jan 04 12:46:22 box:shell startTask (stdout): Service box-task-630 failed to run
                                          Jan 04 12:46:22 box:shell startTask (stdout): Service box-task-630 finished with exit code 1
                                          Jan 04 12:46:22 box:shell startTask code: 1, signal: null
                                          Jan 04 12:46:22 box:tasks startTask: 630 completed with code 1
                                          Jan 04 12:46:22 box:tasks startTask: 630 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')" 
                                          

                                          admin @ https://blueplanet.social
                                          Matrix: @nichu42:blueplanet.social

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

                                            @imc67 @DanTheMan @nichu42 If one of you could contact us on support@cloudron.io and give us access to the server, we can investigate. Thanks!

                                            DanTheMan 1 Reply Last reply Reply Quote 1
                                            • DanTheMan
                                              DanTheMan @girish last edited by DanTheMan

                                              @girish I am opening my server right now 👍😉
                                              I have send you the details like ip and port through a dm

                                              If your finished, please give me a sign, so I can turn off "remote support" in my cloudron instance and close my ssh port... thanks👍

                                              jdaviescoates 1 Reply Last reply Reply Quote 1
                                              • jdaviescoates
                                                jdaviescoates @DanTheMan last edited by

                                                @DanTheMan said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

                                                @girish I am opening my server right now

                                                Same

                                                I use Cloudron with Gandi & Hetzner

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

                                                  Thanks all. This issue was already fixed as well last month - https://git.cloudron.io/cloudron/box/-/commit/67cde5a62cf0394c8bf2d78ee3408e5995a220e7 . It's already in 7.3.5.

                                                  Essentially, if you have CIFS/NFS/SSHFS, there is a crash.

                                                  1 Reply Last reply Reply Quote 4
                                                  • Topic has been marked as solved  girish girish 
                                                  • First post
                                                    Last post
                                                  Powered by NodeBB