Postgresql server doesn't start











up vote
8
down vote

favorite
2












[Ubuntu 16.04]
I installed postgresql 9.5 along with dependencies:



sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev


When I want to run psql then I get:



psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


But /var/run/postgresql/ is empty. When I restart posgresql everything appears to be fine:



$ /etc/init.d/postgresql restart
[ ok ] Restarting postgresql (via systemctl): postgresql.service.

$ /etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since wto 2016-09-27 16:18:26 CEST; 1min 15s ago
Process: 3076 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
Process: 3523 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3523 (code=exited, status=0/SUCCESS)


but if check ps aux there is not such PID (why??)



Total reinstalation doesn't help at all. How can I fix it?










share|improve this question






















  • What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
    – ubfan1
    Sep 27 '16 at 15:23










  • this file is empty
    – mike927
    Sep 27 '16 at 15:50















up vote
8
down vote

favorite
2












[Ubuntu 16.04]
I installed postgresql 9.5 along with dependencies:



sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev


When I want to run psql then I get:



psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


But /var/run/postgresql/ is empty. When I restart posgresql everything appears to be fine:



$ /etc/init.d/postgresql restart
[ ok ] Restarting postgresql (via systemctl): postgresql.service.

$ /etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since wto 2016-09-27 16:18:26 CEST; 1min 15s ago
Process: 3076 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
Process: 3523 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3523 (code=exited, status=0/SUCCESS)


but if check ps aux there is not such PID (why??)



Total reinstalation doesn't help at all. How can I fix it?










share|improve this question






















  • What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
    – ubfan1
    Sep 27 '16 at 15:23










  • this file is empty
    – mike927
    Sep 27 '16 at 15:50













up vote
8
down vote

favorite
2









up vote
8
down vote

favorite
2






2





[Ubuntu 16.04]
I installed postgresql 9.5 along with dependencies:



sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev


When I want to run psql then I get:



psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


But /var/run/postgresql/ is empty. When I restart posgresql everything appears to be fine:



$ /etc/init.d/postgresql restart
[ ok ] Restarting postgresql (via systemctl): postgresql.service.

$ /etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since wto 2016-09-27 16:18:26 CEST; 1min 15s ago
Process: 3076 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
Process: 3523 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3523 (code=exited, status=0/SUCCESS)


but if check ps aux there is not such PID (why??)



Total reinstalation doesn't help at all. How can I fix it?










share|improve this question













[Ubuntu 16.04]
I installed postgresql 9.5 along with dependencies:



sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev


When I want to run psql then I get:



psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


But /var/run/postgresql/ is empty. When I restart posgresql everything appears to be fine:



$ /etc/init.d/postgresql restart
[ ok ] Restarting postgresql (via systemctl): postgresql.service.

$ /etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since wto 2016-09-27 16:18:26 CEST; 1min 15s ago
Process: 3076 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
Process: 3523 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3523 (code=exited, status=0/SUCCESS)


but if check ps aux there is not such PID (why??)



Total reinstalation doesn't help at all. How can I fix it?







postgresql






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 27 '16 at 14:28









mike927

148114




148114












  • What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
    – ubfan1
    Sep 27 '16 at 15:23










  • this file is empty
    – mike927
    Sep 27 '16 at 15:50


















  • What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
    – ubfan1
    Sep 27 '16 at 15:23










  • this file is empty
    – mike927
    Sep 27 '16 at 15:50
















What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
– ubfan1
Sep 27 '16 at 15:23




What does the /var/log/posgtresql/postgresql-9.5-main.log file show?
– ubfan1
Sep 27 '16 at 15:23












this file is empty
– mike927
Sep 27 '16 at 15:50




this file is empty
– mike927
Sep 27 '16 at 15:50










9 Answers
9






active

oldest

votes

















up vote
10
down vote













This is an idiosyncrasy of the systemd integration of PostgreSQL in Xenial.



The postgresql service unit installed by the postgresql-common package is just a dummy service which causes the actual service postgresql@9.6-main to be started via a dependency. You can see that dependency by running the command



systemctl list-dependencies postgresql


That dependency is not permanent, but generated during system boot by the systemd generator /lib/systemd/system-generators/postgresql-generator which also comes with the postgresql-common package. The generator checks whether the startup mode in the file /etc/postgresql/9.6/main/start.conf is set to auto, and if so, sets up the dependency that subsequently causes instance 9.6-main to be started.



(More precisely, it checks all configuration subdirectories /etc/postgresql/*/* and will create dependencies for all instances that are configured for automatic startup, but in a default installation there will be just the one instance.)



Due to the limitations of systemd generators (see man systemd.generator) this process may fail, causing the dependencies to be absent after a reboot.
Systemd will then start only the dummy service, writing



systemd[1]: Starting PostgreSQL RDBMS...
systemd[1]: Started PostgreSQL RDBMS.


to the log but otherwise doing nothing.
Attempting to start the service manually by



systemctl start postgresql


will just reproduce that result.
Running the command



systemctl daemon-reload


manually as root will re-run the generator and in most cases fix the problem until the next reboot.



To solve the problem permanently you'll have to find the reason why the generator fails during boot. Possible causes can be found in the systemd.generator manpage. In my case it was the PostgreSQL config file /etc/postgresql/9.6/main/postgresql.conf which was symlinked to a different filesystem that wasn't available yet when the generator ran early during boot. postgresql-generator checks the existence of that file even though it doesn't otherwise need it.






share|improve this answer























  • Feel free to edit your answer when you manage to solve the issue :)
    – storm
    Mar 30 '17 at 16:16


















up vote
6
down vote













Extending on the answer of Tilman, but not enough Kudos to comment...



If you do not need the service to be called postgresql and do not care about the wrapper dummy service, it should work to just to control the real service directly. It's name is : postgresql@$version-$cluster.service In your case it should be postgresql-9.5-main in short. Like to start



systemctl start postgresql@9.5-main


and to stop:



systemctl stop postgresql@9.5-main


Status will also give you much better and accurate information than on the auto generated wrapper service.



systemctl status postgresql@9.5-main


For 9.6 it looks like this:



● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-09-13 00:41:50 CEST; 7h ago
Process: 10235 ExecStop=/usr/bin/pg_ctlcluster --skip-systemctl-redirect -m fast %i stop (code=exited, status=2)
Process: 10676 ExecStart=postgresql@%i --skip-systemctl-redirect %i start (code=exited, status=0/SUCCESS)
Main PID: 10683 (postgres)
CGroup: /system.slice/system-postgresql.slice/postgresql@9.6-main.service
├─10683 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
├─10685 postgres: 9.6/main: checkpointer process
├─10686 postgres: 9.6/main: writer process
├─10748 postgres: 9.6/main: wal writer process
├─10749 postgres: 9.6/main: autovacuum launcher process
├─10750 postgres: 9.6/main: archiver process last was 000000020000000000000082
├─10751 postgres: 9.6/main: stats collector process





share|improve this answer




























    up vote
    4
    down vote













    In my case this was related to incorrectly configured locales.



    I've found the solution in this dba.stackexchange.com answer:




    1. Use sudo dpkg-reconfigure locales to generate the necessary locales

    2. Drop the existing database cluster via sudo pg_dropcluster 9.5 main (this will erase all the data in the cluster!)

    3. Re-create the cluster via sudo pg_createcluster 9.5 main --start

    4. Restart PostgreSQL via sudo service postgresql restart






    share|improve this answer






























      up vote
      1
      down vote













      it would better to use systemd startup scripts with ubuntu 16.04 , init scripts might not work properly these days. Postgres 9.5 is already in the ubuntu repos so try that instead , it should have systemd startup.






      share|improve this answer





















      • using standard ubuntu repo I get the same result
        – mike927
        Sep 28 '16 at 8:02










      • thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
        – Amias
        Sep 28 '16 at 9:54










      • when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
        – mike927
        Sep 28 '16 at 13:17










      • Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
        – Tilman
        Jul 24 at 16:03


















      up vote
      1
      down vote













      Another "got bitten by this".



      The pg_upgradecluster actually left the target version (9.6) in "manual" mode on port 5433 and source version (9.5) at port 5432.



      Even after pg_dropcluster 9.5. Editing the start.conf file didn't help, but the hint was to use systemctl daemon-reload, since the generator decides based on this configuration file whether to symlink the service file:



      for conf in /etc/postgresql/*/*/postgresql.conf; do
      # trimmed for brevity
      [ "$start" = "auto" ] || continue
      ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
      done


      So if the cluster you want started does not have the word "auto" in start.conf, you need to do a system-reload (or reboot) to have it enabled at boot time.



      Still have to verify this with a reboot, but given the above pretty confident that was the issue.






      share|improve this answer




























        up vote
        1
        down vote













        I disabled the magic "super service" like this:



        root@server# systemctl disable postgresql


        Then I activated the concrete service:



        root@server:~# systemctl enable postgresql@9.5-main.service 


        After rebooting everything worked again.






        share|improve this answer




























          up vote
          0
          down vote













          Had the same error, wasted hours, simple solution. Check this SO question and my answer, Which is:



          sudo service postgresql restart





          share|improve this answer




























            up vote
            0
            down vote













            I had this problem due to a different reason: directory permissions. I had a full-sweep chmod like this:



            chmod -R 644 /etc/postgresql/10/main


            This sets the directory as non-executable, which prevents postgres from reading it.






            share|improve this answer




























              up vote
              0
              down vote













              I had this same problem upon checking found issue with ssl-cert-snakeoil.key permission .



              Set Ownership



              chown root:ssl-cert ssl-cert-snakeoil.key
              chmod 640 ssl-cert-snakeoil.key



              and did a clean restart .






              share|improve this answer








              New contributor




              Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.


















                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f830346%2fpostgresql-server-doesnt-start%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                9 Answers
                9






                active

                oldest

                votes








                9 Answers
                9






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                10
                down vote













                This is an idiosyncrasy of the systemd integration of PostgreSQL in Xenial.



                The postgresql service unit installed by the postgresql-common package is just a dummy service which causes the actual service postgresql@9.6-main to be started via a dependency. You can see that dependency by running the command



                systemctl list-dependencies postgresql


                That dependency is not permanent, but generated during system boot by the systemd generator /lib/systemd/system-generators/postgresql-generator which also comes with the postgresql-common package. The generator checks whether the startup mode in the file /etc/postgresql/9.6/main/start.conf is set to auto, and if so, sets up the dependency that subsequently causes instance 9.6-main to be started.



                (More precisely, it checks all configuration subdirectories /etc/postgresql/*/* and will create dependencies for all instances that are configured for automatic startup, but in a default installation there will be just the one instance.)



                Due to the limitations of systemd generators (see man systemd.generator) this process may fail, causing the dependencies to be absent after a reboot.
                Systemd will then start only the dummy service, writing



                systemd[1]: Starting PostgreSQL RDBMS...
                systemd[1]: Started PostgreSQL RDBMS.


                to the log but otherwise doing nothing.
                Attempting to start the service manually by



                systemctl start postgresql


                will just reproduce that result.
                Running the command



                systemctl daemon-reload


                manually as root will re-run the generator and in most cases fix the problem until the next reboot.



                To solve the problem permanently you'll have to find the reason why the generator fails during boot. Possible causes can be found in the systemd.generator manpage. In my case it was the PostgreSQL config file /etc/postgresql/9.6/main/postgresql.conf which was symlinked to a different filesystem that wasn't available yet when the generator ran early during boot. postgresql-generator checks the existence of that file even though it doesn't otherwise need it.






                share|improve this answer























                • Feel free to edit your answer when you manage to solve the issue :)
                  – storm
                  Mar 30 '17 at 16:16















                up vote
                10
                down vote













                This is an idiosyncrasy of the systemd integration of PostgreSQL in Xenial.



                The postgresql service unit installed by the postgresql-common package is just a dummy service which causes the actual service postgresql@9.6-main to be started via a dependency. You can see that dependency by running the command



                systemctl list-dependencies postgresql


                That dependency is not permanent, but generated during system boot by the systemd generator /lib/systemd/system-generators/postgresql-generator which also comes with the postgresql-common package. The generator checks whether the startup mode in the file /etc/postgresql/9.6/main/start.conf is set to auto, and if so, sets up the dependency that subsequently causes instance 9.6-main to be started.



                (More precisely, it checks all configuration subdirectories /etc/postgresql/*/* and will create dependencies for all instances that are configured for automatic startup, but in a default installation there will be just the one instance.)



                Due to the limitations of systemd generators (see man systemd.generator) this process may fail, causing the dependencies to be absent after a reboot.
                Systemd will then start only the dummy service, writing



                systemd[1]: Starting PostgreSQL RDBMS...
                systemd[1]: Started PostgreSQL RDBMS.


                to the log but otherwise doing nothing.
                Attempting to start the service manually by



                systemctl start postgresql


                will just reproduce that result.
                Running the command



                systemctl daemon-reload


                manually as root will re-run the generator and in most cases fix the problem until the next reboot.



                To solve the problem permanently you'll have to find the reason why the generator fails during boot. Possible causes can be found in the systemd.generator manpage. In my case it was the PostgreSQL config file /etc/postgresql/9.6/main/postgresql.conf which was symlinked to a different filesystem that wasn't available yet when the generator ran early during boot. postgresql-generator checks the existence of that file even though it doesn't otherwise need it.






                share|improve this answer























                • Feel free to edit your answer when you manage to solve the issue :)
                  – storm
                  Mar 30 '17 at 16:16













                up vote
                10
                down vote










                up vote
                10
                down vote









                This is an idiosyncrasy of the systemd integration of PostgreSQL in Xenial.



                The postgresql service unit installed by the postgresql-common package is just a dummy service which causes the actual service postgresql@9.6-main to be started via a dependency. You can see that dependency by running the command



                systemctl list-dependencies postgresql


                That dependency is not permanent, but generated during system boot by the systemd generator /lib/systemd/system-generators/postgresql-generator which also comes with the postgresql-common package. The generator checks whether the startup mode in the file /etc/postgresql/9.6/main/start.conf is set to auto, and if so, sets up the dependency that subsequently causes instance 9.6-main to be started.



                (More precisely, it checks all configuration subdirectories /etc/postgresql/*/* and will create dependencies for all instances that are configured for automatic startup, but in a default installation there will be just the one instance.)



                Due to the limitations of systemd generators (see man systemd.generator) this process may fail, causing the dependencies to be absent after a reboot.
                Systemd will then start only the dummy service, writing



                systemd[1]: Starting PostgreSQL RDBMS...
                systemd[1]: Started PostgreSQL RDBMS.


                to the log but otherwise doing nothing.
                Attempting to start the service manually by



                systemctl start postgresql


                will just reproduce that result.
                Running the command



                systemctl daemon-reload


                manually as root will re-run the generator and in most cases fix the problem until the next reboot.



                To solve the problem permanently you'll have to find the reason why the generator fails during boot. Possible causes can be found in the systemd.generator manpage. In my case it was the PostgreSQL config file /etc/postgresql/9.6/main/postgresql.conf which was symlinked to a different filesystem that wasn't available yet when the generator ran early during boot. postgresql-generator checks the existence of that file even though it doesn't otherwise need it.






                share|improve this answer














                This is an idiosyncrasy of the systemd integration of PostgreSQL in Xenial.



                The postgresql service unit installed by the postgresql-common package is just a dummy service which causes the actual service postgresql@9.6-main to be started via a dependency. You can see that dependency by running the command



                systemctl list-dependencies postgresql


                That dependency is not permanent, but generated during system boot by the systemd generator /lib/systemd/system-generators/postgresql-generator which also comes with the postgresql-common package. The generator checks whether the startup mode in the file /etc/postgresql/9.6/main/start.conf is set to auto, and if so, sets up the dependency that subsequently causes instance 9.6-main to be started.



                (More precisely, it checks all configuration subdirectories /etc/postgresql/*/* and will create dependencies for all instances that are configured for automatic startup, but in a default installation there will be just the one instance.)



                Due to the limitations of systemd generators (see man systemd.generator) this process may fail, causing the dependencies to be absent after a reboot.
                Systemd will then start only the dummy service, writing



                systemd[1]: Starting PostgreSQL RDBMS...
                systemd[1]: Started PostgreSQL RDBMS.


                to the log but otherwise doing nothing.
                Attempting to start the service manually by



                systemctl start postgresql


                will just reproduce that result.
                Running the command



                systemctl daemon-reload


                manually as root will re-run the generator and in most cases fix the problem until the next reboot.



                To solve the problem permanently you'll have to find the reason why the generator fails during boot. Possible causes can be found in the systemd.generator manpage. In my case it was the PostgreSQL config file /etc/postgresql/9.6/main/postgresql.conf which was symlinked to a different filesystem that wasn't available yet when the generator ran early during boot. postgresql-generator checks the existence of that file even though it doesn't otherwise need it.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 5 '17 at 15:18

























                answered Mar 30 '17 at 16:14









                Tilman

                43939




                43939












                • Feel free to edit your answer when you manage to solve the issue :)
                  – storm
                  Mar 30 '17 at 16:16


















                • Feel free to edit your answer when you manage to solve the issue :)
                  – storm
                  Mar 30 '17 at 16:16
















                Feel free to edit your answer when you manage to solve the issue :)
                – storm
                Mar 30 '17 at 16:16




                Feel free to edit your answer when you manage to solve the issue :)
                – storm
                Mar 30 '17 at 16:16












                up vote
                6
                down vote













                Extending on the answer of Tilman, but not enough Kudos to comment...



                If you do not need the service to be called postgresql and do not care about the wrapper dummy service, it should work to just to control the real service directly. It's name is : postgresql@$version-$cluster.service In your case it should be postgresql-9.5-main in short. Like to start



                systemctl start postgresql@9.5-main


                and to stop:



                systemctl stop postgresql@9.5-main


                Status will also give you much better and accurate information than on the auto generated wrapper service.



                systemctl status postgresql@9.5-main


                For 9.6 it looks like this:



                ● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
                Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
                Active: active (running) since Wed 2017-09-13 00:41:50 CEST; 7h ago
                Process: 10235 ExecStop=/usr/bin/pg_ctlcluster --skip-systemctl-redirect -m fast %i stop (code=exited, status=2)
                Process: 10676 ExecStart=postgresql@%i --skip-systemctl-redirect %i start (code=exited, status=0/SUCCESS)
                Main PID: 10683 (postgres)
                CGroup: /system.slice/system-postgresql.slice/postgresql@9.6-main.service
                ├─10683 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
                ├─10685 postgres: 9.6/main: checkpointer process
                ├─10686 postgres: 9.6/main: writer process
                ├─10748 postgres: 9.6/main: wal writer process
                ├─10749 postgres: 9.6/main: autovacuum launcher process
                ├─10750 postgres: 9.6/main: archiver process last was 000000020000000000000082
                ├─10751 postgres: 9.6/main: stats collector process





                share|improve this answer

























                  up vote
                  6
                  down vote













                  Extending on the answer of Tilman, but not enough Kudos to comment...



                  If you do not need the service to be called postgresql and do not care about the wrapper dummy service, it should work to just to control the real service directly. It's name is : postgresql@$version-$cluster.service In your case it should be postgresql-9.5-main in short. Like to start



                  systemctl start postgresql@9.5-main


                  and to stop:



                  systemctl stop postgresql@9.5-main


                  Status will also give you much better and accurate information than on the auto generated wrapper service.



                  systemctl status postgresql@9.5-main


                  For 9.6 it looks like this:



                  ● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
                  Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
                  Active: active (running) since Wed 2017-09-13 00:41:50 CEST; 7h ago
                  Process: 10235 ExecStop=/usr/bin/pg_ctlcluster --skip-systemctl-redirect -m fast %i stop (code=exited, status=2)
                  Process: 10676 ExecStart=postgresql@%i --skip-systemctl-redirect %i start (code=exited, status=0/SUCCESS)
                  Main PID: 10683 (postgres)
                  CGroup: /system.slice/system-postgresql.slice/postgresql@9.6-main.service
                  ├─10683 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
                  ├─10685 postgres: 9.6/main: checkpointer process
                  ├─10686 postgres: 9.6/main: writer process
                  ├─10748 postgres: 9.6/main: wal writer process
                  ├─10749 postgres: 9.6/main: autovacuum launcher process
                  ├─10750 postgres: 9.6/main: archiver process last was 000000020000000000000082
                  ├─10751 postgres: 9.6/main: stats collector process





                  share|improve this answer























                    up vote
                    6
                    down vote










                    up vote
                    6
                    down vote









                    Extending on the answer of Tilman, but not enough Kudos to comment...



                    If you do not need the service to be called postgresql and do not care about the wrapper dummy service, it should work to just to control the real service directly. It's name is : postgresql@$version-$cluster.service In your case it should be postgresql-9.5-main in short. Like to start



                    systemctl start postgresql@9.5-main


                    and to stop:



                    systemctl stop postgresql@9.5-main


                    Status will also give you much better and accurate information than on the auto generated wrapper service.



                    systemctl status postgresql@9.5-main


                    For 9.6 it looks like this:



                    ● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
                    Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
                    Active: active (running) since Wed 2017-09-13 00:41:50 CEST; 7h ago
                    Process: 10235 ExecStop=/usr/bin/pg_ctlcluster --skip-systemctl-redirect -m fast %i stop (code=exited, status=2)
                    Process: 10676 ExecStart=postgresql@%i --skip-systemctl-redirect %i start (code=exited, status=0/SUCCESS)
                    Main PID: 10683 (postgres)
                    CGroup: /system.slice/system-postgresql.slice/postgresql@9.6-main.service
                    ├─10683 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
                    ├─10685 postgres: 9.6/main: checkpointer process
                    ├─10686 postgres: 9.6/main: writer process
                    ├─10748 postgres: 9.6/main: wal writer process
                    ├─10749 postgres: 9.6/main: autovacuum launcher process
                    ├─10750 postgres: 9.6/main: archiver process last was 000000020000000000000082
                    ├─10751 postgres: 9.6/main: stats collector process





                    share|improve this answer












                    Extending on the answer of Tilman, but not enough Kudos to comment...



                    If you do not need the service to be called postgresql and do not care about the wrapper dummy service, it should work to just to control the real service directly. It's name is : postgresql@$version-$cluster.service In your case it should be postgresql-9.5-main in short. Like to start



                    systemctl start postgresql@9.5-main


                    and to stop:



                    systemctl stop postgresql@9.5-main


                    Status will also give you much better and accurate information than on the auto generated wrapper service.



                    systemctl status postgresql@9.5-main


                    For 9.6 it looks like this:



                    ● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
                    Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
                    Active: active (running) since Wed 2017-09-13 00:41:50 CEST; 7h ago
                    Process: 10235 ExecStop=/usr/bin/pg_ctlcluster --skip-systemctl-redirect -m fast %i stop (code=exited, status=2)
                    Process: 10676 ExecStart=postgresql@%i --skip-systemctl-redirect %i start (code=exited, status=0/SUCCESS)
                    Main PID: 10683 (postgres)
                    CGroup: /system.slice/system-postgresql.slice/postgresql@9.6-main.service
                    ├─10683 /usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
                    ├─10685 postgres: 9.6/main: checkpointer process
                    ├─10686 postgres: 9.6/main: writer process
                    ├─10748 postgres: 9.6/main: wal writer process
                    ├─10749 postgres: 9.6/main: autovacuum launcher process
                    ├─10750 postgres: 9.6/main: archiver process last was 000000020000000000000082
                    ├─10751 postgres: 9.6/main: stats collector process






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 13 '17 at 6:36









                    Alex K.

                    6111




                    6111






















                        up vote
                        4
                        down vote













                        In my case this was related to incorrectly configured locales.



                        I've found the solution in this dba.stackexchange.com answer:




                        1. Use sudo dpkg-reconfigure locales to generate the necessary locales

                        2. Drop the existing database cluster via sudo pg_dropcluster 9.5 main (this will erase all the data in the cluster!)

                        3. Re-create the cluster via sudo pg_createcluster 9.5 main --start

                        4. Restart PostgreSQL via sudo service postgresql restart






                        share|improve this answer



























                          up vote
                          4
                          down vote













                          In my case this was related to incorrectly configured locales.



                          I've found the solution in this dba.stackexchange.com answer:




                          1. Use sudo dpkg-reconfigure locales to generate the necessary locales

                          2. Drop the existing database cluster via sudo pg_dropcluster 9.5 main (this will erase all the data in the cluster!)

                          3. Re-create the cluster via sudo pg_createcluster 9.5 main --start

                          4. Restart PostgreSQL via sudo service postgresql restart






                          share|improve this answer

























                            up vote
                            4
                            down vote










                            up vote
                            4
                            down vote









                            In my case this was related to incorrectly configured locales.



                            I've found the solution in this dba.stackexchange.com answer:




                            1. Use sudo dpkg-reconfigure locales to generate the necessary locales

                            2. Drop the existing database cluster via sudo pg_dropcluster 9.5 main (this will erase all the data in the cluster!)

                            3. Re-create the cluster via sudo pg_createcluster 9.5 main --start

                            4. Restart PostgreSQL via sudo service postgresql restart






                            share|improve this answer














                            In my case this was related to incorrectly configured locales.



                            I've found the solution in this dba.stackexchange.com answer:




                            1. Use sudo dpkg-reconfigure locales to generate the necessary locales

                            2. Drop the existing database cluster via sudo pg_dropcluster 9.5 main (this will erase all the data in the cluster!)

                            3. Re-create the cluster via sudo pg_createcluster 9.5 main --start

                            4. Restart PostgreSQL via sudo service postgresql restart







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Apr 13 '17 at 12:43









                            Community

                            1




                            1










                            answered Dec 2 '16 at 11:20









                            Florian Brucker

                            197311




                            197311






















                                up vote
                                1
                                down vote













                                it would better to use systemd startup scripts with ubuntu 16.04 , init scripts might not work properly these days. Postgres 9.5 is already in the ubuntu repos so try that instead , it should have systemd startup.






                                share|improve this answer





















                                • using standard ubuntu repo I get the same result
                                  – mike927
                                  Sep 28 '16 at 8:02










                                • thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                  – Amias
                                  Sep 28 '16 at 9:54










                                • when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                  – mike927
                                  Sep 28 '16 at 13:17










                                • Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                  – Tilman
                                  Jul 24 at 16:03















                                up vote
                                1
                                down vote













                                it would better to use systemd startup scripts with ubuntu 16.04 , init scripts might not work properly these days. Postgres 9.5 is already in the ubuntu repos so try that instead , it should have systemd startup.






                                share|improve this answer





















                                • using standard ubuntu repo I get the same result
                                  – mike927
                                  Sep 28 '16 at 8:02










                                • thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                  – Amias
                                  Sep 28 '16 at 9:54










                                • when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                  – mike927
                                  Sep 28 '16 at 13:17










                                • Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                  – Tilman
                                  Jul 24 at 16:03













                                up vote
                                1
                                down vote










                                up vote
                                1
                                down vote









                                it would better to use systemd startup scripts with ubuntu 16.04 , init scripts might not work properly these days. Postgres 9.5 is already in the ubuntu repos so try that instead , it should have systemd startup.






                                share|improve this answer












                                it would better to use systemd startup scripts with ubuntu 16.04 , init scripts might not work properly these days. Postgres 9.5 is already in the ubuntu repos so try that instead , it should have systemd startup.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Sep 27 '16 at 15:43









                                Amias

                                4,0901228




                                4,0901228












                                • using standard ubuntu repo I get the same result
                                  – mike927
                                  Sep 28 '16 at 8:02










                                • thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                  – Amias
                                  Sep 28 '16 at 9:54










                                • when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                  – mike927
                                  Sep 28 '16 at 13:17










                                • Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                  – Tilman
                                  Jul 24 at 16:03


















                                • using standard ubuntu repo I get the same result
                                  – mike927
                                  Sep 28 '16 at 8:02










                                • thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                  – Amias
                                  Sep 28 '16 at 9:54










                                • when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                  – mike927
                                  Sep 28 '16 at 13:17










                                • Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                  – Tilman
                                  Jul 24 at 16:03
















                                using standard ubuntu repo I get the same result
                                – mike927
                                Sep 28 '16 at 8:02




                                using standard ubuntu repo I get the same result
                                – mike927
                                Sep 28 '16 at 8:02












                                thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                – Amias
                                Sep 28 '16 at 9:54




                                thats a shame , looks like the postgres folks have not got the hang of systemd yet. You should probably raise a bug against the postgres package or ask on their mailing list about systemd support. I don't use postgres much but some open source projects have taken a stance against systemd or maybe tangled in internal debates about supporting it.
                                – Amias
                                Sep 28 '16 at 9:54












                                when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                – mike927
                                Sep 28 '16 at 13:17




                                when I run systemctl it returns "postgresql@9.5-main.service loaded failed failed PostgreSQL Cluster 9.5-main". Why is it failed?
                                – mike927
                                Sep 28 '16 at 13:17












                                Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                – Tilman
                                Jul 24 at 16:03




                                Well in this case it's the systemd startup scripts which do not work properly so the advice is not exactly helpful.
                                – Tilman
                                Jul 24 at 16:03










                                up vote
                                1
                                down vote













                                Another "got bitten by this".



                                The pg_upgradecluster actually left the target version (9.6) in "manual" mode on port 5433 and source version (9.5) at port 5432.



                                Even after pg_dropcluster 9.5. Editing the start.conf file didn't help, but the hint was to use systemctl daemon-reload, since the generator decides based on this configuration file whether to symlink the service file:



                                for conf in /etc/postgresql/*/*/postgresql.conf; do
                                # trimmed for brevity
                                [ "$start" = "auto" ] || continue
                                ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
                                done


                                So if the cluster you want started does not have the word "auto" in start.conf, you need to do a system-reload (or reboot) to have it enabled at boot time.



                                Still have to verify this with a reboot, but given the above pretty confident that was the issue.






                                share|improve this answer

























                                  up vote
                                  1
                                  down vote













                                  Another "got bitten by this".



                                  The pg_upgradecluster actually left the target version (9.6) in "manual" mode on port 5433 and source version (9.5) at port 5432.



                                  Even after pg_dropcluster 9.5. Editing the start.conf file didn't help, but the hint was to use systemctl daemon-reload, since the generator decides based on this configuration file whether to symlink the service file:



                                  for conf in /etc/postgresql/*/*/postgresql.conf; do
                                  # trimmed for brevity
                                  [ "$start" = "auto" ] || continue
                                  ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
                                  done


                                  So if the cluster you want started does not have the word "auto" in start.conf, you need to do a system-reload (or reboot) to have it enabled at boot time.



                                  Still have to verify this with a reboot, but given the above pretty confident that was the issue.






                                  share|improve this answer























                                    up vote
                                    1
                                    down vote










                                    up vote
                                    1
                                    down vote









                                    Another "got bitten by this".



                                    The pg_upgradecluster actually left the target version (9.6) in "manual" mode on port 5433 and source version (9.5) at port 5432.



                                    Even after pg_dropcluster 9.5. Editing the start.conf file didn't help, but the hint was to use systemctl daemon-reload, since the generator decides based on this configuration file whether to symlink the service file:



                                    for conf in /etc/postgresql/*/*/postgresql.conf; do
                                    # trimmed for brevity
                                    [ "$start" = "auto" ] || continue
                                    ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
                                    done


                                    So if the cluster you want started does not have the word "auto" in start.conf, you need to do a system-reload (or reboot) to have it enabled at boot time.



                                    Still have to verify this with a reboot, but given the above pretty confident that was the issue.






                                    share|improve this answer












                                    Another "got bitten by this".



                                    The pg_upgradecluster actually left the target version (9.6) in "manual" mode on port 5433 and source version (9.5) at port 5432.



                                    Even after pg_dropcluster 9.5. Editing the start.conf file didn't help, but the hint was to use systemctl daemon-reload, since the generator decides based on this configuration file whether to symlink the service file:



                                    for conf in /etc/postgresql/*/*/postgresql.conf; do
                                    # trimmed for brevity
                                    [ "$start" = "auto" ] || continue
                                    ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
                                    done


                                    So if the cluster you want started does not have the word "auto" in start.conf, you need to do a system-reload (or reboot) to have it enabled at boot time.



                                    Still have to verify this with a reboot, but given the above pretty confident that was the issue.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Aug 14 '17 at 17:15









                                    Melvyn Sopacua

                                    112




                                    112






















                                        up vote
                                        1
                                        down vote













                                        I disabled the magic "super service" like this:



                                        root@server# systemctl disable postgresql


                                        Then I activated the concrete service:



                                        root@server:~# systemctl enable postgresql@9.5-main.service 


                                        After rebooting everything worked again.






                                        share|improve this answer

























                                          up vote
                                          1
                                          down vote













                                          I disabled the magic "super service" like this:



                                          root@server# systemctl disable postgresql


                                          Then I activated the concrete service:



                                          root@server:~# systemctl enable postgresql@9.5-main.service 


                                          After rebooting everything worked again.






                                          share|improve this answer























                                            up vote
                                            1
                                            down vote










                                            up vote
                                            1
                                            down vote









                                            I disabled the magic "super service" like this:



                                            root@server# systemctl disable postgresql


                                            Then I activated the concrete service:



                                            root@server:~# systemctl enable postgresql@9.5-main.service 


                                            After rebooting everything worked again.






                                            share|improve this answer












                                            I disabled the magic "super service" like this:



                                            root@server# systemctl disable postgresql


                                            Then I activated the concrete service:



                                            root@server:~# systemctl enable postgresql@9.5-main.service 


                                            After rebooting everything worked again.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Oct 14 '17 at 19:03









                                            guettli

                                            60942063




                                            60942063






















                                                up vote
                                                0
                                                down vote













                                                Had the same error, wasted hours, simple solution. Check this SO question and my answer, Which is:



                                                sudo service postgresql restart





                                                share|improve this answer

























                                                  up vote
                                                  0
                                                  down vote













                                                  Had the same error, wasted hours, simple solution. Check this SO question and my answer, Which is:



                                                  sudo service postgresql restart





                                                  share|improve this answer























                                                    up vote
                                                    0
                                                    down vote










                                                    up vote
                                                    0
                                                    down vote









                                                    Had the same error, wasted hours, simple solution. Check this SO question and my answer, Which is:



                                                    sudo service postgresql restart





                                                    share|improve this answer












                                                    Had the same error, wasted hours, simple solution. Check this SO question and my answer, Which is:



                                                    sudo service postgresql restart






                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Feb 4 at 17:59









                                                    ToTenMilan

                                                    12




                                                    12






















                                                        up vote
                                                        0
                                                        down vote













                                                        I had this problem due to a different reason: directory permissions. I had a full-sweep chmod like this:



                                                        chmod -R 644 /etc/postgresql/10/main


                                                        This sets the directory as non-executable, which prevents postgres from reading it.






                                                        share|improve this answer

























                                                          up vote
                                                          0
                                                          down vote













                                                          I had this problem due to a different reason: directory permissions. I had a full-sweep chmod like this:



                                                          chmod -R 644 /etc/postgresql/10/main


                                                          This sets the directory as non-executable, which prevents postgres from reading it.






                                                          share|improve this answer























                                                            up vote
                                                            0
                                                            down vote










                                                            up vote
                                                            0
                                                            down vote









                                                            I had this problem due to a different reason: directory permissions. I had a full-sweep chmod like this:



                                                            chmod -R 644 /etc/postgresql/10/main


                                                            This sets the directory as non-executable, which prevents postgres from reading it.






                                                            share|improve this answer












                                                            I had this problem due to a different reason: directory permissions. I had a full-sweep chmod like this:



                                                            chmod -R 644 /etc/postgresql/10/main


                                                            This sets the directory as non-executable, which prevents postgres from reading it.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Jul 26 at 17:53









                                                            seequ

                                                            1011




                                                            1011






















                                                                up vote
                                                                0
                                                                down vote













                                                                I had this same problem upon checking found issue with ssl-cert-snakeoil.key permission .



                                                                Set Ownership



                                                                chown root:ssl-cert ssl-cert-snakeoil.key
                                                                chmod 640 ssl-cert-snakeoil.key



                                                                and did a clean restart .






                                                                share|improve this answer








                                                                New contributor




                                                                Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                Check out our Code of Conduct.






















                                                                  up vote
                                                                  0
                                                                  down vote













                                                                  I had this same problem upon checking found issue with ssl-cert-snakeoil.key permission .



                                                                  Set Ownership



                                                                  chown root:ssl-cert ssl-cert-snakeoil.key
                                                                  chmod 640 ssl-cert-snakeoil.key



                                                                  and did a clean restart .






                                                                  share|improve this answer








                                                                  New contributor




                                                                  Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.




















                                                                    up vote
                                                                    0
                                                                    down vote










                                                                    up vote
                                                                    0
                                                                    down vote









                                                                    I had this same problem upon checking found issue with ssl-cert-snakeoil.key permission .



                                                                    Set Ownership



                                                                    chown root:ssl-cert ssl-cert-snakeoil.key
                                                                    chmod 640 ssl-cert-snakeoil.key



                                                                    and did a clean restart .






                                                                    share|improve this answer








                                                                    New contributor




                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    I had this same problem upon checking found issue with ssl-cert-snakeoil.key permission .



                                                                    Set Ownership



                                                                    chown root:ssl-cert ssl-cert-snakeoil.key
                                                                    chmod 640 ssl-cert-snakeoil.key



                                                                    and did a clean restart .







                                                                    share|improve this answer








                                                                    New contributor




                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    share|improve this answer



                                                                    share|improve this answer






                                                                    New contributor




                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    answered Nov 21 at 6:56









                                                                    Sudharsan Punniyakotti

                                                                    1




                                                                    1




                                                                    New contributor




                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.





                                                                    New contributor





                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.






                                                                    Sudharsan Punniyakotti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.






























                                                                         

                                                                        draft saved


                                                                        draft discarded



















































                                                                         


                                                                        draft saved


                                                                        draft discarded














                                                                        StackExchange.ready(
                                                                        function () {
                                                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f830346%2fpostgresql-server-doesnt-start%23new-answer', 'question_page');
                                                                        }
                                                                        );

                                                                        Post as a guest















                                                                        Required, but never shown





















































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown

































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown







                                                                        Popular posts from this blog

                                                                        Mont Emei

                                                                        Province de Neuquén

                                                                        Journaliste