OpenMediaVault-Plugin-Developers / openmediavault-zfs

OpenMediaVault plugin for zfs
74 stars 15 forks source link

omv-engined crashes after installation of omv-zfs #13

Closed Finkregh closed 8 years ago

Finkregh commented 8 years ago
================================================================================
= OS/Debian information
================================================================================
Distributor ID: debian
Description: Debian GNU/Linux 8 (jessie)
Release: 8.4
Codename: jessie

================================================================================
= openmediavault information
================================================================================
Release: 3.0.19
Codename: Erasmus

When i install omv-zfs as described in http://forums.openmediavault.org/index.php/Thread/7633-HOWTO-Instal-ZFS-Plugin-use-ZFS-on-OMV/ the omv-engined wont start anymore.

~# omv-engined -d
omv-engined[4945]: Daemon process started (pid=4946)
Registered data models:
  //services/nfs
  conf.service.ftp
  conf.service.ftp.modban.rule
  conf.service.ftp.modtls
  conf.service.ftp.share
  conf.service.nfs
  conf.service.nfs.share
  conf.service.rsync.job
  conf.service.rsyncd
  conf.service.rsyncd.module
  conf.service.smartmontools
  conf.service.smartmontools.device
  conf.service.smartmontools.job
  conf.service.smb
  conf.service.smb.share
  conf.service.snmp
  conf.service.ssh
  conf.service.tftp
  conf.service.zeroconf.service
  conf.system.apt.distribution
  conf.system.certificate.ssh
  conf.system.certificate.ssl
  conf.system.cron.job
  conf.system.email
  conf.system.filesystem.mountpoint
  conf.system.filesystem.quota
  conf.system.hdparm
  conf.system.monitoring.perfstats
  conf.system.network.dns
  conf.system.network.interface
  conf.system.network.iptables.rule
  conf.system.network.proxy
  conf.system.notification.email
  conf.system.notification.notification
  conf.system.omvextras
  conf.system.powermngmnt
  conf.system.sharedfolder
  conf.system.sharedfolder.privilege
  conf.system.syslog.remote
  conf.system.time
  conf.system.usermngmnt.group
  conf.system.usermngmnt.homedir
  conf.system.usermngmnt.user
  conf.webadmin
  rpc.apt.getchangelog
  rpc.apt.setsettings
  rpc.apt.upgrade
  rpc.apt.upload
  rpc.certificatemgmt.create
  rpc.certificatemgmt.createssh
  rpc.certificatemgmt.set
  rpc.certificatemgmt.setssh
  rpc.common.devicefile
  rpc.common.getlist
  rpc.common.objectuuid
  rpc.config.applychanges
  rpc.config.revertchanges
  rpc.cron.getlist
  rpc.cron.set
  rpc.diskmgmt.sethdparm
  rpc.diskmgmt.wipe
  rpc.emailnotification.set
  rpc.exec.getoutput
  rpc.exec.isrunning
  rpc.exec.stop
  rpc.filesystemmgmt.create
  rpc.filesystemmgmt.delete
  rpc.filesystemmgmt.enumeratemountedfilesystems
  rpc.filesystemmgmt.hasfilesystem
  rpc.filesystemmgmt.mount
  rpc.filesystemmgmt.resize
  rpc.filesystemmgmt.umount
  rpc.folderbrowser.get
  rpc.fstab.getbydir
  rpc.fstab.getbyfsname
  rpc.fstab.set
  rpc.ftp.setmodbanrule
  rpc.ftp.setmodtlssettings
  rpc.ftp.setsettings
  rpc.ftp.setshare
  rpc.iptables.setrule
  rpc.iptables.setrules
  rpc.iptables.setrules6
  rpc.logfile.clear
  rpc.logfile.getcontent
  rpc.logfile.getlist
  rpc.network.enumeratebondslaves
  rpc.network.identify
  rpc.network.setbondiface
  rpc.network.setethernetiface
  rpc.network.setgeneralsettings
  rpc.network.setproxy
  rpc.network.setvlaniface
  rpc.network.setwirelessiface
  rpc.nfs.setsettings
  rpc.nfs.setshare
  rpc.notification.isenabled
  rpc.notification.set
  rpc.omvextras.docommand
  rpc.omvextras.setrepo
  rpc.perfstats.set
  rpc.plugin.install
  rpc.plugin.remove
  rpc.plugin.upload
  rpc.powermgmt.set
  rpc.powermgmt.setscheduledjob
  rpc.quota.set
  rpc.raidmgmt.add
  rpc.raidmgmt.create
  rpc.raidmgmt.delete
  rpc.raidmgmt.getdetail
  rpc.raidmgmt.getslaves
  rpc.raidmgmt.grow
  rpc.raidmgmt.remove
  rpc.rsync.set
  rpc.rsyncd.setmodule
  rpc.rsyncd.setsettings
  rpc.session.login
  rpc.sharemgmt.delete
  rpc.sharemgmt.getfileacl
  rpc.sharemgmt.getprivilegesbyrole
  rpc.sharemgmt.set
  rpc.sharemgmt.setfileacl
  rpc.sharemgmt.setprivileges
  rpc.sharemgmt.setprivilegesbyrole
  rpc.smart.setdevicesettings
  rpc.smart.setscheduledtest
  rpc.smart.setsettings
  rpc.smb.setsettings
  rpc.smb.setshare
  rpc.snmp.set
  rpc.ssh.set
  rpc.syslog.setsettings
  rpc.system.setdate
  rpc.system.settimesettings
  rpc.tftp.set
  rpc.usermngmt.authuser
  rpc.usermngmt.deletegroup
  rpc.usermngmt.deleteuser
  rpc.usermngmt.getgroup
  rpc.usermngmt.getuser
  rpc.usermngmt.importgroup
  rpc.usermngmt.importuser
  rpc.usermngmt.setgroup
  rpc.usermngmt.setsettings
  rpc.usermngmt.setuser
  rpc.usermngmt.setuserbycontext
  rpc.webgui.setpassword
  rpc.webgui.setsettings
  rpc.zeroconf.set
Registered filesystem backends:
  btrfs
  ext
  ext2
  ext3
  ext4
  hfsplus
  iso9660
  jfs
  msdos
  none
  ntfs
  reiserfs
  udf
  ufs
  umsdos
  vfat
  xfs
PHP Fatal error:  require_once(): Failed opening required 'openmediavault/object.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/openmediavault/engined/rpc/zfs.inc on line 19

ZFS is installed and works properly, i can see filsystems running e.g. zpool import -d /dev/; i did reboot after installation.

# dpkg -l "*zfs*" | grep ^i
ii  debian-zfs         7~jessie         amd64        Native ZFS filesystem metapackage for Debian.
ii  libzfs2            0.6.5.7-8-jessie amd64        Native ZFS filesystem library for Linux
ii  openmediavault-zfs 3.0.1            amd64        OpenMediaVault plugin for ZFS
ii  zfs-dkms           0.6.5.7-8-jessie all          Native ZFS filesystem kernel modules for Linux
ii  zfsonlinux         8                all          archive.zfsonlinux.org trust package
ii  zfsutils           0.6.5.7-8-jessie amd64        command-line tools to manage ZFS filesystems
subzero79 commented 8 years ago

The plugin has not been adapted to work with versions higher than 3.0.15. You'll have to go back to .13 version of Omv if you want to keep using the plugin.

Finkregh commented 8 years ago

hmm, the depends seems not to work as intended, as i was able to install these versions w/o problems... AFAIR it should not be openmediavault (>= 1.7) | openmediavault (<= 3.0.13) (X OR Y) but openmediavault (>= 1.7), openmediavault (<= 3.0.13) (X AND Y)

this is not tested, so i wont create a merge-request :o

qlandman commented 8 years ago

I have the same problem, therefore OMV is practically unusable if you are using ZFS. I don't know how to test the solution of @Finkregh, but would love to test it.

ryecoaaron commented 8 years ago

He didn't have a solution other than to keep the plugin from installing on OMV > 3.0.13. Until it is ported you will have to use zfs manually or wait. OMV 3.x hasn't been released yet anyway.

Finkregh commented 8 years ago

Why close this if there is a possible fix available?

ryecoaaron commented 8 years ago

There isn't a "fix" available. This just keeps someone from installing the current plugin on a version of OMV newer than 3.0.13. Making code changes to let someone stay on an old version is bad idea in my opinion and the plugin needs a lot of code re-written to work on the latest OMV.