title: Failed to start PostgreSQL Cluster 10-main when booting
body: <p>when I try to boot Ubuntu, it never finishes the boot process because it appears the message "Failed to start PostgreSQL Cluster 10-main." I also get the same message with 9.5-main. But lets focus on 10.</p>
  
  <p>When I execute:</p>
  
  <pre><code>systemctl status postgresql@10-main.service
  </code></pre>
  
  <p>I get the following message:</p>
  
  <pre><code>postgresql@10-main.service - PostgreSQL Cluster 10-main
    Loaded: loaded (/lib/systemd/system/postgresql@.service; indirect; vendor preset: enabled)
    Active: failed (Result: protocol) since Wed 2020-02-19 17:57:22 CET; 30 min ago
   Process: 1602 ExecStart=/usr/bin/pg_ctlcluster --skip-systemctl-redirect 10-main start (code_exited, status=1/FAILURE)
  PC_info systemd[1]: Starting PostgreSQL Cluster 10-main...
  PC_info postgresql@10-main[1602]: Error: /usr/lib/postgresql/10/bin/pg_ctl /usr/lib/postgresql/10/bin/pg_ctl start -D /var/lib/postgresql/10/main -l /var/log/postgresql/postgresql-19-main.log -s -o -c config_file="/etc/postgresql/10/main/postgresql.conf" exit with status 1:
  PC_info systemd[1]: postgresql@10-main.service: Can't open PID file /var/run/postgresql/10-main.pid (yet?) after start: No such file or directory
  PC_info systemd[1]: postgresql@10-main.service: Failed with result 'protocol'.
  PC_info systemd[1]: Failed to start PostgreSQL Cluster 10-main.
  </code></pre>
  
  <p>PC_info is information about my computer (user, date..) not relevant</p>
  
  <p>I got this error from one day to an other without touching anything related to Database Servers.
  I tried to fix it by my self but nothing worked</p>
  
  <p>Writing the command </p>
  
  <pre><code>service postgresql@10-main start
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Job for postgresql@10-main.service failed because the service did not take the steps required by its unit configuration
  See "systemctl status postgresql@10-main.service" and "journalctl -xe"  for details.
  </code></pre>
  
  <p>Running this two command I get the message from the beginning.</p>
  
  <p>Anyone has an idea of what is happening? How I can fix it?</p>