title: Postgresql - No PostgreSQL clusters exist; see "man pg_createcluster" during service restart
body: <p>I'm trying to stop a Postgresql 9.3 database that is already running on an Ubuntu server but I receive the following message :</p>
  
  <pre><code>root@myprodserver:~# sudo /etc/init.d/postgresql stop
  
   * No PostgreSQL clusters exist; see "man pg_createcluster"
  </code></pre>
  
  <p>If I try to list the clusters I get  an empty result :</p>
  
  <pre><code>root@myprodserver:~# pg_lsclusters
  Ver Cluster Port Status Owner Data directory Log file
  </code></pre>
  
  <p>I've tried to run a createcluster :</p>
  
  <pre><code>root@myprodserver:~# pg_createcluster 9.3 main
  
  Configuring already existing cluster (configuration: /etc/postgresql/9.3/main, data: /var/lib/postgresql/9.3/main, owner: 106:114)
  Error: move_conffile: required configuration file /var/lib/postgresql/9.3/main/postgresql.conf does not exist
  
  The database is up and running. The response shows that a cluster exists. I've restarted many times the service in the past without error messages.
  </code></pre>
  
  <p>Here follows the result of <code>sudo ps aux | grep postgres</code> :</p>
  
  <pre><code>root       673  0.0  0.0  11748  2232 pts/5    R+   15:57   0:00 grep --color=auto postgres
  
  postgres  1044  0.0  0.2 293560 17868 ?        S     2017  87:45 /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf
  postgres  1288  0.2  1.7 294156 142248 ?       Ss    2017 657:18 postgres: checkpointer process
  postgres  1289  0.2  1.7 293700 140836 ?       Ss    2017 694:24 postgres: writer process
  postgres  1290  0.0  0.0 293560  7476 ?        Ss    2017 140:10 postgres: wal writer process
  postgres  1291  0.0  1.3 294508 107148 ?       Ss    2017  55:46 postgres: autovacuum launcher process
  postgres  1292  0.0  0.0 105220  3772 ?        Ss    2017 172:17 postgres: stats collector process
  postgres  7669  0.0  0.2 296244 17700 ?        Ss   12:04   0:02 postgres: adempiere postgres ::1(49525) idle
  postgres  7671  0.0  0.6 298716 54004 ?        Ss   12:04   0:00 postgres: adempiere adempiere_produzione ::1(49526) idle
  postgres  7855  0.0  0.4 295844 38160 ?        Ss   12:04   0:00 postgres: adempiere adempiere_produzione ::1(49527) idle
  postgres  8068  0.0  0.2 294884 18324 ?        Ss   12:06   0:00 postgres: adempiere adempiere_produzione ::1(49528) idle
  postgres 10115  0.0  1.9 308236 159916 ?       Ss   14:25   0:05 postgres: adempiere adempiere_produzione 192.107.YY.XXX(55631) idle
  (continues)
  </code></pre>