nextcloud / nextcloud/helm

Unable to Deploy Helm with Latest Image

Open
#112 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

apache
Dominant language
Go Template
Stars
534
Forks
314
Avg merge
42m
Merged PRs (30d)
1

Description

I've been trying to deploy the chart with the latest image, but haven't been able to do so successfully. What happens is the app is deployed, but I get the following (from the browser):

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Looking at the logs:

Configuring Redis as session handler
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.2.113
. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.2.113
. Set the 'ServerName' directive globally to suppress this message
[Thu Apr 29 23:06:33.539895 2021] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.16
configured -- resuming normal operations
[Thu Apr 29 23:06:33.540056 2021] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
10.42.1.44 - - [29/Apr/2021:23:06:47 +0000] "GET /index.php HTTP/1.1" 500 717 "-" "Mozilla/5.0 (X11; Linux
 x86_64; rv:88.0) Gecko/20100101 Firefox/88.0"
10.42.1.44 - - [29/Apr/2021:23:06:47 +0000] "GET /favicon.ico HTTP/1.1" 500 717 "-" "Mozilla/5.0 (X11; Lin
ux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0"

I've been combing past posts, and the docs. I've tried enabling huge pages, and anything else that I found but I can't find the root cause of this issue.

I've also tried port-forwarding as the documentation suggests.

Is this a bug known with the latest image?

Here is my PVC:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: cloud-pvc
  namespace: lab
  labels:
    app: media
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi

My values.yaml, deployed with helm install cloud nextcloud/nextcloud --namespace lab --values values.yaml

 image:
  repository: nextcloud
  tag: stable-apache
  pullPolicy: Always

ingress:
  enabled: true
  annotations:
    kubernetes.io/ingress.class: traefik
    cert-manager.io/cluster-issuer: letsencrypt-example
    traefik.ingress.kubernetes.io/frontend-entry-points: http,https
  hosts:
    - host: cloud.example.com
      paths:
      - path: /
  tls:
  - secretName: cloud-tls
    hosts:
      - cloud.example.com

nextcloud:
  host: cloud.example.com
  username: admin
  password: changeme
  update: 0

internalDatabase:
  enabled: false
  name: nextcloud

externalDatabase:
  enabled: true
  type: postgresql
  host: postgres.lab.svc.cluster.local:5432
  user: cloud
  password: cloud
  database: clouddb
  existingSecret:
    enabled: false

redis:
  enabled: true
  usePassword: false

service:
  type: ClusterIP
  port: 80
  loadBalancerIP: nil
  nodePort: nil

persistence:
  # Nextcloud Data (/var/www/html)
  enabled: true
  annotations: {}
  existingClaim: cloud-pvc
  accessMode: ReadWriteOnce
  size: 10Gi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Helm deployment with the supplied values.yaml and cloud-pvc configuration, then inspect the pod and Apache logs for the cause of the HTTP 500 responses. Check the external PostgreSQL, Redis, ingress, and latest-image settings described in the issue. Done means identifying and documenting the root cause, or confirming the chart and image combination works with a corrected configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, helm, kubernetes, php, postgresql, redis
Domain
backend, cloud, databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.