<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer rte-pre-wrap" data-color="global-default" bbg-color="default" data-bb-font-size="medium"bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);">I removed the 0009_auto.. and rerun the installer. The upgrade was successful.<div>Below is error log.<br><div><br></div><div>May 12 17:25:05 myhost gunicorn[55426]: pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/repositories/rpm/rpm/</div><div>May 12 17:25:05 myhost gunicorn[55426]: Traceback (most recent call last):</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute</div><div>May 12 17:25:05 myhost gunicorn[55426]: return self.cursor.execute(sql, params)</div><div>May 12 17:25:05 myhost gunicorn[55426]: psycopg2.errors.NotNullViolation: null value in column "last_sync_revision_number" violates not-null constraint</div><div>May 12 17:25:05 myhost gunicorn[55426]: DETAIL:  Failing row contains (0053634d-d0ca-46de-81d4-b8acf19d592e, f, null, null, 0, null, {}).</div><div>May 12 17:25:05 myhost gunicorn[55426]: The above exception was the direct cause of the following exception:</div><div>May 12 17:25:05 myhost gunicorn[55426]: Traceback (most recent call last):</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner</div><div>May 12 17:25:05 myhost gunicorn[55426]: response = get_response(request)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response</div><div>May 12 17:25:05 myhost gunicorn[55426]: response = self.process_exception_by_middleware(e, request)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response</div><div>May 12 17:25:05 myhost gunicorn[55426]: response = wrapped_callback(request, *callback_args, **callback_kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view</div><div>May 12 17:25:05 myhost gunicorn[55426]: return view_func(*args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/viewsets.py", line 114, in view</div><div>May 12 17:25:05 myhost gunicorn[55426]: return self.dispatch(request, *args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch</div><div>May 12 17:25:05 myhost gunicorn[55426]: response = self.handle_exception(exc)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception</div><div>May 12 17:25:05 myhost gunicorn[55426]: self.raise_uncaught_exception(exc)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception</div><div>May 12 17:25:05 myhost gunicorn[55426]: raise exc</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch</div><div>May 12 17:25:05 myhost gunicorn[55426]: response = handler(request, *args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/mixins.py", line 19, in create</div><div>May 12 17:25:05 myhost gunicorn[55426]: self.perform_create(serializer)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/mixins.py", line 24, in perform_create</div><div>May 12 17:25:05 myhost gunicorn[55426]: serializer.save()</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/serializers.py", line 213, in save</div><div>May 12 17:25:05 myhost gunicorn[55426]: self.instance = self.create(validated_data)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/rest_framework/serializers.py", line 932, in create</div><div>May 12 17:25:05 myhost gunicorn[55426]: instance = ModelClass._default_manager.create(**validated_data)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method</div><div>May 12 17:25:05 myhost gunicorn[55426]: return getattr(self.get_queryset(), name)(*args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/query.py", line 422, in create</div><div>May 12 17:25:05 myhost gunicorn[55426]: obj.save(force_insert=True, using=self.db)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/pulpcore/app/models/repository.py", line 62, in save</div><div>May 12 17:25:05 myhost gunicorn[55426]: super().save(*args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/pulpcore/app/models/base.py", line 107, in save</div><div>May 12 17:25:05 myhost gunicorn[55426]: return super().save(*args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/base.py", line 741, in save</div><div>May 12 17:25:05 myhost gunicorn[55426]: force_update=force_update, update_fields=update_fields)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/base.py", line 779, in save_base</div><div>May 12 17:25:05 myhost gunicorn[55426]: force_update, using, update_fields,</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/base.py", line 870, in _save_table</div><div>May 12 17:25:05 myhost gunicorn[55426]: result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/base.py", line 908, in _do_insert</div><div>May 12 17:25:05 myhost gunicorn[55426]: using=using, raw=raw)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method</div><div>May 12 17:25:05 myhost gunicorn[55426]: return getattr(self.get_queryset(), name)(*args, **kwargs)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/query.py", line 1186, in _insert</div><div>May 12 17:25:05 myhost gunicorn[55426]: return query.get_compiler(using=using).execute_sql(return_id)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/models/sql/compiler.py", line 1368, in execute_sql</div><div>May 12 17:25:05 myhost gunicorn[55426]: cursor.execute(sql, params)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/backends/utils.py", line 67, in execute</div><div>May 12 17:25:05 myhost gunicorn[55426]: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers</div><div>May 12 17:25:05 myhost gunicorn[55426]: return executor(sql, params, many, context)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute</div><div>May 12 17:25:05 myhost gunicorn[55426]: return self.cursor.execute(sql, params)</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/utils.py", line 89, in __exit__</div><div>May 12 17:25:05 myhost gunicorn[55426]: raise dj_exc_value.with_traceback(traceback) from exc_value</div><div>May 12 17:25:05 myhost gunicorn[55426]: File "/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute</div><div>May 12 17:25:05 myhost gunicorn[55426]: return self.cursor.execute(sql, params)</div><div>May 12 17:25:05 myhost gunicorn[55426]: django.db.utils.IntegrityError: null value in column "last_sync_revision_number" violates not-null constraint</div><div>May 12 17:25:05 myhost gunicorn[55426]: DETAIL:  Failing row contains (0053634d-d0ca-46de-81d4-b8acf19d592e, f, null, null, 0, null, {}).</div><div>May 12 17:25:05 myhost gunicorn[55426]: 127.0.0.1 - admin [12/May/2020:21:25:05 +0000] "POST /pulp/api/v3/repositories/rpm/rpm/ HTTP/1.1" 500 27 "-" "HTTPie/0.9.4"</div><div><br><div><br><div class="rte-style-maintainer" data-color="global-default"bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium" style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"><div><div class="bbg-rte-fold-content" data-header="From: ttereshc@redhat.com At: 05/12/20 16:19:31" data-digest="From: ttereshc@redhat.com At: 05/12/20 16:19:31" style=""><div class="bbg-rte-fold-summary">From: ttereshc@redhat.com At: 05/12/20 16:19:31</div>To: <a spellcheck="false" bbg-destination="mailto:bli111@bloomberg.net" href="mailto:bli111@bloomberg.net"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a spellcheck="false"bbg-destination="mailto:pulp-list@redhat.com" href="mailto:pulp-list@redhat.com"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] pulp 3.3.1 server error</div><br></div><div class="rte-internet-block-wrapper" style="background: white; color: black; font-family: Arial, "BB.Proportional"; font-size: small; white-space: normal;"><div class="rte-internet-block"><blockquote><div dir="ltr">Was the upgrade successful after you removed the 0009_auto...?  Did you run the installer again?<div><br></div><div>If no, please do so.</div><div>If yes, could you share logs? There will be some traceback showing why 500 error happened.</div><div><br></div><div>Thank you,</div><div>Tanya</div></div></blockquote><br></div></div></div></div></div></div></div></body></html>