Issues with rockstor after latest update

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

Screenshot%202022-07-18%20195451 ]

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.

Im able to boot up when i choose
“Linux: 5.3.18-150300.59.76-default” instead of “Linux: 5.3.18-150300.59.81-default”
But none of my SMB shares work.

22

@Emmanuel_perez Thanks for the report.
Re:

There have been a number of kernel updates and yes some grub updates also of late.

The initial pic is a kernel panic of sorts. That’s bad as it suggests either hardware failure or incompatibility regarding new drivers or the like introduced in the new kernel. And:

Rather confirms this.

However in the interim (the duff kernel update / hardware incompatibility) the Rockstor database has gotten itself into a knot:

Relating to a network device. I.e. the code tries to update itself on network state via:

But this may not be the main hold up here as, later on, it seems to have settled and sorted itself out into what is more normal (this may be once you had rebooted into the older kernel).

[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.

Regarding your shares not working in the older kernel we have:

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).

So starting with getting you up and running, with the currently working kernel, you have a failed pool for the time-being. Focus on resolving that with the kernel that is happy with your hardware. There are sometimes kernel regressions and this may be on on your particular setup. The very next kernel update may end up resolving this incompatibility/regression for you.

So what is the output of say:

btrfs fi show

As a starter, and what can you say of recent proceeding regarding the failed pool with label: “Media_Pool”.

I.e. any recent changes or suspect drives there. You have several issues going on here and it looks like the kernel is an upstream one that may be fixed upstream in time. In the interim the older kernel looks to be happy, as you say, but you need to fix your pool so that the shares can return to normal operation.

I’m not clear on the current Web-UI function on the Rockstor side, bar no pool mount, when booting into the older kernel. If it is functional again then you can try following the advise on the Pool “Maintenance requied” section that should now be showing. Otherwise it’s a cli pool repair scenario.

Take a look at our recent re-write of:
Data Loss-prevention and Recovery in Rockstor: https://rockstor.com/docs/data_loss.html
it may have some pointers that can help here.

On the kernel front, there is always the option of Jumping over the default Leap 15.3 kernel and installing upstream backported (read much newer and more risky potentially) versions of both the kernel and the filesystems utilities (read btrfs stack). We cover this here:
Installing the Stable Kernel Backport: https://rockstor.com/docs/howtos/stable_kernel_backport.html

In some cases newer kernels are better at repairing pools. But it’s not guaranteed and can just end up introducing more variables and pushing the pool into newer teritory where older kernels can then have issues if you plan to boot back into an older kernel. However there has not yet been an on-disk format change so this is a relatively small risk; proviso: stated from my very limited btrfs internals knowledge mine you!

So focus on using the working kernel and fixing your pool first. And for help here on the forum folks will need as much info as possible on the current state and recent history of this pool. Btrfs raid level, disk count, smart issues etc all can help.

Hope that helps.

3 Likes

btrfs%20fi%20show%207

My pools look healthy to me, I have no issues with my pool and all of the disk are healthy
image
image

Also, I was able to get my SMB shares by reconnecting them in windows.

Re:

I’ve actually done this successfully before, Im not sure why I needed to do it. I ended up reinstalling rockstor not to long ago for a different issue I had so I reverted to the older kernel.

I will try this method soon.

2 Likes

Just updated to Linux: 5.3.18-150300.59.87-default and all is working well!

4 Likes