While executing bench doctor

vhrs@vhrs-HP-Z210-Workstation:~/frappe-bench$ bench doctor
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/vhrs/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/commands.py", line 852, in doctor
    return _doctor(site=site)
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/doctor.py", line 96, in doctor
    workers_online = check_number_of_workers()
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/doctor.py", line 85, in check_number_of_workers
    return len(get_workers())
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/doctor.py", line 10, in get_workers
    with Connection(get_redis_conn()):
  File "/home/vhrs/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 136, in get_redis_conn
    raise Exception('You need to call frappe.init')
Exception: You need to call frappe.init


I’m able to reproduce this issue. We’ll fix it soon. Thanks for reporting.

I have the same issue with bench doctor, as well as bench show-pending-jobs, if that helps. I’m having issues where none of the emails are sending from Frappe, if that helps/is related.

We recently moved from Celery to RQ in the develop branch, so there’s some kinks that need to be worked out. Apologies for the trouble.

No worries at all.

When I try to send an email I don’t get the "Email Sent to … " confirmation message, is that related?

Well, bench doctor only gives output. No reason your emails shouldn’t work well because of that.

Run rq info and post what you get here.

I’m still running from the master branch. But I think the issue could be unrelated. I will check everything on my end first before asking you to spend more time on it! Thank you :smiley:

Update on this, resolved?