Brief description of the problem
I installed Rockstor from the latest ISO about two weeks ago. I created two NFS exports, and enabled snapshots on one.
A few days ago, I subscribed to and applied the latest updates. After upgrading, I rebooted. Since the reboot, I’ve been having three problems:
(First) Most notably, the data in my NFS exports are gone. Nothing is getting mounted under /export. The exports are listed in /etc/exports, but the directories are empty. There are no entries for exports in /etc/fstab.
(Second,) I am getting emails from anacron indicating errors in the snapshots.
Traceback (most recent call last):
File “/opt/rockstor/bin/st-snapshot”, line 45, in
sys.exit(scripts.scheduled_tasks.snapshot.main())
File “/opt/rockstor/src/rockstor/scripts/scheduled_tasks/snapshot.py”, line 95, in main
validate_snap_meta(meta)
File “/opt/rockstor/src/rockstor/scripts/scheduled_tasks/snapshot.py”, line 39, in validate_snap_meta
if meta[‘share’].isdigit():
AttributeError: ‘int’ object has no attribute ‘isdigit’
(Finally,) I am unable to create new NFS shares (which is what led to this bug report, full details below).
##### Houston, we've had a problem.
A lower level error occurred while refreshing NFS exports: (Error running a command. cmd = /usr/bin/mkdir -p /export/data/.nfs_data_201911020300. rc = 1. stdout = ['']. stderr = ['/usr/bin/mkdir: cannot create directory \xe2\x80\x98/export/data/.nfs_data_201911020300\xe2\x80\x99: Operation not permitted', '']).
NOTE THE HEX ESCAPE SEQUENCES before /export in the mkdir command above! These don’t appear normal, but I don’t know where they would have come from.
Detailed step by step instructions to reproduce the problem
- created new share.
- attempted to create a new NFS export using new share.
Web-UI screenshot
[Drag and drop the image here]
Error Traceback provided on the Web-UI
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/nfs_exports.py", line 139, in refresh_wrapper
refresh_nfs_exports(exports)
File "/opt/rockstor/src/rockstor/system/osi.py", line 599, in refresh_nfs_exports
bind_mount(exports[e][0]['mnt_pt'], e)
File "/opt/rockstor/src/rockstor/system/osi.py", line 569, in bind_mount
run_command([MKDIR, '-p', export_pt])
File "/opt/rockstor/src/rockstor/system/osi.py", line 121, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/mkdir -p /export/data/.nfs_data_201911020300. rc = 1. stdout = ['']. stderr = ['/usr/bin/mkdir: cannot create directory \xe2\x80\x98/export/data/.nfs_data_201911020300\xe2\x80\x99: Operation not permitted', '']