Changes need to be applied twice.

  • Hi

    i have the issue that i have to apply a change twice.

    It is always when i want to switch on Diskcache and/or AccousticMgmt for the HDD.

    Im only applying each disk after each other.


    I get the error below and then , when i press the second time apply, it works.


    -----

    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 hdparm 2>&1' with exit code '1': debian:

    ----------

    ID: configure_hdparm_conf

    Function: file.managed

    Name: /etc/hdparm.conf

    Result: True

    Comment: File /etc/hdparm.conf updated

    Started: 20:33:30.958448

    Duration: 52.746 ms

    Changes:

    ----------

    diff:

    ---

    +++

    @@ -6,6 +6,8 @@

    apm = 64

    write_cache = on

    }

    -/dev/disk/by-id/ata-TOSHIBA_MD04ACA400_755AK72YFSAA {

    +/dev/disk/by-id/ata-ST4000NM0033-9ZM170_Z1Z5YS79 {

    + acoustic_management = 128

    + apm = 64

    write_cache = on

    }

    ----------

    ID: divert_hdparm_conf

    Function: omv_dpkg.divert_add

    Name: /etc/hdparm.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/hdparm.conf to /etc/hdparm.conf.distrib'

    Started: 20:33:31.011738

    Duration: 25.727 ms

    Changes:

    ----------

    ID: reload_hdparm_/dev/disk/by-id/ata-SAMSUNG_SSD_PB22-CS3_TM_256GB_S0HENEAZ701227

    Function: cmd.run

    Name: /lib/udev/hdparm

    Result: False

    Comment: Command "/lib/udev/hdparm" run

    Started: 20:33:31.040313

    Duration: 15.449 ms

    Changes:

    ----------

    pid:

    10508

    retcode:

    1

    stderr:

    stdout:

    ----------

    ID: reload_hdparm_/dev/disk/by-id/ata-ST4000NM0033-9ZM170_Z1Z5YS79

    Function: cmd.run

    Name: /lib/udev/hdparm

    Result: False

    Comment: Command "/lib/udev/hdparm" run

    Started: 20:33:31.056270

    Duration: 13.465 ms

    Changes:

    ----------

    pid:

    10512

    retcode:

    1

    stderr:

    stdout:


    Summary for debian

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

    Succeeded: 2 (changed=3)

    Failed: 2

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

    Total states run: 4

    Total run time: 107.387 ms


    OMV\ExecException: 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 hdparm 2>&1' with exit code '1': debian:

    ----------

    ID: configure_hdparm_conf

    Function: file.managed

    Name: /etc/hdparm.conf

    Result: True

    Comment: File /etc/hdparm.conf updated

    Started: 20:33:30.958448

    Duration: 52.746 ms

    Changes:

    ----------

    diff:

    ---

    +++

    @@ -6,6 +6,8 @@

    apm = 64

    write_cache = on

    }

    -/dev/disk/by-id/ata-TOSHIBA_MD04ACA400_755AK72YFSAA {

    +/dev/disk/by-id/ata-ST4000NM0033-9ZM170_Z1Z5YS79 {

    + acoustic_management = 128

    + apm = 64

    write_cache = on

    }

    ----------

    ID: divert_hdparm_conf

    Function: omv_dpkg.divert_add

    Name: /etc/hdparm.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/hdparm.conf to /etc/hdparm.conf.distrib'

    Started: 20:33:31.011738

    Duration: 25.727 ms

    Changes:

    ----------

    ID: reload_hdparm_/dev/disk/by-id/ata-SAMSUNG_SSD_PB22-CS3_TM_256GB_S0HENEAZ701227

    Function: cmd.run

    Name: /lib/udev/hdparm

    Result: False

    Comment: Command "/lib/udev/hdparm" run

    Started: 20:33:31.040313

    Duration: 15.449 ms

    Changes:

    ----------

    pid:

    10508

    retcode:

    1

    stderr:

    stdout:

    ----------

    ID: reload_hdparm_/dev/disk/by-id/ata-ST4000NM0033-9ZM170_Z1Z5YS79

    Function: cmd.run

    Name: /lib/udev/hdparm

    Result: False

    Comment: Command "/lib/udev/hdparm" run

    Started: 20:33:31.056270

    Duration: 13.465 ms

    Changes:

    ----------

    pid:

    10512

    retcode:

    1

    stderr:

    stdout:


    Summary for debian

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

    Succeeded: 2 (changed=3)

    Failed: 2

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

    Total states run: 4

    Total run time: 107.387 ms in /usr/share/php/openmediavault/system/process.inc:217

    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/bgstatusGS...', '/tmp/bgoutput9e...')

    #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}

    ----------

  • I think that I have the same issue.


  • Digging into the way how OMV works will take some time. So no promise that i will find a reason or solution for the issue.


    Im just migrating from synology towards OMV.

    One Feature im realy missing. Encrypted Folders.

    Why ? --> I dont want my private (like tax) files in any repair center to be seen in case a hdd fails.

    I understand why the way how syno does is not an option anymore (no maintenance) but it should be possible to integrate into OMV gui veracrypt Which would use a local file for storage which would then get mounted to a local folder and this folder could be shared via SMB.

    • Offizieller Beitrag

    Should be fixed by https://github.com/openmediava…06f21832acf75e9dc240837f2 in openmediavault 6.0.45.

Jetzt mitmachen!

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