failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Comienza con Chart.yaml y values.yaml, centrándote en nextcloud.externalDatabase y yugabyte.tls; después, compara la configuración renderizada con los errores certificate y oc_migrations de los registros. Se considera terminado cuando la configuración del chart admite la configuración de la base de datos externa reportada sin errores de conexión ni de permisos de migración.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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)
- Lenguaje dominante
- Go Template
- Estrellas
- 536
- Forks
- 316
- Merge medio
- 4 d 16 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/helm
-
No native support for REDIS_USER enviroment varPosiblemente ocupada @jholmes802 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Failed to inspect imageAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setPosiblemente ocupada @JanWelker la tomó hace 18 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
-
External Redis not working: redis-session.ini: Permission deniedPosiblemente ocupada @antoinetran la tomó hace 23 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Todos los issues de nextcloud/helm
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rustyrazorblade/easy-db-lab#1001 ·
Los mantenedores suelen responder en 1 día
-
gcsartifact: deleting a missing version returns an errorPosiblemente ocupada @ktsoator la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
api: run samples
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
GoogleCloudPlatform/python-docs-samples#14633 ·
Los mantenedores suelen responder en 5 días
-
PyArrowFileIO: every small S3 write is a 3-request multipart upload; expose allow_delayed_openAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/iceberg-python#4093 ·
Los mantenedores suelen responder en 1 día