Cannot declare class OMVModulePhp5fpm

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


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


    omv-engined -d -f

    Code
    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

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


    dpkg -l | grep fpm



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


    omv-initsystem error :(



    omv-aptclean


    Code
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7bec9a68c8>
    Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
    TypeError: 'NoneType' object is not callable
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f7bec9a68c8>
    Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
    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

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

    Code
    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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!