Hello everyone I am trying to migrate my app from v13 to v14 …but due to some reason the migration is give this meta error
I did bench update and bench migrate manually also
What can I do to fix this error cause because of this my other sites are also stuck in update mode and also suddenly it has stopped production mode…I had to manually do bench start for my production sites
Thank you
bench update
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/frappe
* branch develop -> FETCH_HEAD
WARN: shallow_clone is set in your bench config.
However without passing the --reset flag, your repositories will be unshallowed.
To avoid this, cancel this operation and run `bench update --reset`.
Consider the consequences of `git reset --hard` on your apps before you run that.
To avoid seeing this warning, set shallow_clone to false in your common_site_config.json
Backing up sites...
Backup Summary for vootours.toolkit.novacept.io at 2022-09-20 07:19:20.098473
Config : ./vootours.toolkit.novacept.io/private/backups/20220920_071918-vootours_toolkit_novacept_io-site_config_backup.json 225.0B
Database: ./vootours.toolkit.novacept.io/private/backups/20220920_071918-vootours_toolkit_novacept_io-database.sql.gz 1.3MiB
Backup for Site vootours.toolkit.novacept.io has been successfully completed
Backup Summary for my.toolkit.novacept.io at 2022-09-20 04:19:23.288916
Config : ./my.toolkit.novacept.io/private/backups/20220920_041920-my_toolkit_novacept_io-site_config_backup.json 226.0B
Database: ./my.toolkit.novacept.io/private/backups/20220920_041920-my_toolkit_novacept_io-database.sql.gz 4.4MiB
Backup for Site my.toolkit.novacept.io has been successfully completed
Backup Summary for novatoolkit.northeurope.cloudapp.azure.com at 2022-09-20 04:19:24.249619
Config : ./novatoolkit.northeurope.cloudapp.azure.com/private/backups/20220920_041923-novatoolkit_northeurope_cloudapp_azure_com-site_config_backup.json 115.0B
Database: ./novatoolkit.northeurope.cloudapp.azure.com/private/backups/20220920_041923-novatoolkit_northeurope_cloudapp_azure_com-database.sql.gz 285.1KiB
Backup for Site novatoolkit.northeurope.cloudapp.azure.com has been successfully completed
Patching sites...
Migrating vootours.toolkit.novacept.io
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for payments : [========================================] 100%
Updating DocTypes for erpnext : [========================================] 100%
Updating DocTypes for session_history: [========================================] 100%
Updating DocTypes for novacept_blaster: [========================================] 100%
Updating DocTypes for hrms : [========================================] 100%
Updating Dashboard for frappe
Updating Dashboard for payments
Updating Dashboard for erpnext
Updating Dashboard for session_history
Updating Dashboard for novacept_blaster
Updating Dashboard for hrms
Updating customizations for Address
Updating customizations for Contact
Queued rebuilding of search index for vootours.toolkit.novacept.io
Migrating my.toolkit.novacept.io
Traceback (most recent call last):
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 175, in run
self.run_schema_updates()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 41, in wrapper
ret = method(*args, **kwargs)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 113, in run_schema_updates
frappe.model.sync.sync_all()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/sync.py", line 19, in sync_all
sync_for(app, force, reset_permissions=reset_permissions)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/sync.py", line 80, in sync_for
import_file_by_path(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 145, in import_file_by_path
import_doc(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 242, in import_doc
doc.insert()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/document.py", line 256, in insert
self._validate()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/document.py", line 537, in _validate
d._validate_length()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/base_document.py", line 887, in _validate_length
if self.meta.issingle:
AttributeError: 'Meta' object has no attribute 'issingle'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/utils/bench_helper.py", line 104, in <module>
main()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/utils/bench_helper.py", line 19, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/bench/benchv14/env/lib/python3.10/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/commands/__init__.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/commands/site.py", line 552, in migrate
SiteMigration(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 177, in run
self.post_schema_updates()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 41, in wrapper
ret = method(*args, **kwargs)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/migrate.py", line 132, in post_schema_updates
sync_jobs()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 142, in sync_jobs
frappe.reload_doc("core", "doctype", "scheduled_job_type")
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/__init__.py", line 1285, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/utils.py", line 198, in reload_doc
return import_files(module, dt, dn, force=force, reset_permissions=reset_permissions)
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 53, in import_files
return import_file(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 61, in import_file
ret = import_file_by_path(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 145, in import_file_by_path
import_doc(
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/modules/import_file.py", line 242, in import_doc
doc.insert()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/document.py", line 256, in insert
self._validate()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/document.py", line 537, in _validate
d._validate_length()
File "/home/erpnext/bench/benchv14/apps/frappe/frappe/model/base_document.py", line 887, in _validate_length
if self.meta.issingle:
AttributeError: 'Meta' object has no attribute 'issingle'