I was able to update this morning to
Let me run through my checks and report back here, but so far so good.
I have the same problem. Updated to latest version and still the same error.
On bench version
frappe 8.0.59
Erpnext 8.0.38
status 503 on browser
any update?
Are you still getting the issue? Please post the traceback.
I will try tonight again. I already restore snapshoot on vm.
i am trying to update again. Still same error. “module import failed for student group instructor”
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1
npm WARN frappe@ No description
Backing up sites…
Patching sites…
Migrating tok
Executing frappe.patches.v8_0.update_records_in_global_search #11-05-2017 in tok (79bead8e6d65862a)
Updating Global Search : [========================================]Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘role’) #2017-05-23 in tok (79bead8e6d65862a)
Success
Executing frappe.patches.v8_0.drop_unwanted_indexes in tok (79bead8e6d65862a)
Success
Executing frappe.patches.v8_0.install_new_build_system_requirements in tok (79bead8e6d65862a)
Please update your NodeJS version
frappe@ /home/tok/frappe-bench
├── babel-core@6.24.1
├── babel-preset-babili@0.0.12
├── babel-preset-es2015@6.24.1
├── babel-preset-es2016@6.24.1
├── babel-preset-es2017@6.24.1
├── chokidar@1.7.0
└── less@2.7.2
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1
npm WARN frappe@ No description
Success
Executing frappe.patches.v8_0.set_currency_field_precision # 2017-05-09 in tok (79bead8e6d65862a)
Success
Executing frappe.patches.v8_0.rename_print_to_printing in tok (79bead8e6d65862a)
Success
Executing frappe.patches.v8_0.update_desktop_icons in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.enable_booking_asset_depreciation_automatically in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.set_project_copied_from in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.update_status_as_paid_for_completed_expense_claim in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.revert_manufacturers_table_from_item in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.disable_instructor_role in tok (79bead8e6d65862a)
Success
Executing erpnext.patches.v8_0.merge_student_batch_and_student_group in tok (79bead8e6d65862a)
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/tok/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/tok/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/tok/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/tok/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/tok/frappe-bench/apps/frappe/frappe/commands/site.py”, line 214, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/tok/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in migrate
frappe.modules.patch_handler.run_all()
File “/home/tok/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/tok/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/tok/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/tok/frappe-bench/apps/erpnext/erpnext/patches/v8_0/merge_student_batch_and_student_group.py”, line 46, in execute
doc.save()
File “/home/tok/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
return self._save(*args, **kwargs)
File “/home/tok/frappe-bench/apps/frappe/frappe/model/document.py”, line 253, in _save
self.insert()
File “/home/tok/frappe-bench/apps/frappe/frappe/model/document.py”, line 182, in insert
self._set_defaults()
File “/home/tok/frappe-bench/apps/frappe/frappe/model/document.py”, line 498, in _set_defaults
new_doc = frappe.new_doc(df.options, as_dict=True)
File “/home/tok/frappe-bench/apps/frappe/frappe/init.py”, line 582, in new_doc
return get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
File “/home/tok/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 19, in get_new_doc
frappe.local.new_doc_templates[doctype] = make_new_doc(doctype)
File “/home/tok/frappe-bench/apps/frappe/frappe/model/create_new.py”, line 37, in make_new_doc
“docstatus”: 0
File “/home/tok/frappe-bench/apps/frappe/frappe/init.py”, line 606, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File “/home/tok/frappe-bench/apps/frappe/frappe/model/document.py”, line 49, in get_doc
controller = get_controller(doctype)
File “/home/tok/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 35, in get_controller
module = load_doctype_module(doctype, module_name)
File “/home/tok/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 184, in load_doctype_module
raise ImportError, ‘Module import failed for {0} ({1})’.format(doctype, module_name)
ImportError: Module import failed for Student Group Instructor (frappe.core.doctype.student_group_instructor.student_group_instructor)
Now you are getting a separate error. Because somehow in your account, “Module” is set as “Core” for doctype “Student Group Instructor”, which should be “Schools”.
Change the module to “Schools” from mysql and the try to update again.
Could you please explain me further. What is the table name in mysql where i should change this?
@vladucoju enter the database and run a query like:
UPDATE tabDocType SET module = 'Schools' WHERE name = 'Student Group Instructor'
I have it …probably some patch didn’t run correctly, try to run: bench migrate
I already try that. Same error again.
Same error again. It is strange that doctype Student Group Instructor does not exist in db.
Can you check if json file is in the Student Group Instructor
doctype folder?
Before update student group instructor wasn’t exist in doctype and db. After update started doctype was created but does not exist in db.
Json file exist
{
“allow_copy”: 0,
“allow_guest_to_view”: 0,
“allow_import”: 0,
“allow_rename”: 0,
“beta”: 0,
“creation”: “2017-04-17 16:06:01.406768”,
“custom”: 0,
“docstatus”: 0,
“doctype”: “DocType”,
“document_type”: “”,
“editable_grid”: 1,
“engine”: “InnoDB”,
“fields”: [
{
“allow_on_submit”: 0,
“bold”: 0,
“collapsible”: 0,
“columns”: 0,
“fieldname”: “instructor”,
“fieldtype”: “Link”,
“hidden”: 0,
“ignore_user_permissions”: 0,
“ignore_xss_filter”: 0,
“in_filter”: 0,
“in_global_search”: 0,
“in_list_view”: 1,
“in_standard_filter”: 0,
“label”: “Instructor”,
“length”: 0,
“no_copy”: 0,
“options”: “Instructor”,
“permlevel”: 0,
“precision”: “”,
“print_hide”: 0,
“print_hide_if_no_value”: 0,
“read_only”: 0,
“remember_last_selected_value”: 0,
“report_hide”: 0,
“reqd”: 1,
“search_index”: 0,
“set_only_once”: 0,
“unique”: 0
},
{
“allow_on_submit”: 0,
“bold”: 0,
“collapsible”: 0,
“columns”: 0,
“fieldname”: “column_break_2”,
“fieldtype”: “Column Break”,
“hidden”: 0,
“ignore_user_permissions”: 0,
“ignore_xss_filter”: 0,
“in_filter”: 0,
“in_global_search”: 0,
“in_list_view”: 0,
“in_standard_filter”: 0,
“length”: 0,
“no_copy”: 0,
“permlevel”: 0,
“precision”: “”,
“print_hide”: 0,
“print_hide_if_no_value”: 0,
“read_only”: 0,
“remember_last_selected_value”: 0,
“report_hide”: 0,
“reqd”: 0,
“search_index”: 0,
“set_only_once”: 0,
“unique”: 0
},
{
“allow_on_submit”: 0,
“bold”: 0,
“collapsible”: 0,
“columns”: 0,
“fieldname”: “instructor_name”,
“fieldtype”: “Read Only”,
“hidden”: 0,
“ignore_user_permissions”: 0,
“ignore_xss_filter”: 0,
“in_filter”: 0,
“in_global_search”: 0,
“in_list_view”: 1,
“in_standard_filter”: 0,
“label”: “Instructor Name”,
“length”: 0,
“no_copy”: 0,
“options”: “instructor.instructor_name”,
“permlevel”: 0,
“precision”: “”,
“print_hide”: 0,
“print_hide_if_no_value”: 0,
“read_only”: 0,
“remember_last_selected_value”: 0,
“report_hide”: 0,
“reqd”: 0,
“search_index”: 0,
“set_only_once”: 0,
“unique”: 0
}
],
“has_web_view”: 0,
“hide_heading”: 0,
“hide_toolbar”: 0,
“idx”: 0,
“image_view”: 0,
“in_create”: 0,
“is_submittable”: 0,
“issingle”: 0,
“istable”: 1,
“max_attachments”: 0,
“modified”: “2017-04-17 16:06:05.792863”,
“modified_by”: “Administrator”,
“module”: “Schools”,
“name”: “Student Group Instructor”,
“name_case”: “”,
“owner”: “Administrator”,
“permissions”: [],
“quick_entry”: 1,
“read_only”: 0,
“read_only_onload”: 0,
“show_name_in_global_search”: 0,
“sort_field”: “modified”,
“sort_order”: “DESC”,
“track_changes”: 0,
“track_seen”: 0
}
I try with this comand bench reload-doc schools doctype student_group_instructor and now update is completed. After that i restart vm and now there is new problem with mysql server. OperationalError: (2002, ‘Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 “No such file or directory”)’)
Thanks guys for help. I finally solve the problem on latest update (8.1). I also have error with students group. I solve the problem deleting students group data from database. Thanks again.