Install of OMV-extras plugin not working - dpkg: error: PATH is not set

    • OMV 1.0
    • Install of OMV-extras plugin not working - dpkg: error: PATH is not set

      Hello,

      I'm new to OMV and I have some trouble in installation of plugins.

      Here is the message I have :

      Source Code

      1. ​Reading package lists...
      2. Building dependency tree...
      3. Reading state information...
      4. The following NEW packages will be installed:
      5. openmediavault-nginx
      6. 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
      7. Need to get 0 B/36.0 kB of archives.
      8. After this operation, 258 kB of additional disk space will be used.
      9. WARNING: The following packages cannot be authenticated!
      10. openmediavault-nginx
      11. debconf: delaying package configuration, since apt-utils is not installed
      12. Authentication warning overridden.
      13. dpkg: error: PATH is not set
      Display All

      A reboot solve the problem, but it comes back after while (between 2 plugins installations sometimes).

      My OMV installation is a fresh wheezy installation where I installed manually OMV.

      Does someone have an idea about my problem?

      Thanks for your help.

      Tillstaff
    • Hard to say what the problem is since you didn't use the OMV install media. DId you install apt-utils? What instructions did you follow to install omv? Did you google the path error? Lots of results.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Hello,

      After some investigations, I found a log about the failed command.

      Source Code

      1. Start-Date: 2015-05-02 22:00:51Commandline: apt-get --yes --force-yes --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::=--force-confold install openmediavault-omvextrasorg
      2. Upgrade: openmediavault-omvextrasorg:amd64 (1.17, 1.18)
      3. Error: Sub-process /usr/bin/dpkg returned an error code (2)
      4. End-Date: 2015-05-02 22:00:53


      The same command under ssh/root was ok.

      Source Code

      1. root@host:/var/log/apt# apt-get --yes --force-yes --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::=--force-confold install openmediavault-omvextrasorg
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following packages will be upgraded:
      6. openmediavault-omvextrasorg
      7. 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
      8. Need to get 0 B/257 kB of archives.
      9. After this operation, 12.3 kB of additional disk space will be used.
      10. WARNING: The following packages cannot be authenticated!
      11. openmediavault-omvextrasorg
      12. Authentication warning overridden.
      13. (Reading database ... 55095 files and directories currently installed.)
      14. Preparing to replace openmediavault-omvextrasorg 1.17 (using .../openmediavault-omvextrasorg_1.18_all.deb) ...
      15. Unpacking replacement openmediavault-omvextrasorg ...
      16. Processing triggers for openmediavault ...
      17. Restarting engine daemon ...
      18. Setting up openmediavault-omvextrasorg (1.18) ...
      19. OK
      20. OK
      21. OK
      22. OK
      23. OK
      24. OK
      25. OK
      26. OK
      27. OK
      28. OK
      29. OK
      30. OK
      31. Processing triggers for openmediavault ...
      32. Updating locale files ...
      33. Updating file permissions ...
      34. Purging internal cache ...
      35. Restarting engine daemon ...
      36. Creating index of upgradeable packages ...
      37. Creating index of OpenMediaVault plugins ...
      Display All


      Do you know how the update command is launched through the web GUI? With wich user?

      Tillstaff
    • Hello,

      I tried to update OMV to 2.0.5 version and it's still the same.
      Except I have an error message with more details.

      Source Code

      1. Erreur #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get --yes --auto-remove --purge remove openmediavault-nginx 2>&1': Reading package lists...
      3. Building dependency tree...
      4. Reading state information...
      5. The following packages will be REMOVED:
      6. openmediavault-nginx*
      7. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      8. After this operation, 258 kB disk space will be freed.
      9. dpkg: error: PATH is not set
      10. Creating index of upgradeable packages ...
      11. Creating index of OpenMediaVault plugins ...
      12. E: Sub-process /usr/bin/dpkg returned an error code (2)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170
      13. Stack trace:
      14. #0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
      15. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      16. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
      17. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1)
      18. #4 {main}
      Display All


      Thanks in advance for your help.

      Tillstaff
    • I answer to myself :

      I've got a server in a server provider named OVH with specifi kernels, I choose Debian 7 64 bits for installation then I've done this to have a fully OMV on the server

      I follow these steps :

      Source Code

      1. # Note: For OMV-extra-plugin : Do these steps before installing OMV:
      2. apt-get update
      3. echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/backports.list
      4. apt-get update
      5. apt-get -t wheezy-backports install linux-image-amd64
      6. # Note: Specific OVH
      7. mv /etc/grub.d/06_OVHkernel /etc/grub.d/60_OVHkernel
      8. update-grub
      9. reboot
      10. apt-get install linux-headers-$(uname -r)
      11. # Note: Specific OVH, dns resolution for docker doesn't work
      12. echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null
      13. echo "nameserver 8.8.8.8" | tee /etc/resolvconf/resolv.conf.d/base > /dev/null
      14. # Note: You would be able to install all plugin, and more sepcificly the docker plugin now !
      15. # Note: Fix issue : "dpkg: error: PATH is not set"
      16. echo "PATH=$PATH:/usr/local/sbin/:/usr/sbin/:/sbin" >> /etc/login.defs
      17. # Note: Install OMV
      18. echo "deb http://packages.openmediavault.org/public kralizec main" > /etc/apt/sources.list.d/openmediavault.list
      19. apt-get update
      20. # Note: You may be will have an error like NO_PUBKEY XXXXXXXXXX, then do :
      21. apt-get install openmediavault-keyring libapache2-mod-php5
      22. apt-get update
      23. # Note: You will get a warning that the PGP Key can't be found. Thats fine.
      24. apt-get install openmediavault-keyring postfix
      25. # Note: You will get a warning that the package 'openmediavault-keyring' can't be authenticated. You're fine to ignore that warning and install it anyways.
      26. apt-get update
      27. apt-get install openmediavault
      28. omv-initsystem
      29. shutdown -r now
      Display All


      Now I can install all applications I want via Docker !!! YEAH !

      The post was edited 3 times, last by slobberbone ().

    • This problem just started happening to me recently and I'm not sure why. Editing login.defs doesn't help. `apt-utils` is installed. Here's what I'm getting from the GUI:

      Source Code

      1. ​The following NEW packages will be installed:
      2. openmediavault-couchpotato
      3. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      4. Need to get 0 B/17.3 kB of archives.
      5. After this operation, 54.3 kB of additional disk space will be used.
      6. WARNING: The following packages cannot be authenticated!
      7. openmediavault-couchpotato
      8. debconf: delaying package configuration, since apt-utils is not installed
      9. Authentication warning overridden.
      10. dpkg: error: PATH is not set
      11. Creating index of upgradeable packages ...
      12. Creating index of openmediavault plugins ...
      13. E: Sub-process /usr/bin/dpkg returned an error code (2)
      14. <<< *************************************
      Display All


      However:

      Source Code

      1. root@ezra:~# apt-show-versions apt-utils
      2. apt-utils/wheezy uptodate 0.9.7.9+deb7u7
      3. root@ezra:~#


      And:

      Source Code

      1. root@ezra:~# apt-get install openmediavault-couchpotato
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following NEW packages will be installed:
      6. openmediavault-couchpotato
      7. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      8. Need to get 0 B/17.3 kB of archives.
      9. After this operation, 54.3 kB of additional disk space will be used.
      10. WARNING: The following packages cannot be authenticated!
      11. openmediavault-couchpotato
      12. Install these packages without verification [y/N]? y
      13. Selecting previously unselected package openmediavault-couchpotato.
      14. (Reading database ... 82499 files and directories currently installed.)
      15. Unpacking openmediavault-couchpotato (from .../openmediavault-couchpotato_1.0.3_all.deb) ...
      16. Processing triggers for openmediavault ...
      17. Restarting engine daemon ...
      18. Setting up openmediavault-couchpotato (1.0.3) ...
      19. Adding couchpotato user...
      20. Initial configuration.
      21. Processing triggers for openmediavault ...
      22. Updating locale files ...
      23. Updating file permissions ...
      24. Purging internal cache ...
      25. Restarting engine daemon ...
      26. Creating index of upgradeable packages ...
      27. Creating index of openmediavault plugins ...
      28. root@ezra:~#
      Display All


      This is on a long time install from the installation media. Though I did have to mess with grub after installing openmediavault-zfs. I'm not sure what that would have to do with this error though.
    • I encountered the same problem months ago, could never figure it out...

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • I've seen people post about this many times but have no idea what causes it. Never been able to reproduce it.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It seems this problem stems from a bug in setproctitle(): when omv-engined calls setproctitle($cmdName), it overwrites the first 69 bytes of the environment with spaces. This is easy to see by by cat'ing the "environ" file in the /proc entry of the process.

      This problem is described here: php.net/manual/en/function.setproctitle.php#112003

      On my setup, the problem started showing up when I restarted the engine with "service openmediavault-engined restart", as per @SVS's Guide. The terse environment due to the use of the "service" command moved the PATH to the beginning of the environment, causing it to be overwritten upon setproctitle() invocation. When I restarted the engine manually ("/etc/init.d/openmediavault-engined restart"), the larger environment pushed the PATH variable far enough to be spared.
    • It is just odd that I have never had this problem on any of my systems including all the test VMs.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!