Closed Romanavr closed 1 year ago
I'd guess it's a ulimit
issue on the box you're seeing the error on https://stackoverflow.com/questions/20648949/php-warning-exec-unable-to-fork
Bumping that might work around it. If you also want to send over a pre-update attempt database dump and composer.json/lock files to support@craftcms.com, we'll see if there is something we can do on the application side to work around the error, too.
Done. Please let me know if there is any that would help.
The problem was in the limit of open files, ulimit -n 65535
resolved the problem.
Thanks @angrybrad for the help.
What happened?
Description
As part of a craft & commerce upgrade, after successfully applying migrations, I run
php craft commerce/upgrade/run
and I was prompted for field handles. After that, the customer migration process started, at the end of which I got this errorI tried this several times by increasing various PHP options for the CLI (e.g. max_execution_time and memory_limit) but each time I got an error at the same percentage (and number) I solved this problem by uploading the production database locally, running upgrade and then re-uploading again to live website. So locally I don't have any problems. I have a few more sites that I need to update to the new craft and commerce so I want to understand what could be causing this and how can it be resolved? Also, important note. Before this, I ran the same update on the staging site(same server) and didn't experience any issues, but it was a different version for craft and commerce: Craft Pro 4.3.6.1 and Commerce 4.2.4
Steps to reproduce
Expected behavior
There shouldn't be error
Actual behavior
An error occurs
Trace log:
Craft CMS version
Craft Pro 4.4.7
Craft Commerce version
4.2.6
PHP version
8.1.16
Operating system and version
Linux 5.4.0-135-generic
Database type and version
MySQL 8.0.31
Image driver and version
craftcms/nginx:8.1-dev locally
Installed plugins and versions
-