Brief description of the problem
All of a sudden I was getting multiple errors on my previous install of Rockstor with dependancies that I could not get to start running, so I have reinstalled Rockstor
Once it was back up and I got into the WebUI I re-attached the USB drives I had before and have not wiped, and when scanning for disks I get the following error:
“duplicate key value violates unique constraint “storageadmin_disk_name_key” DETAIL: Key (name)=(usb-TerraMas_TDAS_002302280014-0:0) already exists.”
I do sort of expect these disk names to exist, as they are the same as the ones I have previously used.
I have tried to btrfs fi show as per another article, but that just gives me the message that btrfs command cannot be found
Detailed step by step instructions to reproduce the problem
Resintall new instance of Rockstor, without the disks attached
Start up Rockstor
Login to webUI
Go to disks, and scan
Get error
Web-UI screenshot
Error Traceback provided on the Web-UI
File “/opt/rockstor/.venv/lib/python3.11/site-packages/psycopg/cursor.py”, line 97, in execute
raise ex.with_traceback(None)
django.db.utils.IntegrityError: duplicate key value violates unique constraint “storageadmin_disk_name_key”
DETAIL: Key (name)=(usb-TerraMas_TDAS_002302280014-0:0) already exists.
[21/Jul/2026 19:30:02] ERROR [smart_manager.data_collector:1017] Failed to update disk state.. exception: 500 Server Error: Internal Server Error for url: http://127.0.0.1:8000/api/disks/scan
