Cannot declare class OMVModulePhp5fpm

    • Resolved
    • OMV 4.x

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

    • Cannot declare class OMVModulePhp5fpm

      New

      After upgrade from 3.0.99 im not able to login via GUI:

      Source Code

      1. Fehler #0:
      2. OMV\Rpc\Exception: Failed to connect to socket: No such file or directory in /usr/share/php/openmediavault/rpc/rpc.inc:140
      3. Stack trace:
      4. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      5. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      9. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      10. #6 {main}


      omv-engined -d -f

      Source Code

      1. PHP Fatal error: Cannot declare class OMVModulePhp5fpm, because the name is already in use in /usr/share/openmediavault/engined/module/phpfpm.inc on line 51


      dpkg -l | grep openmediavault

      Source Code

      1. ii openmediavault 4.1.14-1 all openmediavault - The open network attached storage solution
      2. ii openmediavault-autoshutdown 4.0.4 all OpenMediaVault AutoShutdown Plugin
      3. ii openmediavault-clamav 4.1.7-1 all OpenMediaVault ClamAV plugin
      4. rc openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
      5. ii openmediavault-omvextrasorg 4.1.13 all OMV-Extras.org Package Repositories for OpenMediaVault
      6. ii openmediavault-snapraid 3.7.3 all snapraid plugin for OpenMediaVault.
      7. ii openmediavault-unionfilesystems 4.0.2 all Union filesystems plugin for OpenMediaVault.
      8. ii openmediavault-webdav 4.0 all OpenMediaVault WebDAV plugin.


      dpkg -l | grep fpm


      Source Code

      1. ii php-fpm 1:7.0+49 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
      2. rc php5-fpm 5.6.38+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
      3. ii php7.0-fpm 7.0.30-0+deb9u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)

      omv-initsystem error :(

      Source Code

      1. Traceback (most recent call last):
      2. File "/usr/sbin/omv-confdbadm", line 74, in <module>
      3. sys.exit(main())
      4. File "/usr/sbin/omv-confdbadm", line 70, in main
      5. return cmd_inst.execute(*sys.argv)
      6. File "/usr/share/openmediavault/confdbadm/commands.d/exists.py", line 54, in execute
      7. return 0 if db.exists(cmd_args.id, filter) else 1
      8. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 157, in exists
      9. query.execute()
      10. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 669, in execute
      11. self._response = self._elements_to_object(elements)
      12. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 453, in _elements_to_object
      13. obj.set_dict(self._element_to_dict(element), False)
      14. File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 205, in set_dict
      15. self.set(key, value, validate)
      16. File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 183, in set
      17. value = self.model.property_convert(name, value)
      18. File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 320, in property_convert
      19. result = int(value)
      Display All

      omv-aptclean

      Source Code

      1. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7bec9a68c8>
      2. Traceback (most recent call last):
      3. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      4. TypeError: 'NoneType' object is not callable
      5. Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7bec9a68c8>
      6. Traceback (most recent call last):
      7. File "/usr/lib/python3.5/weakref.py", line 117, in remove
      8. TypeError: 'NoneType' object is not callable
      fixed a little bit with known python bug in the forum. after i changed /usr/share/openmediavault/engined/module/phpfpm.inc line 22 from "class OMVModulePhp5fpm extends \OMV\Engine\Module\ServiceAbstract {" to "class OMVModulePhp7fpm extends \OMV\Engine\Module\ServiceAbstract {"

      i was able to login now with some new bugs :( I'm going to sleep now and continue tomorrow

      The post was edited 2 times, last by frozen1900 ().

    • New

      It seems the upgrade process was not successful. I think it will be nearly impossible to fix all the problems manually.
      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
    • New

      Maybe there are some hidden errors, but looks like everything is working now.
      this helped a lot.

      Source Code

      1. fixed a little bit with known python bug in the forum. after i changed /usr/share/openmediavault/engined/module/phpfpm.inc line 22 from "class OMVModulePhp5fpm extends \OMV\Engine\Module\ServiceAbstract {" to "class OMVModulePhp7fpm extends \OMV\Engine\Module\ServiceAbstract {"



      the other errors came through orphaned old plugins. For this I had to install and uninstall some plugins (f.e. plex and snmp). then update omv-extras to version 4 and install the plugins i needed