Error when running clear_cache command

Hi there, I try to run the command bench frappe --clear_cache and will receive the following error,

Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.13.0’, ‘console_scripts’, ‘frappe’)()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 53, in main
return run(fn, parsed_args)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 83, in run
out = globals().get(fn)(**args)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 559, in clear_cache
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 287, in clear_cache
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 49, in clear_cache
for sess in frappe.db.sql(“”“select user, sid from tabSessions”“”, as_dict=1):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/”, line 121, in sql
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, “Table ‘erpdemo.tabSessions’ doesn’t exist”)

Can anyone help me to understand what is the error I am currently facing?

That is strange, can you check if all tables are there in the database? Did you drop tabSession by anychance (or tried to restore a backup?)