I ran the updates in the GUI and rebooted. After this the GUI will no longer load. When I ssh in to the sytem I run:
systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● dmraid-activation.service loaded failed failed Activation of DM RAID sets
● docker.service loaded failed failed Docker Application Container Engine
● rockstor-pre.service loaded failed failed Tasks required prior to starting Rockstor
then I run:
systemctl status rockstor-pre.service
● rockstor-pre.service - Tasks required prior to starting Rockstor
Loaded: loaded (/etc/systemd/system/rockstor-pre.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-01-14 11:13:14 EST; 25min ago
Process: 13303 ExecStart=/opt/rockstor/bin/initrock (code=exited, status=1/FAILURE)
Main PID: 13303 (code=exited, status=1/FAILURE)
Jan 14 11:13:14 Balboa.local initrock[13303]: File "/opt/rockstor/bin/initrock", line 40, in <module>
Jan 14 11:13:14 Balboa.local initrock[13303]: sys.exit(scripts.initrock.main())
Jan 14 11:13:14 Balboa.local initrock[13303]: File "/opt/rockstor/src/rockstor/scripts/initrock.py", line 476, in main
Jan 14 11:13:14 Balboa.local initrock[13303]: run_command(fake_initial_migration_cmd + ["--database=default", "contenttypes"])
Jan 14 11:13:14 Balboa.local initrock[13303]: File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
Jan 14 11:13:14 Balboa.local initrock[13303]: raise CommandException(cmd, out, err, rc)
Jan 14 11:13:14 Balboa.local initrock[13303]: system.exceptions.CommandException: Error running a command. cmd = /opt/rockstor/bin/django migrate --noinput --fake-initial>
Jan 14 11:13:14 Balboa.local systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 11:13:14 Balboa.local systemd[1]: rockstor-pre.service: Failed with result 'exit-code'.
Jan 14 11:13:14 Balboa.local systemd[1]: Failed to start Tasks required prior to starting Rockstor.
then I run:
/opt/rockstor/bin/django migrate --noinput --fake-initial
Operations to perform:
Synchronize unmigrated apps: staticfiles, rest_framework, pipeline, djhuey, messages
Apply all migrations: oauth2_provider, sessions, admin, sites, auth, contenttypes, smart_manager, storageadmin
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying oauth2_provider.0002_08_updates...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/fields.py", line 62, in database_forwards
field,
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/postgresql_psycopg2/schema.py", line 18, in add_field
super(DatabaseSchemaEditor, self).add_field(model, field)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/schema.py", line 398, in add_field
self.execute(sql, params)
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 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: column "skip_authorization" of relation "oauth2_provider_application" already exists
Also of note:
- after reboot the postgresql service is not running. I had to start it.
- postgresql 13 is being used, 10 is also installed
- docker service shows failed state as well, not sure if this gets started by rockstor init or something.
any help is greatly appreciated.