FOG 1.3.0-RC-8 power management error
-
I have a client with 2 power management cron jobs and the following error happens when I reimage the client:
------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 8/17/2016 9:26 AM Client-Info Client Version: 0.11.5 8/17/2016 9:26 AM Client-Info Client OS: Windows 8/17/2016 9:26 AM Client-Info Server Version: 1.3.0-RC-8 8/17/2016 9:26 AM Middleware::Response Success 8/17/2016 9:26 AM PowerManagement ERROR: Data conversion using the DataContract FOG.Modules.DataContracts.PowerManagement failed 8/17/2016 9:26 AM PowerManagement ERROR: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[FOG.Modules.PowerManagement.Task]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'tasks.1'.
I am not sure if this is a client and/or server issue.
-
Found out exactly what the issue was. It’s because of the damn WOL tasking son of a.
Sorry it was so hard to replicate/troubleshoot.
It is now fixed in RC-9 thanks for reporting.
-
I think you need to update .NET on your client to 4.5
-
How do you do that? It is whatever it loaded when the client updated. In the Programs and Features list there is no .net less than 4.5.
-
@tmerrick Then I’m not sure what’s causing this, to be honest. @Senior-Developers will likely have a better idea about this.
-
@tmerrick What version of Windows?
-
Windows 10
-
@tmerrick I think Win10 out-of-the-box already has .NET 4.5 and runs the new fog client just fine.
Please post a screen-shot of the problematic host’s Power Management page, so we can see the 2 jobs you have scheduled and attempt to reproduce.
-
What privileges do I need to upload a picture?
-
@tmerrick None that I know of? If it’s in your clipboard, just paste it here. If it’s a file, click the upload symbol.
-
The error that I had was a firefox problem.
-
@tmerrick said in FOG 1.3.0-RC-8 power management error:
The error that I had was a firefox problem.
I don’t use anything but Firefox.
Use the latest version?Back to the fog issue - I’ll see if I can reproduce the problem on my end.
-
Cross-linking threads about the same bug, and moved to bug reports.
https://forums.fogproject.org/topic/8402/power-management-rc-8-json-issue -
Found out exactly what the issue was. It’s because of the damn WOL tasking son of a.
Sorry it was so hard to replicate/troubleshoot.
It is now fixed in RC-9 thanks for reporting.
-
Just to help clarify, basically it was filtering the array out. Because there was only two tasks, and one of them was invalid, it was not defining the tasks as an array.