Why does not any command aimeos:jobs finish executing?

How to configure and adapt Aimeos based shops as developer
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!
User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 10:58

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.

Image

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

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Why does not any command aimeos:jobs finish executing?

Post by aimeos » 27 Feb 2025, 11:08

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, Image give us a star

User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Re: Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 11:21

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 :cry:
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Why does not any command aimeos:jobs finish executing?

Post by aimeos » 27 Feb 2025, 11:37

Also on a command like this?
php artisan aimeos:jobs index/rebuild default
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Re: Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 11:54

Yes

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

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Why does not any command aimeos:jobs finish executing?

Post by aimeos » 27 Feb 2025, 11:58

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, Image give us a star

User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Re: Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 12:53

absolutely identical
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Re: Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 13:30

Then I get an error that the memory is out
Image
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Why does not any command aimeos:jobs finish executing?

Post by aimeos » 27 Feb 2025, 13:33

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DNK
Posts: 26
Joined: 27 Feb 2025, 10:50

Re: Why does not any command aimeos:jobs finish executing?

Post by DNK » 27 Feb 2025, 13:42

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
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

Post Reply