OMV 4 Error by upgrade to php 7.1

  • Hi OMV Community,


    i have upgrade from PhP7.0 to PhP7.1. When i will acces the OMV Web Controll pannel i can't acces it. i have run omv-engined -d -f


    It comes an Error:


    root@nas:~# omv-engined -d -f
    PHP Fatal error: Uncaught Error: Call to undefined function posix_access() in /usr/share/php/openmediavault/globals.inc:129
    Stack trace:
    #0 /usr/share/php/openmediavault/environment.inc(24): require_once()
    #1 /usr/share/php/openmediavault/autoloader.inc(30): include_once('/usr/share/php/...')
    #2 [internal function]: {closure}('OMV\\Environment')
    #3 /usr/sbin/omv-engined(356): spl_autoload_call('OMV\\Environment')
    #4 {main}
    thrown in /usr/share/php/openmediavault/globals.inc on line 129
    omv-engined[2304]: PHP Fatal error: Uncaught Error: Call to undefined function posix_access() in /usr/share/php/openmediavault/globals.inc:129
    Stack trace:
    #0 /usr/share/php/openmediavault/environment.inc(24): require_once()
    #1 /usr/share/php/openmediavault/autoloader.inc(30): include_once('/usr/share/php/...')
    #2 [internal function]: {closure}('OMV\\Environment')
    #3 /usr/sbin/omv-engined(356): spl_autoload_call('OMV\\Environment')
    #4 {main}
    thrown in /usr/share/php/openmediavault/globals.inc on line 129
    PHP Fatal error: Uncaught Error: Call to undefined function posix_access() in /usr/share/php/openmediavault/globals.inc:129
    Stack trace:
    #0 /usr/share/php/openmediavault/environment.inc(24): require_once()
    #1 /usr/share/php/openmediavault/autoloader.inc(30): include_once('/usr/share/php/...')
    #2 [internal function]: {closure}('OMV\\Environment')
    #3 /usr/sbin/omv-engined(356): spl_autoload_call('OMV\\Environment')
    #4 {main}
    thrown in /usr/share/php/openmediavault/globals.inc on line 129


    thank you in advance.


    i have backup the PhP7.0 files


    HydrexHD

    • Offizieller Beitrag

    You shouldn't upgrade php on the OMV install (not supported). If you need a newer php, I recommend using docker or a VM.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Install the docker plugin and then google for a good container image that includes php 7.1 and your choice of web server.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Is there a way I can upgrade it to Php 7.1 without breaking OMV ?

    Use docker. php 7.1 isn't in the stretch repos. Adding an external repo could break something with OMV. While OMV won't use anything but 7.0 (because it is hard coded), I wouldn't risk it.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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