Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/01/2011, à 12:19

Papy Octet

[Résolu] Problème postgres 8.4 lors de mise à niveau.

Bonjour,
Me revoilà avec un petit détail qui me turlupine un peu même si cela ne semble pas poser de problème de fonctionnement des différents logiciels que j'utilise.

Depuis quelques temps, lors de la mise à niveau de Ubuntu, je reçois un message du gestionnaire de mise à jour m'indiquant que "Postgres 8.4 n'est pas configuré" et avec, parfois, un ou l'autre fichier qui n'a pas été installé.
J'ai vérifié dans Synaptique, Postgres 8.4 est installé : postgres-client-8.4    8.4.6-Oubuntu10.04
Sont installés également :
Postrgresql-common    106ubuntu1
Libpq5    8.4.6-Oubuntu10.04
Postgresql-8.4    8.4.6-Oubuntu10.04
Pgadmin3    1.10.2-1build1
Pgagent    3.0.1-1
Postgresql    8.4.6-Oubuntu10.04
Pgadmin3-data    1.10.2-1build1
J'ai rechargé Synaptique et j'ai aussi relancé le gestionnaire de mise à jour qui me dit que mon système est mis à jour. Mais là, je n'ai plus le message d'erreur.
Je verrai lors de la prochaine mise à jour si j'ai encore ce message. Mais il n'y a pas de raison qu'il ait disparu puisque ces manœuvres, je les ai déjà faites deux fois.

Dois-je me tracasser, agir ?

Merci.

PS. Il semble que ces "problèmes" soient apparus - mais sans réelle certitude - après l'installation de DigKam pour essais.
Depuis, DigiKam a été désinstallé depuis Synaptique.

Dernière modification par Papy Octet (Le 19/01/2011, à 10:26)


AMD A6-3500 HD6530D 2.1 ghz Triple core FM1 3mb - CM GIGABYTE GA-A75M-UD2H - 8 GiO ram DDR3 - HDD 1TO WD GREEN + WD Gaviar Black 1TO + externe IOMEGA 500GiO - Carte écran nvidia GeForce 210 Silent avec 1GiO cache DDR3 - Ubuntu
Portable HP - Intel Centrino - 1 Go DDR2 - DD 120 Go - Mint 14
Imprim. Samsung ML-1670 et CLP-315, scanner Epson Perfection V30, ... Linuxgraphic.org, LibreOffice.org

Hors ligne

#2 Le 13/01/2011, à 09:04

Papy Octet

Re : [Résolu] Problème postgres 8.4 lors de mise à niveau.

Je complète les infos que j'obtiens.

Je veux installer des plugins pour Gedit. Le dépaquetage des données se fait bien puis, lorsque la mise à jour de la base de donnée doit se faire, voilà ce que la console me retourne :

Paramétrage de postgresql-8.4 (8.4.6-0ubuntu10.04) ...
* Starting PostgreSQL 8.4 database server                                       * The PostgreSQL server failed to start. Please check the log output:
2011-01-13 07:37:19 CET LOG:  masque IP << ident >> invalide : Nom ou service inconnu
2011-01-13 07:37:19 CET CONTEXTE :  ligne 88 du fichier de configuration << /etc/postgresql/8.4/main/pg_hba.conf >>
2011-01-13 07:37:19 CET FATAL:  n'a pas pu charger pg_hba.conf
                                                                         [fail]
invoke-rc.d: initscript postgresql-8.4, action "start" failed.
dpkg : erreur de traitement de postgresql-8.4 (--configure) :
le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
dpkg : des problèmes de dépendances empêchent la configuration de postgresql :
postgresql dépend de postgresql-8.4 ; cependant :
Le paquet postgresql-8.4 n'est pas encore configuré.
dpkg : erreur de traitement de postgresql (--configure) :
problèmes de dépendances - laissé non configuré
Paramétrage de gedit-plugins (2.30.0-0ubuntu1) ...
Pas de rapport Apport écrit car le message d'erreur indique que c'est la suite d'une erreur précédente.

Des erreurs ont été rencontrées pendant l'exécution :
postgresql-8.4
postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)

et quand je vais ouvrir le fichier << /etc/postgresql/8.4/main/pg_hba.conf >>, il contient :

# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the
# PostgreSQL documentation for a complete description
# of this file.  A short synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access.  Records take one of these forms:
#
# local      DATABASE  USER  METHOD  [OPTIONS]
# host       DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTIONS]
# hostssl    DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTIONS]
# hostnossl  DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTIONS]
#
# (The uppercase items must be replaced by actual values.)
#
# The first field is the connection type: "local" is a Unix-domain socket,
# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
#
# DATABASE can be "all", "sameuser", "samerole", a database name, or
# a comma-separated list thereof.
#
# USER can be "all", a user name, a group name prefixed with "+", or
# a comma-separated list thereof.  In both the DATABASE and USER fields
# you can also write a file name prefixed with "@" to include names from
# a separate file.
#
# CIDR-ADDRESS specifies the set of hosts the record matches.
# It is made up of an IP address and a CIDR mask that is an integer
# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
# the number of significant bits in the mask.  Alternatively, you can write
# an IP address and netmask in separate columns to specify the set of hosts.
#
# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", "krb5",
# "ident", "pam", "ldap" or "cert".  Note that "password" sends passwords
# in clear text; "md5" is preferred since it sends encrypted passwords.
#
# OPTIONS are a set of options for the authentication in the format
# NAME=VALUE. The available options depend on the different authentication
# methods - refer to the "Client Authentication" section in the documentation
# for a list of which options are available for which authentication methods.
#
# Database and user names containing spaces, commas, quotes and other special
# characters must be quoted. Quoting one of the keywords "all", "sameuser" or
# "samerole" makes the name lose its special character, and just match a
# database or username with that name.
#
# This file is read on server startup and when the postmaster receives
# a SIGHUP signal.  If you edit the file on a running system, you have
# to SIGHUP the postmaster for the changes to take effect.  You can use
# "pg_ctl reload" to do that.

# Put your actual configuration here
# ----------------------------------
#
# If you want to allow non-local connections, you need to add more
# "host" records. In that case you will also need to make PostgreSQL listen
# on a non-local interface via the listen_addresses configuration parameter,
# or via the -i or -h command line switches.
#




# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database
# super user can access the database using some other method.
# Noninteractive
# access to all databases is required during automatic maintenance
# (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by UNIX sockets
local   all         postgres                          ident

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5
# IPv6 local connections:
host    all         all         ::1/128               md5
# Modif proposee sur site Ubuntu
host    all    all    127.0.1.1    ident

Il existe un fichier << /etc/postgresql/8.4/main/pg_hba_Origine.conf >> identique au précédent sauf que les deux dernières lignes n'existent pas. Pour le reste du contenu, il est identique.
Je viens d'essayer une réinstallation du plugins pour Gedit après avoir supprimé ces deux dernières lignes de code dans le fichier << /etc/postgresql/8.4/main/pg_hba.conf >> et maintenant, l'installation semble s'être déroulée correctement puisque je n'ai pas eu le message d'erreur.

J'attends la prochaine mise à jour Ubuntu pour voir ce qu'il se passera.

A+


AMD A6-3500 HD6530D 2.1 ghz Triple core FM1 3mb - CM GIGABYTE GA-A75M-UD2H - 8 GiO ram DDR3 - HDD 1TO WD GREEN + WD Gaviar Black 1TO + externe IOMEGA 500GiO - Carte écran nvidia GeForce 210 Silent avec 1GiO cache DDR3 - Ubuntu
Portable HP - Intel Centrino - 1 Go DDR2 - DD 120 Go - Mint 14
Imprim. Samsung ML-1670 et CLP-315, scanner Epson Perfection V30, ... Linuxgraphic.org, LibreOffice.org

Hors ligne

#3 Le 19/01/2011, à 10:29

Papy Octet

Re : [Résolu] Problème postgres 8.4 lors de mise à niveau.

wink Et bien voilà encore un "mystère" informatique résolu !
En supprimant les 2 lignes "litigieuses" dans le fichier pg_hba.conf, tout est rentré dans l'ordre.

Mais ... qu'est-ce qui a bien pu produire ces deux lignes supplémentaires ????? ... Mystèèèèèèère ! hmm

Dernière modification par Papy Octet (Le 19/01/2011, à 10:30)


AMD A6-3500 HD6530D 2.1 ghz Triple core FM1 3mb - CM GIGABYTE GA-A75M-UD2H - 8 GiO ram DDR3 - HDD 1TO WD GREEN + WD Gaviar Black 1TO + externe IOMEGA 500GiO - Carte écran nvidia GeForce 210 Silent avec 1GiO cache DDR3 - Ubuntu
Portable HP - Intel Centrino - 1 Go DDR2 - DD 120 Go - Mint 14
Imprim. Samsung ML-1670 et CLP-315, scanner Epson Perfection V30, ... Linuxgraphic.org, LibreOffice.org

Hors ligne