Traceback (most recent call last):

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/managers.py", line 558, in _run_server
server.serve_forever()

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/managers.py", line 179, in serve_forever
c = self.listener.accept()

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/connection.py", line 145, in accept
c = self._listener.accept()

 "/opt/anaconda/python.app/Contents/lib/python2.7/multiprocessing/connection.py", line 275, in accept
s, self._last_accepted = self._socket.accept()

 "/opt/anaconda/lib/python2.7/site-packages/gevent/socket.py", line 316, in accept
self._wait(self._read_event)

 "/opt/anaconda/lib/python2.7/site-packages/gevent/socket.py", line 300, in _wait
self.hub.wait(watcher)

 "/opt/anaconda/lib/python2.7/site-packages/gevent/hub.py", line 348, in wait
result = waiter.get()

 "/opt/anaconda/lib/python2.7/site-packages/gevent/hub.py", line 575, in get
return self.hub.switch()

 "/opt/anaconda/lib/python2.7/site-packages/gevent/hub.py", line 338, in switch
return greenlet.switch(self)AssertionError: Impossible to call blocking function in the event loop callback
Traceback (most recent call last):


 "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main

"__main__", fname, loader, pkg_name)


 "/usr/lib/python2.7/runpy.py", line 72, in _run_code

exec code in run_globals


 "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>

main()


 "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main

click.Group(commands=commands)(prog_name='bench')


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func

ret = f(frappe._dict(ctx.obj), *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate

migrate(context.verbose, rebuild_website=rebuild_website)


 "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate

frappe.modules.patch_handler.run_all()


 "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all

if not run_single(patchmodule = patch):


 "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single

return execute_patch(patchmodule, method, methodargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch

frappe.get_attr(patchmodule.split()[0] + ".execute")()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v11_0/set_update_field_and_value_in_workflow_state.py", line 17, in execute

frappe.set_value('Workflow Document State', state.name, 'update_field', status_field)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 622, in set_value

return frappe.client.set_value(doctype, docname, fieldname, value)


 "/home/frappe/frappe-bench/apps/frappe/frappe/client.py", line 136, in set_value

doc.save()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save

return self._save(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 293, in _save

self._validate_links()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 734, in _validate_links

frappe.LinkValidationError)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 327, in throw

msgprint(msg, raise_exception=exc, title=title, indicator='red')


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 313, in msgprint

_raise_exception()


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 286, in _raise_exception

raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Row #1: Action: Approve, Row #2: Action: Reject
