Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » PostgreSQL »

problemas con coneccion a postgres

Estas en el tema de problemas con coneccion a postgres en el foro de PostgreSQL en Foros del Web. saludos tengo el siguiente problema, me a ocurrido desde hoy, nose que paso ya que antes funcionaba sin problemas, espero me ayude. el error que ...
  #1 (permalink)  
Antiguo 22/06/2009, 15:53
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
problemas con coneccion a postgres

saludos tengo el siguiente problema, me a ocurrido desde hoy, nose que paso ya que antes funcionaba sin problemas, espero me ayude. el error que me envia es


Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? in C:\AppServ\www\proyecto\conexion\c.php on line 3

Warning: pg_last_error() [function.pg-last-error]: No PostgreSQL link opened yet in C:\AppServ\www\proyecto\conexion\c.php on line 3
Error:


gracias
  #2 (permalink)  
Antiguo 22/06/2009, 15:57
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

veo que tampoco me deja entrar a pgadmin....nose que habra sucedido

The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
  #3 (permalink)  
Antiguo 22/06/2009, 16:45
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: problemas con coneccion a postgres

Puedes entrar por consola a postgres?
Haz cambiado la contraseña?

Estos errores se muestran solo cuando hay errores en la conexión con la base de datos.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #4 (permalink)  
Antiguo 22/06/2009, 16:56
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

no, no e cambiado la contraseña, quizas se abra desconfigurado?, nose realmente, hasta el dia viernes funcionaba sin problemas.

si fuera la contraseña como la puedo cambiar para verificar eso???
  #5 (permalink)  
Antiguo 22/06/2009, 17:02
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

cuando ingreso la clave en el pgadmin me envia lo siguiente

Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
If you encounter this message, please check if the server you're trying to contact is actually running PostgreSQL on the given port. Test if you have network connectivity from your client to the server host using ping or equivalent tools. Is your network / VPN / SSH tunnel / firewall configured correctly?
For security reasons, PostgreSQL does not listen on all available IP addresses on the server machine initially. In order to access the server over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using the "listen_addresses" parameter in the postgresql.conf file. Here, you can enter a list of IP addresses the server should listen on, or simply use '*' to listen on all available IP addresses. For earlier servers (Version 7.3 or 7.4), you'll need to set the "tcpip_socket" parameter to 'true'.
You can use the postgresql.conf editor that is built into pgAdmin III to edit the postgresql.conf configuration file. After changing this file, you need to restart the server process to make the setting effective.
If you double-checked your configuration but still get this error message, it's still unlikely that you encounter a fatal PostgreSQL misbehaviour. You probably have some low level network connectivity problems (e.g. firewall configuration). Please check this thoroughly before reporting a bug to the PostgreSQL community.
  #6 (permalink)  
Antiguo 22/06/2009, 17:03
 
Fecha de Ingreso: junio-2007
Mensajes: 254
Antigüedad: 16 años, 10 meses
Puntos: 2
Respuesta: problemas con coneccion a postgres

a mi me paso lo mismo y la solucion fue borrar el postmaster.pid o algo asi que esta en el data del pgsql,

saludos.
  #7 (permalink)  
Antiguo 22/06/2009, 17:14
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

el dia viernes el note lo apague a la mala, se habra ocasionado con eso el problema?? si fuera asi que hago, porfa ayuda....

no encontre el archivo postmaster.pid :(, sera lo mismo postmaster.opts
  #8 (permalink)  
Antiguo 22/06/2009, 22:56
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

en la desesperacion formatee el pc, pero aun sigo con el problema :(

necesito su ayuda porfa, tendra algo que ver el que este conectado con un route o ip, mac?? digo esto, porque el otro dia tenia problemas de coneccion y me comunique con la empresa de internet, no estoy seguro si fue desde ese dia o del dia que apage a la fuerza..... ya no se que pensar, en el otro pc de la casa funciona sin problemas postgres


vale decir que no puedo iniciar el servicio de postgres

Última edición por oscar2h; 23/06/2009 a las 00:26
  #9 (permalink)  
Antiguo 23/06/2009, 06:32
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: problemas con coneccion a postgres

Deshabilita el firewall y prueba de nuevo.
Muchas veces, las hermosas actualizaciones de windows bloquean puertos sin ningún tipo de consideracion.

En caso de que sea eso, debes crear la excepción del puerto 5432 en el firewall.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #10 (permalink)  
Antiguo 12/07/2009, 08:59
 
Fecha de Ingreso: julio-2009
Mensajes: 1
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

buenos dias a mi tambien se me presento el mismo problema con la conexion a postgres ya revise el firewall y esta desactivado, ademas le puse la omision al puerto 5432 y nada, me pueden ayudar por favor?, aqui escribo lo que me dice postgres:

Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
If you encounter this message, please check if the server you're trying to contact is actually running PostgreSQL on the given port. Test if you have network connectivity from your client to the server host using ping or equivalent tools. Is your network / VPN / SSH tunnel / firewall configured correctly?
For security reasons, PostgreSQL does not listen on all available IP addresses on the server machine initially. In order to access the server over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using the "listen_addresses" parameter in the postgresql.conf file. Here, you can enter a list of IP addresses the server should listen on, or simply use '*' to listen on all available IP addresses. For earlier servers (Version 7.3 or 7.4), you'll need to set the "tcpip_socket" parameter to 'true'.
You can use the postgresql.conf editor that is built into pgAdmin III to edit the postgresql.conf configuration file. After changing this file, you need to restart the server process to make the setting effective.
If you double-checked your configuration but still get this error message, it's still unlikely that you encounter a fatal PostgreSQL misbehaviour. You probably have some low level network connectivity problems (e.g. firewall configuration). Please check this thoroughly before reporting a bug to the PostgreSQL community.
  #11 (permalink)  
Antiguo 12/07/2009, 09:05
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: problemas con coneccion a postgres

El error es falta de conexión.

Revisa estos enlaces
http://www.forosdelweb.com/f99/postg...inicia-700704/
http://www.forosdelweb.com/f99/postg...xp-sp3-685826/

Nos cuentas como te va.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #12 (permalink)  
Antiguo 15/07/2009, 20:05
 
Fecha de Ingreso: noviembre-2007
Mensajes: 237
Antigüedad: 16 años, 5 meses
Puntos: 4
Respuesta: problemas con coneccion a postgres

buenas a todos, al final lo que me funciono fue hacer lo del:

"ve a PANEL DE CONTROL / HERRAMIENTAS ADMINISTRATIVAS / SERVICIOS

busca el servicio de "PostgreSQL Server 8.3" o "postgresql-8.3" ( en mi caso el 2 me salia inicialmente pero u na vez solucionado el problema se cambio al primero...)

abre el servicio ... vas a la ficha "INICIAR SESSION"; y marca donde dice "Iniciar Sesion como" elije el primero "CUENTA DEL SISTEMA LOCAL" (si es que no estaba marcada) y le das APLICAR.. te saldra un mensaje que diga algo de que tienes q volver a reiniciar el servicio o algo asi... simplemente vas a la primera ficha GENERAL... y le das a INICIAR .... y haber si te inicia ....."

me dio un dolor de vcabeza, ojala puedas solucionarlo = saludos
  #13 (permalink)  
Antiguo 27/08/2009, 09:29
 
Fecha de Ingreso: diciembre-2006
Mensajes: 2
Antigüedad: 17 años, 4 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

Cita:
Iniciado por oscar2h Ver Mensaje
buenas a todos, al final lo que me funciono fue hacer lo del:

"ve a PANEL DE CONTROL / HERRAMIENTAS ADMINISTRATIVAS / SERVICIOS

busca el servicio de "PostgreSQL Server 8.3" o "postgresql-8.3" ( en mi caso el 2 me salia inicialmente pero u na vez solucionado el problema se cambio al primero...)

abre el servicio ... vas a la ficha "INICIAR SESSION"; y marca donde dice "Iniciar Sesion como" elije el primero "CUENTA DEL SISTEMA LOCAL" (si es que no estaba marcada) y le das APLICAR.. te saldra un mensaje que diga algo de que tienes q volver a reiniciar el servicio o algo asi... simplemente vas a la primera ficha GENERAL... y le das a INICIAR .... y haber si te inicia ....."

me dio un dolor de vcabeza, ojala puedas solucionarlo = saludos
  #14 (permalink)  
Antiguo 27/08/2009, 09:30
 
Fecha de Ingreso: diciembre-2006
Mensajes: 2
Antigüedad: 17 años, 4 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

Muchas gracias Oscar, has dado en el clavo!!. Menudo dolor de cabeza me dió a mi también. saludos
  #15 (permalink)  
Antiguo 04/03/2010, 15:49
 
Fecha de Ingreso: marzo-2010
Mensajes: 3
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: problemas con coneccion a postgres

Muchas gracias oscar tu respuesta fue la correcta a mi problema, pero no tube que sufrir tanto como ustedes, pero de todas formas muchisimas gracias por su aporte..
  #16 (permalink)  
Antiguo 26/04/2010, 07:56
 
Fecha de Ingreso: mayo-2008
Mensajes: 64
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

oscar eres un crack tio

TODOS TE QUEREMOS
  #17 (permalink)  
Antiguo 20/10/2010, 14:48
 
Fecha de Ingreso: septiembre-2009
Mensajes: 17
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

bien, pero yo uso linux, no tengo panel de control, y tengo el mismo problema
  #18 (permalink)  
Antiguo 20/02/2011, 19:33
 
Fecha de Ingreso: diciembre-2009
Mensajes: 22
Antigüedad: 14 años, 4 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

muy buena solucion..
tambien me gustaria saber que hacer si esto sucede en Gnu/linux
  #19 (permalink)  
Antiguo 04/09/2012, 12:32
Avatar de ernestoulisesj  
Fecha de Ingreso: septiembre-2012
Mensajes: 1
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: problemas con coneccion a postgres

En Linux, revisa si el servicio del postgres está corriendo.

sudo service postgresql status
Running clusters:

Si sale este mensaje corre el servidor:

sudo service postgresql start
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas




La zona horaria es GMT -6. Ahora son las 02:55.