I was using version v13 but I dont know why I felt that i should upgrade. And I did it via the following link.
This person also posted on the forum with the same instructions.
Anyhow, i was not able to update, I was getting the error
pymysql.err.ProgrammingError: (1146, “Table ‘_b7b324d5487a1a21.tabFeedback’ doesn’t exist”)
So I did a force reinstall. Now the new v14 which is fully updated and is BLANK is working.
The issue is that I do have a DB backup file but when I restore it via the bench restore command, I get Internal Server Error.
In web.error.log I get the same error. Now I am stuck with no ERP and no data backup.
After Restore when I do a bench migrate, I get the following:
Migrating mysite
Executing frappe.patches.v14_0.setup_likes_from_feedback in mysite (_b7b324d5487a1a21)
Building search index for mysite
Retrieving Routes : [========================================] 100%
Building Index : [========================================] 100%
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/frappe/myfrappe/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/frappe/myfrappe/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/myfrappe/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/myfrappe/apps/frappe/frappe/commands/site.py”, line 552, in migrate
SiteMigration(
File “/home/frappe/myfrappe/apps/frappe/frappe/migrate.py”, line 175, in run
self.run_schema_updates()
File “/home/frappe/myfrappe/apps/frappe/frappe/migrate.py”, line 41, in wrapper
ret = method(*args, **kwargs)
File “/home/frappe/myfrappe/apps/frappe/frappe/migrate.py”, line 110, in run_schema_updates
frappe.modules.patch_handler.run_all(
File “/home/frappe/myfrappe/apps/frappe/frappe/modules/patch_handler.py”, line 75, in run_all
run_patch(patch)
File “/home/frappe/myfrappe/apps/frappe/frappe/modules/patch_handler.py”, line 62, in run_patch
if not run_single(patchmodule=patch):
File “/home/frappe/myfrappe/apps/frappe/frappe/modules/patch_handler.py”, line 150, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/myfrappe/apps/frappe/frappe/modules/patch_handler.py”, line 186, in execute_patch
_patch()
File “/home/frappe/myfrappe/apps/frappe/frappe/patches/v14_0/setup_likes_from_feedback.py”, line 7, in execute
if frappe.db.count(“Feedback”) > 20000:
File “/home/frappe/myfrappe/apps/frappe/frappe/database/database.py”, line 1102, in count
count = self.sql(query, debug=debug)[0][0]
File “/home/frappe/myfrappe/apps/frappe/frappe/database/database.py”, line 218, in sql
self._cursor.execute(query, values)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/cursors.py”, line 148, in execute
result = self._query(query)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/cursors.py”, line 310, in _query
conn.query(q)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/connections.py”, line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/connections.py”, line 775, in _read_query_result
result.read()
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/connections.py”, line 1156, in read
first_packet = self.connection._read_packet()
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/connections.py”, line 725, in _read_packet
packet.raise_for_error()
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File “/home/frappe/myfrappe/env/lib/python3.10/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, “Table ‘_b7b324d5487a1a21.tabFeedback’ doesn’t exist”)
I thought the tabFeedback is not in the old DB so I check the new sql file and this table doesnt exist there also. So I cannot just copy the table and make in the old one.
Can anyone please help me?
Its a request.
Regards,