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. After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace

After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace

Scheduled Pinned Locked Moved Solved Support
syslog
48 Posts 13 Posters 4.4k Views 13 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.
  • SansGuidonS SansGuidon

    Hi @joseph

    root@ubuntu-cloudron-16gb-nbg1-3:~# du -sh /var/log/syslog*
    8.2G	/var/log/syslog
    0	/var/log/syslog.1
    0	/var/log/syslog.1.gz-2025083120.backup
    52K	/var/log/syslog.2.gz
    4.0K	/var/log/syslog.3.gz
    4.0K	/var/log/syslog.4.gz
    

    As mentioned earlier in the discussion , it's due to sqlite backup dumps of UptimeKuma which end in the wrong place.

    root@ubuntu-cloudron-16gb-nbg1-3:~# grep 'INSERT INTO' /var/log/syslog | wc -l
    47237303
    

    And I think this was started being investigated by @nebulon
    This generates a few GBs worth of waste per day on my Cloudron instance which causes regular outages (every few weeks)

    J Offline
    J Offline
    joseph
    Staff
    wrote on last edited by joseph
    #36

    @SansGuidon I think @nebulon investigated and could not reproduce. We also run uptime kuma. Our logs are fine. Have you enabled backups inside uptime kuma or something else by any chance?

    root@my:~# docker ps | grep uptime
    cb00714073cb   cloudron/louislam.uptimekuma.app:202508221422060000    "/app/pkg/start.sh"      2 weeks ago    Up 2 weeks                                            ee6e4628-c370-4713-9cb6-f1888c32f8fb
    root@my:~# du -sh /var/log/syslog*
    352K	/var/log/syslog
    904K	/var/log/syslog.1
    116K	/var/log/syslog.2.gz
    112K	/var/log/syslog.3.gz
    112K	/var/log/syslog.4.gz
    108K	/var/log/syslog.5.gz
    112K	/var/log/syslog.6.gz
    108K	/var/log/syslog.7.gz
    root@my:~# grep 'INSERT INTO' /var/log/syslog | wc -l
    0
    
    1 Reply Last reply
    0
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by joseph
      #37

      FWIW, our db is pretty big too.

      image.png

      @SansGuidon the command is just sqlite3 ${p} ".dump" and it is redirected to a file. Do you have any ideas of why this will log sql commands to syslog? I can't reproduce this by running the command manually.

      1 Reply Last reply
      0
      • SansGuidonS Offline
        SansGuidonS Offline
        SansGuidon
        wrote on last edited by SansGuidon
        #38

        @joseph I don't see any special setting in UptimeKuma being applied in my instance. Can you try to reproduce with those instructions below? Hope that makes sense

        Ensure your default logdriver is journald:

        systemctl show docker -p ExecStart
        

        Should show something like

        ExecStart={ path=/usr/bin/dockerd ; argv[]=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables --use>
        

        Then try to mimic what backupSqlite() does (no log driver; redirect only outside docker run):

        docker run --rm alpine sh -lc 'for i in $(seq 1 3); do echo "INSERT INTO t VALUES($i);"; done' > /tmp/out.sql
        

        Observe duplicates got logged to syslog anyway:

        grep 'INSERT INTO t VALUES' /var/log/syslog | wc -l   # > 0
        cat /tmp/out.sql | wc -l                              # same 3 lines
        

        Now repeat with logging disabled (what the fix does):

        docker run --rm --log-driver=none alpine sh -lc 'for i in $(seq 1 3); do echo "INSERT INTO t VALUES($i);"; done' > /tmp/out2.sql
        grep 'INSERT INTO t VALUES' /var/log/syslog | wc -l   # unchanged
        

        About me / Now

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #39

          @SansGuidon thanks for the repro. I have to say I can easily reproduce not only your test but also uptime kuma backup issue on my test Cloudron. At the same time, I have verified that @joseph's observation is also correct - our prod uptime kuma does not produce any spurious logs. Wonder what is going on... I am debugging.

          1 Reply Last reply
          3
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #40

            @SansGuidon What is your ubuntu and docker version?

            That Cloudron is on Ubuntu 20.04 and docker 27.3.1 . Here it's not reproducible.

            My test cloudron is on 24.04 and docker 28.1.1 (it's from dev branch). Here it's reproducible.

            1 Reply Last reply
            1
            • SansGuidonS Offline
              SansGuidonS Offline
              SansGuidon
              wrote on last edited by
              #41

              @girish Docker 27.3.1 and Ubuntu 24.04.2 LTS

              About me / Now

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #42

                @SansGuidon thanks, fixed in https://git.cloudron.io/platform/box/-/commit/e45af9b611f4d0c3b77d4329aac24bacf98e4e6c . I could not figure out why it's not reproducible on that old Cloudron but I can reproduce it everywhere else . Maybe some Ubuntu 20.04 quirk .

                Z 1 Reply Last reply
                3
                • SansGuidonS Offline
                  SansGuidonS Offline
                  SansGuidon
                  wrote on last edited by
                  #43

                  Nice! thanks @girish ๐Ÿ™‚

                  About me / Now

                  1 Reply Last reply
                  0
                  • girishG girish

                    @SansGuidon thanks, fixed in https://git.cloudron.io/platform/box/-/commit/e45af9b611f4d0c3b77d4329aac24bacf98e4e6c . I could not figure out why it's not reproducible on that old Cloudron but I can reproduce it everywhere else . Maybe some Ubuntu 20.04 quirk .

                    Z Offline
                    Z Offline
                    zohup
                    wrote last edited by
                    #44

                    @girish said in After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace:

                    @SansGuidon thanks, fixed in https://git.cloudron.io/platform/box/-/commit/e45af9b611f4d0c3b77d4329aac24bacf98e4e6c . I could not figure out why it's not reproducible on that old Cloudron but I can reproduce it everywhere else . Maybe some Ubuntu 20.04 quirk .

                    Can you guide me what commands to type? Thank you.

                    1 Reply Last reply
                    0
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #45

                      Hello @zohup
                      This is fixed in Cloudron Version 9.

                      SansGuidonS 1 Reply Last reply
                      0
                      • jamesJ james

                        Hello @zohup
                        This is fixed in Cloudron Version 9.

                        SansGuidonS Offline
                        SansGuidonS Offline
                        SansGuidon
                        wrote last edited by
                        #46

                        @james said in After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace:

                        Hello @zohup
                        This is fixed in Cloudron Version 9.

                        I think what @zohup was asking is how to fix this in production environments which are still running Cloudron Version 8.

                        About me / Now

                        1 Reply Last reply
                        0
                        • SansGuidonS SansGuidon referenced this topic
                        • BrutalBirdieB BrutalBirdie

                          Quickfix for users who need it NOW:

                          # get patch file, apply and remove and restart cloudron-syslog.service
                          cd /home/yellowtent/box
                          wget https://git.cloudron.io/platform/box/-/commit/063b1024616706971d4a1f9c50b5032727640120.diff
                          git apply 063b1024616706971d4a1f9c50b5032727640120.diff
                          rm -v 063b1024616706971d4a1f9c50b5032727640120.diff
                          systemctl restart cloudron-syslog.service
                          
                          Z Offline
                          Z Offline
                          zohup
                          wrote last edited by zohup
                          #47

                          yes there it is, and it seems like that's the only way to fix it

                          @SansGuidon said in After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace:

                          @james said in After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace:

                          Hello @zohup
                          This is fixed in Cloudron Version 9.

                          I think what @zohup was asking is how to fix this in production environments which are still running Cloudron Version 8.

                          thanks for the quick fix! I applied it and it worked perfectly. ๐Ÿ‘
                          @BrutalBirdie said in After Ubuntu 22/24 Upgrade syslog getting spammed and grows way to much clogging up the diskspace:

                          Quickfix for users who need it NOW:

                          # get patch file, apply and remove and restart cloudron-syslog.service
                          cd /home/yellowtent/box
                          wget https://git.cloudron.io/platform/box/-/commit/063b1024616706971d4a1f9c50b5032727640120.diff
                          git apply 063b1024616706971d4a1f9c50b5032727640120.diff
                          rm -v 063b1024616706971d4a1f9c50b5032727640120.diff
                          systemctl restart cloudron-syslog.service
                          
                          du -sh /var/log/syslog*
                          truncate -s 0 /var/log/syslog
                          truncate -s 0 /var/log/syslog.1
                          
                          1 Reply Last reply
                          4
                          • SansGuidonS Offline
                            SansGuidonS Offline
                            SansGuidon
                            wrote last edited by
                            #48

                            Thanks @zohup !

                            About me / Now

                            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