failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
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
- 30/100
Hướng nghiên cứu
Bắt đầu với Chart.yaml và values.yaml, tập trung vào nextcloud.externalDatabase và yugabyte.tls, sau đó so sánh cấu hình đã được render với các lỗi certificate và oc_migrations trong log. Được xem là hoàn tất khi cấu hình chart hỗ trợ thiết lập cơ sở dữ liệu bên ngoài được báo cáo mà không xảy ra lỗi kết nối hoặc lỗi quyền di chuyển.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe your Issue
Deployed nextcloud with an external postgres database.
Everything comes up ok, but unable to get past the initial screen asking me to create an admin use account.
Is there a helm chart option I need to enable tls db access?
If I disable 'tls' on my database then I get past the admin screen but it still says that I chose SQLite database along with this error:
Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied for table oc_migrations
Create an admin account
Logs and Errors
Previous: PDOException: SQLSTATE[08006] [7] connection to server at "yb-tserver-service" (10.103.147.103), port 5433 failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
connection to server at "yb-tserver-service" (10.103.147.103), port 5433 failed: FATAL: no pg_hba.conf entry for host "172.16.182.189", user "yugabyte", database "yugabyte", SSL off
Describe your Environment
-
Kubernetes distribution: kubeadm
-
Helm Version (or App that manages helm): ArgoCD v2.14.2+ad27246
-
Helm Chart Version: 6.6.5
-
Chart.yaml:
dependencies:
- name: yugabyte
version: 2024.2.1
repository: https://charts.yugabyte.com
- name: nextcloud
version: 6.6.5
repository: https://nextcloud.github.io/helm
values.yaml:
nextcloud:
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: vault-issuer
# ingress configuration redacted, the ingress is working file
internalDatabase:
enabled: false
externalDatabase:
enabled: true
## Supported database engines: mysql or postgresql
type: postgresql
## Database host. You can optionally include a colon delimited port like "myhost:1234"
#host: "yb-tserver-service:6379"
host: "yb-tserver-service:5433"
#host: "yb-tserver-service.nextcloud.svc:6379"
#host: "yb-tserver-service.nextcloud.svc:5433"
## Database user
user: yugabyte
## Database password
password: yugabyte
## Database name
database: yugabyte
## Use a existing secret
existingSecret:
enabled: false
# secretName: nameofsecret
usernameKey: db-username
passwordKey: db-password
# hostKey: db-hostname-or-ip
# databaseKey: db-name
redis:
enabled: false
yugabyte:
tls:
enabled: true
preflight:
skipUlimit: true
replicas:
master: 3
tserver: 3
resource:
master:
requests:
cpu: "1"
memory: 2Gi
limits:
cpu: "2"
## Ensure the 'memory' value is strictly in 'Gi' or 'G' format. Deviating from these formats
## may result in setting an incorrect value for the 'memory_limit_hard_bytes' flag.
## Avoid using floating numbers for the numeric part of 'memory'. Doing so may lead to
## the 'memory_limit_hard_bytes' being set to 0, as the function expects integer values.
memory: 2Gi
tserver:
requests:
cpu: "1"
memory: 4Gi
limits:
cpu: "2"
Screenshot
# \dt
List of relations
Schema | Name | Type | Owner
--------+----------------+-------+----------
public | oc_appconfig | table | oc_admin
public | oc_filecache | table | oc_admin
public | oc_group_admin | table | oc_admin
public | oc_group_user | table | oc_admin
public | oc_groups | table | oc_admin
public | oc_jobs | table | oc_admin
public | oc_migrations | table | oc_admin
public | oc_mimetypes | table | oc_admin
public | oc_mounts | table | oc_admin
public | oc_preferences | table | oc_admin
public | oc_properties | table | oc_admin
public | oc_share | table | oc_admin
public | oc_storages | table | oc_admin
If I use the latest version of yugabyte, postgres 15 compatible it gets a little further:
# \dt
List of relations
Schema | Name | Type | Owner
--------+------------------------+-------+----------
public | oc_appconfig | table | oc_admin
public | oc_authtoken | table | oc_admin
public | oc_bruteforce_attempts | table | oc_admin
public | oc_filecache | table | oc_admin
public | oc_group_admin | table | oc_admin
public | oc_group_user | table | oc_admin
public | oc_groups | table | oc_admin
public | oc_jobs | table | oc_admin
public | oc_migrations | table | oc_admin
public | oc_mimetypes | table | oc_admin
public | oc_mounts | table | oc_admin
public | oc_preferences | table | oc_admin
public | oc_properties | table | oc_admin
public | oc_share | table | oc_admin
public | oc_storages | table | oc_admin
public | oc_users | table | oc_admin
public | oc_vcategory | table | oc_admin
(17 rows)
- Ngôn ngữ chính
- Go Template
- Star
- 537
- Fork
- 317
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 nextcloud/helm
-
No native support for REDIS_USER enviroment varCó thể đã có người làm @jholmes802 đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Failed to inspect imageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Nextcloud pods run as the namespace's default service account: the chart's account is only created with rbac.enabled, which binds the removed PodSecurityPolicyCó thể đã có người làm @martin-mat đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setCó thể đã có người làm @JanWelker đã nhận 26 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Tất cả issue của nextcloud/helm
Issue tương tự
-
cloudflare: root entry eagerly imports `wrangler`, so `d1`/`r2`/`kvCache` cannot load without a Wrangler installCó thể đã có người làm @emdashbot đã nhận hôm nay. Đang mởarea/cloudflare bot:bug bot:needs-attention
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
emdash-cms/emdash#4232 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
auto-shift/autoshiftv2#282 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
voidzero-dev/void#463 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type: cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
googleapis/google-cloud-swift#1477 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/sagemaker-python-sdk#6495 ·
Maintainer thường phản hồi trong vòng 2 ngày