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. PostGreSql Database won't start

PostGreSql Database won't start

Scheduled Pinned Locked Moved Solved Support
8 Posts 5 Posters 1.6k Views 5 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.
    • M Offline
      M Offline
      Mastadamus
      wrote on last edited by
      #1

      So today I updated SearX and RocketChat. I installed open project and a very short time later i received a notice it had ran out of memory. I then uninstalled it. I notice later on this night that my PostGreSql database service will not restart and its stuck in the following loop

      Mar 28 15:03:59 [GET] /healthcheck
      Mar 28 15:04:28 [DELETE] /databases/dbdd647f60a4644987a519043c095f93c5
      Mar 28 15:04:28 remove: removing database dbdd647f60a4644987a519043c095f93c5
      Mar 28 22:53:05 Detected existing installation
      Mar 28 22:53:05 Resetting root password
      Mar 28 22:54:43 Detected existing installation
      Mar 28 22:54:43 Resetting root password
      Mar 28 22:56:06 Detected existing installation
      Mar 28 22:56:06 Resetting root password
      Mar 28 22:57:21 Detected existing installation
      Mar 28 22:57:21 Resetting root password
      Mar 28 22:58:47 Detected existing installation
      Mar 28 22:58:47 Resetting root password
      Mar 28 23:00:08 Detected existing installation
      Mar 28 23:00:08 Resetting root password
      Mar 28 23:01:24 Detected existing installation
      Mar 28 23:01:24 Resetting root password
      Mar 28 23:02:49 Detected existing installation

      these errors coincide with the original running out of memory issues with open project

      Any help would be greatly appreciated. I didn't see anything about postgresql in the troubleshooting guide.

      M 1 Reply Last reply
      0
      • M Mastadamus

        So today I updated SearX and RocketChat. I installed open project and a very short time later i received a notice it had ran out of memory. I then uninstalled it. I notice later on this night that my PostGreSql database service will not restart and its stuck in the following loop

        Mar 28 15:03:59 [GET] /healthcheck
        Mar 28 15:04:28 [DELETE] /databases/dbdd647f60a4644987a519043c095f93c5
        Mar 28 15:04:28 remove: removing database dbdd647f60a4644987a519043c095f93c5
        Mar 28 22:53:05 Detected existing installation
        Mar 28 22:53:05 Resetting root password
        Mar 28 22:54:43 Detected existing installation
        Mar 28 22:54:43 Resetting root password
        Mar 28 22:56:06 Detected existing installation
        Mar 28 22:56:06 Resetting root password
        Mar 28 22:57:21 Detected existing installation
        Mar 28 22:57:21 Resetting root password
        Mar 28 22:58:47 Detected existing installation
        Mar 28 22:58:47 Resetting root password
        Mar 28 23:00:08 Detected existing installation
        Mar 28 23:00:08 Resetting root password
        Mar 28 23:01:24 Detected existing installation
        Mar 28 23:01:24 Resetting root password
        Mar 28 23:02:49 Detected existing installation

        these errors coincide with the original running out of memory issues with open project

        Any help would be greatly appreciated. I didn't see anything about postgresql in the troubleshooting guide.

        M Offline
        M Offline
        Mastadamus
        wrote on last edited by
        #2

        @mastadamus This has fixed itself. I have no idea why or how it was stuck in a loop but after a solid hr of it repeating that it magically fixed itself.

        robiR 1 Reply Last reply
        0
        • M Mastadamus

          @mastadamus This has fixed itself. I have no idea why or how it was stuck in a loop but after a solid hr of it repeating that it magically fixed itself.

          robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #3

          @mastadamus perhaps the 6.2.7 update applied 😂

          Conscious tech

          M 1 Reply Last reply
          0
          • robiR robi

            @mastadamus perhaps the 6.2.7 update applied 😂

            M Offline
            M Offline
            Mastadamus
            wrote on last edited by
            #4

            @robi lol I don't know but it was weird. My logs show that loop continuing for a LONG time. Then right when I make the help post and go back to check it magically rights itself lol.

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

              Is it possible that you were running our of disk space but after some time space got cleared? You can also see dmesg output and see if you have any oom errors there. (You will see a stack dump there).

              M 1 Reply Last reply
              0
              • girishG girish

                Is it possible that you were running our of disk space but after some time space got cleared? You can also see dmesg output and see if you have any oom errors there. (You will see a stack dump there).

                M Offline
                M Offline
                Mastadamus
                wrote on last edited by
                #6

                @girish I got loads of disk space left. Im unsure why. The only thing i can think of is another one of my VM's were undergoing a checkpoint merge in hyper-V I wonder if that affected the PostGreSql database temporarily since they share the same storage space.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  CarbonBee
                  wrote on last edited by
                  #7

                  Hi,
                  I have the exact same problem after updating my Cloudron to v6.2.8.
                  It's been looping for more than an hour now.
                  I tried to restart Cloudron and even reboot my server.
                  How can I solve this problem?

                  Thanks.

                  nebulonN 1 Reply Last reply
                  0
                  • C CarbonBee

                    Hi,
                    I have the exact same problem after updating my Cloudron to v6.2.8.
                    It's been looping for more than an hour now.
                    I tried to restart Cloudron and even reboot my server.
                    How can I solve this problem?

                    Thanks.

                    nebulonN Away
                    nebulonN Away
                    nebulon
                    Staff
                    wrote on last edited by
                    #8

                    The root cause for this turned out to be disk I/O related. Leading to a postgres database startup time longer than 60sec. Our current code will kill the container if it takes longer than that for initial startup and thus the service never came up.

                    The workaround solution was to stop apps temporarily until the postgres service is healthy and then start the apps one-by-one.

                    1 Reply Last reply
                    1
                    • nebulonN nebulon referenced this topic on
                    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