Chart not working without persistence
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- helm, kubernetes, postgresql, redis
- 领域
- cloud, databases, devops, infrastructure
调研方向
从 values.yaml 中的 persistence 和 objectStore 设置开始,然后跟踪日志中显示的 /docker-entrypoint-hooks.d/pre-installation/helm.sh 步骤及其对 version.php 的处理。在禁用 persistence 的情况下重现该行为,并定义后续 pod 运行应如何在评估存储选项之前定位现有安装。
由索引模型根据 Issue 内容生成。
描述
Describe your Issue
If persistence is not enabled then the pod only works the first time, but on subsequent runs it won't find version.php and will attempt to install again.
Wouldn't it be possible to store the information found in version.php elsewhere, such as database or object storage?
Logs and Errors
See example log:
$ kubectl logs -f xxx-nc-nextcloud-bfb76c9c8-ds8gr
Defaulted container "nextcloud" out of: nextcloud, nextcloud-cron
Configuring Redis as session handler
Initializing nextcloud 30.0.6.2 ...
New nextcloud instance
Installing with PostgreSQL database
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation
==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/pre-installation/helm.sh"
==> Finished the script: "/docker-entrypoint-hooks.d/pre-installation/helm.sh"
Starting nextcloud installation
The Login is already being used
Retrying install...
The Login is already being used
Retrying install...
The Login is already being used
Retrying install...
The Login is already being used
Retrying install...
Describe your Environment
-
Kubernetes distribution: k3s
-
Helm Version (or App that manages helm): v3.17.2
-
Helm Chart Version: 6.6.9
-
values.yaml:
replicaCount: 1
image:
flavor: fpm
tag: 31.0.2-fpm
nginx:
enabled: true
nextcloud:
host: xxx
podSecurityContext:
fsGroup: 33
trustedDomains:
- xxx
- yy
phpConfigs:
zz-memory_limit.ini: |-
upload_max_filesize=5G
memory_limit=512M
configs:
proxy.config.php: |-
<?php
$CONFIG = array (
'trusted_proxies' => array(
0 => '127.0.0.1',
1 => '10.0.0.0/8',
2 => '1.2.3.4/24',
3 => '5.6.7.8/24',
),
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
);
cronjob:
enabled: true
redis:
enabled: true
auth:
enabled: false
service:
type: NodePort
nodePort: 30850
internalDatabase:
enabled: false
externalDatabase:
enabled: true
type: postgresql
host: xxxxx
database: nextcloud
user: nextcloud
password: xxxxx
objectStore:
s3:
enabled: false
accessKey: xxxxx
secretKey: xxxxxx
host: xxxx.minio-nc.svc.cluster.local
bucket: nextcloud-bucket
ssl: false
port: 9000
startupProbe:
enabled: false
initialDelaySeconds: 240
persistence:
enabled: false
- 主要语言
- 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 于 17 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 78/100
-
External Redis not working: redis-session.ini: Permission denied可能已有人在做 @antoinetran 于 22 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
相似的 Issue
-
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 天内回复
-
- P2: has workaround pkg: cloudflare triage: fix pending
难度 2/5 1-3 小时 新手友好度 65/100
withastro/astro#18319 · 1 条评论 ·
维护者通常 1 天内回复
-
@aws-cdk/aws-lambda needs-triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复