Errors when Upgrading from OMV 3.0.99 to OMV 4

    • OMV 4.x
    • Upgrade 3.x -> 4.x

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

    • Errors when Upgrading from OMV 3.0.99 to OMV 4

      After going back and forth for a while on whether I should take the OMV 4 upgrade, I decided to finally do it. For the most part, it seems that everything went fine, and all of my plugins appear to be working even after the upgrade. I noticed this a the end of my output though, and it's making me nervous. I am not sure what to do about it. Any advice would be much appreciated. (Going to tag @ryecoaaron and @votdev on this.)

      Source Code

      1. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket -> /lib/systemd/system/lvm2-lvmpolld.socket.
      2. Processing triggers for libc-bin (2.24-11+deb9u3) ...
      3. Processing triggers for systemd (232-25+deb9u3) ...
      4. Processing triggers for php7.0-fpm (7.0.27-0+deb9u1) ...
      5. Processing triggers for resolvconf (1.79) ...
      6. Processing triggers for ca-certificates (20161130+nmu1) ...
      7. Updating certificates in /etc/ssl/certs...
      8. 0 added, 0 removed; done.
      9. Running hooks in /etc/ca-certificates/update.d...
      10. done.
      11. Processing triggers for initramfs-tools (0.130) ...
      12. update-initramfs: Generating /boot/initrd.img-4.9.0-0.bpo.5-amd64
      13. W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
      14. Errors were encountered while processing:
      15. collectd-core
      16. collectd
      17. openmediavault
      18. openmediavault-omvextrasorg
      19. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fa0bcca1730>
      20. Traceback (most recent call last):
      21. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      22. TypeError: 'NoneType' object is not callable
      23. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fa0bcca1730>
      24. Traceback (most recent call last):
      25. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      26. TypeError: 'NoneType' object is not callable
      27. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All

      The post was edited 1 time, last by David B ().

    • ryecoaaron wrote:

      try apt-get -f install
      I am getting the same thing unfortunately, but I have a little more detailed output this time.

      Source Code

      1. Reading package lists... Done
      2. Building dependency tree
      3. Reading state information... Done
      4. The following package was automatically installed and is no longer required:
      5. python-ndg-httpsclient
      6. Use 'apt autoremove' to remove it.
      7. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      8. 4 not fully installed or removed.
      9. After this operation, 0 B of additional disk space will be used.
      10. Setting up collectd-core (5.7.1-1.1) ...
      11. Job for collectd.service failed because the control process exited with error co de.
      12. See "systemctl status collectd.service" and "journalctl -xe" for details.
      13. invoke-rc.d: initscript collectd, action "start" failed.
      14. ● collectd.service - Statistics collection and monitoring daemon
      15. Loaded: loaded (/lib/systemd/system/collectd.service; enabled; vendor preset: enabled)
      16. Active: activating (auto-restart) (Result: exit-code) since Mon 2018-04-02 14 :08:28 EDT; 8ms ago
      17. Docs: man:collectd(1)
      18. man:collectd.conf(5)
      19. https://collectd.org
      20. Process: 12632 ExecStartPre=/usr/sbin/collectd -t (code=exited, status=1/FAILU RE)
      21. Apr 02 14:08:28 openmediavault systemd[1]: Failed to start Statistics collec…on.
      22. Apr 02 14:08:28 openmediavault systemd[1]: collectd.service: Unit entered fa…te.
      23. Apr 02 14:08:28 openmediavault systemd[1]: collectd.service: Failed with res…e'.
      24. Hint: Some lines were ellipsized, use -l to show in full.
      25. dpkg: error processing package collectd-core (--configure):
      26. subprocess installed post-installation script returned error exit status 1
      27. dpkg: dependency problems prevent configuration of collectd:
      28. collectd depends on collectd-core (>= 5.7.1-1.1); however:
      29. Package collectd-core is not configured yet.
      30. collectd depends on collectd-core (<< 6~); however:
      31. Package collectd-core is not configured yet.
      32. dpkg: error processing package collectd (--configure):
      33. dependency problems - leaving unconfigured
      34. dpkg: dependency problems prevent configuration of openmediavault:
      35. openmediavault depends on collectd; however:
      36. Package collectd is not configured yet.
      37. dpkg: error processing package openmediavault (--configure):
      38. dependency problems - leaving unconfigured
      39. dpkg: dependency problems prevent configuration of openmediavault-omvextrasorg:
      40. openmediavault-omvextrasorg depends on openmediavault (>= 3.0.67); however:
      41. Package openmediavault is not configured yet.
      42. dpkg: error processing package openmediavault-omvextrasorg (--configure):
      43. dependency problems - leaving unconfigured
      44. Errors were encountered while processing:
      45. collectd-core
      46. collectd
      47. openmediavault
      48. openmediavault-omvextrasorg
      49. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
    • I also keep getting these e-mails every half-hour @ryecoaaron.

      Source Code

      1. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pam.so' - /usr/lib/php5/20131226/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
      2. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pam.so' - /usr/lib/php5/20131226/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
      3. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pam.so' - /usr/lib/php5/20131226/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
    • Looks like php didn't upgrade. What is the output of: dpkg -l | grep -E "php|openm"

      Did you reboot by any chance?
      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!
    • ryecoaaron wrote:

      Looks like php didn't upgrade. What is the output of: dpkg -l | grep -E "php|openm"

      Did you reboot by any chance?

      Here it is! It might be worth noting that after this happened the first time around, I restored a CloneZilla image that I took before the upgrade, tried the upgrade again, and it happened again.

      Source Code

      1. iU openmediavault 4.1.4-1 all openmediavault - The open network attached storage solution
      2. ii openmediavault-goodsync 1.0.1 all This plugin simplifies the use of GoodSync on OpenMediaVault 3.
      3. ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      4. ii openmediavault-letsencrypt 3.4.5 all Generate free and valid SSL certificates for OMV
      5. ii openmediavault-mysql 3.0.4 all MySQL plugin for OpenMediaVault.
      6. ii openmediavault-nginx 3.0.11 all Nginx plugin for OpenMediaVault.
      7. iU openmediavault-omvextrasorg 3.4.29 all OMV-Extras.org Package Repositories for OpenMediaVault
      8. ii openmediavault-openvpn 3.0.6 all OpenVPN plugin for OpenMediaVault.
      9. ii openmediavault-resetperms 3.3 all Reset Permissions
      10. ii openmediavault-sensors 3.0 all Provides a cpu temperature monitor
      11. ii openmediavault-wol 3.3 all OpenMediaVault WOL plugin
      12. ii php-bcmath 1:7.0+49 all Bcmath module for PHP [default]
      13. ii php-cgi 1:7.0+49 all server-side, HTML-embedded scripting language (CGI binary) (default)
      14. ii php-common 1:49 all Common files for PHP packages
      15. ii php-fpm 1:7.0+49 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
      16. ii php-mbstring 1:7.0+49 all MBSTRING module for PHP [default]
      17. ii php-pam 1.0.3-1 amd64 pam module for PHP 7
      18. ii php-xml 1:7.0+49 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
      19. ii php5 5.6.33+dfsg-0+deb8u1 all server-side, HTML-embedded scripting language (metapackage)
      20. ii php5-cgi 5.6.33+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (CGI binary)
      21. ii php5-cli 5.6.33+dfsg-0+deb8u1 amd64 command-line interpreter for the php5 scripting language
      22. ii php5-common 5.6.33+dfsg-0+deb8u1 amd64 Common files for packages built from the php5 source
      23. ii php5-curl 5.6.33+dfsg-0+deb8u1 amd64 CURL module for php5
      24. ii php5-fpm 5.6.33+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
      25. ii php5-gd 5.6.33+dfsg-0+deb8u1 amd64 GD module for php5
      26. ii php5-json 1.3.6-1 amd64 JSON module for php5
      27. ii php5-mysqlnd 5.6.33+dfsg-0+deb8u1 amd64 MySQL module for php5 (Native Driver)
      28. rc php5-pam 1.0.3-4 amd64 pam module for PHP 5
      29. ii php5-pgsql 5.6.33+dfsg-0+deb8u1 amd64 PostgreSQL module for php5
      30. ii php5-sqlite 5.6.33+dfsg-0+deb8u1 amd64 SQLite module for php5
      31. ii php7.0-bcmath 7.0.27-0+deb9u1 amd64 Bcmath module for PHP
      32. ii php7.0-cgi 7.0.27-0+deb9u1 amd64 server-side, HTML-embedded scripting language (CGI binary)
      33. ii php7.0-cli 7.0.27-0+deb9u1 amd64 command-line interpreter for the PHP scripting language
      34. ii php7.0-common 7.0.27-0+deb9u1 amd64 documentation, examples and common module for PHP
      35. ii php7.0-fpm 7.0.27-0+deb9u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
      36. ii php7.0-json 7.0.27-0+deb9u1 amd64 JSON module for PHP
      37. ii php7.0-mbstring 7.0.27-0+deb9u1 amd64 MBSTRING module for PHP
      38. ii php7.0-opcache 7.0.27-0+deb9u1 amd64 Zend OpCache module for PHP
      39. ii php7.0-readline 7.0.27-0+deb9u1 amd64 readline module for PHP
      40. ii php7.0-xml 7.0.27-0+deb9u1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
      Display All


      And I did try rebooting. After doing so, I am now greeted with this error message when I log in.

      The property 'nullpasswords' does not exist in the model 'conf.service.smb'.

      Source Code

      1. Error #0:
      2. OMV\AssertException: The property 'nullpasswords' does not exist in the model 'conf.service.smb'. in /usr/share/php/openmediavault/config/configobject.inc:71
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/config/configobject.inc(186): OMV\Config\ConfigObject->assertExists('nullpasswords')
      5. #1 /usr/share/php/openmediavault/config/configobject.inc(271): OMV\Config\ConfigObject->set('nullpasswords', '0', false)
      6. #2 /usr/share/php/openmediavault/config/configobject.inc(233): OMV\Config\ConfigObject->setFlatAssoc(Array, false, false)
      7. #3 /usr/share/php/openmediavault/config/database.inc(90): OMV\Config\ConfigObject->setAssoc(Array, false)
      8. #4 /usr/share/openmediavault/engined/module/samba.inc(72): OMV\Config\Database->get('conf.service.sm...')
      9. #5 /usr/share/openmediavault/engined/rpc/services.inc(56): OMVModuleSamba->getStatus()
      10. #6 [internal function]: OMVRpcServiceServices->getStatus(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      12. #8 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getStatus', Array, Array)
      13. #9 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 1)
      14. #10 {main}
      Display All

      The post was edited 1 time, last by David B ().

    • David B wrote:

      After clearing my web browser's cache, it's even more screwed up now. All that's displaying is the OMV logo.
      That is because your previous post shows that the openmediavault package is at iU (not fully installed). Try apt-get -f install. I have had no problem with upgrades from 3.x to 4.x but I haven't tried lately. Seems like you have something installed that still wants php5.
      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!
    • ryecoaaron wrote:

      David B wrote:

      After clearing my web browser's cache, it's even more screwed up now. All that's displaying is the OMV logo.
      That is because your previous post shows that the openmediavault package is at iU (not fully installed). Try apt-get -f install. I have had no problem with upgrades from 3.x to 4.x but I haven't tried lately. Seems like you have something installed that still wants php5.
      I tried apt-get -f install but unfortunately it still did not resolve the problem. Concerning something still wanting php5, could that be the fault of the openmediavault-nginx plugin? I use it for my NextCloud installation.
    • David B wrote:

      could that be the fault of the openmediavault-nginx plugin?
      It should get upgraded to the OMV 4.x version that uses php7 although in your output, the omv-extras plugins are still at 3.x version (probably because they depend on OMV 4.x which hasn't finished installing yet).
      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!
    • David B wrote:

      What about collectd? Is that failing because of OMV or is OMV failing because of it?
      Hard to say. Better question for Volker.
      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!
    • ryecoaaron wrote:

      David B wrote:

      What about collectd? Is that failing because of OMV or is OMV failing because of it?
      Hard to say. Better question for Volker.
      Alright. I've already tagged him here so I'll just wait it out. Yesterday was the last free time that I'll have in a while and I need my OMV server to work perfectly, so I restored my OMV 3 CloneZilla image for now. When I play with the upgrade again, I will be doing so in a VM of the CloneZilla image. Hopefully I will be able to sort out issues in the VM before doing the upgrade to my actual OMV server.
    • I think the problem is that collected was not configured correctly because of a malformed config file:

      Process: 12632 ExecStartPre=/usr/sbin/collectd -t
      But i don't have any idea why this happens. I migrated many test systems from 3.x to 4.x without such issues.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • votdev wrote:

      I think the problem is that collected was not configured correctly because of a malformed config file:

      Process: 12632 ExecStartPre=/usr/sbin/collectd -t
      But i don't have any idea why this happens. I migrated many test systems from 3.x to 4.x without such issues.
      Well that sucks. Is there anything I can do to fix the possibly-malformed config file before trying to take the upgrade again? I restored a CloneZilla image I had of OMV 3 as a way to undo the damage that the upgrade caused.
    • Try

      # omv-mkconf collectd
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • @votdev I finally had time to the OMV upgrade again after running this, and it still did not work. Any other suggestions?

      Here are some of the errors that I've seen when I try to run apt upgrade. I am not sure if any of them will be helpful. Because I do not want to screw up my live OMV server, I'm playing around with the upgrade in a VM clone before I try to do it for real.

      [IMG:https://i.imgur.com/8E688zY.png]
      [IMG:https://i.imgur.com/7sIOJ9D.png]

      The post was edited 1 time, last by David B: Added error screenshots. ().