[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]
Brief description of the problem
I’ve upgraded my Rockstor instance from v.3.8.x (3.8.4 to my memory) to v.3.9.1-2. It seems that the DB was partially corrupted (missing tables?) during the migration.
Detailed step by step instructions to reproduce the problem
In upgraded Rockstor instance, open admin console, click on System > Identity > Users. The error message will appear.
Error Traceback provided on the Web-UI
[ Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/user.py", line 106, in get_queryset return combined_users() File "/opt/rockstor/src/rockstor/storageadmin/views/ug_helpers.py", line 61, in combined_users uo.pincard_allowed, uo.has_pincard = pincard_states(uo) File "/opt/rockstor/src/rockstor/system/pinmanager.py", line 146, in pincard_states pincard_present = has_pincard(user) File "/opt/rockstor/src/rockstor/system/pinmanager.py", line 129, in has_pincard pins = Pincard.objects.filter(user=int(uid_field)).count() File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 318, in count return self.query.get_count(using=self.db) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/query.py", line 466, in get_count number = obj.get_aggregation(using, ['__count'])['__count'] File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/query.py", line 447, in get_aggregation result = compiler.execute_sql(SINGLE) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/sql/compiler.py", line 840, in execute_sql cursor.execute(sql, params) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/utils.py", line 98, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) ProgrammingError: relation "storageadmin_pincard" does not exist LINE 1: SELECT COUNT(*) AS "__count" FROM "storageadmin_pincard" WHE... ^