Why does not any command aimeos:jobs finish executing?
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Why does not any command aimeos:jobs finish executing?
I noticed that my command "php artisan aimeos:jobs order/email/delivery" hangs in the command line.
Surprisingly, it works successfully on the local machine.

What could be the reason?
By experimenting, I found out that the code hangs on the line
"aimeos-laravel/src/Command/AbstractCommand.php:90"
$process->wait();
Aimeos 2024.10.3, PHP 8.2, MySql8.0, Ubuntu 22.04.5 LTS
Surprisingly, it works successfully on the local machine.

What could be the reason?
By experimenting, I found out that the code hangs on the line
"aimeos-laravel/src/Command/AbstractCommand.php:90"
$process->wait();
Aimeos 2024.10.3, PHP 8.2, MySql8.0, Ubuntu 22.04.5 LTS
Last edited by DNK on 27 Feb 2025, 11:18, edited 2 times in total.
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS
Re: Why does not any command aimeos:jobs finish executing?
Check in the Log panel of the admin backend if there are any errors like mail servers being not reachable or other mail related messages.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Why does not any command aimeos:jobs finish executing?
As I wrote above, this applies to ANY JOB!
However, I looked at the logs. The laravel.log file is clean. There are no errors in the Aimeos admin panel either
However, I looked at the logs. The laravel.log file is clean. There are no errors in the Aimeos admin panel either

Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS
Re: Why does not any command aimeos:jobs finish executing?
Also on a command like this?
php artisan aimeos:jobs index/rebuild default
php artisan aimeos:jobs index/rebuild default
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Why does not any command aimeos:jobs finish executing?
Yes
And the code itself is executed. That is, emails arrive, an index is created. It depends somewhere on the final.
And the code itself is executed. That is, emails arrive, an index is created. It depends somewhere on the final.
Last edited by DNK on 27 Feb 2025, 11:56, edited 3 times in total.
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS
Re: Why does not any command aimeos:jobs finish executing?
What is the difference between your local machine and your server (PHP 8.2, MySql8.0, Ubuntu 22.04.5 LTS)?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Why does not any command aimeos:jobs finish executing?
absolutely identical
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS
Re: Why does not any command aimeos:jobs finish executing?
Then I get an error that the memory is out


Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS
Re: Why does not any command aimeos:jobs finish executing?
Can you add debugging code and try to find out why wait() doesn't finish on your server?
https://github.com/aimeos/aimeos-base/b ... #L125-L137
Either pcntl_wait() doesn't finish:
https://github.com/aimeos/aimeos-base/b ... l.php#L195
Or the processes are restarted for some reason:
https://github.com/aimeos/aimeos-base/b ... l.php#L203
https://github.com/aimeos/aimeos-base/b ... #L125-L137
Either pcntl_wait() doesn't finish:
https://github.com/aimeos/aimeos-base/b ... l.php#L195
Or the processes are restarted for some reason:
https://github.com/aimeos/aimeos-base/b ... l.php#L203
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Why does not any command aimeos:jobs finish executing?
Your code hangs at this point
https://github.com/aimeos/aimeos-base/b ... C9-L195C37
The pcntl_wait() function does not work
P.S. function_exists( 'pcntl_wait' ) returned true
https://github.com/aimeos/aimeos-base/b ... C9-L195C37
The pcntl_wait() function does not work
P.S. function_exists( 'pcntl_wait' ) returned true
Last edited by DNK on 27 Feb 2025, 15:17, edited 3 times in total.
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS