[Possible BUG] PostgreSQL authentication with pgpass fails after startServer has been run, under Windows

Abierto
#56 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
postgresql, r

Línea de trabajo

Start with the reported httpuv::startServer entry point and reproduce the two DBI::dbConnect calls on Windows using PostgreSQL pgpass authentication. Compare the Windows behavior with Ubuntu 14.04 and trace what changes after startServer; done means identifying whether httpuv causes the failure and establishing a verified fix or clear diagnosis.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I've already asked this question here , but since nobody answered it I've made additional tests and discover that problem lies in httpuv.
In short - I've my password for database connection stored in pgpass file as described in documentation (link). Usually works OK, but after running startServer it fails. Look on the example (I've translated error message from Polish by myself, so it may look slightly different):

con <- DBI::dbConnect(RPostgres::Postgres(), dbname = "mydb",
                 user = "username",
                 host = "localhost",
                 port = "5432")
# connection is established withour errors

serwer <- httpuv::startServer("127.0.0.1", 6442, list())

con <- DBI::dbConnect(RPostgres::Postgres(), dbname = "mydb",
                      user = "username",
                      host = "localhost",
                      port = "5432")
# Error: FATAL:  password authentication failed for user "username"
password retrieved from file "C:\Users\...\AppData\Roaming/postgresql/pgpass.conf"

Read my question on stackoverflow for details.

I've tried to replicate this behaviour on Ubuntu 14.04 64-bit, but everything worked smoothly, so it must be something in windows (I've checked it also on Windows 8 and the error was exactly the same).

I am not sure if this is an issue with httpuv package but I guess it's the best place to ask.

Lenguaje dominante
C
Estrellas
252
Forks
87
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rstudio/httpuv

Todos los issues de rstudio/httpuv

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.