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. Docker and Postgres refuse to start

Docker and Postgres refuse to start

Scheduled Pinned Locked Moved Solved Support
dockerpostgresql
15 Posts 3 Posters 2.5k 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.
  • girishG girish

    @timconsidine said in Docker and Postgres refuse to start:

    Running 7.2.5 and ubuntu 20.04

    What caused this whole issue ? Just random?

    timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #5

    @girish good question !
    It seems random ... except 2nd time that postgres has failed.
    I'll keep an eye on and monitor, trying to be more aware of different changes.
    I'm running Cloudron on a Hetzner box, so I have reasonable confidence in the VPS.
    Will keep an eye out and report any observations.
    For now just carry on enjoying Cloudron !

    1 Reply Last reply
    1
    • girishG girish marked this topic as a question on
    • girishG girish has marked this topic as solved on
    • girishG girish

      @timconsidine said in Docker and Postgres refuse to start:

      Running 7.2.5 and ubuntu 20.04

      What caused this whole issue ? Just random?

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by timconsidine
      #6

      @girish so it has happened again
      Not aware of any cause - no intervention or fiddling done.
      I just rebooted the box when prompted in the dashboard
      Although I suspect it was failing before this
      postgres service does not start
      Cloudron dashboard for services shows orange dot
      Logs show :

      Nov 20 09:15:35 Resetting root password
      Nov 20 09:15:57 Detected existing installation
      Nov 20 09:15:59 Debug mode. Sleeping
      Nov 20 09:16:16 Debug mode. Sleeping
      Nov 20 09:16:54 Debug mode. Sleeping
      Nov 20 09:19:24 Debug mode. Sleeping
      Nov 20 09:28:39 Debug mode. Sleeping
      Nov 20 09:30:36 Debug mode. Sleeping
      

      Tried rebooting the box
      As postgres is such a core service, I am reluctant to fiddle.
      What would be the recommended steps to solve this ?

      EDIT : I did try to start piostgres via command line :

      root@Ubuntu-2004-focal-64-minimal ~ # sudo service postgresql start
      Failed to start postgresql.service: Unit postgresql.service not found.
      
      nebulonN 1 Reply Last reply
      1
      • timconsidineT timconsidine

        @girish so it has happened again
        Not aware of any cause - no intervention or fiddling done.
        I just rebooted the box when prompted in the dashboard
        Although I suspect it was failing before this
        postgres service does not start
        Cloudron dashboard for services shows orange dot
        Logs show :

        Nov 20 09:15:35 Resetting root password
        Nov 20 09:15:57 Detected existing installation
        Nov 20 09:15:59 Debug mode. Sleeping
        Nov 20 09:16:16 Debug mode. Sleeping
        Nov 20 09:16:54 Debug mode. Sleeping
        Nov 20 09:19:24 Debug mode. Sleeping
        Nov 20 09:28:39 Debug mode. Sleeping
        Nov 20 09:30:36 Debug mode. Sleeping
        

        Tried rebooting the box
        As postgres is such a core service, I am reluctant to fiddle.
        What would be the recommended steps to solve this ?

        EDIT : I did try to start piostgres via command line :

        root@Ubuntu-2004-focal-64-minimal ~ # sudo service postgresql start
        Failed to start postgresql.service: Unit postgresql.service not found.
        
        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #7

        @timconsidine from the logs, do you have recovery mode simply enabled for your postgres service? Click on the edit icon for postgres in the services view in your Cloudron dashboard to see that checkbox.

        timconsidineT 1 Reply Last reply
        0
        • nebulonN nebulon

          @timconsidine from the logs, do you have recovery mode simply enabled for your postgres service? Click on the edit icon for postgres in the services view in your Cloudron dashboard to see that checkbox.

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by timconsidine
          #8

          @nebulon I tried increasing the memory (no change)
          I tried toggling the enable recovery but also no change
          EDIT : recovery mode currently unticked, does not start

          girishG 1 Reply Last reply
          0
          • timconsidineT timconsidine

            @nebulon I tried increasing the memory (no change)
            I tried toggling the enable recovery but also no change
            EDIT : recovery mode currently unticked, does not start

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #9

            @timconsidine said in Docker and Postgres refuse to start:

            EDIT : recovery mode currently unticked, does not start

            Do you see the same logs as before? Debug mode. Sleeping is printed when the service is in recovery mode.

            timconsidineT 2 Replies Last reply
            0
            • girishG girish

              @timconsidine said in Docker and Postgres refuse to start:

              EDIT : recovery mode currently unticked, does not start

              Do you see the same logs as before? Debug mode. Sleeping is printed when the service is in recovery mode.

              timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #10

              @girish ah thanks
              Now I just have the first 2 lines (resetting root password / existing instal).

              1 Reply Last reply
              0
              • girishG girish

                @timconsidine said in Docker and Postgres refuse to start:

                EDIT : recovery mode currently unticked, does not start

                Do you see the same logs as before? Debug mode. Sleeping is printed when the service is in recovery mode.

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #11

                @girish interestingly (for me!) there is no postgres service file

                root@Ubuntu-2004-focal-64-minimal ~ # systemctl status postgresql
                Unit postgresql.service could not be found.
                

                Is this normal ? Or the cause of the issue ?

                girishG 1 Reply Last reply
                0
                • timconsidineT timconsidine

                  @girish interestingly (for me!) there is no postgres service file

                  root@Ubuntu-2004-focal-64-minimal ~ # systemctl status postgresql
                  Unit postgresql.service could not be found.
                  

                  Is this normal ? Or the cause of the issue ?

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #12

                  @timconsidine postgresql is in a docker container. docker inspect postgresql for example should work. I am not sure why it's stuck, can you drop a note to support@cloudron.io ?

                  timconsidineT 1 Reply Last reply
                  0
                  • girishG girish

                    @timconsidine postgresql is in a docker container. docker inspect postgresql for example should work. I am not sure why it's stuck, can you drop a note to support@cloudron.io ?

                    timconsidineT Offline
                    timconsidineT Offline
                    timconsidine
                    App Dev
                    wrote on last edited by
                    #13

                    @girish ah good to know ref docker
                    will contact support@

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

                      The issue was that pg_ctl has a default timeout of 60 seconds. On your server, it's taking a bit more than 60 seconds to start. So, I have bumped this value up and it's running now.

                      timconsidineT 1 Reply Last reply
                      2
                      • girishG girish

                        The issue was that pg_ctl has a default timeout of 60 seconds. On your server, it's taking a bit more than 60 seconds to start. So, I have bumped this value up and it's running now.

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by
                        #15

                        @girish many thanks !

                        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