hello,
I based a script on the return of the command: /usr/sbin/omv-rpc -u admin config isDirty 2>&1| jq .
which should return true or false. With omv6 it was ok.
Hereunder is the return since I migrated to OMV7. I have the same error on two separate servers.
/usr/sbin/omv-rpc -u admin config isDirty 2>&1| jq .
{
"response": null,
"error": {
"code": 0,
"message": ": The value \"null\" is not an object.",
"trace": "OMV\\Json\\SchemaValidationException: : The value \"null\" is not an object. in /usr/share/php/openmediavault/json/schema.inc:395\nStack trace:\n#0 /usr/share/php/openmediavault/json/schema.inc(289): OMV\\Json\\Schema->validateObject()\n#1 /usr/share/php/openmediavault/json/schema.inc(261): OMV\\Json\\Schema->validateType()\n#2 /usr/share/php/openmediavault/rpc/paramsvalidator.inc(59): OMV\\Json\\Schema->validate()\n#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(179): OMV\\Rpc\\ParamsValidator->validate()\n#4 /usr/share/openmediavault/engined/rpc/config.inc(59): OMV\\Rpc\\ServiceAbstract->validateMethodParams()\n#5 [internal function]: Engined\\Rpc\\Config->isDirty()\n#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()\n#7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod()\n#8 /usr/sbin/omv-engined(535): OMV\\Rpc\\Rpc::call()\n#9 {main}"
}
}
getInformation gives also the status: /usr/sbin/omv-rpc -u admin system getInformation | jq .configDirty
the return is: false
the content of /var/lib/openmediavault/dirtymodules.json is []. The file was modified last April, 10th.
is config isDirty deprecated ?
I tried with parameters empty json with no better luck:
/usr/sbin/omv-rpc -u admin config isDirty "{}"
{"response":null,"error":{"code":0,"message":": The value [] is not an object." .....
it looks like isDirty cannot accept an empty parameter .