'NoneType' object has no attribute 'end'

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

I installed Rockstor on a VMware virtual machine inside VMware Workstation. After successful installation I opened the webpage, input the hostname, username & password then clicked Submit.

Detailed step by step instructions to reproduce the problem

Create a new virtual machine inside VMware Workstation 17.5, select Linux OpenSUSE 64-bit, select virtual disk type (NVMe) and follow the rest of the prompts. After finishing creating the virtual machine I went back in and added 6 more hard drives that were 50GB each, all NVMe. I then opened the .vmx file and added disk.EnableUUID=“true” to the file and saved it. Then I started the vm and ran through the installation. Everything installed just fine and the webpage loads just fine, but after I input the initial required information I am presented with the error below. Please help me understand what is going on.

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 417, in post return self._update_disk_state() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 114, in _update_disk_state attached_disks = scan_disks(MIN_DISK_SIZE) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/rockstor/src/rockstor/system/osi.py", line 305, in scan_disks base_root_disk = root_disk() # /dev/sda if /dev/sda3, or md126 if md126p2 ^^^^^^^^^^^ File "/opt/rockstor/src/rockstor/system/osi.py", line 1013, in root_disk end = re.search("n1", disk).end() ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'end'

@afgeek9818 welcome to the Rockstor community. Unfortunately, my experience with VMWare quirks is very limited, so I am not entirely sure what the problem might be here.

Let’s start with inspecting the disk attributes. If you can get to the command line (WebUI or other terminals software like PuTTY) on the VM, can you run this:

lsblk -P -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID

I am curious whether there might be a missing disk attribute that’s causing the error. Looking at the coding, it might have to do with the device naming for nvme disks in your case.

1 Like