Advertisement
Guest User

Untitled

a guest
Jul 29th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. [root@foreman pulp]# pulpcore-manager migrate --noinput
  2. System check identified some issues:
  3.  
  4. WARNINGS:
  5. ?: (guardian.W001) Guardian authentication backend is not hooked. You can add this in settings as eg: `AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend')`.
  6. Operations to perform:
  7. Apply all migrations: admin, auth, certguard, container, contenttypes, core, deb, file, guardian, pulp_2to3_migration, rpm, sessions
  8. Running migrations:
  9. Applying core.0049_add_file_field_to_uploadchunk...Traceback (most recent call last):
  10. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  11. return self.cursor.execute(sql, params)
  12. psycopg2.errors.NotNullViolation: column "file" contains null values
  13.  
  14.  
  15. The above exception was the direct cause of the following exception:
  16.  
  17. Traceback (most recent call last):
  18. File "/usr/bin/pulpcore-manager", line 11, in <module>
  19. load_entry_point('pulpcore==3.9.1', 'console_scripts', 'pulpcore-manager')()
  20. File "/usr/lib/python3.6/site-packages/pulpcore/app/manage.py", line 11, in manage
  21. execute_from_command_line(sys.argv)
  22. File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
  23. utility.execute()
  24. File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
  25. self.fetch_command(subcommand).run_from_argv(self.argv)
  26. File "/usr/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
  27. self.execute(*args, **cmd_options)
  28. File "/usr/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
  29. output = self.handle(*args, **options)
  30. File "/usr/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
  31. res = handle_func(*args, **kwargs)
  32. File "/usr/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 234, in handle
  33. fake_initial=fake_initial,
  34. File "/usr/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate
  35. state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  36. File "/usr/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
  37. state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  38. File "/usr/lib/python3.6/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
  39. state = migration.apply(state, schema_editor)
  40. File "/usr/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply
  41. operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  42. File "/usr/lib/python3.6/site-packages/django/db/migrations/operations/fields.py", line 112, in database_forwards
  43. field,
  44. File "/usr/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 447, in add_field
  45. self.execute(sql, params)
  46. File "/usr/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 137, in execute
  47. cursor.execute(sql, params)
  48. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
  49. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  50. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
  51. return executor(sql, params, many, context)
  52. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  53. return self.cursor.execute(sql, params)
  54. File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
  55. raise dj_exc_value.with_traceback(traceback) from exc_value
  56. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
  57. return self.cursor.execute(sql, params)
  58. django.db.utils.IntegrityError: column "file" contains null values
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement