Nextcloud: can't login after installing

7/18/2021

I'm trying to install nextcloud 21.0.2 using the official helm chart on my k3os cluster. After installing all components I'm not able login. To debug the íssue I changed the debug lvl to debug and found:

  Debug    core               OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at .../Middleware/Security/SecurityMiddleware.php line 143         2021-07-18T16:03:51+00:00

                          0. lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 98
                             OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(OCA\Dashboard\Controller\DashboardController {}, "index")
                          1. lib/private/AppFramework/Http/Dispatcher.php line 119
                             OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(OCA\Dashboard\Controller\DashboardController {}, "index")
                          2. lib/private/AppFramework/App.php line 157
                             OC\AppFramework\Http\Dispatcher->dispatch(OCA\Dashboard\Controller\DashboardController {}, "index")
                          3. lib/private/Route/Router.php line 302
                             OC\AppFramework\App::main(
                               "OCA\\Dashboard\\Controller\\DashboardController",
                               "index",
                               OC\AppFramework\DependencyInjection\DIContainer {},
                               {_route:"dashboard.dashboard.index"}
                             )
                          4. lib/base.php line 993
                             OC\Route\Router->match("\/apps\/dashboard\/")
                          5. index.php line 37
                             OC::handleRequest(

                             )

My helm values look like:

image:
  tag: 21-fpm-alpine

replicaCount: 1

ingress:
  enabled: true
  annotations:
    traefik.ingress.kubernetes.io/router.middlewares: traefik-system-security@kubernetescrd
    traefik.ingress.kubernetes.io/router.entrypoints: websecure 

nextcloud:
  host: [redacted]
  existingSecret:
    enabled: true
    secretName: nextcloud-web
    usernameKey: username
    passwordKey: password

  update: 0

  configs:
    trusted-domain.config.php: |-
      <?php
      $CONFIG = array (
        'trusted_domains' =>
        array (
          0 => 'localhost',
          1 => '[redacted]'
        ),
      );

nginx:
  enabled: true

internalDatabase:
  enabled: false

externalDatabase:
  enabled: true
  type: mysql
  host: nextcloud-mariadb
  database: nextcloud
  existingSecret:
    enabled: true
    secretName: nextcloud-mariadb
    usernameKey: mariadb-user
    passwordKey: mariadb-password

mariadb:
  enabled: true
  image:
    tag: 10.5
  existingSecret: nextcloud-mariadb
  master:
    persistence:
      enabled: true
      storageClass: "nfs-fast"

redis:
  enabled: true
  image:
    tag: 6.2
  cluster:
    enabled: false
  master:
    persistence:
      storageClass: "nfs-fast"
  existingSecret: nextcloud-redis
  existingSecretPasswordKey: redis-password
  
persistence:
  enabled: true
  storageClass: "nfs-slow"
  size: 400Gi

livenessProbe:
  enabled: false
readinessProbe:
  enabled: false
startupProbe:
  enabled: false

metrics:
  enabled: true

rbac:
  enabled: true

I already tried to get some help in the nextcloud support forum. But got no answered after over 25 days. The credentials can't be wronge cause I resetted them using occ to ensure that they are 100% correct.

-- McNulty
k3s
kubernetes
nextcloud

0 Answers