bench --site development.localhost migrate
Migrating development.localhost
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for erpnext : [========================================] 100%
Updating DocTypes for education : [========================================] 100%
Updating DocTypes for faceify_edu : [========================================] 100%
Skipping fixture syncing from the file custom_field.json. Reason: DocType Employee Advance not found
Queued rebuilding of search index for development.localhost
Traceback with variables (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
mod_name = 'frappe.utils.bench_helper'
alter_argv = True
mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, origin='/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py')
code = <code object <module> at 0x5614793ab2a0, file "/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 1>
main_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe.utils', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, origin='/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/workspace/development/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/...
File "<frozen runpy>", line 88, in _run_code
code = <code object <module> at 0x5614793ab2a0, file "/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 1>
run_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe.utils', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, origin='/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/workspace/development/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/...
init_globals = None
mod_name = '__main__'
mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>, origin='/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py')
pkg_name = 'frappe.utils'
script_name = None
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f0b13365f50>
fname = '/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'
cached = '/workspace/development/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc'
File "/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
main()
...skipped... 27 vars
File "/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
click.Group(commands=commands)(prog_name="bench")
commands = {'frappe': <Group frappe>, 'get-frappe-commands': <Command get-frappe-commands>, 'get-frappe-help': <Command get-frappe-help>}
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
self = <Group None>
args = ()
kwargs = {'prog_name': 'bench'}
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
self = <Group None>
args = ['frappe', '--site', 'development.localhost', 'migrate']
prog_name = 'bench'
complete_var = None
standalone_mode = True
windows_expand_args = True
extra = {}
ctx = <click.core.Context object at 0x7f0b11a00390>
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
self = <Group None>
ctx = <click.core.Context object at 0x7f0b11a00390>
_process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7f0b11b73d80>
args = ['migrate']
cmd_name = 'frappe'
cmd = <Group frappe>
sub_ctx = <click.core.Context object at 0x7f0b12ea4790>
__class__ = <class 'click.core.MultiCommand'>
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
self = <Group frappe>
ctx = <click.core.Context object at 0x7f0b12ea4790>
_process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7f0b119c8e00>
args = []
cmd_name = 'migrate'
cmd = <Command migrate>
sub_ctx = <click.core.Context object at 0x7f0b11a02fd0>
__class__ = <class 'click.core.MultiCommand'>
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
self = <Command migrate>
ctx = <click.core.Context object at 0x7f0b11a02fd0>
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
_Context__self = <click.core.Context object at 0x7f0b11a02fd0>
_Context__callback = <function migrate at 0x7f0b11bce5c0>
args = ()
kwargs = {'skip_failing': False, 'skip_search_index': False}
ctx = <click.core.Context object at 0x7f0b11a02fd0>
File "/workspace/development/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
args = ()
kwargs = {'skip_failing': False, 'skip_search_index': False}
f = <function migrate at 0x7f0b11bce340>
File "/workspace/development/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
ctx = <click.core.Context object at 0x7f0b11a02fd0>
args = ()
kwargs = {'skip_failing': False, 'skip_search_index': False}
profile = False
f = <function migrate at 0x7f0b11bce2a0>
File "/workspace/development/frappe-bench/apps/frappe/frappe/commands/site.py", line 713, in migrate
).run(site=site)
context = {'sites': ['development.localhost'], 'force': False, 'verbose': False, 'profile': False}
skip_failing = False
skip_search_index = False
activate_by_import = <module 'traceback_with_variables.activate_by_import' from '/workspace/development/frappe-bench/env/lib/python3.11/site-packages/traceback_with_variables/activate_by_import.py'>
SiteMigration = <class 'frappe.migrate.SiteMigration'>
site = 'development.localhost'
File "/workspace/development/frappe-bench/apps/frappe/frappe/migrate.py", line 187, in run
self.post_schema_updates()
self = <frappe.migrate.SiteMigration object at 0x7f0b1031a850>
site = 'development.localhost'
filelock = <function filelock at 0x7f0afa6b11c0>
File "/workspace/development/frappe-bench/apps/frappe/frappe/migrate.py", line 52, in wrapper
raise e
args = (<frappe.migrate.SiteMigration object at 0x7f0b1031a850>,)
kwargs = {}
method = <function SiteMigration.post_schema_updates at 0x7f0afa6b0d60>
File "/workspace/development/frappe-bench/apps/frappe/frappe/migrate.py", line 44, in wrapper
ret = method(*args, **kwargs)
args = (<frappe.migrate.SiteMigration object at 0x7f0b1031a850>,)
kwargs = {}
method = <function SiteMigration.post_schema_updates at 0x7f0afa6b0d60>
File "/workspace/development/frappe-bench/apps/frappe/frappe/migrate.py", line 140, in post_schema_updates
sync_fixtures()
self = <frappe.migrate.SiteMigration object at 0x7f0b1031a850>
File "/workspace/development/frappe-bench/apps/frappe/frappe/utils/fixtures.py", line 22, in sync_fixtures
import_fixtures(app)
app = 'faceify_edu'
apps = ['frappe', 'erpnext', 'education', 'faceify_edu']
File "/workspace/development/frappe-bench/apps/frappe/frappe/utils/fixtures.py", line 41, in import_fixtures
import_doc(file_path)
app = 'faceify_edu'
fixtures_path = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures'
fixture_files = ['custom_field.json', 'workflow_state.json', 'role.json', 'role_profile.json', 'workflow.json', 'workflow_action_master.json', 'custom_docperm.json']
fname = 'role_profile.json'
file_path = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json'
File "/workspace/development/frappe-bench/apps/frappe/frappe/core/doctype/data_import/data_import.py", line 250, in import_doc
import_file_by_path(
path = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json'
pre_process = None
files = ['/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json']
f = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json'
File "/workspace/development/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 146, in import_file_by_path
import_doc(
path = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json'
force = True
data_import = True
pre_process = None
ignore_version = None
reset_permissions = True
docs = [{'custom_company': None, 'custom_menu': None, 'custom_role_id': 7, 'docstatus': 0, 'doctype': 'Role Profile', 'modified': '2024-03-21 15:30:48.574139', 'name': 'Student', 'role_profile': 'Student', 'roles': [{'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Student', 'doctype': 'Has Role'}, {'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Transport Viewer', 'doctype': 'Has Role'}], '__islocal': 1}, {'custom_company': None, 'custom_menu': 'Teacher', 'custom_role_id': 3, 'docstatus': 0, 'doctype': 'Role Profile', 'modified': '2024-03-21 15:29:14.507864', 'name': 'Teacher', 'role_profile': 'Teacher', 'roles': [{'parent': 'Teacher', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Instructor'}, {'parent': 'Teacher', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Education Manager'}, {'parent': 'Teacher', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Employee'}, {'parent': ...
calculated_hash = '41dab169f7f803915a4e0de4bbcd4c77'
doc = {'custom_company': None, 'custom_menu': None, 'custom_role_id': 7, 'docstatus': 0, 'doctype': 'Role Profile', 'modified': '2024-03-21 15:30:48.574139', 'name': 'Student', 'role_profile': 'Student', 'roles': [{'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Student', 'doctype': 'Has Role'}, {'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Transport Viewer', 'doctype': 'Has Role'}], '__islocal': 1}
db_modified_timestamp = datetime.datetime(2024, 3, 21, 15, 30, 48, 574139)
is_db_timestamp_latest = True
File "/workspace/development/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 239, in import_doc
doc.insert()
docdict = {'custom_company': None, 'custom_menu': None, 'custom_role_id': 7, 'docstatus': 0, 'doctype': 'Role Profile', 'modified': '2024-03-21 15:30:48.574139', 'name': 'Student', 'role_profile': 'Student', 'roles': [{'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Student', 'doctype': 'Has Role'}, {'parent': 'Student', 'parentfield': 'roles', 'parenttype': 'Role Profile', 'role': 'Transport Viewer', 'doctype': 'Has Role'}], '__islocal': 1}
data_import = True
pre_process = None
ignore_version = None
reset_permissions = True
path = '/workspace/development/frappe-bench/apps/faceify_edu/faceify_edu/fixtures/role_profile.json'
controller = <class 'frappe.core.doctype.role_profile.role_profile.RoleProfile'>
doc = <RoleProfile: Student>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 313, in insert
self.run_post_save_methods()
self = <RoleProfile: Student>
ignore_permissions = None
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
d = <HasRole: 9758d3dc55 parent=Student>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 1125, in run_post_save_methods
self.run_method("on_update")
self = <RoleProfile: Student>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 959, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <RoleProfile: Student>
method = 'on_update'
args = ()
kwargs = {}
fn = <function Document.run_method.<locals>.fn at 0x7f0af703ce00>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 1319, in composer
return composed(self, method, *args, **kwargs)
self = <RoleProfile: Student>
args = ()
kwargs = {}
hooks = [<function clear_doctype_notifications at 0x7f0b10317420>, <function process_workflow_actions at 0x7f0af97f59e0>, <function attach_files_to_document at 0x7f0b112bd760>, <function apply at 0x7f0af9600860>, <function update_due_date at 0x7f0af9600900>, <function apply_permissions_for_non_standard_user_type at 0x7f0af9601f80>]
method = 'on_update'
doc_events = {'*': {'on_update': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.core.doctype.file.utils.attach_files_to_document', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply', 'frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date', 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type'], 'after_rename': ['frappe.desk.notifications.clear_doctype_notifications'], 'on_cancel': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply'], 'on_trash': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions'], 'on_update_after_submit': ['frappe.workflow.doctype.workflow_action.workflow_action.process_w...
handler = 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type'
composed = <function Document.hook.<locals>.compose.<locals>.runner at 0x7f0af70b84a0>
compose = <function Document.hook.<locals>.compose at 0x7f0af70b8220>
f = <function Document.run_method.<locals>.fn at 0x7f0af703ce00>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 1301, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <RoleProfile: Student>
method = 'on_update'
args = ()
kwargs = {}
add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7f0af703cfe0>
fn = <function Document.run_method.<locals>.fn at 0x7f0af703ce00>
hooks = (<function clear_doctype_notifications at 0x7f0b10317420>, <function process_workflow_actions at 0x7f0af97f59e0>, <function attach_files_to_document at 0x7f0b112bd760>, <function apply at 0x7f0af9600860>, <function update_due_date at 0x7f0af9600900>, <function apply_permissions_for_non_standard_user_type at 0x7f0af9601f80>)
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 956, in fn
return method_object(*args, **kwargs)
self = <RoleProfile: Student>
args = ()
kwargs = {}
method_object = <bound method RoleProfile.on_update of <RoleProfile: Student>>
method = 'on_update'
File "/workspace/development/frappe-bench/apps/frappe/frappe/core/doctype/role_profile/role_profile.py", line 29, in on_update
self.queue_action(
self = <RoleProfile: Student>
File "/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py", line 1531, in queue_action
frappe.throw(
self = <RoleProfile: Student>
action = 'update_all_users'
kwargs = {'now': None, 'enqueue_after_commit': True}
enqueue = <function enqueue at 0x7f0b10ddbf60>
primary_action = None
File "/workspace/development/frappe-bench/apps/frappe/frappe/__init__.py", line 600, in throw
msgprint(
msg = 'This document is currently locked and queued for execution. Please try again after some time.'
exc = <class 'frappe.exceptions.ValidationError'>
title = 'Document Queued'
is_minimizable = False
wide = False
as_list = False
primary_action = None
File "/workspace/development/frappe-bench/apps/frappe/frappe/__init__.py", line 565, in msgprint
_raise_exception()
msg = 'This document is currently locked and queued for execution. Please try again after some time.'
title = 'Document Queued'
raise_exception = <class 'frappe.exceptions.ValidationError'>
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module 'sys' (built-in)>
_raise_exception = <function msgprint.<locals>._raise_exception at 0x7f0af70b8360>
out = {'message': 'This document is currently locked and queued for execution. Please try again after some time.', 'title': 'Document Queued', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '01a5fb2d0cb3a7ee5f22b14e75490a79179842a75323ba1c200700b4'}
...skipped... 1 vars
File "/workspace/development/frappe-bench/apps/frappe/frappe/__init__.py", line 516, in _raise_exception
raise exc
exc = ValidationError('This document is currently locked and queued for execution. Please try again after some time.')
msg = 'This document is currently locked and queued for execution. Please try again after some time.'
out = {'message': 'This document is currently locked and queued for execution. Please try again after some time.', 'title': 'Document Queued', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '01a5fb2d0cb3a7ee5f22b14e75490a79179842a75323ba1c200700b4'}
raise_exception = <class 'frappe.exceptions.ValidationError'>
...skipped... 1 vars
frappe.exceptions.ValidationError: This document is currently locked and queued for execution. Please try again after some time.
Have you maintained your customization using fixtures?
yes i have already done
Go to the respective site and delete all files present inside locks
folder, try again
1 Like