1

I am trying to upgrade Magento 2.2.1 to Magento 2.4.3-p1 using composer and successfully new version upgrade but when run upgrade command but process stuck not progress process of from Data install/update Magento_Customer. See the below image.

Also, not showing any error in error log and apache2 error log, I have try all possibility but it's last stuck in Magento_Customer

php bin/magento setup:di:compile Successfully done not any error but setup:upgrade stuck

Why not showing error ?

enter image description here

5
  • How many customer do you have?
    – Sohel Rana
    Mar 1, 2022 at 15:36
  • 535 only customer @SohelRana Mar 2, 2022 at 4:44
  • 1
    Now issues fixed I have set the max_execution_time 18000, max_input_time 18000, max_input_vars 50000, memory_limit 4096M and apache restart in my case not any error come show in exception and system log. Mar 9, 2022 at 10:46
  • The above comment solves my issue thank @BhaveshGodhani
    – Kashif
    Apr 9, 2023 at 23:53
  • Welcome @Kashif Apr 11, 2023 at 6:24

1 Answer 1

0

You can check by run below command:

strace -s 99 bin/magento setup:upgrade

More about strace

Also, check your MySQL has not run any related process, you found then kill it. (Not KILL ALL, only related Processes need to kill)

SHOW FULL PROCESSLIST

kill ProcessID

In My case customer_visitor table cause an error and stops the command. After debugging more in DB, there are many entries, so he takes more time to run and stop the upgrade command execution.

I remove all entries from customer_visitor table and then It's working.

TRUNCATE TABLE customer_visitor;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.