Try ERPNext Buy Support Partners Foundation

Bench Error while doing bench restart

Hi All,

After updating my ERPNext to version 7, I am getting these errors whenever I do

bench restart

below is the error, I am receiving:

vishnu@vishnu-VirtualBox:~/frappe-bench$ bench restart
frappe-bench-frappe-async-worker: stopped
frappe-bench-frappe-longjob-worker: stopped
frappe-bench-frappe-workerbeat: stopped
frappe-bench-frappe-worker: stopped
frappe-bench-frappe-web: stopped
frappe-bench-node-socketio: stopped
frappe-bench-frappe-async-worker: ERROR (abnormal termination)
frappe-bench-frappe-longjob-worker: ERROR (abnormal termination)
frappe-bench-frappe-workerbeat: ERROR (abnormal termination)
frappe-bench-frappe-worker: ERROR (abnormal termination)
frappe-bench-frappe-web: started
frappe-bench-node-socketio: started

I appreciate, if anyone can help me in this context.

Regards
Ruchin Sharma

Hi @ruchin78 ,

check the worker.error.log and workerbeat.error.log for error traceback in frappe -bench/logs directory.

Thanks, Makarand

Hi,

Encountering similar errors. worker.error log is below

erpnext@ip-172-31-1-158:~/frappe-bench/logs$ tail worker.error.log
    return callback(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands/scheduler.py", line 157, in start_worker
    start_worker(queue)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 102, in start_worker
    Worker(queues, name=get_worker_name(queue)).work()
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 135, in __init__
    self.validate_queues()
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py", line 179, in validate_queues
    raise TypeError('{0} is not of type {1} or text type'.format(queue, self.queue_class))
TypeError: short is not of type <class 'rq.queue.Queue'> or text type
erpnext@ip-172-31-1-158:~/frappe-bench/logs$

Any suggestions?

Kind regards,

Any help here please?

Kind regards,

Hi @wale, Please were you able to fix this? I am unable to send emails from a site because of a similar error