Changing nextcloud.host vars results in crashloopbackoff
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- helm, kubernetes, yaml
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Bắt đầu với values.yaml được cung cấp và tái hiện thay đổi trên Helm chart version 5.5.2, so sánh cấu hình đã render và hành vi khởi động của container Nextcloud trước và sau khi thay đổi nextcloud.host. Kiểm tra các template liên quan đến host của chart và các deployment log; issue được hoàn thành khi việc thay đổi hostname không còn gây ra CrashLoopBackOff.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe your Issue
Changing the helm value responsible for the ingress hostname and the nextcloud internal host results in crashloopbackoff.
After changing back the nextcloud.host to the old value the deployment come back online. But this help in this case because I and I'm sure many other needs to change the hostname sometimes because of a migration to a other network etc.
Changing
nextcloud:
host: mycoolserver.example.com
to
nextcloud:
host: mycoolserver.newnetwork.com
I need to change this because I want to use my other ingress controller which can be accessed from the WAN.
Logs and Errors
crashloopbackoff in the nexcloud container inside the nextcloud pod. Nothing helpfull inside the log. The log shows no indicator about this issue. It looks simply like a exit code 1
Describe your Environment
-
Kubernetes distribution: v1.30.2+rke2r1
-
Helm Version: ArgoCD version 2.11.7
-
Helm Chart Version: 5.5.2
-
values.yaml:
---
{{- if .Values.spec.nextcloud.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nextcloud
namespace: {{ .Values.spec.argocdNamespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: nextcloud
server: 'https://kubernetes.default.svc'
project: default
source:
chart: nextcloud
path: '.'
repoURL: {{ .Values.spec.nextcloud.repoURL }}
targetRevision: {{ .Values.spec.nextcloud.targetRevision }}
helm:
values: |
nextcloud:
host: {{ .Values.spec.nextcloud.host }}
username: admin
password: {{ .Values.spec.nextcloud.nextcloudAdminPW }}
containerPort: 80
datadir: /var/www/html/data
configs:
custom-overwrite.config.php: |-
<?php
$CONFIG = array (
'overwrite.cli.url' => 'https://nextcloud.nextcloud.svc.cluster.local',
'overwriteprotocol' => 'https',
);
proxy.config.php: |-
<?php
$CONFIG = array (
'trusted_proxies' => array(
0 => '127.0.0.1',
1 => '10.0.0.0/8',
),
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
);
cronjob:
enabled: true
persistence:
enabled: true
size: 150Gi
storageClass: "{{ .Values.spec.nextcloud.storageClass }}"
image:
flavor: fpm
nginx:
enabled: true
externalDatabase:
enabled: true
type: mysql
host: nextcloud-mariadb.svc
user: nextcloud
password: "{{ .Values.spec.nextcloud.mariadbPW }}"
database: nextcloud
internalDatabase:
enabled: false
mariadb:
enabled: true
primary:
persistence:
enabled: true
storageClass: "{{ .Values.spec.nextcloud.storageClass }}"
auth:
database: nextcloud
username: nextcloud
password: "{{ .Values.spec.nextcloud.mariadbPW }}"
existingSecret: ""
ingress:
enabled: true
labels: {}
path: /
pathType: Prefix
className: nginx
annotations:
# cert-manager.io/cluster-issuer: letsencrypt-prod
cert-manager.io/cluster-issuer: selfsigned-issuer
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
nginx.ingress.kubernetes.io/server-snippet: |-
server_tokens off;
proxy_hide_header X-Powered-By;
rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
deny all;
}
location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
deny all;
}
tls:
- secretName: nextcloud-tls
hosts:
- {{ .Values.spec.nextcloud.host }}
syncPolicy:
automated:
selfHeal: true
allowEmpty: true
syncOptions:
- CreateNamespace=true
{{- end }}
- Ngôn ngữ chính
- Go Template
- Star
- 536
- Fork
- 316
- Merge trung bình
- 4 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 2
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 1 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.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setCó thể đã có người làm @JanWelker đã nhận 17 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
-
External Redis not working: redis-session.ini: Permission deniedCó thể đã có người làm @antoinetran đã nhận 22 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Tất cả issue của nextcloud/helm
Issue tương tự
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Altinn/altinn-auth#4359 ·
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 82/100
aws-samples/appmod-blueprints#972 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lens:agent lens:process process
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
thebristolsound/birdbrain#1771 ·
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
Maintainer thường phản hồi trong vòng 1 ngày
-
area:ops priority:P2 type:chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
skaiy/wild_agentos#407 ·
Maintainer thường phản hồi trong vòng 1 ngày