This error pops at many places. When saving website settings changes, when savin…g log settings changes.
When a reload happens, or such, it stops. I.e. it's a bit erratic.
Log from trying to save log settings.
2grid_row.js:854 Uncaught TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')
at l (grid_row.js:854:41)
at HTMLDivElement.<anonymous> (grid_row.js:954:33)
at HTMLDivElement.dispatch (jquery.js:5430:27)
at c1.handle (jquery.js:5234:28)
/api/method/frappe.desk.form.save.savedocs:1 Failed to load resource: the server responded with a status of 500 ()
request.js:462 Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 45, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1585, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 23, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 303, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 354, in _save
self.run_post_save_methods()
File "apps/frappe/frappe/model/document.py", line 1110, in run_post_save_methods
self.save_version()
File "apps/frappe/frappe/model/document.py", line 1230, in save_version
version.insert(ignore_permissions=True)
File "apps/frappe/frappe/model/document.py", line 252, in insert
self.set_new_name(set_name=set_name, set_child_names=set_child_names)
File "apps/frappe/frappe/model/document.py", line 448, in set_new_name
set_new_name(self)
File "apps/frappe/frappe/model/naming.py", line 149, in set_new_name
doc.name = frappe.db.get_next_sequence_val(doc.doctype)
File "apps/frappe/frappe/database/database.py", line 1297, in get_next_sequence_val
return get_next_val(*args, **kwargs)
File "apps/frappe/frappe/database/sequence.py", line 68, in get_next_val
return db.sql(f"SELECT nextval({sequence_name})")[0][0]
File "apps/frappe/frappe/database/database.py", line 206, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 148, in execute
result = self._query(query)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 310, in _query
conn.query(q)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_query_result
result.read()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1156, in read
first_packet = self.connection._read_packet()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (4091, "Unknown SEQUENCE: 'version_id_seq'")