Vous n'êtes pas identifié(e).
Pages : 1
Bonjour à tous,
J'ai installé sur un serveur de test sous Ubuntu 16.04.5 LTS (je précise que je débute sur cet OS), une application de radonnée nommée Geotrek.
Tout s'est bien passé et tout a fonctionné pendant un moment.
Désormais le serveur ne répond plus et PGSQL semble en être la cause. J'ai lu beaucoup de choses sur internet mais rien ne m'a permis de solutionner le problème.
Lorsque je fais la commande :
systemctl status postgresqlj'ai le retour suivant :
● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2019-10-24 14:17:29 UTC; 37min ago
 Main PID: 107811 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/postgresql.service
Oct 24 14:17:29 VM systemd[1]: Starting PostgreSQL RDBMS...
Oct 24 14:17:29 VM systemd[1]: Started PostgreSQL RDBMS.Si je fais :
 pg_lsclustersj'obtiens (la 2ème ligne est en rouge) :
Ver Cluster Port Status Owner    Data directory               Log file
9.5 main    5432 down   postgres /var/lib/postgresql/9.5/main /var/log/postgresql/postgresql-9.5-main.logJ'ai vérifié les fichiers pg_hba.conf et postregsql.conf mais l'application reste indisponible.
 Si je fais : 
psql -l -U postgresj'ai :
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"?Si les spécialistes présents sur ce forum pouvaient m'aider, je leur en serai reconnaissant.
Merci d'avance.
Cordialement.
Hors ligne
Comme ça, difficile à dire, mais l'explication est certainement dans les dernières lignes du fichiers de loc /var/log/postgresql/postgresql-9.5-main.log. Si vous postez les dernières lignes on doit pouvoir vous aider.
Marc.
Hors ligne
Bonjour,
Voici les dernières lignes du fichier de log :
2019-10-07 12:09:17 UTC [94653-2] CONTEXT:  line 87 of configuration file "/etc/postgresql/9.5/main/pg_hba.conf"
2019-10-07 12:09:17 UTC [94653-3] FATAL:  could not load pg_hba.confet le pga_hha
# Database administrative login by Unix domain socket
local    all             postgres                               peer
TYPE DATABASE        USER            ADDRESS                 METHOD
# "local" is for Unix domain socket connections only
local   all             all                                    md5
# IPv4 local connections:
host    all             all             0.0.0.0         0.0.0.0            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5
# Automatically added by Geotrek installation :
local    geotrekdb     geotrek                   md5
host     geotrekdb     geotrek     0.0.0.0/0     md5
host     all           all         0.0.0.0/0     md5Hors ligne
La ligne "TYPE DATABASE ..." devrait avoir un dièse devant. C'est un commentaire.
Guillaume.
Hors ligne
J'ai modifié la ligne en question.
Pour autant, j'ai toujours la ligne en rouge après la commande "pg_lsclusters" et la commande  "systemctl start potgresql@9.5-main service" renvoie elle :
Job for postgresql@9.5-main.service failed because the control process exited with error code. See "systemctl status postgresql@9.5-main.service" and "journalctl -xe" for details.Hors ligne
Même remarque que la première fois que vous avez posé la question, que disent les logs ?
Julien.
https://rjuju.github.io/
Hors ligne
Dans le journal :
root@VM-xxxx:/etc/postgresql/9.5/main# journalctl -xe
Oct 25 06:42:47 VM-xxxx sshd[45426]: Failed password for root from x.x.x.x port xxxx ssh2
Oct 25 06:42:47 VM-xxxx sshd[45426]: error: maximum authentication attempts exceeded for root from x.x.x.x port xxxx ssh2 [preauth]
Oct 25 06:42:47 VM-xxxx sshd[45426]: Disconnecting: Too many authentication failures [preauth]
Oct 25 06:42:47 VM-xxxx sshd[45426]: PAM 5 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x  user=root
Oct 25 06:42:47 VM-xxxx sshd[45426]: PAM service(sshd) ignoring max retries; 6 > 3Dernière modification par chanteclair (25/10/2019 09:06:05)
Hors ligne
Non, la log postgres. Comme avant. On peut envoyer la log postgres dans le journal, mais debian et ubuntu ne le font pas par défaut.
Marc.
Hors ligne
Il n'y a rien de plus dans ce log...
Hors ligne
Ok, que dit systemctl status postgresql@9.5-main.service ?
Marc.
Hors ligne
Il dit
Job for postgresql@9.5-main.service failed because the control process exited with error code. See "systemctl status postgresql@9.5-main.service" and "journalctl -xe" for details.Hors ligne
Il y a forcément le détail de l'erreur quelque part.
Julien.
https://rjuju.github.io/
Hors ligne
J'abandonne et je repars sur une installation propre.
Merci à tous du temps que vous y avez consacré.
Bonne journée.
Hors ligne
Pages : 1