Giter Site home page Giter Site logo

Comments (5)

wikoion avatar wikoion commented on September 7, 2024 1

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.

xyhhx avatar xyhhx commented on September 7, 2024 1

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.

niklashagman avatar niklashagman commented on September 7, 2024

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.

niklashagman avatar niklashagman commented on September 7, 2024

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.

tcardonne avatar tcardonne commented on September 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.