fresh frappe-bench, erpnext and installed (no shopping cart installed).
new site created site.local
Error while migrate-to-v5
revant@server:~/frappe-bench$ bench migrate-to-v5
This will migrate all sites in the bench to version 5.
This is irreversible. Do you want to continue? [y/N]: y
Branch v5.0 set up to track remote branch v5.0 from upstream.
Switched to a new branch 'v5.0'
Removing frappe/core/doctype/bulk_email/
Removing frappe/core/doctype/custom_field/
Removing frappe/core/doctype/custom_script/
Removing frappe/core/doctype/customize_form/
Removing frappe/core/doctype/customize_form_field/
Removing frappe/core/doctype/email_alert/
Removing frappe/core/doctype/email_alert_recipient/
Removing frappe/core/doctype/event/
Removing frappe/core/doctype/event_role/
Removing frappe/core/doctype/event_user/
Removing frappe/core/doctype/letter_head/
Removing frappe/core/doctype/outgoing_email_settings/
Removing frappe/core/doctype/print_format/
Removing frappe/core/doctype/print_settings/
Removing frappe/core/doctype/property_setter/
Removing frappe/core/doctype/standard_reply/
Removing frappe/core/doctype/todo/
Removing frappe/core/doctype/workflow/
Removing frappe/core/doctype/workflow_action/
Removing frappe/core/doctype/workflow_document_state/
Removing frappe/core/doctype/workflow_state/
Removing frappe/core/doctype/workflow_transition/
Removing frappe/utils/email_lib/
Removing frappe/widgets/
Branch v5.0 set up to track remote branch v5.0 from upstream.
Switched to a new branch 'v5.0'
Removing erpnext/accounts/doctype/chart_of_accounts/
Removing erpnext/home/
Removing erpnext/setup/doctype/country/
Removing erpnext/setup/doctype/currency/
Removing erpnext/setup/doctype/jobs_email_settings/
Removing erpnext/setup/doctype/sales_email_settings/
Removing erpnext/support/doctype/support_email_settings/
Removing erpnext/utilities/doctype/note/
Removing erpnext/utilities/doctype/note_user/
Running remove_from_installed_apps for site.local
Uninstalling shopping-cart:
Successfully uninstalled shopping-cart
Already up-to-date.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
Running latest for site.local
Executing erpnext.patches.v4_2.party_model in site.local (site.local)
Traceback (most recent call last):
File “/home/revant/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.6.1’, ‘console_scripts’, ‘frappe’)()
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 435, in latest
frappe.modules.patch_handler.run_all()
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 66, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 9, in execute
receivable_payable_accounts = create_receivable_payable_account()
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 39, in create_receivable_payable_account
“parent_account”: get_parent_account(company, “Customer”)
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 30, in _create_account
if args[“account_type”]==“Receivable” else “default_payable_account”), account.name)
File “/home/revant/frappe-bench/apps/frappe/frappe/database.py”, line 426, in set_value
{2}“”“.format(dt, field, conditions), values)
File “/home/revant/frappe-bench/apps/frappe/frappe/database.py”, line 111, in sql
self._cursor.execute(query, values)
File “/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘default_receivable_account’ in ‘field list’”)
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/revant/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/revant/bench-repo/bench/cli.py”, line 169, in update
patch_sites()
File “/home/revant/bench-repo/bench/utils.py”, line 91, in patch_sites
exec_cmd(”{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/revant/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/revant/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/revant/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/revant/bench-repo/bench/cli.py”, line 207, in _migrate_to_v5
migrate_to_v5(bench=bench)
File “/home/revant/bench-repo/bench/migrate_to_v5.py”, line 16, in migrate_to_v5
exec_cmd(“{bench} update”.format(bench=sys.argv[0]))
File “/home/revant/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/usr/local/bin/bench update’ returned non-zero exit status 1