ERROR 500 on applying config changes after update OMV5 -> OMV6

  • Hello together!

    I sucessfully ran the update from OMV5 to OMV6, but now always get an error when confirming to apply pending config changes. Any ideas?


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color postfix 2>&1' with exit code '1': CSNAS01.local:


    ......

    ----------

    ID: postfix_set_permissions

    Function: cmd.run

    Name: postfix set-permissions

    Result: False

    Comment: Command "postfix set-permissions" run

    Started: 08:35:20.776213

    Duration: 948.918 ms

    Changes:

    ----------

    pid:

    1312011

    retcode:

    1

    stderr:

    chown: cannot access '/usr/share/doc/postfix/html': No such file or directory

    stdout:

    ----------

    ID: start_postfix_service

    Function: service.running

    Name: postfix

    Result: True

    Comment: The service postfix is already running

    Started: 08:35:21.799155

    Duration: 272.99 ms

    Changes:


    Summary for CSNAS01.local

    -------------

    Succeeded: 19 (changed=2)

    Failed: 1

    -------------

    Total states run: 20

    Total run time: 9.735 s in /usr/share/php/openmediavault/system/process.inc:197

    Stack trace:

    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/config.inc(170): OMV\Engine\Module\ServiceAbstract->deploy()

    #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)

    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatuscR...', '/tmp/bgoutput0v...')

    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))

    #7 /usr/share/openmediavault/engined/rpc/config.inc(192): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)

    #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)

    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)

    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)

    #12 {main}

    • Offizieller Beitrag

    chown: cannot access '/usr/share/doc/postfix/html': No such file or directory

    I do not have this directory on my system either, but for some reason it is complaining about it. Try if creating it solves the issue


    mkdir /usr/share/doc/postfix/html as root

  • The error changed now:


    ID: postfix_set_permissions

    Function: cmd.run

    Name: postfix set-permissions

    Result: False

    Comment: Command "postfix set-permissions" run

    Started: 08:55:49.689773

    Duration: 2017.023 ms

    Changes:

    ----------

    pid:

    1315776

    retcode:

    1

    stderr:

    chown: cannot access '/usr/lib/postfix/sbin/dict_ldap.so': No such file or directory

    stdout:

  • Digging a little deeper there seems to be some issue with the postfix install.

    "postfix set-permissions" complains about one file after the other.


    I now see that "postfix set-permissions" expects all kind of files to be in /usr/lib/postfix/sbin but they are actually in /etc/postfix .


    No idea why ...

  • OK,


    I commented out the missing files from /etc/postfix/postfix-files


    The error is gone, but I'm not sure if there might be any negative impact from this...

    And why this happens at all.

  • What is the output of postconf -d -h config_directory it should be /etc/postfix

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Jetzt mitmachen!

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