Visualizzazione dei risultati da 1 a 6 su 6
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    39

    postgresql non riesco a far partire postmaster

    Salve a tutti
    è un po che ci sto provando ma non riesco a far partire postmaster, in effetti parte ma poi subito crolla.
    ho installato la versione su FC5(la distro che ho) con yum.
    ho provato a modificare alcuni file di configurazione ma con esito sempre negativo
    in realta non ho idea da che cosa dipernda il problema , perche non riesco a capirlo del tutto e quindi a risolverlo. pultroppo nel manuale di postgresql non sono riusciuto a trovare indicazioni per questo errore quindi penso che possa dipendere da qualcosaltro.

    comunque posto alcuni file che possono dare una idea piu chiare del problema.

    $PGHOME/pgstartup.log __________________
    The files belonging to this database system will be owned by user "postgres".
    This user must also own the server process.

    The database cluster will be initialized with locale it_IT.UTF-8.
    The default database encoding has accordingly been set to UTF8.

    modifica dei permessi sulla directory esistente /var/lib/pgsql/data ... ok
    creazione directory /var/lib/pgsql/data/global ... ok
    creazione directory /var/lib/pgsql/data/pg_xlog ... ok
    creazione directory /var/lib/pgsql/data/pg_xlog/archive_status ... ok
    creazione directory /var/lib/pgsql/data/pg_clog ... ok
    creazione directory /var/lib/pgsql/data/pg_subtrans ... ok
    creazione directory /var/lib/pgsql/data/pg_twophase ... ok
    creazione directory /var/lib/pgsql/data/pg_multixact/members ... ok
    creazione directory /var/lib/pgsql/data/pg_multixact/offsets ... ok
    creazione directory /var/lib/pgsql/data/base ... ok
    creazione directory /var/lib/pgsql/data/base/1 ... ok
    creazione directory /var/lib/pgsql/data/pg_tblspc ... ok
    selecting default max_connections ... 100
    selecting default shared_buffers ... 1000
    creazione dei file di configurazione ... ok
    creating template1 database in /var/lib/pgsql/data/base/1 ... ok
    initializing pg_authid ... ok
    enabling unlimited row size for system tables ... ok
    initializing dependencies ... ok
    creazione delle viste di sistema ...ok
    loading pg_description ... ok
    creazione delle conversioni ...ok
    impostazione dei privilegi per gli oggetti incorporati ...ok
    creazione dello schema informazioni ... ok
    vacuum del database template1 ... ok
    copia di template1 a template0 ... ok
    copying template1 to postgres ... ok

    Success. You can now start the database server using:

    /usr/bin/postmaster -D /var/lib/pgsql/data
    or
    /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start

    LOG: could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets
    LOG: could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets
    LOG: could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets
    LOG: could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets
    LOG: could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets

    __________________________________________________ _________

    $PGDATA/pg_hba.conf con che le mie modifiche che non hanno portato cambiamenti _______

    # TYPE DATABASE USER CIDR-ADDRESS METHOD

    # "local" is for Unix domain socket connections only
    local all all 127.0.0.1 255.255.255.255 ident sameuser
    # IPv4 local connections:
    host all all 127.0.0.1/32 ident sameuser
    # IPv6 local connections:
    host all all ::1/128 ident sameuser
    __________________________________________________ _______________________________

    quando digito
    pg_ctl start

    mi dice dopo poco che ha avviato postmaster:
    could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets



    avete qualche idea di cosa sucede o come si puo risolvere?

    grazie in anticipo a tutti quelli che proveranno a darmi una mano
    by Netar

  2. #2
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    39
    dimenticavo prima delle mie modifiche se la prendeva anche contro Unix Domain Socket
    by Netar

  3. #3
    quella porta e' attiva ?

    netstat -a -n | grep 5432

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    39
    ciao e grazie per l'aiuto
    se do quel comando non ottengo nessuna risposta

    penso quindi che non sia attiva

    come si fa ad attivarla?
    sto provando a cambiare le impostazioni nel firewall ma non so se è la strada giusta.
    altra info se digito pg_ctl ora mi dice:

    could not translate host name "localhost", service "5432" to address: Temporary failure in name resolution
    WARNING: could not create listen socket for "localhost"
    FATAL: could not create any TCP/IP sockets
    by Netar

  5. #5

  6. #6
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    39
    HO RISOLTO

    grazia per l'aiuto sacarde
    ma prima di provare a reinstallare dai sorgenti ho voluto fare qualche ultimo tentativo.

    posto come io ho risolto magari potra essere utilile:
    nel file /etc/resolv.conf

    ho aggiunto la riga(ovviamente dopo aver eseguito cp /etc/resolv.conf /etc/resolv.conf.old(non si sa mai)) :

    localhost 127.0.0.1


    nel file /etc/hosts
    ho aggiunto come primo

    127.0.0.1 localhost


    ora funziona perfettamente
    avvio postgresql con
    $ pg_ctl start
    ...

    ciao
    by Netar

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.