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. n8n / Platform Services not starting since v7.7.1 upgrade

n8n / Platform Services not starting since v7.7.1 upgrade

Scheduled Pinned Locked Moved Solved Support
platformupgrade
26 Posts 3 Posters 3.4k Views 3 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.
  • rosanoR Offline
    rosanoR Offline
    rosano
    wrote on last edited by girish
    #1

    I'm using an older version of n8n (0.234.0) and it seems to be the only app that gets stuck on 'Restarting'. It stays on "Restarting - Waiting for Platform Services to start. See the Services view", and when I look at /services it seems like mail is the only one with a red light (stopped); I think I use Mailgun so not sure if it was ever running; clicking the Restart button on that service flashes this error (tokens replaced with XXXXX):

    Cloudron Error
    configureMail errored with code 125 message Command failed: docker run --restart=always -d --name=mail --net cloudron --net-alias mail --log-driver syslog --log-opt syslog-address=udp://127.0.0.1:2514 --log-opt syslog-format=rfc5424 --log-opt tag=mail -m NaN --memory-swap 536870912 --dns 172.18.0.1 --dns-search=. -e CLOUDRON_MAIL_TOKEN=XXXXX -e CLOUDRON_RELAY_TOKEN=XXXXX -e LOGLEVEL=info -v /home/yellowtent/boxdata/mail:/app/data -v /home/yellowtent/platformdata/addons/mail:/etc/mail:ro --label isCloudronManaged=true --read-only -v /run -v /tmp registry.docker.com/cloudron/mail:3.12.1@sha256:f539bea6c7360d3c0aa604323847172359593f109b304bb2d2c5152ca56be05c invalid argument "NaN" for "-m, --memory" flag: invalid size: 'NaN' See 'docker run --help'. 
    

    The light stays yellow after the error disappears, but when refreshing the page it goes back to red.

    Logs for n8n show:

    Mar 21 01:04:49 => Ensure directories
    Mar 21 01:04:49 => Loading configuration
    Mar 21 01:04:54 => Setting permissions
    Mar 21 01:04:56 => Starting N8N
    Mar 21 01:05:12 Loading config overwrites [ '/app/data/configs/default.json' ]
    

    I also restarted Cloudron but it results in the same state.

    1 Reply Last reply
    0
    • nebulonN nebulon

      so something went wrong with that swap file then. Try to remove that file and run the script again, that should rebuild swap

      rosanoR Offline
      rosanoR Offline
      rosano
      wrote on last edited by
      #25

      @nebulon seems also that the swap file was commented out in /etc/fstab (again not sure why/how) so it doesn't persist across restarts, and I guess the script you posted wouldn't affect this.

      # /apps.swap  none  swap  sw  0 0
      

      After uncommenting and reboot now, there seems to be a swap file via swapon:

      /apps.swap file 3.7G 1.8M   -2
      

      And all apps are running / stopped as expected, nothing hanging 👍🏽 thanks for your patience and help 🙏🏽.

      I wonder what about this could have to do with the latest Cloudron update as I didn't touch anything in the last days and everything seemed to be fine.

      1 Reply Last reply
      1
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #2

        @rosano for some reason the memory is computed as NaN on your server! not good. Do you have swap disabled on your server by any chance?

        rosanoR 1 Reply Last reply
        0
        • girishG girish

          @rosano for some reason the memory is computed as NaN on your server! not good. Do you have swap disabled on your server by any chance?

          rosanoR Offline
          rosanoR Offline
          rosano
          wrote on last edited by
          #3

          @girish I think not, but maybe? What can I type in to verify / enable?

          1 Reply Last reply
          0
          • girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #4

            @rosano if you run swapon on the server, it should tell you if it has any swap at all.

            rosanoR 2 Replies Last reply
            0
            • girishG girish

              @rosano if you run swapon on the server, it should tell you if it has any swap at all.

              rosanoR Offline
              rosanoR Offline
              rosano
              wrote on last edited by
              #5

              @girish ssh times out:

              ssh: connect to host XXXXX port 22: Operation timed out
              

              Does this also need platform services to start first? I feel a bit stuck here. Can I downgrade somehow?

              girishG 1 Reply Last reply
              1
              • rosanoR rosano

                @girish ssh times out:

                ssh: connect to host XXXXX port 22: Operation timed out
                

                Does this also need platform services to start first? I feel a bit stuck here. Can I downgrade somehow?

                girishG Do not disturb
                girishG Do not disturb
                girish
                Staff
                wrote on last edited by
                #6

                @rosano The error now is different. So, you cannot ssh into the server? This is more at the VPS/server level. Maybe you moved SSH to a different port or have some block list ?

                rosanoR 1 Reply Last reply
                0
                • girishG girish

                  @rosano The error now is different. So, you cannot ssh into the server? This is more at the VPS/server level. Maybe you moved SSH to a different port or have some block list ?

                  rosanoR Offline
                  rosanoR Offline
                  rosano
                  wrote on last edited by rosano
                  #7

                  @girish I did it a few days ago, not sure what changed other than the upgrade? I have another server for CapRover with the same provider (Hetzner) and I can ssh there without issue.

                  1 Reply Last reply
                  0
                  • girishG Do not disturb
                    girishG Do not disturb
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    @rosano the upgrade shouldn't make the server unreachable. Can you think of a way to ssh into your server? Maybe hard reboot the server? Is this a home server or a VPS? Usually, there is a way to access the console and you can check the boot logs in the console.

                    rosanoR 1 Reply Last reply
                    0
                    • girishG girish

                      @rosano the upgrade shouldn't make the server unreachable. Can you think of a way to ssh into your server? Maybe hard reboot the server? Is this a home server or a VPS? Usually, there is a way to access the console and you can check the boot logs in the console.

                      rosanoR Offline
                      rosanoR Offline
                      rosano
                      wrote on last edited by
                      #9

                      @girish seems like hard reboot has the same result. Hetzner has a web console, but I will need to figure out what the password is, let me see…

                      Also tried stopping some apps I installed recently (cloudron build, docker registry, one custom packaged app) but it seems that process also stalls 'waiting for platform services to start'.

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

                        @rosano is it possible that you had changed the ssh port away from 22 to maybe 202 for example?

                        rosanoR 1 Reply Last reply
                        0
                        • girishG girish

                          @rosano if you run swapon on the server, it should tell you if it has any swap at all.

                          rosanoR Offline
                          rosanoR Offline
                          rosano
                          wrote on last edited by
                          #11

                          @girish got in via the web console. swapon finishes with no output.

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

                            Ok so no swap file exists, probably causing the issue. Can you run /home/yellowtent/box/setup/start/cloudron-resize-fs.sh with sudo via SSH? This should ensure a swap file

                            rosanoR 1 Reply Last reply
                            0
                            • nebulonN nebulon

                              Ok so no swap file exists, probably causing the issue. Can you run /home/yellowtent/box/setup/start/cloudron-resize-fs.sh with sudo via SSH? This should ensure a swap file

                              rosanoR Offline
                              rosanoR Offline
                              rosano
                              wrote on last edited by
                              #13

                              @nebulon it says:

                              Swap file already exists at /apps.swap . Skipping
                              
                              1 Reply Last reply
                              0
                              • nebulonN nebulon

                                @rosano is it possible that you had changed the ssh port away from 22 to maybe 202 for example?

                                rosanoR Offline
                                rosanoR Offline
                                rosano
                                wrote on last edited by
                                #14

                                @nebulon I checked via sudo grep Port /etc/ssh/sshd_config and it says Port 22.

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

                                  so something went wrong with that swap file then. Try to remove that file and run the script again, that should rebuild swap

                                  rosanoR 2 Replies Last reply
                                  0
                                  • nebulonN nebulon

                                    so something went wrong with that swap file then. Try to remove that file and run the script again, that should rebuild swap

                                    rosanoR Offline
                                    rosanoR Offline
                                    rosano
                                    wrote on last edited by rosano
                                    #16

                                    swapoff seemed to not do anything, but sudo rm /apps.swap did and I was able to run the script which seemed to be successful. After reboot via the Cloudron console and also power cycle on Hetzner, I'm still in the same place: 8 apps Running, 1 app stuck on Restarting, 3 apps stuck on Stopping, timeout when connecting via ssh.

                                    girishG 1 Reply Last reply
                                    0
                                    • rosanoR rosano

                                      swapoff seemed to not do anything, but sudo rm /apps.swap did and I was able to run the script which seemed to be successful. After reboot via the Cloudron console and also power cycle on Hetzner, I'm still in the same place: 8 apps Running, 1 app stuck on Restarting, 3 apps stuck on Stopping, timeout when connecting via ssh.

                                      girishG Do not disturb
                                      girishG Do not disturb
                                      girish
                                      Staff
                                      wrote on last edited by
                                      #17

                                      @rosano under Services, is everything running? Or is mail container stuck in the same way as before?

                                      rosanoR 1 Reply Last reply
                                      0
                                      • girishG girish

                                        @rosano under Services, is everything running? Or is mail container stuck in the same way as before?

                                        rosanoR Offline
                                        rosanoR Offline
                                        rosano
                                        wrote on last edited by
                                        #18

                                        @girish mail is stopped, clicking restart shows the same error as my initial post. might have to do with argument "NaN" for "-m, --memory" flag: invalid size: 'NaN'?

                                        girishG 1 Reply Last reply
                                        0
                                        • rosanoR rosano

                                          @girish mail is stopped, clicking restart shows the same error as my initial post. might have to do with argument "NaN" for "-m, --memory" flag: invalid size: 'NaN'?

                                          girishG Do not disturb
                                          girishG Do not disturb
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #19

                                          @rosano ok, I think NaN is some cloudron bug that we have to debug further. But before we can debug that, we have to get SSH access somehow. Did you figure out the root password ? It seems you ran sudo grep Port /etc/ssh/sshd_config , so I guess you had root password, somehow?

                                          rosanoR 1 Reply Last reply
                                          0
                                          • girishG girish

                                            @rosano ok, I think NaN is some cloudron bug that we have to debug further. But before we can debug that, we have to get SSH access somehow. Did you figure out the root password ? It seems you ran sudo grep Port /etc/ssh/sshd_config , so I guess you had root password, somehow?

                                            rosanoR Offline
                                            rosanoR Offline
                                            rosano
                                            wrote on last edited by
                                            #20

                                            @girish I was able to reset via Hetzner console yes, but I ran everything through their 'web console' not SSH. Would you able to use this root password from your end?

                                            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