Hi everyone
I’ve recently upgrade my AWX Operator instance from 0.22.0 to 0.28.0. This included a switch from postgres 9 to postgres 13.
Now this migration wasn’t seamless, I had some problems with the new PV so I had to restart the pod and the migration process a few times. I think this might have caused some corruption on the database.
Some tasks seem to randomly fail with this error message:
Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/backends/utils.py”, line 82, in execute return self.cursor.execute(sql) psycopg2.errors.InternalError: unexpected data beyond EOF in block 166 of relation base/16384/2664 HINT: This has been seen to occur with buggy kernels; consider updating your system. The above exception was the direct cause of the following exception: Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py”, line 481, in run self.pre_run_hook(self.instance, private_data_dir) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py”, line 1287, in pre_run_hook super(RunProjectUpdate, self).pre_run_hook(instance, private_data_dir) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py”, line 417, in pre_run_hook create_partition(instance.event_class._meta.db_table, start=instance.created) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/utils/common.py”, line 1163, in create_partition cursor.execute( File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/backends/utils.py”, line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/backends/utils.py”, line 75, in _execute_with_wrappers return executor(sql, params, many, context) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/backends/utils.py”, line 84, in _execute return self.cursor.execute(sql, params) File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/utils.py”, line 90, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/db/backends/utils.py”, line 82, in _execute return self.cursor.execute(sql) django.db.utils.InternalError: unexpected data beyond EOF in block 166 of relation base/16384/2664 HINT: This has been seen to occur with buggy kernels; consider updating your system.
My question is, is there some kind of check I can do on the database? Or is it possible to re-import the database again? I have backups from before the migration