Page 1 of 1

SOLVED: [4.0.5 update] celery: error: unrecognized arguments: 100

Posted: Wed Jun 09, 2021 8:39 am
by itsthejb
Hi there,

Getting errors in the logs on startup after upgrading from 4.0.4 -> 4.0.5:
__ - ... __ - _
LocalTime -> 2021-06-09 09:56:26
Configuration ->
. broker -> redis://redis:6379/0
. loader -> celery.loaders.app.AppLoader
. scheduler -> django_celery_beat.schedulers.DatabaseScheduler

. logfile -> [stderr]@%ERROR
. maxinterval -> 5.00 seconds (5s)
2021-06-09 09:56:27,940 INFO spawned: 'mayan-edms-worker_d' with pid 398
2021-06-09 09:56:27,941 INFO spawned: 'mayan-edms-worker_c' with pid 399
usage: celery worker [options]
celery: error: unrecognized arguments: 10
usage: celery worker [options]
celery: error: unrecognized arguments: 100
2021-06-09 09:56:28,328 INFO exited: mayan-edms-worker_d (exit status 2; not expected)
2021-06-09 09:56:28,328 INFO exited: mayan-edms-worker_c (exit status 2; not expected)
2021-06-09 09:56:29,331 INFO spawned: 'mayan-edms-worker_a' with pid 404
2021-06-09 09:56:29,332 INFO spawned: 'mayan-edms-worker_b' with pid 405
usage: celery worker [options]
celery: error: unrecognized arguments: 100
usage: celery worker [options]
celery: error: unrecognized arguments: 100
2021-06-09 09:56:29,720 INFO exited: mayan-edms-worker_b (exit status 2; not expected)
2021-06-09 09:56:29,721 INFO exited: mayan-edms-worker_a (exit status 2; not expected)
2021-06-09 09:56:30,723 INFO spawned: 'mayan-edms-worker_d' with pid 410
2021-06-09 09:56:30,724 INFO spawned: 'mayan-edms-worker_c' with pid 411
usage: celery worker [options]
celery: error: unrecognized arguments: 100
usage: celery worker [options]
celery: error: unrecognized arguments: 10
2021-06-09 09:56:31,118 INFO exited: mayan-edms-worker_c (exit status 2; not expected)
2021-06-09 09:56:31,119 INFO exited: mayan-edms-worker_d (exit status 2; not expected)
2021-06-09 09:56:33,121 INFO spawned: 'mayan-edms-worker_a' with pid 416
2021-06-09 09:56:33,123 INFO spawned: 'mayan-edms-worker_b' with pid 417
usage: celery worker [options]
celery: error: unrecognized arguments: 100
usage: celery worker [options]
celery: error: unrecognized arguments: 100
2021-06-09 09:56:33,511 INFO exited: mayan-edms-worker_b (exit status 2; not expected)
2021-06-09 09:56:33,511 INFO gave up: mayan-edms-worker_b entered FATAL state, too many start retries too quickly
2021-06-09 09:56:33,511 INFO exited: mayan-edms-worker_a (exit status 2; not expected)
2021-06-09 09:56:34,512 INFO spawned: 'mayan-edms-worker_d' with pid 422
2021-06-09 09:56:34,512 INFO success: mayan-edms-celery-beat entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2021-06-09 09:56:34,512 INFO gave up: mayan-edms-worker_a entered FATAL state, too many start retries too quickly
2021-06-09 09:56:34,513 INFO spawned: 'mayan-edms-worker_c' with pid 423
usage: celery worker [options]
celery: error: unrecognized arguments: 100
usage: celery worker [options]
celery: error: unrecognized arguments: 10
2021-06-09 09:56:34,899 INFO exited: mayan-edms-worker_d (exit status 2; not expected)
2021-06-09 09:56:34,899 INFO gave up: mayan-edms-worker_d entered FATAL state, too many start retries too quickly
2021-06-09 09:56:34,899 INFO exited: mayan-edms-worker_c (exit status 2; not expected)
2021-06-09 09:56:35,900 INFO gave up: mayan-edms-worker_c entered FATAL state, too many start retries too quickly
Mayan does start up, so it's not fatal. I assume these 100/10 values are somewhere in my config. Any ideas how I can debug this?

Thanks!

Re: [4.0.5 update] celery: error: unrecognized arguments: 100

Posted: Thu Jun 10, 2021 3:47 pm
by rosarior
Hi,

There was a typo in the name of two of the Celery worker settings. A patch was merged and we started the process to release a bug fix.

https://gitlab.com/mayan-edms/mayan-edm ... /318686248

https://gitlab.com/mayan-edms/mayan-edms/-/issues/998

Thanks for the report.

Re: [4.0.5 update] celery: error: unrecognized arguments: 100

Posted: Thu Jun 10, 2021 8:52 pm
by RonObvious
I'm still seeing the issue on v4.0.6, is this expected? Issue 998 is marked as solved in the v4.0.6 release notes.

Re: [4.0.5 update] celery: error: unrecognized arguments: 100

Posted: Fri Jun 11, 2021 12:42 pm
by itsthejb
rosarior wrote: Thu Jun 10, 2021 3:47 pm Hi,

There was a typo in the name of two of the Celery worker settings. A patch was merged and we started the process to release a bug fix.

https://gitlab.com/mayan-edms/mayan-edm ... /318686248

https://gitlab.com/mayan-edms/mayan-edms/-/issues/998

Thanks for the report.
Great! I'll try that out, thanks!

Edit: Updated and tested. Looks good, thanks!