Hi,
Got a cron error last night, i am guessing this is related to the last update as the system seems to be at 3.8.16-0.
Running the mentioned script results in an import error for django.db
Is there anyway to run these scripts manually to figure out what is causing the issue?
Rene
LOG:
/etc/cron.daily/0yum-daily.cron:
CommandError: Cannot find a migration matching '0001_initial' from app 'storageadmin'.
CommandError: Cannot find a migration matching '0001_initial' from app 'smart_manager'.
Operations to perform:
Apply all migrations: (none)
Running migrations:
No migrations to apply.
Operations to perform:
Apply all migrations: (none)
Running migrations:
No migrations to apply.
Operations to perform:
Apply all migrations: auth
Running migrations:
Rendering model states... DONE
Applying contenttypes.0001_initial...Traceback (most recent call last):
File "/opt/rockstor/bin/django", line 44, in <module>
sys.exit(djangorecipe.manage.main('rockstor.settings'))
File "/opt/rockstor/eggs/djangorecipe-1.9-py2.7.egg/djangorecipe/manage.py", line 9, in main
management.execute_from_command_line(sys.argv)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/commands/migrate.py", line 222, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/executor.py", line 110, in migrate
self.apply_migration(states[migration], migration, fake=fake, fake_initial=fake_initial)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/executor.py", line 148, in apply_migration
state = migration.apply(state, schema_editor)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/migration.py", line 115, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/operations/models.py", line 59, in database_forwards
schema_editor.create_model(model)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/schema.py", line 286, in create_model
self.execute(sql, params or None)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/schema.py", line 111, in execute
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 62, in execute
return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "django_content_type" already exists
Operations to perform:
Apply all migrations: (none)
Running migrations:
No migrations to apply.
systemctl daemon-reload done
The following updates will be applied on midgard:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kernel-ml x86_64 4.8.7-1.el7.elrepo rockstor 40 M
kernel-ml-devel x86_64 4.8.7-1.el7.elrepo rockstor 11 M
Updating:
btrfs-progs x86_64 4.8.3-0.rockstor rockstor 677 k
rockstor x86_64 3.8.16-0 Rockstor-Stable 15 M
Transaction Summary
================================================================================
Install 2 Packages
Upgrade 2 Packages
The updates were successfully applied