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

Setup fails at bin/magento setup:install ( docker-desktop ) #5

Closed
domi55 opened this issue Nov 5, 2022 · 3 comments
Closed

Setup fails at bin/magento setup:install ( docker-desktop ) #5

domi55 opened this issue Nov 5, 2022 · 3 comments
Assignees

Comments

@domi55
Copy link

domi55 commented Nov 5, 2022

HI phoenix-media, thanks for providing this magento 2 helm chart :)

I've tested the docker-desktop example on version v4.10.1 with kubernetes on a single node on MacOs (locally with 4 CPU and 8 GB Ram).

When all the services are up and running the cronjob starts with the magento installation.
At this point i receive the error at bin/magento setup:install :

Parameter validation failed

I've used the default variables in values_docker.yaml with the magent.local domain.

2022-11-05 12:43:40,075 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.
2022-11-05 12:43:40,078 INFO supervisord started with pid 1
2022-11-05 12:43:41,081 INFO spawned: 'deploy' with pid 7
2022-11-05 12:43:41,084 INFO spawned: 'cronjob' with pid 8
******************************
** nginx server_name SETUP ***
******************************
******************************
******* POSTFIX SETUP ********
******************************
2022-11-05 12:43:41,104 INFO success: deploy entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Forwarding all emails to my.relayhost.com
without any authentication. Make sure your server is configured to accept emails coming from this IP.
******************************
******* PHP SETUP ************
******************************
[2022-11-05T12:43:42.031667+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.11, magento/magento2-base version: 2.4.5)
[2022-11-05T12:43:42.261208+00:00] INFO: Deleting flag: var/.deploy_is_failed
2022-11-05 12:43:42,261 INFO success: cronjob entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[2022-11-05T12:43:42.261387+00:00] INFO: Deleting flag: var/.env_file_absence
[2022-11-05T12:43:42.261583+00:00] NOTICE: Starting pre-deploy.
[2022-11-05T12:43:42.261647+00:00] INFO: Set "env_file_absence" flag
[2022-11-05T12:43:42.261762+00:00] INFO: Set flag: var/.env_file_absence
[2022-11-05T12:43:42.319219+00:00] WARNING: [2001] Cache is configured for a Redis service that is not available. Configuration will be ignored.
[2022-11-05T12:43:42.331672+00:00] INFO: Skip copying directory ./var/view_preprocessed.
[2022-11-05T12:43:42.331751+00:00] INFO: Clearing ./var/view_preprocessed
[2022-11-05T12:43:42.333135+00:00] INFO: Clearing var/cache directory
[2022-11-05T12:43:42.333778+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/app/etc. Directory does not exist.
[2022-11-05T12:43:42.333969+00:00] WARNING: [2026] Cannot copy directory /var/www/html/init/pub/media. Directory does not exist.
2022-11-05 12:43:42,334 INFO reaped unknown pid 27 (exit status 0)
[2022-11-05T12:43:42.334089+00:00] WARNING: [2026] Cannot copy directory "". Directory does not exist.
[2022-11-05T12:43:42.334182+00:00] NOTICE: Recoverable directories were copied back.
[2022-11-05T12:43:42.334260+00:00] INFO: Set Magento application mode to 'production'
[2022-11-05T12:43:42.334468+00:00] INFO: Step "clean-redis-cache" was skipped
[2022-11-05T12:43:42.334505+00:00] NOTICE: End of pre-deploy.
[2022-11-05T12:43:42.334712+00:00] INFO: Step "enable-maintenance-mode" was skipped
[2022-11-05T12:43:42.334868+00:00] INFO: Disable cron
[2022-11-05T12:43:42.335098+00:00] INFO: Trying to kill running cron jobs and consumers processes
[2022-11-05T12:43:42.342850+00:00] INFO: Running Magento cron and consumers processes were not found.
[2022-11-05T12:43:42.343006+00:00] NOTICE: Validating configuration
[2022-11-05T12:43:42.343854+00:00] INFO: Checking if db exists and has tables
[2022-11-05T12:43:42.437386+00:00] NOTICE: Fix configuration with given suggestions:
[2022-11-05T12:43:42.437565+00:00] NOTICE: Can't validate version of some services: The command "redis-cli -p 6379 -h redis info | grep redis_version" failed. sh: redis-cli: not found
[2022-11-05T12:43:42.437604+00:00] WARNING: Can't validate version of some services: The command "dpkg -s rabbitmq-server | grep Version" failed. sh: dpkg: not found
[2022-11-05T12:43:42.437639+00:00] WARNING: Can't validate version of some services: The command "redis-cli -p 6379 -h redis info | grep redis_version" failed. sh: redis-cli: not found
[2022-11-05T12:43:42.437670+00:00] NOTICE: End of validation
[2022-11-05T12:43:42.437918+00:00] INFO: Checking existence of encryption key
[2022-11-05T12:43:42.438301+00:00] INFO: Setting encryption key from CRYPT_KEY
[2022-11-05T12:43:42.439140+00:00] INFO: Checking if db exists and has tables
[2022-11-05T12:43:42.440094+00:00] NOTICE: Starting install.
[2022-11-05T12:43:42.440347+00:00] INFO: Installing Magento.
[2022-11-05T12:43:43.084894+00:00] INFO: Set flag: var/.deploy_is_failed
[2022-11-05T12:43:43.085016+00:00] ERROR: [116] The command "/bin/bash -c "set -o pipefail; php ./bin/magento setup:install -n --ansi --no-interaction --cleanup-database --session-save='db' --use-secure-admin='1' --use-rewrites='1' --currency='USD' --base-url='http://magento.local/' --base-url-secure='https://magento.local/' --backend-frontname='admin' --language='en_US' --timezone='America/Los_Angeles' --db-host='mysql' --db-name='magento' --db-user='magento' --db-password='******' --admin-user='administrator' --admin-firstname='Your Firstname' --admin-lastname='Your Lastname' --admin-email='[email protected]' --admin-password='******' --search-engine='elasticsearch7' --elasticsearch-host='http://elasticsearch-master' --elasticsearch-port='9200' --amqp-host='rabbitmq' --amqp-port='5672' --amqp-user='phoenix' --amqp-password='******' --amqp-virtualhost='/' | tee -a /var/www/html/var/log/install_upgrade.log"" failed. In InstallCommand.php line 282:
                               
  Parameter validation failed                                                                   

run <scenario>...

Deployment failed. Exiting.
2022-11-05 12:43:43,150 INFO exited: deploy (exit status 0; expected)
2022-11-05 12:51:43,574 WARN received SIGTERM indicating exit request
2022-11-05 12:51:43,575 INFO waiting for cronjob to die
2022-11-05 12:51:44,575 INFO stopped: cronjob (terminated by SIGTERM)
2022-11-05 12:51:44,575 INFO reaped unknown pid 1841 (exit status 0)

Do you have an idea what the issue could be here ? I also see from the logs that the redis could not be found

[2022-11-05T12:43:42.437565+00:00] NOTICE: Can't validate version of some services: The command "redis-cli -p 6379 -h redis info | grep redis_version" failed. sh: redis-cli: not found

But the script just continues with the install.

Gladly i can provide more info if its wanted.

@phoenix-bjoern
Copy link
Contributor

No, redis-cli warning is more like an "information". Already opened a ticket for that: magento/ece-tools#804.
Sometimes the ece-tools installation is a bit clumsy. We'll test it locally and update you shortly.

@phoenix-bjoern
Copy link
Contributor

@domi55 issue should be solved now.

@domi55
Copy link
Author

domi55 commented Nov 14, 2022

@phoenix-bjoern thanks for checking and fixing, i came to the same solution ( rabbitmq credentials ). It works fine

@domi55 domi55 closed this as completed Nov 14, 2022
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

3 participants