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

オープン
#56 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql, r

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
252
フォーク
87
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rstudio/httpuv のほかの issue

rstudio/httpuv の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。