bench --site all migrate
Migrating erp.domain.it
Executing execute:frappe.reload_doc('core', 'doctype', 'docfield', force=True) #2018-02-20 in erp.domain.it (1bd3e0294d)
Success: Done in 1.258s
Executing execute:frappe.reload_doc('core', 'doctype', 'docperm') #2018-05-29 in erp.domain.it (1bd3e0294d)
Success: Done in 0.292s
Executing frappe.patches.v11_0.copy_fetch_data_from_options in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/copy_fetch_data_from_options.py", line 7, in execute
frappe.reload_doc("custom", "doctype", "property_setter", force=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp frappe]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.copy_fetch_data_from_options in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/copy_fetch_data_from_options.py", line 7, in execute
frappe.reload_doc("custom", "doctype", "property_setter", force=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp frappe]# cd frappe-bench/apps/frappe/frappe/patches/v
v10_0/ v4_0/ v4_2/ v5_0/ v5_3/ v6_1/ v6_15/ v6_19/ v6_20x/ v6_24/ v6_6/ v7_0/ v7_2/ v8_1/ v8_5/ v8_x/
v11_0/ v4_1/ v4_3/ v5_2/ v6_0/ v6_11/ v6_16/ v6_2/ v6_21/ v6_4/ v6_9/ v7_1/ v8_0/ v8_10/ v8_7/ v9_1/
[root@erp frappe]# cd frappe-bench/apps/frappe/frappe/patches/v11_0/
[root@erp v11_0]# nano copy_fetch_data_from_options.py
[root@erp v11_0]# nano copy_fetch_data_from_options.py
You have new mail in /var/spool/mail/root
[root@erp v11_0]# cd ..
[root@erp patches]# cd ..
[root@erp frappe]# cd ..
[root@erp frappe]# cd ..
[root@erp apps]# cd ..
[root@erp frappe-bench]# cd ..
[root@erp frappe]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.copy_fetch_data_from_options in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/copy_fetch_data_from_options.py", line 7, in execute
frappe.reload_doc("custom", "doctype", "property_setter", force=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp frappe]# cd frappe-bench/apps/frappe/frappe/patches/v11_0/
[root@erp v11_0]# nano copy_fetch_data_from_options.py
[root@erp v11_0]# cd /home/frappe/
[root@erp frappe]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.copy_fetch_data_from_options in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/copy_fetch_data_from_options.py", line 7, in execute
frappe.reload_doc("custom", "doctype", "property_setter", force=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp frappe]# cd frappe-bench/apps/frappe/frappe/patches/v11_0/
[root@erp v11_0]# nano copy_fetch_data_from_options.py
[root@erp v11_0]# ls
copy_fetch_data_from_options.py get_docs_apps_if_not_present.py rename_standard_reply_to_email_template.py sync_user_permission_doctype_before_migrate.py
copy_fetch_data_from_options.pyc __init__.py rename_workflow_action_to_workflow_action_master.py sync_user_permission_doctype_before_migrate.pyc
create_contact_for_user.py __init__.pyc replicate_old_user_permissions.py update_list_user_settings.py
delete_duplicate_user_permissions.py rename_email_alert_to_notification.py set_dropbox_file_backup.py
drop_column_apply_user_permissions.py rename_google_maps_doctype.py sync_stripe_settings_before_migrate.py
[root@erp v11_0]# nano copy_fetch_data_from_options.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.copy_fetch_data_from_options in erp.domain.it (1bd3e0294d)
Success: Done in 1.003s
Executing frappe.patches.v11_0.replicate_old_user_permissions in erp.domain.it (1bd3e0294d)
Success: Done in 12.66s
Executing frappe.patches.v11_0.drop_column_apply_user_permissions in erp.domain.it (1bd3e0294d)
Success: Done in 0.611s
Executing frappe.patches.v10_0.refactor_social_login_keys in erp.domain.it (1bd3e0294d)
Success: Done in 1.15s
Executing frappe.patches.v10_0.enable_chat_by_default_within_system_settings in erp.domain.it (1bd3e0294d)
Success: Done in 1.925s
Executing frappe.patches.v10_0.remove_custom_field_for_disabled_domain in erp.domain.it (1bd3e0294d)
Success: Done in 0.09s
Executing execute:frappe.delete_doc("Page", "chat") in erp.domain.it (1bd3e0294d)
Success: Done in 0.574s
Executing frappe.patches.v10_0.migrate_passwords_passlib in erp.domain.it (1bd3e0294d)
Success: Done in 0.766s
Executing frappe.patches.v11_0.rename_standard_reply_to_email_template in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/rename_standard_reply_to_email_template.py", line 7, in execute
frappe.reload_doc('email', 'doctype', 'email_template')
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp v11_0]# nano update `tabProperty Setter`
-bash: tabProperty: command not found
[root@erp v11_0]# nano rename_standard_reply_to_email_template.py
[root@erp v11_0]# nano rename_standard_reply_to_email_template.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.rename_standard_reply_to_email_template in erp.domain.it (1bd3e0294d)
Success: Done in 0.031s
Executing execute:frappe.delete_doc_if_exists('Page', 'user-permissions') in erp.domain.it (1bd3e0294d)
Success: Done in 0.662s
Executing frappe.patches.v11_0.create_contact_for_user in erp.domain.it (1bd3e0294d)
Success: Done in 11.956s
Executing frappe.patches.v11_0.sync_stripe_settings_before_migrate in erp.domain.it (1bd3e0294d)
Success: Done in 0.013s
Executing frappe.patches.v11_0.update_list_user_settings in erp.domain.it (1bd3e0294d)
Success: Done in 0.34s
Executing frappe.patches.v11_0.rename_workflow_action_to_workflow_action_master #13-06-2018 in erp.domain.it (1bd3e0294d)
Success: Done in 0.608s
Executing frappe.patches.v11_0.rename_email_alert_to_notification #13-06-2018 in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/frappe/frappe/patches/v11_0/rename_email_alert_to_notification.py", line 11, in execute
frappe.reload_doc('email', 'doctype', 'notification')
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp v11_0]# nano rename_email_alert_to_notification.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing frappe.patches.v11_0.rename_email_alert_to_notification #13-06-2018 in erp.domain.it (1bd3e0294d)
Success: Done in 0.18s
Executing frappe.patches.v11_0.delete_duplicate_user_permissions in erp.domain.it (1bd3e0294d)
Success: Done in 0.022s
Executing frappe.patches.v11_0.set_dropbox_file_backup in erp.domain.it (1bd3e0294d)
Success: Done in 0.017s
Executing frappe.patches.v11_0.get_docs_apps_if_not_present in erp.domain.it (1bd3e0294d)
frappe_io required by frappe already present
foundation required by erpnext already present
Success: Done in 0.014s
Executing frappe.patches.v11_0.rename_google_maps_doctype in erp.domain.it (1bd3e0294d)
Success: Done in 1.134s
Executing erpnext.patches.v11_0.refactor_naming_series in erp.domain.it (1bd3e0294d)
Success: Done in 1.045s
Executing erpnext.patches.v11_0.refactor_autoname_naming in erp.domain.it (1bd3e0294d)
Success: Done in 0.151s
Executing erpnext.patches.v11_0.rename_production_order_to_work_order in erp.domain.it (1bd3e0294d)
rename_field: work_order not found in Timesheet
Success: Done in 3.349s
Executing erpnext.patches.v5_7.update_item_description_based_on_item_master in erp.domain.it (1bd3e0294d)
Success: Done in 0.013s
Executing erpnext.patches.v8_1.removed_roles_from_gst_report_non_indian_account #16-08-2018 in erp.domain.it (1bd3e0294d)
Success: Done in 0.02s
Executing erpnext.patches.v8_7.sync_india_custom_fields in erp.domain.it (1bd3e0294d)
Success: Done in 0.032s
Executing erpnext.patches.v10_0.fichier_des_ecritures_comptables_for_france in erp.domain.it (1bd3e0294d)
Success: Done in 0.028s
Executing erpnext.patches.v10_0.item_barcode_childtable_migrate in erp.domain.it (1bd3e0294d)
Success: Done in 0.963s
Executing erpnext.patches.v10_0.rename_price_to_rate_in_pricing_rule in erp.domain.it (1bd3e0294d)
Success: Done in 0.516s
Executing erpnext.patches.v10_0.set_currency_in_pricing_rule in erp.domain.it (1bd3e0294d)
Success: Done in 0.044s
Executing erpnext.patches.v10_0.update_translatable_fields in erp.domain.it (1bd3e0294d)
Success: Done in 0.021s
Executing erpnext.patches.v10_0.rename_offer_letter_to_job_offer in erp.domain.it (1bd3e0294d)
Success: Done in 1.036s
Executing execute:frappe.delete_doc('DocType', 'Production Planning Tool', ignore_missing=True) in erp.domain.it (1bd3e0294d)
Success: Done in 0.137s
Executing erpnext.patches.v10_0.migrate_daily_work_summary_settings_to_daily_work_summary_group in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v10_0/migrate_daily_work_summary_settings_to_daily_work_summary_group.py", line 9, in execute
frappe.reload_doc("hr", "doctype", "daily_work_summary_group")
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp v11_0]# nano ../../
api.py build.py config/ defaults.pyc handler.py integrations/ modules.txt public/ templates/ utils/
api.pyc build.pyc contacts/ desk/ handler.pyc limits.py oauth.py pythonrc.py test_runner.py website/
app.py cache_manager.py core/ docs/ hooks.py limits.pyc oauth.pyc pythonrc.pyc test_runner.pyc workflow/
app.pyc cache_manager.pyc custom/ email/ hooks.pyc middlewares.py patches/ realtime.py tests/ www/
async.pyc change_log/ data/ exceptions.py __init__.py middlewares.pyc patches.txt realtime.pyc translate.py
auth.py chat/ database.py exceptions.pyc __init__.pyc migrate.py permissions.py sessions.py translate.pyc
auth.pyc client.py database.pyc frappeclient.py installer.py migrate.pyc permissions.pyc sessions.pyc translations/
boot.py client.pyc data_migration/ frappeclient.pyc installer.pyc model/ print/ share.py twofactor.py
boot.pyc commands/ defaults.py geo/ integration_broker/ modules/ printing/ share.pyc twofactor.pyc
[root@erp v11_0]# nano ../../../
attributions.md .eslintignore frappe.egg-info/ .gitignore LICENSE node_modules/ README.md setup.py test_sites/
ci/ .eslintrc .git/ hooks.md Makefile node_utils.js requirements.txt setup.pyc .travis.yml
CODE_OF_CONDUCT.md frappe/ .github/ __init__.pyc MANIFEST.in package.json rollup/ socketio.js yarn.lock
[root@erp v11_0]# nano ../../../../erpnext/erpnext/patches/v10_0/migrate_daily_work_summary_settings_to_daily_work_summary_group.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing erpnext.patches.v10_0.migrate_daily_work_summary_settings_to_daily_work_summary_group in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v10_0/migrate_daily_work_summary_settings_to_daily_work_summary_group.py", line 9, in execute
frappe.reload_doc("hr", "doctype", "daily_work_summary_group")
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp v11_0]# nano /home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v10_0/migrate_daily_work_summary_settings_to_daily_work_summary_group.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing erpnext.patches.v10_0.migrate_daily_work_summary_settings_to_daily_work_summary_group in erp.domain.it (1bd3e0294d)
Success: Done in 0.043s
Executing erpnext.patches.v10_0.add_default_cash_flow_mappers in erp.domain.it (1bd3e0294d)
Success: Done in 0.396s
Executing erpnext.patches.v11_0.make_quality_inspection_template in erp.domain.it (1bd3e0294d)
Success: Done in 0.133s
Executing erpnext.patches.v10_0.remove_and_copy_fields_in_physician in erp.domain.it (1bd3e0294d)
/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/physician/physician.json missing
/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/doctype/physician_service_unit_schedule/physician_service_unit_schedule.json missing
Success: Done in 0.025s
Executing erpnext.patches.v11_0.merge_land_unit_with_location in erp.domain.it (1bd3e0294d)
Success: Done in 2.019s
Executing erpnext.patches.v11_0.add_index_on_nestedset_doctypes in erp.domain.it (1bd3e0294d)
Success: Done in 2.62s
Executing erpnext.patches.v11_0.remove_modules_setup_page in erp.domain.it (1bd3e0294d)
Success: Done in 0.151s
Executing erpnext.patches.v11_0.rename_employee_loan_to_loan in erp.domain.it (1bd3e0294d)
Success: Done in 2.515s
Executing erpnext.patches.v11_0.move_leave_approvers_from_employee #13-06-2018 in erp.domain.it (1bd3e0294d)
Success: Done in 0.327s
Executing erpnext.patches.v11_0.update_department_lft_rgt in erp.domain.it (1bd3e0294d)
Success: Done in 0.108s
Executing erpnext.patches.v11_0.add_default_email_template_for_leave in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v11_0/add_default_email_template_for_leave.py", line 5, in execute
frappe.reload_doc("email", "doctype", "email_template")
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 774, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 155, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 26, in import_files
reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 31, in import_file
ret = import_file_by_path(path, force, pre_process=pre_process, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 65, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 459, in _validate
d._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
[root@erp v11_0]# nano /home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v11_0/add_default_email_template_for_leave.py
[root@erp v11_0]# bench --site all migrate
Migrating erp.domain.it
Executing erpnext.patches.v11_0.add_default_email_template_for_leave in erp.domain.it (1bd3e0294d)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/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 97, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v11_0/add_default_email_template_for_leave.py", line 16, in execute
}).insert(ignore_permissions=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
self._validate()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 450, in _validate
self._sanitize_content()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 625, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype=='Text Editor')
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 67, in sanitize_html
strip_comments=strip_comments, protocols=['cid', 'http', 'https', 'mailto'])
TypeError: clean() got an unexpected keyword argument 'protocols'
Have you run bench setup requirements
after switching branch to staging?
yes
i have used your post
ok @saurabh6790 ,
i have download OVA virtual machine for https://erpnext.org/download,
bench update on v10,
restored my backup for production machine,
switch and migrate to v11 without any issue.
the difficult thing will be to understand what he does not like
@saurabh6790 I can confirm a bug in the refactor_naming_series, patch since I am facing issues with this patch and I always have to skip this patch to be able to pull new updates on the staging
Here is the error I get when doing migrate (please note that my test instance is already on staging):
Executing erpnext.patches.v11_0.refactor_naming_series in test.rigpl.com (9e522921d3f6db30)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/frappe/v11-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
main()
File "/home/frappe/v11-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/v11-bench/env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/v11-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/v11-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/v11-bench/apps/frappe/frappe/migrate.py", line 39, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/v11-bench/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/v11-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/v11-bench/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/v11-bench/apps/erpnext/erpnext/patches/v11_0/refactor_naming_series.py", line 82, in execute
series_to_set = get_series()
File "/home/frappe/v11-bench/apps/erpnext/erpnext/patches/v11_0/refactor_naming_series.py", line 110, in get_series
default_series = get_default_series(doctype)
File "/home/frappe/v11-bench/apps/erpnext/erpnext/patches/v11_0/refactor_naming_series.py", line 131, in get_default_series
default_series = (frappe.get_meta(doctype).get_field("naming_series").default or "")
AttributeError: 'NoneType' object has no attribute 'default'
I have also mentioned about the same error on github but I guess @nabinhait is as it seems from rushabh’s post is too much tied up, I honestly would have loved to pitch in but I guess yes with v11 on top of priority this might not be up there but I can confirm that there indeed seems to be a bug in this patch.