Prima di tutto, si prega di notare che ho trovato diverse domande simili su Stack Overflow e articoli in tutto il web, ma nessuno di coloro che mi ha aiutato a risolvere il mio problema:Il server è in esecuzione su host "localhost" (:: 1) e accetta connessioni TCP/IP sulla porta 5432?
- PG Error could not connect to server: Connection refused Is the server running on port 5432?
- PG::ConnectionBad - could not connect to server: Connection refused
- psql: could not connect to server: Connection refused
Ora, qui è il problema:
- Ho un'app Rails che funziona come un fascino.
- Con il mio collaboratore, usiamo GitHub per lavorare insieme.
- Abbiamo un ramo
master
e unomvp
. - Ho aggiornato di recente la mia versione
git
con Homebrew (Mac). - Usiamo Foreman per avviare la nostra app localmente.
Ora, quando provo a lanciare l'applicazione a livello locale, ottengo il seguente errore:
PG::ConnectionBad at/
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
ho provato a riavviare il mio computer più volte.
Ho anche controllato il contenuto di /usr/local/var/postgres
:
PG_VERSION pg_dynshmem pg_multixact pg_snapshots pg_tblspc postgresql.conf
base pg_hba.conf pg_notify pg_stat pg_twophase postmaster.opts
global pg_ident.conf pg_replslot pg_stat_tmp pg_xlog server.log
pg_clog pg_logical pg_serial pg_subtrans postgresql.auto.conf
Come si può vedere, non v'è alcuna postmaster.pid
file in là.
Qualche idea su come risolvere il problema?
Puoi aggiornare la questione con il contenuto di 'postgresql.conf'? – Pavan