error while updateing

  • Dear OMV-Board,


    since probably 3 or 4 updates of OMV i always see this block in my shell. Not certain, if this causes issues, everything currently works fine.


    Setting up openmediavault (6.0.9-2) ...

    Creating configuration database ...

    Migrating configuration database ...

    Setting up Salt environment ...

    [ERROR ] Command '/usr/bin/patch' failed with return code: 1

    [ERROR ] stdout: patching file /tmp/__salt.tmp.xspz_j4z (read from /lib/python3/dist-packages/salt/modules/network.py)

    Reversed (or previously applied) patch detected! Skipping patch.

    1 out of 1 hunk ignored -- saving rejects to file /tmp/__salt.tmp.9nyjohfa

    [ERROR ] retcode: 1

    [ERROR ] Command '/usr/bin/patch' failed with return code: 1

    [ERROR ] stdout: patching file /tmp/__salt.tmp.ekayllxd (read from /lib/python3/dist-packages/salt/fileserver/roots.py)

    Reversed (or previously applied) patch detected! Skipping patch.

    1 out of 1 hunk ignored -- saving rejects to file /tmp/__salt.tmp.t4wb4n28

    [ERROR ] retcode: 1

    Processing system modifications ...


    I tried to view the "saved" reject file, but there was nothing.

    Thanks for you attention.


    If you need any more information about my setup, don't hesitate to ask ;)


    Kind regards

    Marc

  • Update: i'd like to specify my "everything works" better.

    The samba shares on my ZFS tank are still usable, it boots fine and the webinterface is available.


    but i cannot see mounted filesystems or shares, in my syslog i get errors like this:


    Jan 20 14:34:41 hades omv-engined[6389]: PHP Fatal error: Uncaught TypeError: Argument 2 passed to OMV\Rpc\TraceException::__construct() must be of the type int, null given, called in /usr/share/php/openmediavault/rpc/serviceabstract.inc on line 694 and defined in /usr/share/php/openmediavault/rpc/traceexception.inc:38

    Jan 20 14:34:41 hades omv-engined[6389]: Stack trace:

    Jan 20 14:34:41 hades omv-engined[6389]: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(694): OMV\Rpc\TraceException->__construct(NULL, NULL, NULL)

    Jan 20 14:34:41 hades omv-engined[6389]: #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(303): OMV\Rpc\ServiceAbstract->waitAsyncProcs(Array)

    Jan 20 14:34:41 hades omv-engined[6389]: #2 [internal function]: Engined\Rpc\OMVRpcServiceFileSystemMgmt->enumerateMountedFilesystems(NULL, Array)

    Jan 20 14:34:41 hades omv-engined[6389]: #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    Jan 20 14:34:41 hades omv-engined[6389]: #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateMounte...', NULL, Array)

    Jan 20 14:34:41 hades omv-engined[6389]: #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('FileSystemMgmt', 'enumerateMounte...', NULL, Array, 1)

    Jan 20 14:34:41 hades omv-engined[6389]: #6 {main}

    Jan 20 14:34:41 hades omv-engined[6389]: thrown in /usr/share/php/openmediavault/rpc/traceexception.inc on line 38

  • I hope this will fix the issue: https://github.com/openmediava…66188d772147a20107a604729

    Please note, the above error hides another error, so don't wonder that you will see a different error instead. But the new error can help to identify the origin problem.


    Patch will be available in next version.

  • How about the errors in post #1? I am seeing these as late as of 6.0.9-3 to 6.0.9-4 update.

    Those errors are still normal

  • i still cannot see my filesystem or shared folders. if i'm not mistagen, this is the corresponding RPC error now.


    Seeing the tab filesystem

    Jan 28 11:25:20 hades omv-engined[60386]: PHP Fatal error: Uncaught TypeError: Argument 1 passed to OMV\BaseException::setHttpStatusCode() must be of the type int, null given, called in /usr/share/php/openmediavault/rpc/serviceabstract.inc on line 695 and defined in /usr/share/php/openmediavault/baseexception.inc:47
    Jan 28 11:25:20 hades omv-engined[60386]: Stack trace:
    Jan 28 11:25:20 hades omv-engined[60386]: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(695): OMV\BaseException->setHttpStatusCode(NULL)
    Jan 28 11:25:20 hades omv-engined[60386]: #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(303): OMV\Rpc\ServiceAbstract->waitAsyncProcs(Array)
    Jan 28 11:25:20 hades omv-engined[60386]: #2 [internal function]: Engined\Rpc\OMVRpcServiceFileSystemMgmt->enumerateMountedFilesystems(NULL, Array)
    Jan 28 11:25:20 hades omv-engined[60386]: #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    Jan 28 11:25:20 hades omv-engined[60386]: #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateMounte...', NULL, Array)
    Jan 28 11:25:20 hades omv-engined[60386]: #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('FileSystemMgmt', 'enumerateMounte...', NULL, Array, 1)
    Jan 28 11:25:20 hades omv-engined[60386]: #6 {main}
    Jan 28 11:25:20 hades omv-engined[60386]: thrown in /usr/share/php/openmediavault/baseexception.inc on line 47


    Later seeing the tab shared folders.

    Jan 28 11:28:00 hades omv-engined[61447]: PHP Fatal error: Uncaught TypeError: Argument 1 passed to OMV\BaseException::setHttpStatusCode() must be of the type int, null given, called in /usr/share/php/openmediavault/rpc/serviceabstract.inc on line 695 and defined in /usr/share/php/openmediavault/baseexception.inc:47
    Jan 28 11:28:00 hades omv-engined[61447]: Stack trace:
    Jan 28 11:28:00 hades omv-engined[61447]: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(695): OMV\BaseException->setHttpStatusCode(NULL)
    Jan 28 11:28:00 hades omv-engined[61447]: #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(303): OMV\Rpc\ServiceAbstract->waitAsyncProcs(Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #2 [internal function]: Engined\Rpc\OMVRpcServiceFileSystemMgmt->enumerateMountedFilesystems(NULL, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateMounte...', NULL, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('FileSystemMgmt', 'enumerateMounte...', NULL, Array, 1)
    Jan 28 11:28:00 hades omv-engined[61447]: #6 {main}
    Jan 28 11:28:00 hades omv-engined[61447]: thrown in /usr/share/php/openmediavault/baseexception.inc on line 47

  • Okay i try to explain as detailed as possible :)


    The whole server was installed from stock using OMV 5 installer about 1.5 years ago. I also enabled the ZFS plugin and created /poolz1 as root for all my shares.

    When i read that OMV6 does support ZFS now, i dared the upgrade. Everything worked without a problem, except, i cannot see my shared folders or ZFS filesystem in the web interface.


    Please finde attached the OMV-Reports, just manually stripped by IPv6 details.

    Let me know if i can provide anything else!


    Cheers

    Marc

  • Checking the server after the last update the error while viewing the shared folders is this:


    Jan 28 11:28:00 hades omv-engined[61447]: PHP Fatal error: Uncaught TypeError: Argument 1 passed to OMV\BaseException::setHttpStatusCode() must be of the type int, null given, called in /usr/share/php/openmediavault/rpc/serviceabstract.inc on line 695 and defined in /usr/share/php/openmediavault/baseexception.inc:47
    Jan 28 11:28:00 hades omv-engined[61447]: Stack trace:
    Jan 28 11:28:00 hades omv-engined[61447]: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(695): OMV\BaseException->setHttpStatusCode(NULL)
    Jan 28 11:28:00 hades omv-engined[61447]: #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(303): OMV\Rpc\ServiceAbstract->waitAsyncProcs(Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #2 [internal function]: Engined\Rpc\OMVRpcServiceFileSystemMgmt->enumerateMountedFilesystems(NULL, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateMounte...', NULL, Array)
    Jan 28 11:28:00 hades omv-engined[61447]: #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('FileSystemMgmt', 'enumerateMounte...', NULL, Array, 1)
    Jan 28 11:28:00 hades omv-engined[61447]: #6 {main}
    Jan 28 11:28:00 hades omv-engined[61447]: thrown in /usr/share/php/openmediavault/baseexception.inc on line 47

  • votdev

    Added the Label resolved
  • Hi together,


    this initial problem (re-)appeared now while applying updates.

    However this time i don't see any side effect next to the error itself.


    Everything seems to work fine, so maybe this is just a FYI.



    quote:

    Unpacking openmediavault (6.0.13-1) over (6.0.12-2) ...
    Setting up openmediavault (6.0.13-1) ...
    Creating configuration database ...
    Migrating configuration database ...
    Setting up Salt environment ...
    [ERROR ] Command '/usr/bin/patch' failed with return code: 1
    [ERROR ] stdout: patching file /tmp/__salt.tmp.911h25o1 (read from /lib/python3/dist-packages/salt/modules/network.py)
    Reversed (or previously applied) patch detected! Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file /tmp/__salt.tmp.mviy_rwn
    [ERROR ] retcode: 1
    [ERROR ] Command '/usr/bin/patch' failed with return code: 1
    [ERROR ] stdout: patching file /tmp/__salt.tmp.18tk9p58 (read from /lib/python3/dist-packages/salt/fileserver/roots.py)
    Reversed (or previously applied) patch detected! Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file /tmp/__salt.tmp.ot0qrkdl
    [ERROR ] retcode: 1
    Processing system modifications ...
    Processing triggers for rsyslog (8.2102.0-2) ...
    Processing triggers for openmediavault (6.0.13-1) ...
    Restarting engine daemon ...
    Updating workbench configuration files ...

    END OF LINE

  • Igonre this, it is no error, but a message of the underlying patch program.

    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.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!