Unable to enable iScsi

  • Hi All,I had the same issue and did the solution that was recommended by rye (Unable to enable iSCSI), but I'm still getting the same error.



    Error #4000:exception 'OMVException' with message 'Failed to execute command 'export LANG=C; invoke-rc.d 'iscsitarget' start 2>&1': Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.failed!invoke-rc.d: initscript iscsitarget, action "start" failed.' in /usr/share/php/openmediavault/initscript.inc:176Stack trace:#0 /usr/share/php/openmediavault/initscript.inc(141): OMVSysVInitScript->invoke('start')#1 /usr/share/php/openmediavault/initscript.inc(61): OMVSysVInitScript->start()#2 /usr/share/openmediavault/engined/module/iscsitarget.inc(91): OMVSysVInitScript->exec()#3 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleIscsiTarget->startService()#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)#5 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)#6 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)#7 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)#8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)#9 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)#10 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)#11 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)#12 {main}Just wondering of where should i go next. cheers

  • here's the output.


    uname -a
    Linux omv2015 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt4-3~bpo70+1 (2015-02-12) x86_64 GNU/Linux


    dpkg -l | grep linux-headers
    ii linux-headers-3.16.0-0.bpo.4-amd64 3.16.7-ckt11-1~bpo70+1 amd64 Header files for Linux 3.16.0-0.bpo.4-amd64
    ii linux-headers-3.16.0-0.bpo.4-common 3.16.7-ckt11-1~bpo70+1 amd64 Common header files for Linux 3.16.0-0.bpo.4
    ii linux-headers-3.2.0-4-common-rt 3.2.68-1+deb7u2 amd64 Common header files for Linux 3.2.0-4-rt
    ii linux-headers-3.2.0-4-rt-amd64 3.2.68-1+deb7u2 amd64 Header files for Linux 3.2.0-4-rt-amd64
    ii linux-headers-rt-amd64 3.2+46 amd64 Header files for Linux rt-amd64 configuration (meta-package)

  • Thanks.


    When you mentioned Jessie, did you meant datadigger on this reply?
    ===================================================================
    apt-get install devscripts equivs build-essential
    apt-get install iscsitarget
    apt-get install iscsitarget-dkms


    These next two steps are possibly not needed if there's another way to get the sources on the box, but
    I found it pretty convenient ;)
    apt-get install subversion
    svn co https://svn.code.sf.net/p/iscsitarget/code iscsitarget
    (Attention: This command puts the sources into a subdirectory named iscsitarget whereever you have started the command from. So it is a good idea to run that from a place like /home)


    cd to iscsitarget/trunk
    make
    make install


    ============================================================


    I'm a complete newbie when it comes to linux, please let me know the outcome of your talk with rye.


    Cheers and much appreciated


    Saying that though, I've installed a fresh 0.5.48 on another microserver and was able to enable the iscsi.


    here's the output
    root@GEN7OMV:~# lsmod | grep iscsi
    iscsi_trgt 69353 3


    any thoughts?

    • Offizieller Beitrag

    I put the packages in the stoneburner-backports repo that work with the 3.16 kernel. No need to build them. They are here if you are using kralizec still.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Iscsi from from Jessie is on the repo server, delete the plugin,Also delete the installed packages of iscsitarget.


    proceed with the install again this time it should work.


    thanks Subzero.
    I've used commands given by ryeaaron from the other thread yesterday to remove and re-install, but it didn't work, do you want me to do this again now? -->


    apt-get purge iscsitarget
    apt-get autoremove
    apt-get clean
    apt-get install linux-headers-$(uname -r) build-essential
    apt-get install openmediavault-iscsitarget


    Is this what I need to do to delete plugin and re-install iscsi package?

  • Thanks


    whist I was purging iscsi-dkms, this came up
    -------- Uninstall Beginning --------
    Module: iscsitarget
    Version: 1.4.20.2
    Kernel: 3.2.0-4-rt-amd64 (x86_64)
    -------------------------------------


    I thought my kernel is 3.16, but it seems to think that it has 3.2


    is this why it's not working?

    • Offizieller Beitrag

    Did you uninstall the 3.2 kernel? If not, it is still on your system. The package builds the module for all kernels found. It gives an error but still worked on my test VMs.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • yes, did uninstall it


    I did the following


    apt-get purge iscsitarget
    apt-get purge openmediavault-iscsitarget
    apt-get purge iscsitarget-dkms
    apt-get autoremove
    apt-get clean



    then i re-installed it via web gui
    but unfortunately, I'm still getting the same error.

    • Offizieller Beitrag

    I meant did you uninstall the 3.2 kernel? I'm guessing no.


    apt-get purge linux-image-3.2.0-4-amd64
    update-grub
    apt-get purge iscsitarget iscsitarget-dkms openmediavault-iscsitarget
    omv-mkconf omvextrasorg aptclean
    reboot
    Then install from web interface.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi Aaron,


    unfortunately, still the same error


    here's the verbose logs during the install via web gui, saw an error on iscsi during the installation..


    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
    iscsitarget iscsitarget-dkms
    Recommended packages:
    iscsitarget-module
    The following NEW packages will be installed:
    iscsitarget iscsitarget-dkms openmediavault-iscsitarget
    0 upgraded, 3 newly installed, 0 to remove and 53 not upgraded.
    Need to get 199 kB of archives.
    After this operation, 945 kB of additional disk space will be used.
    WARNING: The following packages cannot be authenticated!
    iscsitarget iscsitarget-dkms openmediavault-iscsitarget
    Authentication warning overridden.
    Get:1 http://ftp.uk.debian.org/debian/ wheezy/main iscsitarget amd64 1.4.20.2-10.1 [78.3 kB]
    Get:2 http://packages.openmediavault.org/public/ kralizec/main openmediavault-iscsitarget all 1.3 [45.1 kB]
    Get:3 http://ftp.uk.debian.org/debian/ wheezy/main iscsitarget-dkms all 1.4.20.2-10.1 [75.5 kB]
    Fetched 199 kB in 0s (1382 kB/s)
    Selecting previously unselected package iscsitarget.
    (Reading database ... 59713 files and directories currently installed.)
    Unpacking iscsitarget (from .../iscsitarget_1.4.20.2-10.1_amd64.deb) ...
    Selecting previously unselected package iscsitarget-dkms.
    Unpacking iscsitarget-dkms (from .../iscsitarget-dkms_1.4.20.2-10.1_all.deb) ...
    Selecting previously unselected package openmediavault-iscsitarget.
    Unpacking openmediavault-iscsitarget (from .../openmediavault-iscsitarget_1.3_all.deb) ...
    Processing triggers for man-db ...
    Processing triggers for openmediavault ...


    ================= Error =================
    =========================================
    Restarting engine daemon ...
    Setting up iscsitarget (1.4.20.2-10.1) ...
    iscsitarget not enabled in "/etc/default/iscsitarget", not starting... ... (warning).
    Setting up iscsitarget-dkms (1.4.20.2-10.1) ...


    Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source ->
    /usr/src/iscsitarget-1.4.20.2


    DKMS: add completed.


    Kernel preparation unnecessary for this kernel. Skipping...


    Building module:
    cleaning build area....
    make KERNELRELEASE=3.16.0-0.bpo.4-amd64 -C /lib/modules/3.16.0-0.bpo.4-amd64/build M=/var/lib/dkms/iscsitarget/1.4.20.2/build.....(bad exit status: 2)
    Error! Bad return status for module build on kernel: 3.16.0-0.bpo.4-amd64 (x86_64)
    Consult /var/lib/dkms/iscsitarget/1.4.20.2/build/make.log for more information.
    Setting up openmediavault-iscsitarget (1.3) ...
    Updating init script links and actions
    Removing iSCSI enterprise target devices: :.
    Initialize configuration
    update-rc.d: using dependency based boot sequencing
    insserv: warning: current start runlevel(s) (empty) of script `iscsitarget' overrides LSB defaults (2 3 4 5).
    insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `iscsitarget' overrides LSB defaults (0 1 6).
    Updating configuration ...
    Processing triggers for openmediavault ...
    Updating locale files ...
    Updating file permissions ...
    Purging internal cache ...
    Restarting engine daemon ...
    Creating index of upgradeable packages ...
    Creating index of OpenMediaVault plugins ...
    Done ...

    • Offizieller Beitrag

    It is building the wrong version of iscsitarget. That is the 3.2 kernel version. It should be 1.4.20.3 What is the output of: cat /etc/apt/sources.list.d/backports.list

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    You are on OMV 2.x, right?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    That is the problem. I only put the new packages in omv 2.x backports repo.


    apt-get update and try again.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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