Traceback (most recent call last):


 "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap

self.run()


 "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 747, in _run

return self._original_run()


 "/usr/lib/python3.6/site-packages/salt/master.py", line 223, in run

salt.daemons.masterapi.clean_old_jobs(self.opts)


 "/usr/lib/python3.6/site-packages/salt/daemons/masterapi.py", line 174, in clean_old_jobs

mminion.returners[fstr]()


 "/usr/lib/python3.6/site-packages/salt/returners/redis_return.py", line 308, in clean_old_jobs

load_key = ret_key.replace('ret:', 'load:', 1)
TypeError: a bytes-like object is required, not 'str'

Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 61, in application

response = frappe.handler.handle()


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle

data = execute_cmd(cmd)


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1007, in call

return fn(*args, **newargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs

doc.submit()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py", line 264, in submit

self._submit()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 837, in _submit

self.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 313, in _save

self.run_post_save_methods()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 908, in run_post_save_methods

self.run_method("on_submit")


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 772, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1048, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1031, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 766, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py", line 34, in on_submit

self.update_stock_ledger()


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py", line 188, in update_stock_ledger

self.insert_entries(row)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py", line 206, in insert_entries

self.make_sl_entries([args])


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py", line 269, in make_sl_entries

make_sl_entries(sl_entries, is_amended, allow_negative_stock, via_landed_cost_voucher)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py", line 33, in make_sl_entries

sle_id = make_entry(sle, allow_negative_stock, via_landed_cost_voucher)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py", line 58, in make_entry

sle.submit()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 848, in submit

self._submit()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 837, in _submit

self.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 313, in _save

self.run_post_save_methods()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 908, in run_post_save_methods

self.run_method("on_submit")


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 772, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1048, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1031, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 766, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py", line 36, in on_submit

process_serial_no(self)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/serial_no/serial_no.py", line 191, in process_serial_no

update_serial_nos(sle, item_det)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/serial_no/serial_no.py", line 335, in update_serial_nos

if sle.is_cancelled == "No" and not sle.serial_no and sle.actual_qty > 0 \
TypeError: unorderable types: NoneType() > int()