Usbbackup plugin error - PHP Fatal error

  • Hi,


    This is on OMV 4.1.9.


    I have an externl USB Hard disk. The disk mounts fine. The drive is NTFS.


    Before mounting:


    root@openmediavault:~# omv-confdbadm read "conf.system.filesystem.mountpoint"
    [{"dir": "/srv/dev-disk-by-label-WD", "freq": 0, "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "hidden": false, "fsname": "/dev/disk/by-label/WD", "passno": 2, "type": "ext4", "uuid": "364688dd-1bdc-43b6-89f7-bf19a6497549"}, {"dir": "/srv/dev-disk-by-label-WDRAID", "freq": 0, "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "hidden": false, "fsname": "/dev/disk/by-label/WDRAID", "passno": 2, "type": "ext4", "uuid": "598fed80-25bc-4259-95ca-1aa5b881d461"}, {"dir": "/export/PXE", "freq": 0, "opts": "bind,nofail", "hidden": false, "fsname": "/srv/dev-disk-by-label-WD/PXE", "passno": 0, "type": "none", "uuid": "56b332a9-d451-4ee2-b6fb-00add070f9c2"}]


    After mounting:


    root@openmediavault:~# omv-confdbadm read "conf.system.filesystem.mountpoint"
    [{"uuid": "364688dd-1bdc-43b6-89f7-bf19a6497549", "passno": 2, "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "type": "ext4", "fsname": "/dev/disk/by-label/WD", "freq": 0, "dir": "/srv/dev-disk-by-label-WD", "hidden": false}, {"uuid": "598fed80-25bc-4259-95ca-1aa5b881d461", "passno": 2, "opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl", "type": "ext4", "fsname": "/dev/disk/by-label/WDRAID", "freq": 0, "dir": "/srv/dev-disk-by-label-WDRAID", "hidden": false}, {"uuid": "56b332a9-d451-4ee2-b6fb-00add070f9c2", "passno": 0, "opts": "bind,nofail", "type": "none", "fsname": "/srv/dev-disk-by-label-WD/PXE", "freq": 0, "dir": "/export/PXE", "hidden": false}, {"uuid": "725fd5f5-d382-443f-9e2b-46c0a93a9382", "passno": 2, "opts": "defaults,nofail", "type": "ntfs", "fsname": "/dev/disk/by-label/LaCie", "freq": 0, "dir": "/srv/dev-disk-by-label-LaCie", "hidden": false}]


    I am trying to synch the external USB hard Disk to a share directory.


    After creating the job in USB Backup plugin,I try to run it but I always face the same issue. The plugin complains that the disk is not mounted which is not true
    and in fact it seems it's the plugin that makes the USB HD to unmount.


    Aug 28 16:12:14 openmediavault rsync-5c615d93-a26f-4d13-9e06-5d54b081f56a: External storage device </dev/disk/by-label/LaCie> not mounted!
    Aug 28 16:12:14 openmediavault ntfs-3g[30580]: Unmounting /dev/sdg1 (LaCie)
    Aug 28 16:12:14 openmediavault omv-engined[2637]: PHP Fatal error: Uncaught Error: Call to a member function unlink() on null in /usr/share/openmediavault/engined/rpc/usbbackup.inc:269#012Stack trace:#012#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceUsbBackup->{closure}('/tmp/bgstatusrg...', '/tmp/bgoutputtK...')#012#1 /usr/share/openmediavault/engined/rpc/usbbackup.inc(274): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#012#2 [internal function]: OMVRpcServiceUsbBackup->execute(Array, Array)#012#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#012#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)#012#5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('UsbBackup', 'execute', Array, Array, 1)#012#6 {main}#012 thrown in /usr/share/openmediavault/engined/rpc/usbbackup.inc on line 269



    After that the syslog is full of messages:


    Aug 28 16:14:47 openmediavault monit[1007]: 'mountpoint_srv_dev-disk-by-label-LaCie' status failed (1) -- /srv/dev-disk-by-label-LaCie is not a mountpoint


    Any ideas?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!