Why php5 AND php7 packages in 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.

    • Why php5 AND php7 packages in OMV-4 ?

      Since upgrade from OMV-3 to OMV-4, i receive mails from monit or cron daemon each 30 mn :

      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
      and here is error message from systemctl :


      Source Code

      1. openmv php5-fpm[1126]: [12-Dec-2017 21:38:04] NOTICE: PHP message: 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 failed 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
      So i stopped Monit service and notification via Gui.

      Do i have to remove php5 packages ?
      Debian GNU/Linux 9.3 (Stretch) - OpenMediaVault 4.1.4-1 Arrakis - Kernel 4.15.0-0.bpo.2-amd64 - CPU Intel Pentium G3460
    • You potentially had an app using php5 packages so they couldn't be uninstalled. Try uninstalling. If they uninstall an app you want, then you will know.
      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!
    • Ok, so i try to remove plugins MySQL and Let's encrypt and have i new error :

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --auto-remove --purge remove openmediavault-mysql openmediavault-letsencrypt 2>&1' with exit code '100': Reading package lists...
      3. Building dependency tree...
      4. Reading state information...
      5. The following packages will be REMOVED:
      6. certbot* dbconfig-common* mysql-server* mywebsql*
      7. openmediavault-letsencrypt* openmediavault-mysql* php5* php5-cgi*
      8. php5-mysqlnd* php5-pgsql* php5-sqlite* python-acme* python-certbot*
      9. python-cffi-backend* python-chardet* python-configargparse*
      10. python-configobj* python-cryptography* python-enum34* python-funcsigs*
      11. python-idna* python-ipaddress* python-mock* python-openssl*
      12. python-parsedatetime* python-pbr* python-pyasn1* python-requests*
      13. python-rfc3339* python-six* python-urllib3* python-zope.component*
      14. python-zope.event* python-zope.interface*
      15. 0 upgraded, 0 newly installed, 34 to remove and 0 not upgraded.
      16. After this operation, 32.7 MB disk space will be freed.
      17. (Reading database ...
      18. (Reading database ... 5%
      19. (Reading database ... 10%
      20. (Reading database ... 15%
      21. (Reading database ... 20%
      22. (Reading database ... 25%
      23. (Reading database ... 30%
      24. (Reading database ... 35%
      25. (Reading database ... 40%
      26. (Reading database ... 45%
      27. (Reading database ... 50%
      28. (Reading database ... 55%
      29. (Reading database ... 60%
      30. (Reading database ... 65%
      31. (Reading database ... 70%
      32. (Reading database ... 75%
      33. (Reading database ... 80%
      34. (Reading database ... 85%
      35. (Reading database ... 90%
      36. (Reading database ... 95%
      37. (Reading database ... 100%
      38. (Reading database ...
      39. 50357 files and directories currently installed.)
      40. Removing openmediavault-letsencrypt (3.4.4) ...
      41. Removing certbot (0.10.2-1) ...
      42. Removing openmediavault-mysql (3.0.4) ...
      43. Removing dbconfig-common (2.0.8) ...
      44. Removing mysql-server (5.5.9999+default) ...
      45. Removing mywebsql (3.7-omv1) ...
      46. Removing php5 (5.6.30+dfsg-0+deb8u1) ...
      47. Removing php5-cgi (5.6.30+dfsg-0+deb8u1) ...
      48. php5_invoke prerm: Disable module pgsql for cgi SAPI
      49. php5_invoke prerm: Disable module sqlite3 for cgi SAPI
      50. php5_invoke prerm: Disable module pdo_sqlite for cgi SAPI
      51. php5_invoke prerm: Disable module json for cgi SAPI
      52. php5_invoke prerm: Disable module opcache for cgi SAPI
      53. php5_invoke prerm: Disable module pdo_pgsql for cgi SAPI
      54. php5_invoke prerm: Disable module mysqlnd for cgi SAPI
      55. php5_invoke prerm: Disable module pdo for cgi SAPI
      56. php5_invoke prerm: Disable module pdo_mysql for cgi SAPI
      57. php5_invoke prerm: Disable module pam for cgi SAPI
      58. php5_invoke prerm: Disable module mysql for cgi SAPI
      59. php5_invoke prerm: Disable module mysqli for cgi SAPI
      60. Removing php5-mysqlnd (5.6.30+dfsg-0+deb8u1) ...
      61. php5_invoke prerm: Disable module mysqlnd for fpm SAPI
      62. php5_invoke prerm: Disable module mysqlnd for cli SAPI
      63. php5_invoke prerm: Disable module mysql for fpm SAPI
      64. php5_invoke prerm: Disable module mysql for cli SAPI
      65. php5_invoke prerm: Disable module mysqli for fpm SAPI
      66. php5_invoke prerm: Disable module mysqli for cli SAPI
      67. php5_invoke prerm: Disable module pdo_mysql for fpm SAPI
      68. php5_invoke prerm: Disable module pdo_mysql for cli SAPI
      69. Removing php5-pgsql (5.6.30+dfsg-0+deb8u1) ...
      70. php5_invoke prerm: Disable module pgsql for fpm SAPI
      71. php5_invoke prerm: Disable module pgsql for cli SAPI
      72. php5_invoke prerm: Disable module pdo_pgsql for fpm SAPI
      73. php5_invoke prerm: Disable module pdo_pgsql for cli SAPI
      74. Removing php5-sqlite (5.6.30+dfsg-0+deb8u1) ...
      75. php5_invoke prerm: Disable module sqlite3 for fpm SAPI
      76. php5_invoke prerm: Disable module sqlite3 for cli SAPI
      77. php5_invoke prerm: Disable module pdo_sqlite for fpm SAPI
      78. php5_invoke prerm: Disable module pdo_sqlite for cli SAPI
      79. Removing python-certbot (0.10.2-1) ...
      80. Removing python-acme (0.10.2-1) ...
      81. Removing python-openssl (16.2.0-1) ...
      82. Removing python-cryptography (1.7.1-3) ...
      83. Removing python-cffi-backend (1.9.1-2) ...
      84. Removing python-requests (2.12.4-1) ...
      85. Removing python-chardet (2.3.0-2) ...
      86. Removing python-configargparse (0.11.0-1) ...
      87. Removing python-configobj (5.0.6-2) ...
      88. Removing python-enum34 (1.1.6-1) ...
      89. Removing python-mock (2.0.0-3) ...
      90. Removing python-funcsigs (1.0.2-3) ...
      91. Removing python-idna (2.2-1) ...
      92. Removing python-ipaddress (1.0.17-1) ...
      93. Removing python-parsedatetime (2.1-3) ...
      94. Removing python-pbr (1.10.0-1) ...
      95. Removing python-pyasn1 (0.1.9-2) ...
      96. Removing python-rfc3339 (1.0-4) ...
      97. Removing python-urllib3 (1.19.1-1) ...
      98. Removing python-six (1.10.0-3) ...
      99. Removing python-zope.component (4.3.0-1) ...
      100. Removing python-zope.event (4.2.0-1) ...
      101. Removing python-zope.interface (4.3.2-1) ...
      102. Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ...
      103. Processing triggers for man-db (2.7.6.1-2) ...
      104. Processing triggers for openmediavault (4.0.14-1) ...
      105. Restarting engine daemon ...
      106. (Reading database ...
      107. (Reading database ... 5%
      108. (Reading database ... 10%
      109. (Reading database ... 15%
      110. (Reading database ... 20%
      111. (Reading database ... 25%
      112. (Reading database ... 30%
      113. (Reading database ... 35%
      114. (Reading database ... 40%
      115. (Reading database ... 45%
      116. (Reading database ... 50%
      117. (Reading database ... 55%
      118. (Reading database ... 60%
      119. (Reading database ... 65%
      120. (Reading database ... 70%
      121. (Reading database ... 75%
      122. (Reading database ... 80%
      123. (Reading database ... 85%
      124. (Reading database ... 90%
      125. (Reading database ... 95%
      126. (Reading database ... 100%
      127. (Reading database ... 48545 files and directories currently installed.)
      128. Purging configuration files for mywebsql (3.7-omv1) ...
      129. rm: cannot remove '/var/lib/mywebsql': No such file or directory
      130. dpkg: error processing package mywebsql (--purge):
      131. subprocess installed post-removal script returned error exit status 1
      132. Purging configuration files for openmediavault-letsencrypt (3.4.4) ...
      133. Purging configuration files for php5-mysqlnd (5.6.30+dfsg-0+deb8u1) ...
      134. Purging configuration files for python-pbr (1.10.0-1) ...
      135. Purging configuration files for openmediavault-mysql (3.0.4) ...
      136. Purging configuration files for php5-cgi (5.6.30+dfsg-0+deb8u1) ...
      137. Purging configuration files for dbconfig-common (2.0.8) ...
      138. Purging configuration files for php5-pgsql (5.6.30+dfsg-0+deb8u1) ...
      139. Purging configuration files for certbot (0.10.2-1) ...
      140. Purging configuration files for php5-sqlite (5.6.30+dfsg-0+deb8u1) ...
      141. Errors were encountered while processing:
      142. mywebsql
      143. E: Sub-process /usr/bin/dpkg returned an error code (1) in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:151
      144. Stack trace:
      145. #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMVRpcServicePluginMgmt->{closure}('/tmp/bgstatusqp...', '/tmp/bgoutputeB...')
      146. #1 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(155): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      147. #2 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
      148. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      149. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('remove', Array, Array)
      150. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Plugin', 'remove', Array, Array, 1)
      151. #6 {main}
      Display All
      Debian GNU/Linux 9.3 (Stretch) - OpenMediaVault 4.1.4-1 Arrakis - Kernel 4.15.0-0.bpo.2-amd64 - CPU Intel Pentium G3460
    • Ok, thanks @ryecoaaron, to be able to see the new plugins for OMV 4, i had to install the dirmngr package before to run

      Source Code

      1. wget http://omv-extras.org/openmediavault-omvextrasorg_latest_all4.deb
      2. dpkg -i openmediavault-omvextrasorg_latest_all4.deb
      I have no more messages from Monit or cron about php error.
      Debian GNU/Linux 9.3 (Stretch) - OpenMediaVault 4.1.4-1 Arrakis - Kernel 4.15.0-0.bpo.2-amd64 - CPU Intel Pentium G3460
    • Titanet wrote:

      i had to install the dirmngr package before to run
      That is why the omv-extras install procedure always has apt-get -f install after the dpkg command. It will install the dependencies omv-extras needs and one of those is dirmngr.
      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!