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. Can't start cloudron service after Default Data Directory migration

Can't start cloudron service after Default Data Directory migration

Scheduled Pinned Locked Moved Solved Support
storageplatformdatasyslog
11 Posts 4 Posters 565 Views 4 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.
  • I Offline
    I Offline
    ivan-petro
    wrote on last edited by
    #2

    Hi Team,

    This issue is particularly significant for users running a large number of apps on Hetzner VPS, as scaling storage is only possible by attaching Hetzner volumes. As you know, Hetzner VPS instances have limited internal disk storage that cannot be expanded directly, making volumes the only viable option for increasing capacity.

    In Cloudron, as I understand it, PostgreSQL runs in Docker and stores its data centrally on the server for all apps. Unfortunately, this setup doesn’t allow migrating specific PostgreSQL databases for individual apps to the volume. Instead, the entire /home/yellowtent/platformdata directory needs to be migrated to the attached volume, with symlinks created to point to the new storage location.

    This makes the migration process challenging, especially given the dependency on syslog.sock and the logging configuration. Resolving this issue would greatly help users like me who need to scale storage while maintaining Cloudron’s functionality.

    J 1 Reply Last reply
    0
    • I ivan-petro

      Hi Team,

      This issue is particularly significant for users running a large number of apps on Hetzner VPS, as scaling storage is only possible by attaching Hetzner volumes. As you know, Hetzner VPS instances have limited internal disk storage that cannot be expanded directly, making volumes the only viable option for increasing capacity.

      In Cloudron, as I understand it, PostgreSQL runs in Docker and stores its data centrally on the server for all apps. Unfortunately, this setup doesn’t allow migrating specific PostgreSQL databases for individual apps to the volume. Instead, the entire /home/yellowtent/platformdata directory needs to be migrated to the attached volume, with symlinks created to point to the new storage location.

      This makes the migration process challenging, especially given the dependency on syslog.sock and the logging configuration. Resolving this issue would greatly help users like me who need to scale storage while maintaining Cloudron’s functionality.

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

      @ivan-petro can you try systemctl restart cloudron-syslog ?

      1 Reply Last reply
      1
      • J joseph marked this topic as a question on
      • I Offline
        I Offline
        ivan-petro
        wrote on last edited by
        #4

        Hi @joseph,

        No, I haven’t tried running
        systemctl restart cloudron-syslog

        Do you think this could help resolve the issue?

        I followed the official Cloudron documentation for migrating the default data directory: https://docs.cloudron.io/storage/. However, the documentation doesn’t mention restarting cloudron-syslog as part of the process.

        To try this command, I’ll need to wait until my scheduled maintenance window at night to work on the server. If you have any other suggestions, please let me know so I can try everything during my maintenance period.

        Thank you for your assistance!

        J 1 Reply Last reply
        1
        • I ivan-petro

          Hi @joseph,

          No, I haven’t tried running
          systemctl restart cloudron-syslog

          Do you think this could help resolve the issue?

          I followed the official Cloudron documentation for migrating the default data directory: https://docs.cloudron.io/storage/. However, the documentation doesn’t mention restarting cloudron-syslog as part of the process.

          To try this command, I’ll need to wait until my scheduled maintenance window at night to work on the server. If you have any other suggestions, please let me know so I can try everything during my maintenance period.

          Thank you for your assistance!

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

          @ivan-petro that service is added to docs now . that services holds the syslog.sock file

          1 Reply Last reply
          2
          • I Offline
            I Offline
            ivan-petro
            wrote on last edited by
            #6

            @joseph , got it!
            thanks. will do and let you know about result

            1 Reply Last reply
            1
            • I Offline
              I Offline
              ivan-petro
              wrote on last edited by
              #7

              Hi @joseph ,

              Yes, your new instructions at https://docs.cloudron.io/storage/ were very helpful! However, I still had to manually restart the services on the /services page in the Cloudron admin panel.

              Regarding the time it takes to reindex disk information, it happened within the same day for me. I’ll continue monitoring the system's stability over the next few days to ensure everything is running smoothly.

              Thank you so much for your help! Thanks to your assistance, I was finally able to resolve the issue with running out of disk space 🙂

              1 Reply Last reply
              1
              • nebulonN nebulon has marked this topic as solved on
              • I ivan-petro referenced this topic on
              • luckowL Offline
                luckowL Offline
                luckow
                translator
                wrote on last edited by
                #8

                sorry for bringing up this topic again.
                I followed the document (https://docs.cloudron.io/storage/) and ended up at

                Feb 22 14:49:00 cos syslog.js[6203]: node:internal/process/promises:391
                Feb 22 14:49:00 cos syslog.js[6203]:     triggerUncaughtException(err, true /* fromPromise */);
                Feb 22 14:49:00 cos syslog.js[6203]:     ^
                Feb 22 14:49:00 cos syslog.js[6203]: [Error: EACCES: permission denied, lstat '/home/yellowtent/platformdata/logs/syslog.sock'] {
                Feb 22 14:49:00 cos syslog.js[6203]:   errno: -13,
                Feb 22 14:49:00 cos syslog.js[6203]:   code: 'EACCES',
                Feb 22 14:49:00 cos syslog.js[6203]:   syscall: 'lstat',
                Feb 22 14:49:00 cos syslog.js[6203]:   path: '/home/yellowtent/platformdata/logs/syslog.sock'
                Feb 22 14:49:00 cos syslog.js[6203]: }
                Feb 22 14:49:00 cos syslog.js[6203]: Node.js v20.18.0
                Feb 22 14:49:00 cos systemd[1]: cloudron-syslog.service: Main process exited, code=exited, status=1/FAILURE
                Feb 22 14:49:00 cos systemd[1]: cloudron-syslog.service: Failed with result 'exit-code'.
                

                Pronouns: he/him | Primary language: German

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #9

                  @luckow have you tried to delete that file /home/yellowtent/platformdata/logs/syslog.sock via ssh?

                  1 Reply Last reply
                  0
                  • luckowL Offline
                    luckowL Offline
                    luckow
                    translator
                    wrote on last edited by
                    #10

                    yes. This is what has happened in the meantime

                    journalctl -f

                    Feb 22 17:41:06 cos systemd[1]: box.service: Main process exited, code=exited, status=1/FAILURE
                    Feb 22 17:41:06 cos systemd[1]: box.service: Failed with result 'exit-code'.
                    Feb 22 17:41:06 cos systemd[1]: box.service: Scheduled restart job, restart counter is at 3937.
                    Feb 22 17:41:06 cos systemd[1]: Stopped Cloudron Admin.
                    Feb 22 17:41:06 cos systemd[1]: Started Cloudron Admin.
                    Feb 22 17:41:07 cos sshd[32331]: Received disconnect from 218.92.0.237 port 48908:11:  [preauth]
                    Feb 22 17:41:07 cos sshd[32331]: Disconnected from authenticating user root 218.92.0.237 port 48908 [preauth]
                    Feb 22 17:41:07 cos sshd[32331]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.92.0.237  user=root
                    Feb 22 17:41:09 cos box.js[32364]: node:fs:827
                    Feb 22 17:41:09 cos box.js[32364]:   fd = getValidatedFd(fd);
                    Feb 22 17:41:09 cos box.js[32364]:        ^
                    Feb 22 17:41:09 cos box.js[32364]: TypeError [ERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number. Received undefined
                    Feb 22 17:41:09 cos box.js[32364]:     at Object.write (node:fs:827:8)
                    Feb 22 17:41:09 cos box.js[32364]:     at exitSync (/home/yellowtent/box/box.js:39:26)
                    Feb 22 17:41:09 cos box.js[32364]:     at main (/home/yellowtent/box/box.js:58:23) {
                    Feb 22 17:41:09 cos box.js[32364]:   code: 'ERR_INVALID_ARG_TYPE'
                    Feb 22 17:41:09 cos box.js[32364]: }
                    Feb 22 17:41:09 cos box.js[32364]: Node.js v20.18.0
                    

                    Pronouns: he/him | Primary language: German

                    1 Reply Last reply
                    0
                    • luckowL Offline
                      luckowL Offline
                      luckow
                      translator
                      wrote on last edited by luckow
                      #11

                      fyi: As soon as I have moved platformdata back to the “original” storage, everything works as expected the error disappeared.
                      I also had to move the appsdata & boxdata back to get a fully functional Cloudron instance again.

                      Pronouns: he/him | Primary language: German

                      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