auvipy / celery-flower

Under heavy development now: Real time Celery monitoring with ASGI 3.0 +
BSD 3-Clause "New" or "Revised" License
176 stars 36 forks source link

celerymon command line error #15

Closed bkuberek closed 12 years ago

bkuberek commented 12 years ago

Getting following error

bkuberek@server:~$ celerymon
Traceback (most recent call last):
  File "/usr/bin/celerymon", line 9, in <module>
    load_entry_point('celerymon==0.4.0', 'console_scripts', 'celerymon')()
  File "/usr/lib/python2.6/dist-packages/celerymon/bin/celerymon.py", line 128, in main
    mon.execute_from_commandline()
  File "/usr/lib/python2.6/dist-packages/celery/bin/base.py", line 176, in execute_from_commandline
    return self.handle_argv(prog_name, argv[1:])
  File "/usr/lib/python2.6/dist-packages/celery/bin/base.py", line 223, in handle_argv
    options, args = self.prepare_args(*self.parse_options(prog_name, argv))
  File "/usr/lib/python2.6/dist-packages/celery/bin/base.py", line 252, in parse_options
    parser = self.create_parser(prog_name)
  File "/usr/lib/python2.6/dist-packages/celery/bin/base.py", line 263, in create_parser
    self.get_options())))
  File "/usr/lib/python2.6/optparse.py", line 1214, in __init__
    add_help=add_help_option)
  File "/usr/lib/python2.6/optparse.py", line 1256, in _populate_option_list
    self.add_options(option_list)
  File "/usr/lib/python2.6/optparse.py", line 1039, in add_options
    self.add_option(option)
  File "/usr/lib/python2.6/optparse.py", line 1020, in add_option
    self._check_conflict(option)
  File "/usr/lib/python2.6/optparse.py", line 995, in _check_conflict
    option)
optparse.OptionConflictError: option -A/--address: conflicting option string(s): -A
bkuberek commented 12 years ago

I'm running version 0.4.0 downloaded from pypi

bkuberek commented 12 years ago

ahh, could it be because I am running celery 3.0.1?

jjhooper commented 12 years ago

Looks like this has been broken since June 10 by this change: https://github.com/celery/celery/commit/64635a8d16da414f15ea7027e141e96a153e6ccb#celery/bin/base.py Either celery or celerymon needs to drop the "-A" option.

hany55 commented 12 years ago

I'm running into this myself in production after upgrading to celery 3.0.5. Perhaps it's easier to change celerymon?

hany55 commented 12 years ago

Suggest using -b / --bind to conform to more Unix-like standards?

ask commented 12 years ago

Thanks! Released celerymon 0.5.0 now!