Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accessMode: ReadWriteMany prevents the application from starting #537

Closed
MohammedNoureldin opened this issue Feb 18, 2024 · 4 comments
Closed

Comments

@MohammedNoureldin
Copy link

MohammedNoureldin commented Feb 18, 2024

Describe your Issue

Setting accessMode: ReadWriteMany prevents the software from starting. The nextcloud container starts in the mode (initializing..)

Nothing is shown in the log, and no interesting events. The PV was properly mounted.

Describe your Environment

  • Helm Chart Version: 4.6.2 deployed by Argo CD.

  • values.yaml:

nextcloud:
  host: "nextcloud.{{ domain_name }}"
  configs:
    proxy.config.php: |-
      <?php
      $CONFIG = array (
        'trusted_proxies' => array(
          0 => '127.0.0.1',
          1 => '{{ pod_network_cidr }}',
        ),
        'overwriteprotocol' => 'https',
        'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
      );
  mail:
    enabled: true
    fromAddress: nextcloud # fromAddress@domain
    domain: {{ domain_name }}
    smtp:
      host: mail.{{ domain_name }}
      port: 465
      secure: 'ssl'
      name: {{ mail_server.generic_mail_sender_username }}
      password: {{ mail_server.generic_mail_sender_password }}
  extraVolumes:
    - name: pki-self-signed
      secret:
        secretName: {{ domain_name }}-tls-self-signed
        defaultMode: 0600
    - name: seeds
      configMap:
        name: seeds
  extraVolumeMounts:
    - name: pki-self-signed
      mountPath: "/run/pki-self-signed"
      readOnly: true
    - name: seeds
      mountPath: "/run/seeds"
      readOnly: true

# TODO NICE: maybe convert to initContainer if possible
lifecycle:
  # The installation of `sudo` is required to execute `occ` with the user `www-data`.
  postStartCommand:
    - "bash"
    - "-c"
    - |
      apt update && apt install -y sudo;
      cp /run/pki-self-signed/ca.crt /usr/local/share/ca-certificates && update-ca-certificates;

      # TODO NICE: add flag handling to receive the --seed_version_path and --seeds_dir.
      bash /run/seeds/seeder.sh

cronjob:
  enabled: true

ingress:
  enabled: true
  className: nginx
  annotations:
    # These annotations are documented to be used to preserve the source IP.
    nginx.ingress.kubernetes.io/enable-cors: "true"
    nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
  tls:
    - secretName: "{{ domain_name }}-tls"
      hosts:
        - "nextcloud.{{ domain_name }}"

persistence:
  enabled: true
  size: 8Gi
  # For horizontal pod auto-scaling
  accessMode: ReadWriteMany
# Disables the usage of SQLite database.
internalDatabase:
  enabled: false
postgresql:
  enabled: true
  global:
    postgresql:
      auth:
        database: nextcloud
        username: nextcloud
        existingSecret: database-credentials
        secretKeys:
          adminPasswordKey: admin_password
          userPasswordKey: password
  primary:
    persistence:
      enabled: true
      size: 8Gi
@MohammedNoureldin MohammedNoureldin changed the title A descriptive title of the issue cron.php does not found Feb 18, 2024
@MohammedNoureldin MohammedNoureldin changed the title cron.php does not found cron.php is not found Feb 18, 2024
@MohammedNoureldin
Copy link
Author

After extensive tests I see that this is most likely not related to Helm chart. Can we move it to the proper repository?

@provokateurin
Copy link
Member

Sure, but I don't know if this is a docker specific issue either. Probably your installation is borked and therefore the files are missing.

@MohammedNoureldin
Copy link
Author

Thank you for your reply.

It is not also Docker related. I opened it here because my setup used to work with older Chart, I tried that chart again but I still have the same issue. Probably I ruined something unintentionally.

I am starting with a minimal configs and increasing them step by step. I will report the updates.

@MohammedNoureldin
Copy link
Author

MohammedNoureldin commented Feb 18, 2024

Seems to be related to #399

I will close in favor to the other already opened issues.

@MohammedNoureldin MohammedNoureldin changed the title cron.php is not found accessMode: ReadWriteMany prevents the application from starting Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants