Error running a command. cmd = /usr/bin/ls -lr /dev/disk/by-id. rc = 2. stdout = ['']. stderr = ["/usr/bin/ls: cannot access '/dev/disk/by-id': No such file or directory", '']

[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

New istallation of RockStor, OS updated. Not possible to add disks, mising /dev/disk/by-id

Detailed step by step instructions to reproduce the problem

Fressh install

Web-UI screenshot

image

Error Traceback provided on the Web-UI

        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/disk.py”, line 504, in post
return self._update_disk_state()
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/disk.py”, line 116, in _update_disk_state
byid_name_map = get_byid_name_map()
File “/opt/rockstor/src/rockstor/system/osi.py”, line 1871, in get_byid_name_map
out, err, rc = run_command([LS, “-lr”, “/dev/disk/by-id”], throw=True)
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/ls -lr /dev/disk/by-id. rc = 2. stdout = [’’]. stderr = ["/usr/bin/ls: cannot access ‘/dev/disk/by-id’: No such file or directory", ‘’]

@Omx Welcome to the Rockstor community forum.

You likely have no devices on this system that have caused the creation of this directory. It’s usually managed by udev. Take a look at our “Minimum system requirements” doc section:
https://rockstor.com/docs/installation/quickstart.html#minimum-system-requirements
in the “Quick start” section:
https://rockstor.com/docs/installation/quickstart.html#quick-start

It may be you are using a VM which does not meet these requirements. Specifically serial numbers on devices.

Hope that helps.

2 Likes

@Omx I’ve now created the following GitHub issue to address what I think has happened in the situation you have reported. I.e. to produce a better error advising on the likely cause:

Hopefully that will help others, in time, once this issue is addressed.

3 Likes