PHOENIX-MEDIA / magento2-helm

Helm Chart to deploy Magento2 in Kubernetes
35 stars 11 forks source link

Error: There are no commands defined in the "cache" namespace. #22

Open fabiorleal opened 1 month ago

fabiorleal commented 1 month ago

Hey Phoenix-Media Team(@phoenix-bjoern or @phoenix-henri), very nice work creating the tutorial and these repos, but...

Summary:

I have been trying to install Magento2 for a few weeks now and have had no success so far. I am trying to deploy magento2 on premise K8s clsuter, following Running Magento2 in Kubernetes - part 2 and Running Magento2 in Kubernetes - part 3 articles. Some changes I had to make were:

Error:

Cronjob Pod is not coming up on deploying using this magento2-helm chart, getting error in pod logs:

❯ kl -f cronjob-64b874cf79-xfljv
Defaulted container "cronjob" out of: cronjob, check-redis (init), check-rabbitmq (init), check-mysql (init), check-elasticsearch (init)
2024-08-08 12:26:11,899 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-08-08 12:26:11,908 INFO supervisord started with pid 1
2024-08-08 12:26:12,914 INFO spawned: 'deploy' with pid 7
2024-08-08 12:26:12,922 INFO spawned: 'cronjob' with pid 8
Installing sample data...
2024-08-08 12:26:12,991 INFO success: deploy entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
******************************
** nginx server_name SETUP ***
******************************
******************************
******* POSTFIX SETUP ********
******************************
Forwarding all emails to smtp.office365.com
without any authentication. Make sure your server is configured to accept emails coming from this IP.
******************************
******* PHP SETUP ************
******************************
2024-08-08 12:26:14,103 INFO success: cronjob entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
postfix/postlog: starting the Postfix mail system
./composer.json has been updated
Running composer update magento/module-bundle-sample-data magento/module-catalog-sample-data magento/module-sales-sample-data magento/module-customer-sample-data magento/module-cms-sample-data magento/module-widget-sample-data magento/module-theme-sample-data magento/module-wishlist-sample-data magento/module-downloadable-sample-data magento/module-review-sample-data magento/module-tax-sample-data magento/module-configurable-sample-data magento/module-product-links-sample-data magento/module-msrp-sample-data magento/module-grouped-product-sample-data magento/module-catalog-rule-sample-data magento/module-sales-rule-sample-data magento/module-swatches-sample-data magento/module-offline-shipping-sample-data magento/sample-data-media
Loading composer repositories with package information
Updating dependencies
Lock file operations: 20 installs, 0 updates, 0 removals
  - Locking magento/module-bundle-sample-data (100.4.3)
  - Locking magento/module-catalog-rule-sample-data (100.4.3)
  - Locking magento/module-catalog-sample-data (100.4.3)
  - Locking magento/module-cms-sample-data (100.4.3)
  - Locking magento/module-configurable-sample-data (100.4.3)
  - Locking magento/module-customer-sample-data (100.4.3)
  - Locking magento/module-downloadable-sample-data (100.4.3)
  - Locking magento/module-grouped-product-sample-data (100.4.3)
  - Locking magento/module-msrp-sample-data (100.4.3)
  - Locking magento/module-offline-shipping-sample-data (100.4.3)
  - Locking magento/module-product-links-sample-data (100.4.3)
  - Locking magento/module-review-sample-data (100.4.3)
  - Locking magento/module-sales-rule-sample-data (100.4.3)
  - Locking magento/module-sales-sample-data (100.4.3)
  - Locking magento/module-swatches-sample-data (100.4.3)
  - Locking magento/module-tax-sample-data (100.4.3)
  - Locking magento/module-theme-sample-data (100.4.3)
  - Locking magento/module-widget-sample-data (100.4.3)
  - Locking magento/module-wishlist-sample-data (100.4.3)
  - Locking magento/sample-data-media (100.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 20 installs, 0 updates, 0 removals
  - Downloading magento/module-catalog-sample-data (100.4.3)
  - Downloading magento/module-bundle-sample-data (100.4.3)
  - Downloading magento/module-theme-sample-data (100.4.3)
  - Downloading magento/module-cms-sample-data (100.4.3)
  - Downloading magento/module-customer-sample-data (100.4.3)
  - Downloading magento/module-downloadable-sample-data (100.4.3)
  - Downloading magento/module-grouped-product-sample-data (100.4.3)
  - Downloading magento/module-msrp-sample-data (100.4.3)
  - Downloading magento/module-offline-shipping-sample-data (100.4.3)
  - Downloading magento/module-product-links-sample-data (100.4.3)
  - Downloading magento/module-review-sample-data (100.4.3)
  - Downloading magento/module-catalog-rule-sample-data (100.4.3)
  - Downloading magento/module-sales-rule-sample-data (100.4.3)
  - Downloading magento/module-configurable-sample-data (100.4.3)
  - Downloading magento/module-sales-sample-data (100.4.3)
  - Downloading magento/module-swatches-sample-data (100.4.3)
  - Downloading magento/module-tax-sample-data (100.4.3)
  - Downloading magento/module-widget-sample-data (100.4.3)
  - Downloading magento/module-wishlist-sample-data (100.4.3)
  - Downloading magento/sample-data-media (100.4.0)
  - Installing magento/module-catalog-sample-data (100.4.3): Extracting archive
  - Installing magento/module-bundle-sample-data (100.4.3): Extracting archive
  - Installing magento/module-theme-sample-data (100.4.3): Extracting archive
  - Installing magento/module-cms-sample-data (100.4.3): Extracting archive
  - Installing magento/module-customer-sample-data (100.4.3): Extracting archive
  - Installing magento/module-downloadable-sample-data (100.4.3): Extracting archive
  - Installing magento/module-grouped-product-sample-data (100.4.3): Extracting archive
  - Installing magento/module-msrp-sample-data (100.4.3): Extracting archive
  - Installing magento/module-offline-shipping-sample-data (100.4.3): Extracting archive
  - Installing magento/module-product-links-sample-data (100.4.3): Extracting archive
  - Installing magento/module-review-sample-data (100.4.3): Extracting archive
  - Installing magento/module-catalog-rule-sample-data (100.4.3): Extracting archive
  - Installing magento/module-sales-rule-sample-data (100.4.3): Extracting archive
  - Installing magento/module-configurable-sample-data (100.4.3): Extracting archive
  - Installing magento/module-sales-sample-data (100.4.3): Extracting archive
  - Installing magento/module-swatches-sample-data (100.4.3): Extracting archive
  - Installing magento/module-tax-sample-data (100.4.3): Extracting archive
  - Installing magento/module-widget-sample-data (100.4.3): Extracting archive
  - Installing magento/module-wishlist-sample-data (100.4.3): Extracting archive
  - Installing magento/sample-data-media (100.4.0): Extracting archive
<warning>Package laminas/laminas-crypt is abandoned, you should avoid using it. No replacement was suggested.</warning>
<warning>Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.</warning>
Generating autoload files
152 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
<warning>Found 1 security vulnerability advisory affecting 1 package.</warning>
Run "composer audit" for a full list of advisories.
Sample data modules have been added via composer. Please run bin/magento setup:upgrade
[2024-08-08T12:27:30.828111+00:00] INFO: Starting scenario(s): scenario/deploy.xml, vendor/phoenix-media/magento2-ece-tools/scenario/deploy/custom-mode-config.xml (magento/ece-tools version: 2002.1.19, magento/magento2-base version: 2.4.6)
[2024-08-08T12:27:31.998068+00:00] INFO: Deleting flag: var/.deploy_is_failed
[2024-08-08T12:27:32.325934+00:00] INFO: Deleting flag: var/.env_file_absence
[2024-08-08T12:27:32.327738+00:00] NOTICE: Starting pre-deploy.
[2024-08-08T12:27:32.328338+00:00] INFO: Set "env_file_absence" flag
[2024-08-08T12:27:32.332425+00:00] INFO: Set flag: var/.env_file_absence
[2024-08-08T12:27:32.490319+00:00] INFO: Updating cache configuration.
[2024-08-08T12:27:32.491122+00:00] INFO: Skip copying directory ./var/view_preprocessed.
[2024-08-08T12:27:32.491371+00:00] INFO: Clearing ./var/view_preprocessed
[2024-08-08T12:27:32.499875+00:00] INFO: Clearing var/cache directory
[2024-08-08T12:27:32.513867+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/app/etc. Directory does not exist.
2024-08-08 12:27:32,514 INFO reaped unknown pid 203 (exit status 0)
[2024-08-08T12:27:32.546223+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/pub/media. Directory does not exist.
[2024-08-08T12:27:32.550076+00:00] WARNING: [2026] Cannot copy directory "". Directory does not exist.
[2024-08-08T12:27:32.557077+00:00] NOTICE: Recoverable directories were copied back.
[2024-08-08T12:27:32.558354+00:00] INFO: Deleting flag: var/.regenerate
[2024-08-08T12:27:32.558540+00:00] INFO: Set Magento application mode to 'production'
[2024-08-08T12:27:32.559442+00:00] INFO: Step "clean-redis-cache" was skipped
[2024-08-08T12:27:32.559604+00:00] NOTICE: End of pre-deploy.
[2024-08-08T12:27:32.560496+00:00] INFO: Step "enable-maintenance-mode" was skipped
[2024-08-08T12:27:32.562026+00:00] INFO: Disable cron
[2024-08-08T12:27:32.562849+00:00] INFO: Trying to kill running cron jobs and consumers processes
[2024-08-08T12:27:32.597729+00:00] INFO: Running Magento cron and consumers processes were not found.
[2024-08-08T12:27:32.598197+00:00] NOTICE: Validating configuration
[2024-08-08T12:27:32.603308+00:00] INFO: Checking if db exists and has tables
[2024-08-08T12:27:32.949661+00:00] NOTICE: Fix configuration with given suggestions:
[2024-08-08T12:27:32.949970+00:00] NOTICE: Can't validate version of some services: The command "redis-cli -p 6379 -h redis-master info | grep redis_version" failed. sh: redis-cli: not found
[2024-08-08T12:27:32.950094+00:00] WARNING: [2005] The following admin data is required to create an admin user during initial installation only and is ignored during upgrade process: admin email, admin login, admin first name, admin last name, admin password
[2024-08-08T12:27:32.953080+00:00] WARNING: Can't validate version of some services: The command "dpkg -s rabbitmq-server | grep Version" failed. sh: dpkg: not found
[2024-08-08T12:27:32.953282+00:00] WARNING: Can't validate version of some services: The command "redis-cli -p 6379 -h redis-master info | grep redis_version" failed. sh: redis-cli: not found
[2024-08-08T12:27:32.953394+00:00] NOTICE: End of validation
[2024-08-08T12:27:32.955072+00:00] INFO: Checking existence of encryption key
[2024-08-08T12:27:32.955616+00:00] INFO: Setting encryption key from CRYPT_KEY
[2024-08-08T12:27:32.957546+00:00] INFO: Checking if db exists and has tables
[2024-08-08T12:27:32.965611+00:00] INFO: Magento was installed on Thu, 08 Aug 2024 12:27:32 +0000
[2024-08-08T12:27:32.966024+00:00] WARNING: [2020] Magento state indicated as installed but configuration file app/etc/env.php was empty or did not exist. Required data will be restored from environment configurations and from .magento.env.yaml file.
[2024-08-08T12:27:32.969907+00:00] NOTICE: Starting update.
[2024-08-08T12:27:32.970116+00:00] INFO: Updating env.php.
[2024-08-08T12:27:32.971864+00:00] INFO: Updating env.php cron consumers runner configuration.
[2024-08-08T12:27:32.977002+00:00] INFO: Updating env.php DB connection configuration.
[2024-08-08T12:27:32.979299+00:00] INFO: Updating env.php AMQP configuration.
[2024-08-08T12:27:32.979980+00:00] INFO: redis will be used for session if it was not override by SESSION_CONFIGURATION
[2024-08-08T12:27:32.980270+00:00] INFO: Updating session configuration.
[2024-08-08T12:27:32.980724+00:00] INFO: Updating search engine configuration.
[2024-08-08T12:27:32.980840+00:00] INFO: Set search engine to: elasticsearch7
[2024-08-08T12:27:32.982033+00:00] INFO: Skipping URL updates because the URL_UPDATES variable is set to false.
[2024-08-08T12:27:32.982161+00:00] INFO: The value of the property 'directories/document_root_is_pub' set as 'true'
[2024-08-08T12:27:32.989851+00:00] INFO: The lock provider "db" was set.
[2024-08-08T12:27:32.991015+00:00] INFO: Updating env.php backend front name.
[2024-08-08T12:27:32.992433+00:00] INFO: Flushing cache.
[2024-08-08T12:27:36.448363+00:00] INFO: Set flag: var/.deploy_is_failed
[2024-08-08T12:27:36.448750+00:00] ERROR: [127] The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.
  There are no commands defined in the "cache" namespace.

In Processor.php line 129:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In InstallUpdate.php line 100:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In CleanCache.php line 75:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In Shell.php line 86:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

run <scenario>...

Deployment failed. Exiting.
2024-08-08 12:27:36,604 INFO exited: deploy (exit status 0; expected)
2024-08-08 12:30:19,973 WARN received SIGTERM indicating exit request
2024-08-08 12:30:19,974 INFO waiting for cronjob to die
2024-08-08 12:30:20,976 WARN stopped: cronjob (terminated by SIGTERM)

Steps followed:

1 - Followed Running Magento2 in Kubernetes — Part 2: Building the Docker Image and Magento2 container build pipeline for building the docker image. 2 - Configured the values.yaml file with with bellow values and passed the env variables values in base64. Significant changes:

global:
  imageRegistry: ""
  ## E.g.
  ## imagePullSecrets:
  ##   - myRegistryKeySecretName
  ##
#  imagePullSecrets: []
  imagePullSecrets: 
    - docker-secret

image:
  registry: myregistry.cloud.io
  repository: adobe/magento2
  tag: "2-test-p4"

#  repository: phoenixmedia/magento2
#  tag: "2.4.6-p4"
  pullPolicy: IfNotPresent

...
magento:
...
  resources: 
    requests:
      cpu: 250m
      memory: 256Mi
...
  extraInitContainer:
...
# Because ElasticSearch create a service named elasticsearch-master
      command: ['sh', '-c', 'while ! nc -z -v -w5 elasticsearch-master 9200 2>&1| grep -q open; do echo \"waiting for elasticsearch\"; sleep 1s; done']
...
cronjob:
...
  resources: 
    requests:
      cpu: 250m
      memory: 256Mi 
...
  extraInitContainer:
...
# Because ElasticSearch create a service named elasticsearch-master
      command: ['sh', '-c', 'while ! nc -z -v -w5 elasticsearch 9200 2>&1| grep -q open; do echo \"waiting for elasticsearch\"; sleep 1s; done']
...
elasticsearch:
  enabled: true
  #image: phoenixmedia/magento-cloud-docker-elasticsearch
  image: elasticsearch
  #imageTag: 7.17-1.3.5
  imageTag: 7.17.3
  namespace: magento
...
# Becausa version 7.17.3 already have cluster.initial_master_nodes 
  extraEnvs: []
#    - name: cluster.initial_master_nodes
#      value: null
...
opensearch:
  enabled: false
...
persistence:
...
  storageClassName: "myown-nfsv4"
...
ingress:
  ## Set to true to enable ingress record generation
  enabled: true
  ingressClassName: nginx
...
  hosts:
  - name: magento-tst.mydomain.com
    paths:
    - path: "/"
      serviceName: varnish
      servicePort: 80
  ## Set this to true in order to enable TLS on the ingress record
      tls: true
  ## Optionally specify the TLS hosts for the ingress record
  ## Useful when the Ingress controller supports www-redirection
  ## If not specified, the above host name will be used
  tlsHosts:
    - magento-tst.mydomain.com
  tlsSecret: mydomain-tls
...
secrets:
...
  credentials:
    data:
      # customize MAGENTO_CLOUD_* values. use 'echo "<string>" | base64 -d' to read values.
# Minor changes to issue creation
      MAGENTO_CLOUD_ROUTES: eyJodHRwOlwvXC9tYWdlbnRvLXRzdC5teWRvbWFpbi5jb21cLyI6eyJ0eXBlIjoidXBzdHJlYW0iLCJvcmlnaW5hbF91cmwiOiJodHRwOlwvXC97ZGVmYXVsdH1cLyJ9fQ==
      MAGENTO_CLOUD_VARIABLES: eyJBRE1JTl9GSVJTVE5BTUUiOiJGYWJpbyIsIkFETUlOX0xBU1ROQU1FIjoibGFzdG5hbWUiLCJBRE1JTl9FTUFJTCI6ImZhYmlvQG15ZG9tYWluLmNvbSIsIkFETUlOX1VTRVJOQU1FIjoiYWRtaW4iLCJBRE1JTl9QQVNTV09SRCI6InRvcFNlY3JldHBhc3N3b3JkIiwiQURNSU5fVVJMIjoiYWRtaW4iLCJDUllQVF9LRVkiOiI2ZmczN2pjNTI5ZTBkOWYwNjk2NjVjYmM5ZmUxNzBiMiJ9
      MAGENTO_CLOUD_RELATIONSHIPS: eyJkYXRhYmFzZSI6W3siaG9zdCI6Im15c3FsIiwicGF0aCI6Im1hZ2VudG8iLCJwYXNzd29yZCI6InRvcFNlY3JldCIsInVzZXJuYW1lIjoibWFnZW50byIsInBvcnQiOiIzMzA2In1dLCJyZWRpcyI6W3siaG9zdCI6InJlZGlzLW1hc3RlciIsICJwb3J0IjogIjYzNzkifV0sIm9wZW5zZWFyY2giOiBbeyJob3N0IjogImVsYXN0aWNzZWFyY2gtbWFzdGVyIiwgInNjaGVtZSI6ICJodHRwIiwgInBvcnQiOiAiOTIwMCJ9XSwicmFiYml0bXEiOlt7Imhvc3QiOiJyYWJiaXRtcSIsICJ1c2VybmFtZSI6InBob2VuaXgiLCAicGFzc3dvcmQiOiJNYWdlbnRvMTIzIiwgInNjaGVtZSI6ImFtcXAiLCAicG9ydCI6ICI1NjcyIn1dfQ==
...

      ADD_SAMPLE_DATA: "true"
      COMPOSER_AUTH: |-
              {
                "http-basic": {
                  "repo.magento.com": {
                    "username": "**KEY HASH FROM ADOBE SITE**",
                    "password": "**KEY HASH FROM ADOBE SITE**"
                  }
                }
              }

3 - Deployed the helm chart with the values.yaml

phoenix-bjoern commented 1 month ago

@fabiorleal The composer installation sometimes ends up with a messed up auto loader which requires another bin/magento setup:di:compile. Could you try to repeat the steps without the sample data?

fabiorleal commented 1 month ago

@phoenix-bjoern, thanks for the response. When you said to repeat without sample data, you mean to set the values.yaml variable ADD_SAMPLE_DATA: "false", right? Same error

❯ kl -f cronjob-f78599b78-56wt7 -c cronjob
2024-08-13 12:19:03,176 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-08-13 12:19:03,193 INFO supervisord started with pid 1
2024-08-13 12:19:04,217 INFO spawned: 'deploy' with pid 7
2024-08-13 12:19:04,253 INFO spawned: 'cronjob' with pid 8
******************************
2024-08-13 12:19:04,310 INFO success: deploy entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
** nginx server_name SETUP ***
******************************
******************************
******* POSTFIX SETUP ********
******************************
Forwarding all emails to smtp.office365.com
without any authentication. Make sure your server is configured to accept emails coming from this IP.
******************************
******* PHP SETUP ************
******************************
2024-08-13 12:19:05,735 INFO success: cronjob entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
postfix/postlog: starting the Postfix mail system
[2024-08-13T12:19:08.848212+00:00] INFO: Starting scenario(s): scenario/deploy.xml, vendor/phoenix-media/magento2-ece-tools/scenario/deploy/custom-mode-config.xml (magento/ece-tools version: 2002.1.17, magento/magento2-base version: 2.4.6-p4)
[2024-08-13T12:19:09.599346+00:00] NOTICE: Starting pre-deploy.
[2024-08-13T12:19:09.601511+00:00] INFO: Set "env_file_absence" flag
[2024-08-13T12:19:09.614656+00:00] INFO: Set flag: var/.env_file_absence
[2024-08-13T12:19:09.738946+00:00] INFO: Updating cache configuration.
[2024-08-13T12:19:09.739911+00:00] INFO: Skip copying directory ./var/view_preprocessed.
[2024-08-13T12:19:09.740025+00:00] INFO: Clearing ./var/view_preprocessed
[2024-08-13T12:19:09.821049+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/app/etc. Directory does not exist.
[2024-08-13T12:19:09.852610+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/pub/media. Directory does not exist.
2024-08-13 12:19:09,853 INFO reaped unknown pid 99 (exit status 0)
[2024-08-13T12:19:09.857432+00:00] WARNING: [2026] Cannot copy directory "". Directory does not exist.
[2024-08-13T12:19:09.859095+00:00] NOTICE: Recoverable directories were copied back.
[2024-08-13T12:19:09.859783+00:00] INFO: Set Magento application mode to 'production'
[2024-08-13T12:19:09.860498+00:00] INFO: Step "clean-redis-cache" was skipped
[2024-08-13T12:19:09.860632+00:00] NOTICE: End of pre-deploy.
[2024-08-13T12:19:09.860843+00:00] INFO: Step "enable-maintenance-mode" was skipped
[2024-08-13T12:19:09.861038+00:00] INFO: Disable cron
[2024-08-13T12:19:09.861664+00:00] INFO: Trying to kill running cron jobs and consumers processes
[2024-08-13T12:19:09.876888+00:00] INFO: Running Magento cron and consumers processes were not found.
[2024-08-13T12:19:09.877279+00:00] NOTICE: Validating configuration
[2024-08-13T12:19:09.880593+00:00] INFO: Checking if db exists and has tables
[2024-08-13T12:19:10.075988+00:00] NOTICE: Fix configuration with given suggestions:
[2024-08-13T12:19:10.076236+00:00] NOTICE: Can't validate version of some services: The command "redis-cli -p 6379 -h redis-master info | grep redis_version" failed. sh: redis-cli: not found
[2024-08-13T12:19:10.076425+00:00] WARNING: [2005] The following admin data is required to create an admin user during initial installation only and is ignored during upgrade process: admin email, admin login, admin first name, admin last name, admin password
[2024-08-13T12:19:10.078552+00:00] WARNING: Can't validate version of some services: The command "dpkg -s rabbitmq-server | grep Version" failed. sh: dpkg: not found
[2024-08-13T12:19:10.078718+00:00] WARNING: Can't validate version of some services: The command "redis-cli -p 6379 -h redis-master info | grep redis_version" failed. sh: redis-cli: not found
[2024-08-13T12:19:10.078831+00:00] NOTICE: End of validation
[2024-08-13T12:19:10.079344+00:00] INFO: Checking existence of encryption key
[2024-08-13T12:19:10.079763+00:00] INFO: Setting encryption key from CRYPT_KEY
[2024-08-13T12:19:10.080600+00:00] INFO: Checking if db exists and has tables
[2024-08-13T12:19:10.085725+00:00] INFO: Magento was installed on Tue, 13 Aug 2024 12:19:09 +0000
[2024-08-13T12:19:10.085993+00:00] WARNING: [2020] Magento state indicated as installed but configuration file app/etc/env.php was empty or did not exist. Required data will be restored from environment configurations and from .magento.env.yaml file.
[2024-08-13T12:19:10.088572+00:00] NOTICE: Starting update.
[2024-08-13T12:19:10.088715+00:00] INFO: Updating env.php.
[2024-08-13T12:19:10.089394+00:00] INFO: Updating env.php cron consumers runner configuration.
[2024-08-13T12:19:10.090526+00:00] INFO: Updating env.php DB connection configuration.
[2024-08-13T12:19:10.091707+00:00] INFO: Updating env.php AMQP configuration.
[2024-08-13T12:19:10.092543+00:00] INFO: redis will be used for session if it was not override by SESSION_CONFIGURATION
[2024-08-13T12:19:10.092771+00:00] INFO: Updating session configuration.
[2024-08-13T12:19:10.093135+00:00] INFO: Updating search engine configuration.
[2024-08-13T12:19:10.093250+00:00] INFO: Set search engine to: elasticsearch7
[2024-08-13T12:19:10.094359+00:00] INFO: Skipping URL updates because the URL_UPDATES variable is set to false.
[2024-08-13T12:19:10.094556+00:00] INFO: The value of the property 'directories/document_root_is_pub' set as 'true'
[2024-08-13T12:19:10.095874+00:00] INFO: The lock provider "db" was set.
[2024-08-13T12:19:10.096745+00:00] INFO: Updating env.php backend front name.
[2024-08-13T12:19:10.097401+00:00] INFO: Flushing cache.
[2024-08-13T12:19:13.591800+00:00] INFO: Set flag: var/.deploy_is_failed
[2024-08-13T12:19:13.592078+00:00] ERROR: [127] The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

  There are no commands defined in the "cache" namespace.

In Processor.php line 129:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In InstallUpdate.php line 100:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In CleanCache.php line 75:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

In Shell.php line 86:

  The command "php ./bin/magento cache:flush --ansi --no-interaction" failed.

    There are no commands defined in the "cache" namespace.

run <scenario>...

Deployment failed. Exiting.
2024-08-13 12:19:13,766 INFO exited: deploy (exit status 0; expected)
failed to create fsnotify watcher: too many open files

I also tried to install it using the command helm install magento-demo oci://registry-1.docker.io/phoenixmedia/magento --version 2.7.0 But the error is the same as the one presented in the created issue. Another thing about the original values.yaml and the commando is that the opensearch container have the wrong tag version. It's marked as 2.5-1.4.0 and the latest version is 2.5-1.3.7.