• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Power Management - RC-8 JSON issue

Scheduled Pinned Locked Moved Solved
Bug Reports
4
7
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    Wayne Workman
    last edited by Wayne Workman Aug 19, 2016, 10:17 AM Aug 19, 2016, 4:16 PM

    Host is a Windows 10 LTSB, EliteBook 8730w

    ------------------------------------------------------------------------------
    --------------------------------PowerManagement-------------------------------
    ------------------------------------------------------------------------------
     8/19/2016 11:12 AM Client-Info Client Version: 0.11.5
     8/19/2016 11:12 AM Client-Info Client OS:      Windows
     8/19/2016 11:12 AM Client-Info Server Version: 1.3.0-RC-8
     8/19/2016 11:12 AM Middleware::Response Success
     8/19/2016 11:12 AM PowerManagement ERROR: Data conversion using the DataContract FOG.Modules.DataContracts.PowerManagement failed
     8/19/2016 11:12 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'.
    ------------------------------------------------------------------------------
    

    0_1471623395075_power management.png

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    J 1 Reply Last reply Aug 19, 2016, 10:12 PM Reply Quote 0
    • T
      Tom Elliott
      last edited by Aug 23, 2016, 10:56 AM

      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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 2
      • J
        Joe Schmitt Senior Developer
        last edited by Aug 19, 2016, 4:32 PM

        Server issue, @Tom-Elliott

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        1 Reply Last reply Reply Quote 0
        • J
          jburleson @Wayne Workman
          last edited by Aug 19, 2016, 10:12 PM

          @Wayne-Workman I can confirm that this happens on Windows 7 Enterprise as well.

          I am running the same client and server version. The server OS is Ubuntu 16.04.

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman
            last edited by Aug 20, 2016, 3:26 AM

            Cross-linking threads about the same bug.
            https://forums.fogproject.org/topic/8384/fog-1-3-0-rc-8-power-management-error

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Aug 23, 2016, 10:31 AM

              I did some testing last night and found that, after suspecting this was a php version issue with how it interprets json data, that PHP 5.6 and PHP 7 appear to be displaying the json properly.

              I hope today we can remote and see exactly what’s happening.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Aug 23, 2016, 10:56 AM

                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.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 2
                • T
                  Tom Elliott
                  last edited by Aug 23, 2016, 10:57 AM

                  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.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    7/7
                    Last post

                  197

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project