Following a recent topic on Rockstor reinstall, I wanted to test the current state of config backup (Rockstor-3.9.1) and thus created two Rockstor VM to test the restore of a previous Rockstor install. Unfortunately, I received the following error when trying to upload a previous config backup:
[19/Jul/2017 08:39:16] ERROR [storageadmin.util:44] exception: isdir() takes exactly 1 argument (0 given)
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/config_backup.py", line 255, in post
if (not os.path.isdir()):
TypeError: isdir() takes exactly 1 argument (0 given)
Hereās what I did to get this error:
-
Create Rockstor VM (VirtualBox in Windows): Rockstor1:
- 1 virtual drive (letās call it āAā) for system install
- 1 virtual drive for pool (SATA1) with Rockons-root configured and two additional shares for a test rockon (Syncthing)
-
Backup config for Rockstor1 and download the .json.gz file on local HDD.
-
Create a second Rockstor VM: Rockstor2:
- 1 (new) virtual drive (letās call it āBā) for system install
-
Boot Rockstor2 and run yum updates.
-
Shutdown Rockstor2
-
Attach SATA1 drive to VM
-
Boot Rockstor2
-
Import pool in webUI for SATA1 (was successful)
-
Try to upload previous config backup file and receive the error pasted above when clicking on the āUpload fileā button.
Would this error be explained by the fact that these are both VM? or is it a known bug?
Iām simply curious of this behaviorā¦