!Friendica Support The worker throws the following error and the queue is getting full and not processed. My memory_limit is 2048M, shoud I increase, I think it is a lot?
Thanks for help! vendor/guzzlehttp/psr7/src/Utils.php on line 91

Die Aufgabe ".../bin/worker.php" wurde in 40 Sekunden abgeschlossen, jedoch traten Fehler auf

sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 1071644704 bytes) in /.../vendor/guzzlehttp/psr7/src/Utils.php on line 91

in reply to Melanie Wehowski

And why blocks it to process the other jobs? I switched from php 8.3 to 8.4 and increased the memory limit to 3072M. But it wants even more now:

Die Aufgabe ".../bin/worker.php" wurde in 44 Sekunden abgeschlossen, jedoch traten Fehler auf

sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
sh: 1: /usr/bin/php: not found
PHP Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 1742733344 bytes) in /.../vendor/guzzlehttp/psr7/src/Utils.php on line 91

in reply to Melanie Wehowski

@Melanie Wehowski My daemon here runs smoothly with 512 MB only. And a which php returns /usr/bin/php so it must be on your (server's) side that's weird. Have you installed php-cli as well? CLI is short for "Command-Line Interface" and is the package that you need for the daemon to run. Plus before you tinker with more options around, remember that your server's physical RAM needs to be able to store what you configure in memory_limit + the OS needs RAM for its own.

Plus if you have a single machine (server) then all other services must run on it's RAM, too. The trick here is to balance it properly out.

in reply to Peter Vágner

@Peter Vágner I downgraded to PHP 8.3 FPM, about the "php: not found" error I found the tip to set the php path in the config:

'config' => [
'php_path' => '/usr/bin/php82',
…,
],


I also increased the pm.max_children in the FPM settings.

In the Admin->Page Settings I set the option
"Only update contacts/servers with local data".

I tested to find out the best Worker settings...

I am currently monitoring

SELECT * FROM `workerqueue` WHERE `pid`<>0 AND `done`=0;


to find the proper worker settings.

The worker queue was about 30K Jpbs plus, now it is processing down ~28K Jobs left so far...

EDIT: I start worker.php via crontab

This entry was edited (2 months ago)
in reply to Roland Häder🇩🇪

@Roland Häder🇩🇪 @xy.. @Peter Vágner @xy.. I have no imagick installed I think, maybe I will install it later/soon.
Somehow the worker settings are not in my local.config.php, I have 11 max parallel workers, and fetch limit I believe is 3.
The problem is solved so far, but yes, sometimes there may be memory problems with big media files?
Thank you all for your help!
in reply to Roland Häder🇩🇪

in reply to Melanie Wehowski

@Melanie Wehowski

... aber ich habe niemanden als Arschloch betitelt wie Du sagst ...


Darum geht es nicht. Es geht mir darum, dass du jemanden - ohne denjenigen zu kennen - als was bezeichnest was derjenige nicht ist und du dir damit Hilfe verbaust, die du vielleicht irgend wann mal (erneut) brauchst. Dein Ziel war es doch, von moeglichst vielen Menschen (mit Kenntnissen) Hilfe zu bekommen. Stattdessen machst du das:

... ich habe auf Deine Hashtags hingewiesen ...


Vorher ging es dir um den Worker von Friendcia, jetzt sind es Hashtags aus meinem Profil, die dich an mir stoeren.

... und wenn Dein Argument ist das hier nicht um Politik geht und ma damit hier weniger Hilfe bekommet dann gilt das gleiche für Dich: ...


Zu jedem Thema gibt es im Fediversum Ansprechpartner, so auch zum Thema Politik. Worum es mir "hier" ging ist, dass Hashtags in meinem oder irgend jemand anderes Profil komplett unrelevant zum Thema "Worker von Friencia macht Probleme" ist. Lasse es mich noch mal sagen: Du hattest mich auf die Hashtags in meinem Profil angesprochen, nicht ich vorweg andersum. Was ich auch gesehen habe, ist dass du dich zuerst fuer meine Hilfestellung bedankt hast, das habe ich dir mit einem "Daumen-Hoch" quittiert.

Also nochmals gefragt: Wo bin ich initiaitiv (also von mir ausgehend) vom Thema abgewichen? Du machst mir hier Dinge zum Vorwurf, die ich nicht getan habe, sondern du selbst.

in reply to Roland Häder🇩🇪

@Melanie Wehowski Und wenn du mich schon auf die Hashtags ansprichst, kennst du z.B. #ILoveK1 , also den T-Shirt-Spruch "I L❤️ve K1"? Der kommt aus einem Film mit "Bud Spencer und Terrence Hill - Zwei bärenstarke Typen": de.m.wikipedia.org/wiki/Zwei_b…

Hier z.B. siehst du es bei einem Handlanger von K1:
Filmszene mit Terrence Hill und Bud Spencer aus Zwei bärenstarke Typen, "I L❤️ve K1" ist auf einem T-Shirt eines Handlangers von dem Erzschurken K1 zu sehen.
Bildquelle: skodacommunity.de/threads/s1-s…

Ich kann dir so jeden einzelnen Hashtag erklaeren, den ich verwendet habe. Aber - in einem separaten Beitrag - mich um Erklaerungen zu den Hashtags zu bitten, empfindest du sie "zum Kotzen" und "rechtsextrem".