Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEARMAN_TEXT error in gearman_worker_grab_job #316

Open
tsmgeek opened this issue Aug 21, 2021 · 3 comments
Open

GEARMAN_TEXT error in gearman_worker_grab_job #316

tsmgeek opened this issue Aug 21, 2021 · 3 comments

Comments

@tsmgeek
Copy link

tsmgeek commented Aug 21, 2021

I am seeing these random messages appear in my CLI script which seem to point back to libgearman.
I know that current EPEL version of libgearman is much older than is on git.
Is this an issue that has been fixed since or some other bug?
Ive looked at the PROTOCOL text file and it does not mention GEARMAN_TEXT command, I can see there is (unused) where I think it would be.
What sort of messages are passed though this command?

libgearman-1.1.12-18.el7.x86_64
php74-php-pecl-gearman-2.1.0-1.el7.remi.x86_64

PHP Warning:  GearmanWorker::work(): gearman_worker_grab_job(GEARMAN_UNEXPECTED_PACKET) unexpected packet:GEARMAN_TEXT -> libgearman/worker.cc:879: pid(18080) in /home/ips/console/common-gm.php on line 65

Warning: GearmanWorker::work(): gearman_worker_grab_job(GEARMAN_UNEXPECTED_PACKET) unexpected packet:GEARMAN_TEXT -> libgearman/worker.cc:879: pid(18080) in /home/ips/console/common-gm.php on line 65
@esabol
Copy link
Member

esabol commented Aug 22, 2021

Is this an issue that has been fixed since or some other bug?

Well, I haven't seen it, and I'm using a semi-recent libgearman that I compiled from the GitHub repo here. However, I'm also using a PHP extension that I modified and compiled myself from https://github.com/esabol/pecl-gearman7. 🤷

@tsmgeek
Copy link
Author

tsmgeek commented Aug 22, 2021

@esabol https://github.com/php/pecl-networking-gearman this is the main repo used for the official PECL version that I use.

Looking back though logs it does seem to be very random, by that it happened once for the last few days then nothing for several days before that.

Its only a warning and so I can suppress the output but might be an idea to understand if its a problem or something that should be handled properly.

@esabol
Copy link
Member

esabol commented Aug 22, 2021

Well, the only way to tell would be to compile your own libgearman and probably your own PHP extension and see if you can reproduce it. The libgearman you are using is 7.5 years old, and there have been 8 releases since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants