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

Đang mở
#56 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgresql, r

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
252
Fork
87
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rstudio/httpuv

Tất cả issue của rstudio/httpuv

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.