2017-11-20 23:45 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001741openmediavaultClarifypublic2017-05-16 04:22
Reportersubzero79 
Assigned Tovotdev 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
Platformx86OSdebianOS Version8.7
Product Version 
Target VersionFixed in Version 
Summary0001741: Weird error mounting with similar labels
DescriptionMy omv setup at the moment is virtualized and encrypted disks, so disks-id report as

scsi-0QEMU_QEMU_HARDDISK_drive-scsi2 for example and the encrypted block device as

dm-name-sda_crypt or whatever i use to map them when i unlock them. So in this case omv falls back as fs identifier to use the fs label. The fstab looks like this currently

/dev/disk/by-label/docker /media/dev-disk-by-label-docker ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/ironwolf_3TB /media/dev-disk-by-label-ironwolf_3TB ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2

On the first disk i have a label of "ironwolf_3TB" in ext4. Bought a second one i labeled plain "ironwolf". The first one is registered at the omv backend, the second one spits this error when trying to mount and register

Executing RPC (service=FileSystemMgmt, method=mount, params={"id":"\/dev\/dm-1","fstab":true}, context={"username":"admin","role":1}) ...
RPC response (service=FileSystemMgmt, method=mount): {"response":null,"error":{"code":0,"message":"Failed to execute command 'export PATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin; export LANG=C; mount -v --source '\/dev\/dm-1' 2>&1' with exit code '1': mount: can't find mount source \/dev\/dm-1 in \/etc\/fstab","trace":"exception 'OMV\\ExecException' with message 'Failed to execute command 'export PATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin; export LANG=C; mount -v --source '\/dev\/dm-1' 2>&1' with exit code '1': mount: can't find mount source \/dev\/dm-1 in \/etc\/fstab' in \/usr\/share\/php\/openmediavault\/system\/process.inc:175\nStack trace:\n#0 \/usr\/share\/php\/openmediavault\/system\/filesystem\/filesystem.inc(715): OMV\\System\\Process->execute()\n#1 \/usr\/share\/openmediavault\/engined\/rpc\/filesystemmgmt.inc(862): OMV\\System\\Filesystem\\Filesystem->mount()\n#2 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array)\n#3 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(124): call_user_func_array(Array, Array)\n#4 \/usr\/share\/php\/openmediavault\/rpc\/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('mount', Array, Array)\n#5 \/usr\/sbin\/omv-engined(536): OMV\\Rpc\\Rpc::call('FileSystemMgmt', 'mount', Array, Array, 1)\n#6 {main}"}}

The same happens if i rename the label to ironw, iron, ir, ironwolf_3, you see the point. If i add a letter or string before and/or after there are no issues, like

iironwolf, ironwolf_3TB_2, etc

there must some regex restriction there.

thanks.


BTW the new theme doesn't allow to copy and paste the backtrace errors.

TagsNo tags attached.
Product build
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2017-05-16 04:22 subzero79 New Issue
2017-05-16 04:22 subzero79 Status new => assigned
2017-05-16 04:22 subzero79 Assigned To => votdev
+Issue History