[Possible BUG] PostgreSQL authentication with pgpass fails after startServer has been run, under Windows
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
- Lĩnh vực
- authentication, backend, database
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rstudio/httpuv
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 46/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của rstudio/httpuv
Issue tương tự
-
Status: Opened
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FriendsofECCE/ECCE#1018 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
immortalwrt/immortalwrt#2522 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
luainkernel/lunatik#2530 ·
Maintainer thường phản hồi trong vòng 1 ngày