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

When things don't work as they should.
Post Reply
itsthejb
Posts: 11
Joined: Thu Sep 26, 2019 11:21 am

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

Post 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!
Last edited by itsthejb on Fri Jun 11, 2021 12:54 pm, edited 1 time in total.
User avatar
rosarior
Developer
Developer
Posts: 662
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

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

Post 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.
RonObvious
Posts: 5
Joined: Sat Nov 28, 2020 6:06 pm

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

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

Update: works again in v4.0.7.
Last edited by RonObvious on Sun Jun 27, 2021 9:12 am, edited 1 time in total.
itsthejb
Posts: 11
Joined: Thu Sep 26, 2019 11:21 am

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

Post 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!
Post Reply