error #4000 when update OMV (after outage)

    • OMV 2.x
    • Resolved
    • Update

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • error #4000 when update OMV (after outage)

      Hello,

      since after a outage we have a problem with our raid5, not appear but all disk are still present.
      >>> Need help too here...


      and we have now a error when we tried to update the OMV 2.2.14

      Here is the error message:

      Brainfuck Source Code

      1. Erreur
      2. Failed to execute command 'export LANG=C; apt-get update 2>&1': E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
      3. More Details here...............................
      4. Erreur #4000:
      5. exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get update 2>&1': E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
      6. E: Unable to lock directory /var/lib/apt/lists/' in /usr/share/openmediavault/engined/rpc/apt.inc:276
      7. Stack trace:
      8. #0 [internal function]: OMVRpcServiceApt->update(NULL, Array)
      9. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      10. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('update', NULL, Array)
      11. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Apt', 'update', NULL, Array, 1)
      12. #4 {main}
      Display All
      If someone have a idea to fix this, it'll be great..

      Thank you.
      Regard.
    • piet wrote:

      If someone have a idea to fix this, it'll be great..
      This is temporary. OMV downloads (not installs) updates daily. Once it done downloading the updates, you should be able to update. Otherwise, reboot and try to update right away.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Thank you for your answer.

      But no, stil yesterday I'm trying.
      In the admin interface I click on the "update manager" button, and then click on "check"..but since yesterday I had this problem...

      And if I connect with ssh, and do a "apt-get update", I had this error message :

      Source Code

      1. root@OMV-NAS:~# apt-get update
      2. E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
      3. E: Unable to lock directory /var/lib/apt/lists/
      If you have a idea... and maybe it is linked with my othe problem (which is bigger..) : can you check here too..?

      Thank you very much.
      Regard.
      Images
      • 2017-09-08_14h42_21.jpg

        81.36 kB, 625×599, viewed 35 times
    • rm /var/lib/apt/lists/lock && apt-get update

      piet wrote:

      And if you have a second to check here...
      I really hate raid questions... But I responded...
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Ok I done this, but it's blocked at 34% (and very slow)

      Source Code

      1. root@OMV-NAS:~# rm /var/lib/apt/lists/lock && apt-get update
      2. Ign file: Release.gpg
      3. Ign file: Release
      4. Ign file: Translation-en_US
      5. Ign file: Translation-en
      6. Err http://security.debian.org wheezy/updates Release.gpg
      7. Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
      8. Err http://packages.openmediavault.org stoneburner Release.gpg
      9. Something wicked happened resolving 'packages.openmediavault.org:http' (-5 - No address associated with hostname)
      10. Err http://ftp.be.debian.org wheezy Release.gpg
      11. Something wicked happened resolving 'ftp.be.debian.org:http' (-5 - No address associated with hostname)
      12. Err http://ftp.be.debian.org wheezy-updates Release.gpg
      13. Something wicked happened resolving 'ftp.be.debian.org:http' (-5 - No address associated with hostname)
      14. Ign http://packages.openmediavault.org stoneburner Release
      15. Ign http://security.debian.org wheezy/updates Release
      16. Ign http://security.debian.org wheezy/updates/main Sources/DiffIndex
      17. Ign http://packages.openmediavault.org stoneburner/main amd64 Packages/DiffIndex
      18. Ign http://ftp.be.debian.org wheezy Release
      19. Ign http://security.debian.org wheezy/updates/contrib Sources/DiffIndex
      20. Ign http://ftp.be.debian.org wheezy-updates Release
      21. Ign http://ftp.be.debian.org wheezy/main Sources/DiffIndex
      22. Ign http://security.debian.org wheezy/updates/non-free Sources/DiffIndex
      23. Ign http://ftp.be.debian.org wheezy/non-free Sources/DiffIndex
      24. Ign http://security.debian.org wheezy/updates/main amd64 Packages/DiffIndex
      25. Ign http://ftp.be.debian.org wheezy/contrib Sources/DiffIndex
      26. Ign http://security.debian.org wheezy/updates/contrib amd64 Packages/DiffIndex
      27. Ign http://ftp.be.debian.org wheezy/main amd64 Packages/DiffIndex
      28. Ign http://security.debian.org wheezy/updates/non-free amd64 Packages/DiffIndex
      29. Ign http://ftp.be.debian.org wheezy/non-free amd64 Packages/DiffIndex
      30. Ign http://ftp.be.debian.org wheezy/contrib amd64 Packages/DiffIndex
      31. 34% [Connecting to ftp.be.debian.org] [Connecting to security.debian.org] [Connecting to packages.openmediavault.org]
      Display All
      Apparently, there is a DNS problem, no ?

      Thank you.


      PS: yes I know you hate raid problem, but I answer to you, and if you just have a idea where I can search to solve this it'll be great. Regard.
    • piet wrote:

      Apparently, there is a DNS problem, no ?
      Yep it is a dns issue. Do you have your dns server set in network setup?


      piet wrote:

      yes I know you hate raid problem, but I answer to you, and if you just have a idea where I can search to solve this it'll be great
      I saw it. Just give me a bit.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Yes I have set up the DNS server in network setup. Which is here 192.168.2.91
      I verified and it is good.

      And if I put the google's DNS 8.8.8.8, I have the problem too...

      Strange isn't it...?

      Source Code

      1. root@OMV-NAS:~# cat /etc/network/interfaces
      2. # The loopback network interface
      3. auto lo
      4. iface lo inet loopback
      5. # eth0 network interface
      6. auto eth0
      7. allow-hotplug eth0
      8. iface eth0 inet static
      9. address 192.168.2.56
      10. gateway 192.168.2.254
      11. netmask 255.255.255.0
      12. dns-nameservers 192.168.2.91
      13. dns-search cire.be
      14. pre-down ethtool -s $IFACE wol g
      15. iface eth0 inet6 manual
      16. pre-down ip -6 addr flush dev $IFACE
      Display All
    • Source Code

      1. root@OMV-NAS:~# cat /etc/resolv.conf
      2. search cire.be
      3. nameserver 192.168.2.77
      the 192.168.2.77 is the old DNS server.

      Now it is 192.168.2.91. But I changed it in the "Ethernet connection" window (screenshot below).

      Regard.



      PS :@macom. No, the gateway and DNS are not the same server (in this case). You have a lot of DNS server (google, from your provider, OpenDNS,...)
      Images
      • 2017-09-08_21h09_26.jpg

        69.75 kB, 1,062×703, viewed 44 times
    • piet wrote:

      Now it is 192.168.2.91. But I changed it in the "Ethernet connection" window (screenshot below).
      So, is the /etc/resolv.conf before or after changing the ethernet connection in the web interface?
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Hello,

      Source Code

      1. root@OMV-NAS:~# cat /etc/apt/sources.list
      2. #
      3. # deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150629-08:52]/ wheezy contrib main non-free
      4. #deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150629-08:52]/ wheezy contrib main non-free
      5. deb http://ftp.be.debian.org/debian/ wheezy main non-free contrib
      6. deb-src http://ftp.be.debian.org/debian/ wheezy main non-free contrib
      7. deb http://security.debian.org/ wheezy/updates main contrib non-free
      8. deb-src http://security.debian.org/ wheezy/updates main contrib non-free
      9. # wheezy-updates, previously known as 'volatile'
      10. deb http://ftp.be.debian.org/debian/ wheezy-updates main contrib non-free
      11. deb-src http://ftp.be.debian.org/debian/ wheezy-updates main contrib non-free
      Display All



      Source Code

      1. root@OMV-NAS:~# cat /etc/apt/sources.list.d/*.list
      2. deb http://packages.openmediavault.org/public stoneburner main
      3. # deb http://downloads.sourceforge.net/project/openmediavault/packages stoneburner main

      If you have a idea...

      Thank you very much.
      Regard.
    • piet wrote:

      Hello hello ?
      I was busy with more important things....

      I don't know why it isn't working. Everything looks correct. Maybe it is bug in OMV 2.x but it is so old, you should upgrade.
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!