Comments (5)
The startupProbe
is an inconsistent solution. The delay will always need to be longer than it takes for the database to come up, if this takes longer than usual, because your cluster is waiting to claim resources for example, this will still fail. The initContainer
solution actually checks if your container is ready. You can test my PR to see if it fixes the issue for you?
from helm.
If anybody is still getting this, it's likely due to the same issue (installation being interrupted).
In my case, it helped to increase the settings for the readiness and liveness probes:
startupProbe:
enabled: true
periodSeconds: 30
failureThreshold: 10
livenessProbe:
enabled: true
initialDelaySeconds: 60
periodSeconds: 30
failureThreshold: 10
Also, if you're using an external database, and are managing it and this chart with kustomize, you can set the nextcloud kustomization to wait for the postgress customization using dependsOn
. For example:
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: nextcloud-postgresql-release
namespace: flux-system
spec:
path: ./kubernetes/workloads/nextcloud/postgresql/release
prune: true
sourceRef:
kind: GitRepository
name: flux-system
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: nextcloud-release
namespace: flux-system
spec:
path: ./kubernetes/workloads/nextcloud/nextcloud/release
prune: true
dependsOn:
- name: nextcloud-postgresql-release
sourceRef:
kind: GitRepository
name: flux-system
wait: true
interval: 30m
retryInterval: 1m
timeout: 15m
from helm.
This issue ticket is probably related to #52, #49 and #42.
All because Nextcloud is not failing correctly when database is not yet available. See my suggested solutions above.
from helm.
Recently StartProbe was added to Nextcloud helm charts.
startupProbe:
enabled: true
This does not solve the initial problem but it makes Nextcloud fail correctly in my case. Meaning after a second retry the database is now up and nextcloud will successfully install itself understanding that it failed the first try and will not ask for CAN_INSTALL file.
from helm.
Even with the startupProbe
enabled, my Nextcloud deployment asks for the CAN_INSTALL file after failing because the included database is not ready on the first try.
Am I missing something or only something like #67 will fix this issue ?
from helm.
Related Issues (20)
- Can't start Nextcloud because the version of the data (0.0.0.0) is higher than the docker image version () and downgrading is not supported. Are you sure you have pulled the newest image version? HOT 1
- Helm chart 4.6.8 does not work when using an external database for NextCloud. "key" is not defined. HOT 1
- Cannot disable packaged PostgreSQL HOT 2
- Feature: Use CronJob resources instead of a container with crond HOT 9
- PHP Memory Limit should be configured properly by default HOT 8
- Enabling `.persistence.enabled` leads to `/var/www/html/lib` and probably other files not being created HOT 5
- chown permission in nfs pvc HOT 2
- Error: Accessing site insecurely via HTTP | Config Question HOT 3
- Add ExtraVolumes for Cronjob Container HOT 2
- Feature: Add Valkey as an optional subchart to be an alternative to redis HOT 1
- Feature: Add test for enabling redis to ci
- Feature: Add test for metrics in CI
- Feature: Add OnlyOffice as a subchart
- Feature: Add Collabora as a subchart
- New S3 Configuration breaks prior S3 configuration and is missing uploadPartSize HOT 7
- Feature: Add test for adding extra configs in CI
- failed to create resource: Deployment.apps "nextcloud" is invalid: [spec.template.spec.containers[0].env[22].valueFrom.secretKeyRef.key: Required value, spec.template.spec.containers[1].env[22].valueFrom.secretKeyRef.key: Required value] HOT 1
- Changing nextcloud.host vars results in crashloopbackoff HOT 1
- The smb protocol is not available
- Configure datadir & external database properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm.