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
  • Brite
  • 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. Docker volumes are filling up disk

Docker volumes are filling up disk

Scheduled Pinned Locked Moved Solved Support
dockervolumes
23 Posts 7 Posters 717 Views 7 Watching
  • 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.
  • archosA Offline
    archosA Offline
    archos
    wrote last edited by archos
    #2

    Largest Docker volumes on the system

    437G    /var/lib/docker/volumes/2cd35318182d2ca6e0a83bfa4967707b33201c9d0389b54dc67b1da13727ece3
    3.3G    /var/lib/docker/volumes/21ae2f0cdd518b6beb761b3d8f690573b88854456b1f9b8b62a59533950a36b0
    2.8G    /var/lib/docker/volumes/69b8db67d33f9b732414a2a903b2c31b5af7900bed64ae1ba15a36361672c724
    2.2G    /var/lib/docker/volumes/578df1d49aeae3d49ec7eb0d1b3fe247d8485e1b6bc007dc39e9bb2492ea2dbf
    1.9G    /var/lib/docker/volumes/18659aaf1c1a71f000167fabeb5de42147b417840968edf857b0a28d49c059c5
    1.8G    /var/lib/docker/volumes/d47e05be1ab7c9afebc44a7472b51c9123abfc0cb8dbee90efdde6f986b2b10a
    1.3G    /var/lib/docker/volumes/c48e870f9326a2420d3484f9a8c9d6e101ed1b43155a072f680d4dbeb8c6d6dc
    1.2G    /var/lib/docker/volumes/92ceda1eef40d4331bdc0b40dee90fa244c6322f709b17c9c057e2c23b27f7e3
    879M    /var/lib/docker/volumes/4835a5f6bd07bc0ccbc48d9984188ea4cba19827c38475ff96379428fe8573e5
    766M    /var/lib/docker/volumes/c52c6083cac12f83f5d1c7ac3844d29a8aa196607821d594fcea31c6efcca544
    734M    /var/lib/docker/volumes/7a4d464132751933477aaaea0ac84f5b9d8c6675f14740b3bd52e68cf11a71b6
    716M    /var/lib/docker/volumes/fe8398266b2ee41d4936326db1d148110c6c0246d2d55abb56ecd779982c40a7
    660M    /var/lib/docker/volumes/3c73c37c138981b00cfbde782127f91876859659fe22e5795909930e44fa46ff
    592M    /var/lib/docker/volumes/a7529bb1adcf3c008bb991b4b8d53071b1b978d78fc1dbf4d41400f1c2136583
    573M    /var/lib/docker/volumes/c07bb67d0c6d2f7ac5f6b16379d2217fc04342bdbe50d647d8f2e348824952fe
    439M    /var/lib/docker/volumes/1783e3b02509013f9e5967d24cb0308c429d316e7bf1fe91319d1d13c3d52d5f
    370M    /var/lib/docker/volumes/fad8b9e0768542ebb33f3c43f37a5ab4d38bf78396f9fcbcbc26eccfaf599b2f
    351M    /var/lib/docker/volumes/789e68c10bd2281d2728948d03121939e7465bca108d5fb0f4b3a4b637e57507
    191M    /var/lib/docker/volumes/fdf7c2c7d257742135a5a02ff6326e12b08f990d8c68a043778a99022f45debe
    177M    /var/lib/docker/volumes/c434bfac6cc7eb90390082546dfdbb95f7c9d516e69dff2f4a3f0d8d28bfadd0
    

    The biggest volume alone is 437 GB.

    I checked the contents of that volume and it’s filled with thousands of magick-* files

    magick-00nzf1efCQtQKRL2bCCzds2a7Kt6cLIK
    

    I'm not sure if these magick-* files can be safely deleted.
    They look like leftover temp files from ImageMagick, but I want to make sure before removing ~400 GB of them.
    Any guidance or confirmation would be appreciated.

    1 Reply Last reply
    1
    • timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote last edited by timconsidine
      #3

      I seem to recall there is/was a vulnerability which exposed something like this.
      Dredging memory banks - maybe you can search for something like this - my searches aren’t returning anything - sorry.

      archosA 1 Reply Last reply
      1
      • archosA Offline
        archosA Offline
        archos
        wrote last edited by
        #4

        I tried docker inspect. Looks like it's a WordPress instance from a single user. Shouldn't WordPress clean this up on its own? There are thousands of magick-*.txt files taking up hundreds of GB. I think the oldest one is from around June 16th.

        1 Reply Last reply
        0
        • timconsidineT timconsidine

          I seem to recall there is/was a vulnerability which exposed something like this.
          Dredging memory banks - maybe you can search for something like this - my searches aren’t returning anything - sorry.

          archosA Offline
          archosA Offline
          archos
          wrote last edited by
          #5

          @timconsidine Thanks! I’ll try to search around a bit more with that in mind. Good to know it might not be just a one-off issue.

          1 Reply Last reply
          0
          • jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote last edited by
            #6

            Sounds to me like they are likely tmp files that can all be deleted https://stackoverflow.com/questions/35550850/lot-of-temp-magick-files-created-in-temporary-folder#39446027

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • archosA Offline
              archosA Offline
              archos
              wrote last edited by
              #7

              I tried deleting the files gradually starting from the oldest ones, and everything seems fine so far. Looks like they were really just leftover tmp files.

              1 Reply Last reply
              2
              • J joseph has marked this topic as solved
              • archosA Offline
                archosA Offline
                archos
                wrote last edited by
                #8

                Unfortunately, I just checked and the files are back again – only two for now. It seems something is still generating them.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote last edited by
                  #9

                  Is it still WordPress and imagemagick temp files?

                  archosA 1 Reply Last reply
                  0
                  • J joseph

                    Is it still WordPress and imagemagick temp files?

                    archosA Offline
                    archosA Offline
                    archos
                    wrote last edited by
                    #10

                    @joseph said in Docker volumes are filling up disk:

                    Is it still WordPress and imagemagick temp files?

                    Yes, still in the same location and same naming pattern – seems to be temporary files from WordPress using ImageMagick.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      joseph
                      Staff
                      wrote last edited by
                      #11

                      An idea is put a cronjob into the WP app to clean up /tmp .

                      P 1 Reply Last reply
                      2
                      • J joseph

                        An idea is put a cronjob into the WP app to clean up /tmp .

                        P Offline
                        P Offline
                        p44
                        translator
                        wrote last edited by
                        #12

                        @joseph I don't know if this can help, but I added to Wp cron this command:

                        55 1,13 * * * rm -rf /app/data/public/wp-content/cache/* > /dev/null 2>&1
                        

                        You can extend this also to /tmp folders.

                        I added this line to save space before backup. You can edit this according to backup scheduled times

                        1 Reply Last reply
                        2
                        • SansGuidonS Offline
                          SansGuidonS Offline
                          SansGuidon
                          wrote last edited by
                          #13

                          Is it related to a plugin? I know that by default wp-cron jobs were not always running in WP so I had to force create a cron job to run wp-cron on a schedule
                          It is supposed to be the reponsibility of WP Plugins to cleanup after them, by using the wp-cron, but it is by default disabled afaik. So what I have scheduled for a long time in Cloudron is */30 * * * * wget -q -O - https://wp.xxx.xxx/wp-cron.php?doing_wp_cron >/dev/null 2>&1

                          About me / Now

                          P 1 Reply Last reply
                          2
                          • archosA Offline
                            archosA Offline
                            archos
                            wrote last edited by
                            #14

                            Thanks a lot everyone for the advice 🙏
                            I’ve added some cleanup jobs to the WP cron for now.
                            I’ll let you know if it helps.

                            1 Reply Last reply
                            1
                            • SansGuidonS SansGuidon

                              Is it related to a plugin? I know that by default wp-cron jobs were not always running in WP so I had to force create a cron job to run wp-cron on a schedule
                              It is supposed to be the reponsibility of WP Plugins to cleanup after them, by using the wp-cron, but it is by default disabled afaik. So what I have scheduled for a long time in Cloudron is */30 * * * * wget -q -O - https://wp.xxx.xxx/wp-cron.php?doing_wp_cron >/dev/null 2>&1

                              P Offline
                              P Offline
                              p44
                              translator
                              wrote last edited by
                              #15

                              @SansGuidon Cloudron cron jobs works perfectly with Wordpress...

                              @archos Keep us posted 🙏

                              SansGuidonS 1 Reply Last reply
                              0
                              • P p44

                                @SansGuidon Cloudron cron jobs works perfectly with Wordpress...

                                @archos Keep us posted 🙏

                                SansGuidonS Offline
                                SansGuidonS Offline
                                SansGuidon
                                wrote last edited by SansGuidon
                                #16

                                @p44 said in Docker volumes are filling up disk:

                                @SansGuidon Cloudron cron jobs works perfectly with Wordpress...

                                @archos Keep us posted 🙏

                                Glad it works for you. WP would constantly complaining those WP-cron jobs were disabled (see Cloudron docs, they mention wp-cron is disabled https://docs.cloudron.io/packages/wordpress-managed/ ), so I came with the fix I mention to get rid of the warnings/errors shown in my WP instance 😆 maybe my solution is outdated yet it runs for so long now.

                                About me / Now

                                P 1 Reply Last reply
                                1
                                • SansGuidonS SansGuidon

                                  @p44 said in Docker volumes are filling up disk:

                                  @SansGuidon Cloudron cron jobs works perfectly with Wordpress...

                                  @archos Keep us posted 🙏

                                  Glad it works for you. WP would constantly complaining those WP-cron jobs were disabled (see Cloudron docs, they mention wp-cron is disabled https://docs.cloudron.io/packages/wordpress-managed/ ), so I came with the fix I mention to get rid of the warnings/errors shown in my WP instance 😆 maybe my solution is outdated yet it runs for so long now.

                                  P Offline
                                  P Offline
                                  p44
                                  translator
                                  wrote last edited by
                                  #17

                                  @SansGuidon Mentioned guide also say "To add custom cron events, use Cloudron's built-in cron or use a plugin like WP Crontrol." And it works like a sharm... 😉

                                  Before Cloudron I had a lot of problems publishing scheduled posts because WP Cron is activated only when user visits the website. Cloudron guide say "WordPress' built-in cron task schedule wp-cron is disabled since it is not effective for low traffic websites."

                                  SansGuidonS 1 Reply Last reply
                                  1
                                  • P p44

                                    @SansGuidon Mentioned guide also say "To add custom cron events, use Cloudron's built-in cron or use a plugin like WP Crontrol." And it works like a sharm... 😉

                                    Before Cloudron I had a lot of problems publishing scheduled posts because WP Cron is activated only when user visits the website. Cloudron guide say "WordPress' built-in cron task schedule wp-cron is disabled since it is not effective for low traffic websites."

                                    SansGuidonS Offline
                                    SansGuidonS Offline
                                    SansGuidon
                                    wrote last edited by SansGuidon
                                    #18

                                    @p44 said in Docker volumes are filling up disk:

                                    @SansGuidon Mentioned guide also say "To add custom cron events, use Cloudron's built-in cron or use a plugin like WP Crontrol." And it works like a sharm... 😉

                                    Before Cloudron I had a lot of problems publishing scheduled posts because WP Cron is activated only when user visits the website. Cloudron guide say "WordPress' built-in cron task schedule wp-cron is disabled since it is not effective for low traffic websites."

                                    Interesting to know, however what I remember is that my site would appear non healthy without forcing some cron jobs to trigger, so I guess that's why I had to add this line in my cron tab, despite Cloudron is supposed to make that not necessary. Weird. Anyway if that works like a charm for everyone but me, I guess I might have different needs 🤔

                                    About me / Now

                                    P 1 Reply Last reply
                                    1
                                    • SansGuidonS SansGuidon

                                      @p44 said in Docker volumes are filling up disk:

                                      @SansGuidon Mentioned guide also say "To add custom cron events, use Cloudron's built-in cron or use a plugin like WP Crontrol." And it works like a sharm... 😉

                                      Before Cloudron I had a lot of problems publishing scheduled posts because WP Cron is activated only when user visits the website. Cloudron guide say "WordPress' built-in cron task schedule wp-cron is disabled since it is not effective for low traffic websites."

                                      Interesting to know, however what I remember is that my site would appear non healthy without forcing some cron jobs to trigger, so I guess that's why I had to add this line in my cron tab, despite Cloudron is supposed to make that not necessary. Weird. Anyway if that works like a charm for everyone but me, I guess I might have different needs 🤔

                                      P Offline
                                      P Offline
                                      p44
                                      translator
                                      wrote last edited by
                                      #19

                                      @SansGuidon It still does not work for you?

                                      1 Reply Last reply
                                      0
                                      • archosA Offline
                                        archosA Offline
                                        archos
                                        wrote last edited by
                                        #20

                                        The cron job is working perfectly, temporary files are no longer accumulating. Many thanks to everyone for the advice. ✅

                                        robiR P 2 Replies Last reply
                                        2
                                        • archosA archos

                                          The cron job is working perfectly, temporary files are no longer accumulating. Many thanks to everyone for the advice. ✅

                                          robiR Offline
                                          robiR Offline
                                          robi
                                          wrote last edited by
                                          #21

                                          @archos which one exactly?

                                          Conscious tech

                                          archosA 1 Reply Last reply
                                          0
                                          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