pgAdmin III error connecting to server: fe_sendauth: no password supplied

 DataBase, PostgreSQL  Comments Off on pgAdmin III error connecting to server: fe_sendauth: no password supplied
Dec 252013
 

If when you start up pgAdmin III the following message is displayed:

An error has occurred: Error connecting to the server: fe_sendauth: no password supplied

in spite of having set the password in other startups, the error most likely be because the file permissions of .pgpass file are incorrect. In the .pgpass file, located in the home directory of the user who started pgAdmin III, user data to connect to postgres database are saved. Due to security reasons, permissions of .pgpass must be 600, that is, read and write only for the owner user.

For the same reason, if we do a restore (pg_restore) of a database with pgAdmin III without the correct permissions for .pgpass, we find that the restoration process will get stuck doing nothing, having no choice but to kill the pgAdmin III.

Desintalar PostgreSQL en mi MAC

 DataBase, PostgreSQL  Comments Off on Desintalar PostgreSQL en mi MAC
Dec 252013
 

Para realizar la desinstalación de forma automática se debe ejecutar uninstall-postgresql.app que está bajo /Library/PostgreSQL/8.4

Para ejecutar la desintalación de forma manual se deben ejecutar los siguiente comandos desde un Terminal:

También se podría incluir

También nos debemos asegurar que no queda ningún daemon activo relacionado con PostgreSQL en /Library/LaunchDaemons, como, por ejemplo, com.edb.launchd.postgresql-8.4.plist

Problema al ejecutar el paso post instalación en Mac OS X

 DataBase, PostgreSQL  Comments Off on Problema al ejecutar el paso post instalación en Mac OS X
Dec 062013
 

Al ejecutar la instalación de PostgreSQL en un OS X Maverick (también en un OSX Lion) se produce, al final del proceso, un error que muestra la siguiente imagen

postgresql_install_error

El error se debe a que el instalador de Postgres busca en el proceso de instalación un usuario con el patrón “postgres”. Si lo localiza, lo utiliza. Encuentra el usuario predefinido _postgres, que no tiene los permisos que el instalador espera. Por ello, la solución consiste en desinstalar Postgres y seguidamente borrar el usuario mencionado. Finalmente borraremos la caché o rearrancaremos el sistema operativo. Al rearrancar procedemos a realizar de nuevo la instalación. En este caso, al no existir ningún usuario que case con el patrón “postgres”, el propio instalador crea uno.

Para borrar el usuario _postgres, ejecutaremos el siguiente comando

sudo dscl . -delete /Users/_postgres