failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
调研方向
从 Chart.yaml 和 values.yaml 开始,重点关注 nextcloud.externalDatabase 和 yugabyte.tls,然后将渲染后的配置与日志中的 certificate 和 oc_migrations 错误进行比较。当 chart 配置支持所报告的外部数据库设置,且不会出现连接或迁移权限错误时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- Go Template
- 星标
- 536
- 派生
- 316
- 平均合并
- 4 天 16 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/helm 的其他 Issue
-
No native support for REDIS_USER enviroment var可能已有人在做 @jholmes802 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is set可能已有人在做 @JanWelker 于 18 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 78/100
-
External Redis not working: redis-session.ini: Permission denied可能已有人在做 @antoinetran 于 22 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
相似的 Issue
-
gcsartifact: deleting a missing version returns an error可能已有人在做 @ktsoator 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
api: run samples
难度 2/5 1-3 小时 新手友好度 62/100
GoogleCloudPlatform/python-docs-samples#14633 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
apache/iceberg-python#4093 ·
维护者通常 1 天内回复
-
enhancement exporter/awss3 needs triage
难度 2/5 1-3 小时 新手友好度 66/100
open-telemetry/opentelemetry-collector-contrib#51905 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
Azure/osdu-spi-stack#324 ·
维护者通常 1 天内回复