Closed joscasjac closed 9 months ago
Intente seguir las instrucciones de aca pero mi servidor de produccion lo cree hiciendo las instrucciones del frappe_docker haciendo custom apps.
al correr bench migrate
tuve el siguiente error:
bench migrate Migrating erp.goldengroup.com.gt Updating DocTypes for frappe : [========================================] 100% Updating DocTypes for erpnext : [========================================] 100% Updating DocTypes for hrms : [========================================] 100% Updating DocTypes for twilio_integration: [========================================] 100% Updating DocTypes for factura_electronica: [============ ] 32%Queued rebuilding of search index for erp.goldengroup.com.gt 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 0x7fcfcc39c490>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py') code = <code object <module> at 0x55b94f3e2fc0, file "/home/frappe/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 0x7fcfcc39c490>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fcfcc39c490>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.11/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.11/warnings.py'>, 'Path': <cl... File "<frozen runpy>", line 88, in _run_code code = <code object <module> at 0x55b94f3e2fc0, file "/home/frappe/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 0x7fcfcc39c490>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fcfcc39c490>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.11/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.11/warnings.py'>, 'Path': <cl... init_globals = None mod_name = '__main__' mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fcfcc39c490>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py') pkg_name = 'frappe.utils' script_name = None loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fcfcc39c490> fname = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py' cached = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc' File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module> main() ...skipped... 27 vars File "/home/frappe/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 "/home/frappe/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 "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) self = <Group None> args = ['frappe', 'migrate'] prog_name = 'bench' complete_var = None standalone_mode = True windows_expand_args = True extra = {} ctx = <click.core.Context object at 0x7fcfcab17c50> File "/home/frappe/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 0x7fcfcab17c50> _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7fcfca557d80> args = ['migrate'] cmd_name = 'frappe' cmd = <Group frappe> sub_ctx = <click.core.Context object at 0x7fcfcbc1d3d0> __class__ = <class 'click.core.MultiCommand'> File "/home/frappe/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 0x7fcfcbc1d3d0> _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7fcfcab28540> args = [] cmd_name = 'migrate' cmd = <Command migrate> sub_ctx = <click.core.Context object at 0x7fcfca503fd0> __class__ = <class 'click.core.MultiCommand'> File "/home/frappe/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 0x7fcfca503fd0> File "/home/frappe/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 0x7fcfca503fd0> _Context__callback = <function migrate at 0x7fcfca5540e0> args = () kwargs = {'skip_failing': False, 'skip_search_index': False} ctx = <click.core.Context object at 0x7fcfca503fd0> File "/home/frappe/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 0x7fcfca807e20> File "/home/frappe/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 0x7fcfca503fd0> args = () kwargs = {'skip_failing': False, 'skip_search_index': False} profile = False f = <function migrate at 0x7fcfca807d80> File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 729, in migrate ).run(site=site) context = {'sites': ['erp.goldengroup.com.gt'], 'force': False, 'verbose': False, 'profile': False} skip_failing = False skip_search_index = False activate_by_import = <module 'traceback_with_variables.activate_by_import' from '/home/frappe/frappe-bench/env/lib/python3.11/site-packages/traceback_with_variables/activate_by_import.py'> SiteMigration = <class 'frappe.migrate.SiteMigration'> site = 'erp.goldengroup.com.gt' File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 185, in run self.run_schema_updates() self = <frappe.migrate.SiteMigration object at 0x7fcfc274ad10> site = 'erp.goldengroup.com.gt' filelock = <function filelock at 0x7fcfc2448e00> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 52, in wrapper raise e args = (<frappe.migrate.SiteMigration object at 0x7fcfc274ad10>,) kwargs = {} method = <function SiteMigration.run_schema_updates at 0x7fcfc2448900> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 44, in wrapper ret = method(*args, **kwargs) args = (<frappe.migrate.SiteMigration object at 0x7fcfc274ad10>,) kwargs = {} method = <function SiteMigration.run_schema_updates at 0x7fcfc2448900> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 119, in run_schema_updates frappe.model.sync.sync_all() self = <frappe.migrate.SiteMigration object at 0x7fcfc274ad10> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 43, in sync_all sync_for(app, force, reset_permissions=reset_permissions) force = 0 reset_permissions = False app = 'factura_electronica' File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 111, in sync_for import_file_by_path( app_name = 'factura_electronica' force = 0 reset_permissions = False files = ['/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/combination_of_phrases/combination_of_phrases.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_invoices/batch_invoices.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/impuestos_especiales/impuestos_especiales.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/unit_tax_item/unit_tax_item.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/contact_identification/contact_identification.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/envios_facturas_electronicas/envios_facturas_electronicas.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/withhol... module_name = 'factura_electronica' folder = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica' l = 50 i = 16 doc_path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 148, in import_file_by_path import_doc( path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' force = 0 data_import = False pre_process = None ignore_version = True reset_permissions = False docs = [{'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'labe... calculated_hash = 'f3ef4c298a1f126f3b6012c49a979cfd' doc = {'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'label... db_modified_timestamp = None is_db_timestamp_latest = None File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 245, in import_doc doc.insert() docdict = {'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'label... data_import = False pre_process = None ignore_version = True reset_permissions = False path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' controller = <class 'frappe.core.doctype.doctype.doctype.DocType'> doc = <DocType: Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 310, in insert self.run_post_save_methods() self = <DocType: Batch Electronic Invoice> ignore_permissions = None ignore_links = None ignore_if_duplicate = False ignore_mandatory = None set_name = None set_child_names = True d = <DocPerm: 1a3713a957 parent=Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1121, in run_post_save_methods self.run_method("on_update") self = <DocType: Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 953, in run_method out = Document.hook(fn)(self, *args, **kwargs) self = <DocType: Batch Electronic Invoice> method = 'on_update' args = () kwargs = {} fn = <function Document.run_method.<locals>.fn at 0x7fcfc0fc3600> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1319, in composer return composed(self, method, *args, **kwargs) self = <DocType: Batch Electronic Invoice> args = () kwargs = {} hooks = [<function build_domain_restriced_doctype_cache at 0x7fcfca436f20>, <function clear_doctype_notifications at 0x7fcfc8d74a40>, <function process_workflow_actions at 0x7fcfc158c040>, <function attach_files_to_document at 0x7fcfc9dd8c20>, <function apply at 0x7fcfc1593600>, <function update_due_date at 0x7fcfc15936a0>, <function apply_permissions_for_non_standard_user_type at 0x7fcfc15c8e00>] 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 0x7fcfc16d8360> compose = <function Document.hook.<locals>.compose at 0x7fcfc183e980> f = <function Document.run_method.<locals>.fn at 0x7fcfc0fc3600> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1301, in runner add_to_return_value(self, fn(self, *args, **kwargs)) self = <DocType: Batch Electronic Invoice> method = 'on_update' args = () kwargs = {} add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7fcfc17a1c60> fn = <function Document.run_method.<locals>.fn at 0x7fcfc0fc3600> hooks = (<function build_domain_restriced_doctype_cache at 0x7fcfca436f20>, <function clear_doctype_notifications at 0x7fcfc8d74a40>, <function process_workflow_actions at 0x7fcfc158c040>, <function attach_files_to_document at 0x7fcfc9dd8c20>, <function apply at 0x7fcfc1593600>, <function update_due_date at 0x7fcfc15936a0>, <function apply_permissions_for_non_standard_user_type at 0x7fcfc15c8e00>) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 950, in fn return method_object(*args, **kwargs) self = <DocType: Batch Electronic Invoice> args = () kwargs = {} method_object = <bound method DocType.on_update of <DocType: Batch Electronic Invoice>> method = 'on_update' File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 526, in on_update self.run_module_method("on_doctype_update") self = <DocType: Batch Electronic Invoice> allow_doctype_export = False File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 624, in run_module_method module = load_doctype_module(self.name, self.module) self = <DocType: Batch Electronic Invoice> method = 'on_doctype_update' load_doctype_module = <function load_doctype_module at 0x7fcfca2a02c0> File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 245, in load_doctype_module raise ImportError(msg) from e doctype = 'Batch Electronic Invoice' module = 'Factura Electronica' prefix = '' suffix = '' app = 'factura_electronica' key = ('factura_electronica', 'Batch Electronic Invoice', '', '') module_name = 'factura_electronica.factura_electronica.doctype.batch_electronic_invoice.batch_electronic_invoice' msg = "Module import failed for Batch Electronic Invoice, the DocType you're trying to open might be deleted.<br> Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py)" builtins.ImportError: Module import failed for Batch Electronic Invoice, the DocType you're trying to open might be deleted.<br> Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py) frappe@ab0618fba87a:~/frappe-bench$ bench migrate Migrating erp.goldengroup.com.gt Updating DocTypes for frappe : [========================================] 100% Updating DocTypes for erpnext : [========================================] 100% Updating DocTypes for hrms : [========================================] 100% Updating DocTypes for twilio_integration: [========================================] 100% Updating DocTypes for factura_electronica: [============ ] 32%Queued rebuilding of search index for erp.goldengroup.com.gt 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 0x7f53dbccba10>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py') code = <code object <module> at 0x559613a07fc0, file "/home/frappe/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 0x7f53dbccba10>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f53dbccba10>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.11/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.11/warnings.py'>, 'Path': <cl... File "<frozen runpy>", line 88, in _run_code code = <code object <module> at 0x559613a07fc0, file "/home/frappe/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 0x7f53dbccba10>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f53dbccba10>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.11/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.11/json/__init__.py'>, 'os': <module 'os' (frozen)>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.11/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.11/warnings.py'>, 'Path': <cl... init_globals = None mod_name = '__main__' mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f53dbccba10>, origin='/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py') pkg_name = 'frappe.utils' script_name = None loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f53dbccba10> fname = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py' cached = '/home/frappe/frappe-bench/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-311.pyc' File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module> main() ...skipped... 27 vars File "/home/frappe/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 "/home/frappe/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 "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) self = <Group None> args = ['frappe', 'migrate'] prog_name = 'bench' complete_var = None standalone_mode = True windows_expand_args = True extra = {} ctx = <click.core.Context object at 0x7f53d9e84490> File "/home/frappe/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 0x7f53d9e84490> _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7f53d9ebfd80> args = ['migrate'] cmd_name = 'frappe' cmd = <Group frappe> sub_ctx = <click.core.Context object at 0x7f53da477810> __class__ = <class 'click.core.MultiCommand'> File "/home/frappe/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 0x7f53da477810> _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7f53da488540> args = [] cmd_name = 'migrate' cmd = <Command migrate> sub_ctx = <click.core.Context object at 0x7f53db762250> __class__ = <class 'click.core.MultiCommand'> File "/home/frappe/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 0x7f53db762250> File "/home/frappe/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 0x7f53db762250> _Context__callback = <function migrate at 0x7f53d9ebc0e0> args = () kwargs = {'skip_failing': False, 'skip_search_index': False} ctx = <click.core.Context object at 0x7f53db762250> File "/home/frappe/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 0x7f53da173e20> File "/home/frappe/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 0x7f53db762250> args = () kwargs = {'skip_failing': False, 'skip_search_index': False} profile = False f = <function migrate at 0x7f53da173d80> File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 729, in migrate ).run(site=site) context = {'sites': ['erp.goldengroup.com.gt'], 'force': False, 'verbose': False, 'profile': False} skip_failing = False skip_search_index = False activate_by_import = <module 'traceback_with_variables.activate_by_import' from '/home/frappe/frappe-bench/env/lib/python3.11/site-packages/traceback_with_variables/activate_by_import.py'> SiteMigration = <class 'frappe.migrate.SiteMigration'> site = 'erp.goldengroup.com.gt' File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 185, in run self.run_schema_updates() self = <frappe.migrate.SiteMigration object at 0x7f53d20d0290> site = 'erp.goldengroup.com.gt' filelock = <function filelock at 0x7f53d1db4e00> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 52, in wrapper raise e args = (<frappe.migrate.SiteMigration object at 0x7f53d20d0290>,) kwargs = {} method = <function SiteMigration.run_schema_updates at 0x7f53d1db4900> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 44, in wrapper ret = method(*args, **kwargs) args = (<frappe.migrate.SiteMigration object at 0x7f53d20d0290>,) kwargs = {} method = <function SiteMigration.run_schema_updates at 0x7f53d1db4900> File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 119, in run_schema_updates frappe.model.sync.sync_all() self = <frappe.migrate.SiteMigration object at 0x7f53d20d0290> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 43, in sync_all sync_for(app, force, reset_permissions=reset_permissions) force = 0 reset_permissions = False app = 'factura_electronica' File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 111, in sync_for import_file_by_path( app_name = 'factura_electronica' force = 0 reset_permissions = False files = ['/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/combination_of_phrases/combination_of_phrases.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_invoices/batch_invoices.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/impuestos_especiales/impuestos_especiales.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/unit_tax_item/unit_tax_item.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/contact_identification/contact_identification.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/envios_facturas_electronicas/envios_facturas_electronicas.json', '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/withhol... module_name = 'factura_electronica' folder = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica' l = 50 i = 16 doc_path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 148, in import_file_by_path import_doc( path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' force = 0 data_import = False pre_process = None ignore_version = True reset_permissions = False docs = [{'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'labe... calculated_hash = 'f3ef4c298a1f126f3b6012c49a979cfd' doc = {'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'label... db_modified_timestamp = datetime.datetime(2024, 1, 5, 12, 10, 54, 34161) is_db_timestamp_latest = True stored_hash = None File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 245, in import_doc doc.insert() docdict = {'actions': [], 'autoname': 'BATCH.##########', 'creation': '2020-05-21 11:11:32.416463', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'posting_date', 'fieldtype': 'Date', 'label': 'Posting Date', 'doctype': 'DocField'}, {'fieldname': 'validate_invoices', 'fieldtype': 'Button', 'label': 'Validate Invoices', 'doctype': 'DocField'}, {'collapsible': 1, 'fieldname': 'invoices_section', 'fieldtype': 'Section Break', 'label': 'Invoices', 'doctype': 'DocField'}, {'fieldname': 'batch_invoices', 'fieldtype': 'Table', 'label': 'Batch Invoices', 'options': 'Batch Invoices', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'Batch Electronic Invoice', 'print_hide': 1, 'read_only': 1, 'doctype': 'DocField'}, {'fieldname': 'log_status_section', 'fieldtype': 'Section Break', 'label': 'Log Status', 'doctype': 'DocField'}, {'fieldname': 'details', 'fieldtype': 'Code', 'hidden': 1, 'label... data_import = False pre_process = None ignore_version = True reset_permissions = False path = '/home/frappe/frappe-bench/apps/factura_electronica/factura_electronica/factura_electronica/doctype/batch_electronic_invoice/batch_electronic_invoice.json' controller = <class 'frappe.core.doctype.doctype.doctype.DocType'> doc = <DocType: Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 310, in insert self.run_post_save_methods() self = <DocType: Batch Electronic Invoice> ignore_permissions = None ignore_links = None ignore_if_duplicate = False ignore_mandatory = None set_name = None set_child_names = True d = <DocPerm: 2ae3251d56 parent=Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1121, in run_post_save_methods self.run_method("on_update") self = <DocType: Batch Electronic Invoice> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 953, in run_method out = Document.hook(fn)(self, *args, **kwargs) self = <DocType: Batch Electronic Invoice> method = 'on_update' args = () kwargs = {} fn = <function Document.run_method.<locals>.fn at 0x7f53d10407c0> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1319, in composer return composed(self, method, *args, **kwargs) self = <DocType: Batch Electronic Invoice> args = () kwargs = {} hooks = [<function build_domain_restriced_doctype_cache at 0x7f53d9baaf20>, <function clear_doctype_notifications at 0x7f53d8c5ca40>, <function process_workflow_actions at 0x7f53d0ef4040>, <function attach_files_to_document at 0x7f53d9758c20>, <function apply at 0x7f53d0f03600>, <function update_due_date at 0x7f53d0f036a0>, <function apply_permissions_for_non_standard_user_type at 0x7f53d0f40e00>] 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 0x7f53d0e9b6a0> compose = <function Document.hook.<locals>.compose at 0x7f53d1040720> f = <function Document.run_method.<locals>.fn at 0x7f53d10407c0> File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1301, in runner add_to_return_value(self, fn(self, *args, **kwargs)) self = <DocType: Batch Electronic Invoice> method = 'on_update' args = () kwargs = {} add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7f53d1040360> fn = <function Document.run_method.<locals>.fn at 0x7f53d10407c0> hooks = (<function build_domain_restriced_doctype_cache at 0x7f53d9baaf20>, <function clear_doctype_notifications at 0x7f53d8c5ca40>, <function process_workflow_actions at 0x7f53d0ef4040>, <function attach_files_to_document at 0x7f53d9758c20>, <function apply at 0x7f53d0f03600>, <function update_due_date at 0x7f53d0f036a0>, <function apply_permissions_for_non_standard_user_type at 0x7f53d0f40e00>) File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 950, in fn return method_object(*args, **kwargs) self = <DocType: Batch Electronic Invoice> args = () kwargs = {} method_object = <bound method DocType.on_update of <DocType: Batch Electronic Invoice>> method = 'on_update' File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 526, in on_update self.run_module_method("on_doctype_update") self = <DocType: Batch Electronic Invoice> allow_doctype_export = False File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 624, in run_module_method module = load_doctype_module(self.name, self.module) self = <DocType: Batch Electronic Invoice> method = 'on_doctype_update' load_doctype_module = <function load_doctype_module at 0x7f53d9c142c0> File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py", line 245, in load_doctype_module raise ImportError(msg) from e doctype = 'Batch Electronic Invoice' module = 'Factura Electronica' prefix = '' suffix = '' app = 'factura_electronica' key = ('factura_electronica', 'Batch Electronic Invoice', '', '') module_name = 'factura_electronica.factura_electronica.doctype.batch_electronic_invoice.batch_electronic_invoice' msg = "Module import failed for Batch Electronic Invoice, the DocType you're trying to open might be deleted.<br> Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py)" builtins.ImportError: Module import failed for Batch Electronic Invoice, the DocType you're trying to open might be deleted.<br> Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py)
Use la branch incorrecta al usar production-v15 no me dio ningun error.
Intente seguir las instrucciones de aca pero mi servidor de produccion lo cree hiciendo las instrucciones del frappe_docker haciendo custom apps.
al correr bench migrate
tuve el siguiente error: