2017-07-24 06:28 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001736openmediavaultBugpublic2017-05-13 23:09
Reportersubzero79 
Assigned Tovotdev 
PriorityhighSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86OSdebian 8.7OS Version
Product Version 
Target VersionFixed in VersionErasmus (3.x) 
Summary0001736: Error unmount disk (legacy mount point)
DescriptionApparently since the new mount by-id disk feature, the legacy old mount points are not being able to be disconnected from the GUI using the mount button.

This is the trace in engined in debug mode. (BTW in the new UI the error text is not selectable)

RPC response (service=Config, method=isDirty): {"response":false,"error":null}
SIGCHLD received ...
Child (pid=14902) terminated with exit code 0
Child process forked (pid=14903)
Executing RPC (service=FileSystemMgmt, method=umount, params={"id":"\/dev\/sdc1","fstab":true}, context={"username":"admin","role":1}) ...
RPC response (service=FileSystemMgmt, method=umount): {"response":null,"error":{"code":0,"message":"The XPath query '\/\/system\/fstab\/mntent[((((fsname='\/dev\/sdc1' or fsname='\/dev\/disk\/by-label\/Braid') or fsname='\/dev\/disk\/by-path\/virtio-pci-0000:00:05.0-scsi-0:0:0:1-part1') or fsname='\/dev\/disk\/by-id\/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1-part1') or fsname='\/dev\/disk\/by-uuid\/7283242e-cb09-40ea-a27e-a91e58cd3dc6')]' does not return the requested number of 1 object(s).","trace":"exception 'OMV\\Config\\DatabaseException' with message 'The XPath query '\/\/system\/fstab\/mntent[((((fsname='\/dev\/sdc1' or fsname='\/dev\/disk\/by-label\/Braid') or fsname='\/dev\/disk\/by-path\/virtio-pci-0000:00:05.0-scsi-0:0:0:1-part1') or fsname='\/dev\/disk\/by-id\/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1-part1') or fsname='\/dev\/disk\/by-uuid\/7283242e-cb09-40ea-a27e-a91e58cd3dc6')]' does not return the requested number of 1 object(s).' in \/usr\/share\/php\/openmediavault\/config\/database.inc:172\nStack trace:\n#0 \/usr\/share\/openmediavault\/engined\/rpc\/filesystemmgmt.inc(926): OMV\\Config\\Database->getByFilter('conf.system.fil...', Array, 1)\n#1 [internal function]: OMVRpcServiceFileSystemMgmt->umount(Array, Array)\n#2 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(124): call_user_func_array(Array, Array)\n#3 \/usr\/share\/php\/openmediavault\/rpc\/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('umount', Array, Array)\n#4 \/usr\/sbin\/omv-engined(536): OMV\\Rpc\\Rpc::call('FileSystemMgmt', 'umount', Array, Array, 1)\n#5 {main}"}}
SIGCHLD received ...
Child (pid=14903) terminated with exit code 0
Child process forked (pid=14968)
Executing RPC (service=Config, method=isDirty, params=null, context={"username":"admin","role":1}) ...
RPC response (service=Config, method=isDirty): {"response":false,"error":null}
SIGCHLD received ...
Child (pid=14968) terminated with exit code 0



TagsNo tags attached.
Product build
Attached Files

-Relationships
+Relationships

-Notes

~0004737

votdev (administrator)

Please post the omv-confdbadm output for the mount point.

~0004738

subzero79 (reporter)

Sorry i just deleted the entry manually from the db, but it was like old mount points using /media/UUID.

~0004739

votdev (administrator)

The problem was that the mount point was not found for the specified filesystem device file. This has nothing to do with the mount point directory.

~0004740

subzero79 (reporter)

Of course is looking to find /dev/disk/.... in fsname field as it is now for every new device.

Old mounts coming before this change just had

<fsname>uuid</fsname>

Pretty sure i can reproduce this again in another VM using a package before the change, then upgrading the package and try to unmount

~0004741

votdev (administrator)

Fixed in openmediavault 3.0.76, see https://github.com/openmediavault/openmediavault/commit/177a0a8584b9301746b1a1268e87642b3c2e067a.
+Notes

-Issue History
Date Modified Username Field Change
2017-05-13 17:24 subzero79 New Issue
2017-05-13 17:24 subzero79 Status new => assigned
2017-05-13 17:24 subzero79 Assigned To => votdev
2017-05-13 17:53 votdev Note Added: 0004737
2017-05-13 17:55 subzero79 Note Added: 0004738
2017-05-13 17:58 votdev Note Added: 0004739
2017-05-13 18:03 subzero79 Note Added: 0004740
2017-05-13 23:09 votdev Status assigned => resolved
2017-05-13 23:09 votdev Resolution open => fixed
2017-05-13 23:09 votdev Fixed in Version => Erasmus (3.x)
2017-05-13 23:09 votdev Note Added: 0004741
+Issue History