Hello, all.
I have the working V11 in VM downloaded 2-3 years ago and employed. It has the full db (items, BOMs, suppliers, etc.) and no local changes except one field added to the item document.
I downloaded Ubuntu 20.04 VM and installed the V13 in it - looks as working fine.
Now, I made backup of V11 bt "bench --site site_name backup" and than restored by "bench --site site_name --force restore /path/to/copied/latest_date_time_sql.gz".
Restoration passed smoothly.
Now, when I rebooted the V13 machine and tried to connect to it, my browser shows "Internal Server error".
Studying logs directory I can see in schedule.log:
2022-02-15 10:52:01,177 ERROR scheduler Exception in Enqueue Events for Site erpnext.plris.com
Traceback (most recent call last):
File "apps/frappe/frappe/utils/scheduler.py", line 67, in enqueue_events_for_site
enqueue_events(site=site)
File "apps/frappe/frappe/utils/scheduler.py", line 82, in enqueue_events
if schedule_jobs_based_on_activity():
File "apps/frappe/frappe/utils/scheduler.py", line 120, in schedule_jobs_based_on_activity
if is_dormant(check_time=check_time):
File "apps/frappe/frappe/utils/scheduler.py", line 138, in is_dormant
since = (frappe.get_system_settings('dormant_days') or 4) * 86400
File "apps/frappe/frappe/__init__.py", line 1773, in get_system_settings
local.system_settings.update({key: db.get_single_value(doctype, key)})
File "apps/frappe/frappe/database/database.py", line 585, in get_single_value
frappe.throw(_('Invalid field name: {0}').format(frappe.bold(fieldname)), self.InvalidColumnName)
File "apps/frappe/frappe/__init__.py", line 445, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "apps/frappe/frappe/__init__.py", line 424, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 378, in _raise_exception
raise raise_exception(msg)
frappe.database.database.Database.InvalidColumnName: Invalid field name: <b>dormant_days</b>
============
And in web.error.log I see very similar complains (extract):
File "/home/leonp/frappe-bench/apps/frappe/frappe/database/database.py", line 933, in get_table_columns
raise self.TableMissingError('DocType', doctype)
=============
As I am very weak in this area, I will be very thankful for any recommendation how to overcome this problem.