Brief description of the problem
After the latest update rockstor keeps locking up and not doing much of anything
Detailed step by step instructions to reproduce the problem
Updated rockstor, it had and update for bootloader if im not mistaken. Im not 100% on what the update was for. The web GUI will not launch.
Im on the latest version of rockstor stable.
Web-UI screenshot
]Error Traceback provided on the Web-UI
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[06/Jul/2022 20:38:40] ERROR [storageadmin.util:45] Exception: insert or update on table "storageadmin_networkdevice" violates foreign key constraint "connection_id_refs_id_1db23ec5"
DETAIL: Key (connection_id)=(39) is not present in table "storageadmin_networkconnection".
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 236, in get_queryset
self._refresh_devices()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/transaction.py", line 225, in __exit__
connection.commit()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/base.py", line 173, in commit
self._commit()
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/backends/base/base.py", line 142, in _commit
return self.connection.commit()
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/base/base.py", line 142, in _commit
return self.connection.commit()
IntegrityError: insert or update on table "storageadmin_networkdevice" violates foreign key constraint "connection_id_refs_id_1db23ec5"
DETAIL: Key (connection_id)=(39) is not present in table "storageadmin_networkconnection".
[13/Jul/2022 17:53:11] INFO [storageadmin.tasks:55] Now executing Huey task [install], id: cd530636-5108-475b-b448-e32379e4a3ce.
[13/Jul/2022 17:53:11] ERROR [system.osi:222] non-zero code(1) returned by command: ['/usr/bin/docker', 'stop', 'zoneminder-latest']. output: [''] error: ['Error response from daemon: No such container: zoneminder-latest', '']
[13/Jul/2022 17:53:11] ERROR [system.osi:222] non-zero code(1) returned by command: ['/usr/bin/docker', 'rm', 'zoneminder-latest']. output: [''] error: ['Error: No such container: zoneminder-latest', '']
[13/Jul/2022 17:53:22] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 17:53:37] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 17:53:52] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 17:54:07] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 17:54:22] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 17:54:37] INFO [storageadmin.tasks:63] Task [install] completed OK
[13/Jul/2022 18:00:23] INFO [storageadmin.tasks:55] Now executing Huey task [stop], id: ef410165-a2c0-4b56-804d-f57c0121190d.
[13/Jul/2022 18:00:24] INFO [storageadmin.tasks:63] Task [stop] completed OK
[13/Jul/2022 18:02:31] INFO [storageadmin.tasks:55] Now executing Huey task [start], id: 9ef49deb-28ae-4589-b5f9-c74b4d794ff4.
[13/Jul/2022 18:02:32] INFO [storageadmin.tasks:63] Task [start] completed OK
[13/Jul/2022 18:38:31] INFO [storageadmin.tasks:55] Now executing Huey task [stop], id: 8dd83bf7-a2ad-4eac-9462-e9f440594011.
[13/Jul/2022 18:38:32] INFO [storageadmin.tasks:63] Task [stop] completed OK
[13/Jul/2022 18:38:53] INFO [storageadmin.tasks:55] Now executing Huey task [uninstall], id: 41b36a41-44be-450b-81ad-995bad529f4b.
[13/Jul/2022 18:38:54] INFO [storageadmin.views.rockon:103] Rockon (ZoneMinder-latest) state pending and no pending task: assuming task is mid execution.
[13/Jul/2022 18:38:54] INFO [storageadmin.tasks:63] Task [uninstall] completed OK
[18/Jul/2022 21:32:42] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[19/Jul/2022 16:23:25] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[19/Jul/2022 16:27:59] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[19/Jul/2022 16:35:22] ERROR [storageadmin.middleware:33] Exception occurred while processing a request. Path: /api/commands/refresh-share-state method: POST
[19/Jul/2022 16:35:22] ERROR [storageadmin.middleware:34] Error running a command. cmd = /usr/sbin/btrfs property get /mnt2/2tb_Open/Rockons/btrfs/subvolumes/9e4771ef001b6dd9f2a246508a5bb0deb51294da663d8345caf0540b1e86e79e ro. rc = 1. stdout = ['']. stderr = ['ERROR: failed to open /mnt2/2tb_Open/Rockons/btrfs/subvolumes/9e4771ef001b6dd9f2a246508a5bb0deb51294da663d8345caf0540b1e86e79e: No such file or directory', 'ERROR: failed to detect object type: No such file or directory', 'usage: btrfs property get [-t ] []', '', ' Gets a property from a btrfs object.', '', ' If no name is specified, all properties for the given object are', ' printed.', ' A filesystem object can be a the filesystem itself, a subvolume,', " an inode or a device. The '-t ' option can be used to explicitly", ' specify what type of object you meant. This is only needed when a', ' property could be set for more then one object type. Possible types', ' are s[ubvol], f[ilesystem], i[node] and d[evice].', '', '']
Traceback (most recent call last):
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/rockstor/eggs/djangorestframework-3.1.1-py2.7.egg/rest_framework/views.py", line 452, in dispatch
response = self.handle_exception(exc)
File "/opt/rockstor/eggs/djangorestframework-3.1.1-py2.7.egg/rest_framework/views.py", line 449, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/command.py", line 410, in post
import_shares(p, request)
File "/opt/rockstor/src/rockstor/storageadmin/views/share_helpers.py", line 96, in import_shares
shares_in_pool = shares_info(pool)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 792, in shares_info
pool_mnt_pt, snap_idmap[vol_id]
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 836, in parse_snap_details
writable = not get_property(full_snap_path, "ro")
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 2025, in get_property
o, e, rc = run_command(cmd)
File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/sbin/btrfs property get /mnt2/2tb_Open/Rockons/btrfs/subvolumes/9e4771ef001b6dd9f2a246508a5bb0deb51294da663d8345caf0540b1e86e79e ro. rc = 1. stdout = ['']. stderr = ['ERROR: failed to open /mnt2/2tb_Open/Rockons/btrfs/subvolumes/9e4771ef001b6dd9f2a246508a5bb0deb51294da663d8345caf0540b1e86e79e: No such file or directory', 'ERROR: failed to detect object type: No such file or directory', 'usage: btrfs property get [-t ] []', '', ' Gets a property from a btrfs object.', '', ' If no name is specified, all properties for the given object are', ' printed.', ' A filesystem object can be a the filesystem itself, a subvolume,', " an inode or a device. The '-t ' option can be used to explicitly", ' specify what type of object you meant. This is only needed when a', ' property could be set for more then one object type. Possible types', ' are s[ubvol], f[ilesystem], i[node] and d[evice].', '', '']
[19/Jul/2022 16:35:23] ERROR [storageadmin.middleware:33] Exception occurred while processing a request. Path: /api/commands/refresh-snapshot-state method: POST
[19/Jul/2022 16:35:23] ERROR [storageadmin.middleware:34] Error running a command. cmd = /usr/sbin/btrfs property get /mnt2/2tb_Open/Rockons/btrfs/subvolumes/a32da8f559b2dce705a086fd3fc6c43ad23e3a6a35758a6655898e43e1619f13 ro. rc = 1. stdout = ['']. stderr = ['ERROR: failed to open /mnt2/2tb_Open/Rockons/btrfs/subvolumes/a32da8f559b2dce705a086fd3fc6c43ad23e3a6a35758a6655898e43e1619f13: No such file or directory', 'ERROR: failed to detect object type: No such file or directory', 'usage: btrfs property get [-t ] []', '', ' Gets a property from a btrfs object.', '', ' If no name is specified, all properties for the given object are', ' printed.', ' A filesystem object can be a the filesystem itself, a subvolume,', " an inode or a device. The '-t ' option can be used to explicitly", ' specify what type of object you meant. This is only needed when a', ' property could be set for more then one object type. Possible types', ' are s[ubvol], f[ilesystem], i[node] and d[evice].', '', '']
Traceback (most recent call last):
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/rockstor/eggs/djangorestframework-3.1.1-py2.7.egg/rest_framework/views.py", line 452, in dispatch
response = self.handle_exception(exc)
File "/opt/rockstor/eggs/djangorestframework-3.1.1-py2.7.egg/rest_framework/views.py", line 449, in dispatch
response = handler(request, *args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/command.py", line 415, in post
import_snapshots(share)
File "/opt/rockstor/src/rockstor/storageadmin/views/share_helpers.py", line 243, in import_snapshots
snaps_d = snaps_info(share.pool.mnt_pt, share.name)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 890, in snaps_info
pool_mnt_pt, stripped_path
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 836, in parse_snap_details
writable = not get_property(full_snap_path, "ro")
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 2025, in get_property
o, e, rc = run_command(cmd)
File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/sbin/btrfs property get /mnt2/2tb_Open/Rockons/btrfs/subvolumes/a32da8f559b2dce705a086fd3fc6c43ad23e3a6a35758a6655898e43e1619f13 ro. rc = 1. stdout = ['']. stderr = ['ERROR: failed to open /mnt2/2tb_Open/Rockons/btrfs/subvolumes/a32da8f559b2dce705a086fd3fc6c43ad23e3a6a35758a6655898e43e1619f13: No such file or directory', 'ERROR: failed to detect object type: No such file or directory', 'usage: btrfs property get [-t ] []', '', ' Gets a property from a btrfs object.', '', ' If no name is specified, all properties for the given object are', ' printed.', ' A filesystem object can be a the filesystem itself, a subvolume,', " an inode or a device. The '-t ' option can be used to explicitly", ' specify what type of object you meant. This is only needed when a', ' property could be set for more then one object type. Possible types', ' are s[ubvol], f[ilesystem], i[node] and d[evice].', '', '']
[19/Jul/2022 18:55:36] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[19/Jul/2022 18:55:37] ERROR [storageadmin.views.rockon_utils:56] Error running a command. cmd = /usr/bin/docker inspect -f Error:{{.State.Error}},ExitCode:{{.State.ExitCode}},Running:{{.State.Running}} transmission. rc = 1. stdout = ['', '']. stderr = ['Error: No such object: transmission', '']
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/rockon_utils.py", line 37, in container_status
name,
File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/docker inspect -f Error:{{.State.Error}},ExitCode:{{.State.ExitCode}},Running:{{.State.Running}} transmission. rc = 1. stdout = ['', '']. stderr = ['Error: No such object: transmission', '']
[19/Jul/2022 18:55:47] ERROR [storageadmin.views.rockon_utils:56] Error running a command. cmd = /usr/bin/docker inspect -f Error:{{.State.Error}},ExitCode:{{.State.ExitCode}},Running:{{.State.Running}} transmission. rc = 1. stdout = ['', '']. stderr = ['Error: No such object: transmission', '']
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/rockon_utils.py", line 37, in container_status
name,
File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/docker inspect -f Error:{{.State.Error}},ExitCode:{{.State.ExitCode}},Running:{{.State.Running}} transmission. rc = 1. stdout = ['', '']. stderr = ['Error: No such object: transmission', '']
[20/Jul/2022 17:54:52] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[20/Jul/2022 18:15:48] ERROR [storageadmin.views.command:137] Exception while refreshing state for Pool(Media_Pool). Moving on: Error running a command. cmd = /usr/bin/mount /dev/disk/by-label/Media_Pool /mnt2/Media_Pool -o ,compress=no. rc = -9. stdout = ['']. stderr = ['']
[20/Jul/2022 18:15:48] ERROR [storageadmin.views.command:139] Error running a command. cmd = /usr/bin/mount /dev/disk/by-label/Media_Pool /mnt2/Media_Pool -o ,compress=no. rc = -9. stdout = ['']. stderr = ['']
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/command.py", line 128, in _refresh_pool_state
mount_root(p)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 551, in mount_root
run_command(mnt_cmd)
File "/opt/rockstor/src/rockstor/system/osi.py", line 224, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/mount /dev/disk/by-label/Media_Pool /mnt2/Media_Pool -o ,compress=no. rc = -9. stdout = ['']. stderr = ['']
[20/Jul/2022 18:15:56] ERROR [storageadmin.views.command:155] Skipping import/update of prior known shares for pool (Media_Pool) as it is not mounted. (see previous errors).
[20/Jul/2022 18:16:01] ERROR [storageadmin.views.command:168] Skipping mount of share (Risilio_Data) as pool () is not mounted (see previous errors).
[20/Jul/2022 18:16:52] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[20/Jul/2022 18:18:14] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.
[20/Jul/2022 18:25:52] ERROR [storageadmin.views.network:213] NetworkConnection matching query does not exist.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 207, in update_connection
name=dconfig["connection"]
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/db/models/query.py", line 334, in get
self.model._meta.object_name
DoesNotExist: NetworkConnection matching query does not exist.