While running bench update,
Firstly command breaks by showing some trace-back related redis server config.
after reloading supervisor we again execute bench update which resulting in …
frappe@localhost:~/frappe-bench$ bench update
Already up-to-date.
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (10/10), done.
Unpacking objects: 100% (10/10), done.
remote: Total 10 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/frappe
0586ad6..acdba6b v6-wip -> upstream/v6-wip
From https://github.com/frappe/erpnext
* branch develop -> FETCH_HEAD
Already up-to-date.
From https://github.com/indictranstech/spos-server
* branch master -> FETCH_HEAD
Already up-to-date.
From https://github.com/frappe/frappe
* branch develop -> FETCH_HEAD
Already up-to-date.
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Database backed up /home/frappe/frappe-bench/sites/focus.mobilall.com/private/backups/20150716_321334_database.sql.gz
Database backed up /home/frappe/frappe-bench/sites/demo.mobilall.com/private/backups/20150716_70024369_database.sql.gz
Database backed up /home/frappe/frappe-bench/sites/mobilall.com/private/backups/20150716_64556057_database.sql.gz
Migrating focus.mobilall.com
Executing erpnext.patches.v5_1.rename_roles in focus.mobilall.com (8cc9b385e9)
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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 205, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v5_1/rename_roles.py", line 5, in execute
merge=frappe.db.exists("Role", "Stock User"))
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 560, in rename_doc
return rename_doc(doctype, old, new, force=force, merge=merge, ignore_permissions=ignore_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/rename_doc.py", line 30, in rename_doc
new = validate_rename(doctype, new, meta, merge, force, ignore_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/rename_doc.py", line 94, in validate_rename
frappe.msgprint(_("Another {0} with name {1} exists, select another name").format(doctype, new), raise_exception=1)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 245, in msgprint
_raise_exception()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 232, in _raise_exception
raise ValidationError, encode(msg)
frappe.exceptions.ValidationError: Another Role with name Stock User exists, select another name