HomeData:~ # journalctl -b -u rockstor-pre >/tmp/bit
HomeData:~ #
HomeData:~ #
HomeData:~ # cat /tmp/bit
– Logs begin at Wed 2021-04-14 00:04:10 AEST, end at Wed 2021-04-14 01:00:21 AEST. –
Apr 14 00:04:13 HomeData systemd[1]: Starting Tasks required prior to starting Rockstor…
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,162: Checking for flash and Running flash optimizations if appropriate.
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,782: Updating the timezone from the system
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,782: system timezone = Australia/Brisbane
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,784: Updating sshd_config
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,785: SSHD_CONFIG Customization
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,786: sshd_config already has the updates. Leaving it unchanged.
Apr 14 00:04:15 HomeData initrock[616]: 2021-04-14 00:04:15,786: Running app database migrations…
Apr 14 00:04:16 HomeData initrock[616]: Traceback (most recent call last):
Apr 14 00:04:16 HomeData initrock[616]: File “/opt/rockstor/bin/initrock”, line 41, in
Apr 14 00:04:16 HomeData initrock[616]: sys.exit(scripts.initrock.main())
Apr 14 00:04:16 HomeData initrock[616]: File “/opt/rockstor/src/rockstor/scripts/initrock.py”, line 475, in main
Apr 14 00:04:16 HomeData initrock[616]: run_command(fake_initial_migration_cmd + ["–database=default", “contenttypes”])
Apr 14 00:04:16 HomeData initrock[616]: File “/opt/rockstor/src/rockstor/system/osi.py”, line 201, in run_command
Apr 14 00:04:16 HomeData initrock[616]: raise CommandException(cmd, out, err, rc)
Apr 14 00:04:16 HomeData initrock[616]: system.exceptions.CommandException: Error running a command. cmd = /opt/rockstor/bin/django migrate --noinput --fake-initial --database=default contenttypes.
rc = 1. stdout = [’’]. stderr = [‘Traceback (most recent call last):’, ’ File “/opt/rockstor/bin/django”, line 44, in ‘, " sys.exit(djangorecipe.manage.main(‘rockstor.settings’))", ’ Fi
le “/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)’, ’ Fi
le “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/management/commands/migrate.py”, line 93, in handle’, ’ executor = MigrationExecutor(connection, self.migration_progress_callback)’, ’
File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/executor.py”, line 19, in init’, ’ self.loader = MigrationLoader(self.connection)’, ’ File “/opt/rockstor/eggs/Django-1.
8.16-py2.7.egg/django/db/migrations/loader.py”, line 47, in init’, ’ self.build_graph()’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/loader.py”, line 191, in bui
ld_graph’, ’ self.applied_migrations = recorder.applied_migrations()’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/recorder.py”, line 59, in applied_migrations’, ’
self.ensure_schema()’, ’ File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/migrations/recorder.py
Apr 14 00:04:16 HomeData initrock[616]: ", line 49, in ensure_schema’, ’ if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):’, ’ File “/opt/r
ockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/base.py”, line 164, in cursor’, ’ cursor = self.make_cursor(self._cursor())’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/djan
go/db/backends/base/base.py”, line 135, in _cursor’, ’ self.ensure_connection()’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/base.py”, line 130, in ensure_connect
ion’, ’ self.connect()’, ’ 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/roc
kstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/base.py”, line 130, in ensure_connection’, ’ self.connect()’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/bas
e/base.py”, line 119, in connect’, ’ self.connection = self.get_new_connection(conn_params)’, ’ File “/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/postgresql_psycopg2/base.py”,
line 176, in get_new_connection’, ’ connection = Database.connect(**conn_params)’, ’ File “/opt/rockstor/eggs/psycopg2-2.7.4-py2.7-linux-x86_64.egg/psycopg2/init.py”, line 130, in connect’,
’ conn = _connect(dsn, connection_factory=connection_factory, **kwasync)’, ‘django.db.utils.OperationalError: could not connect to server: No such file or directory’, ‘\tIs the server running loc
ally and accepting’, ‘\tconnections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?’, ‘’, ‘’]
Apr 14 00:04:16 HomeData systemd[1]: rockstor-pre.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 00:04:16 HomeData systemd[1]: Failed to start Tasks required prior to starting Rockstor.
Apr 14 00:04:16 HomeData systemd[1]: rockstor-pre.service: Unit entered failed state.
Apr 14 00:04:16 HomeData systemd[1]: rockstor-pre.service: Failed with result ‘exit-code’.