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

Search failedSyntaxError: Unexpected token < in JSON at position 0

Scheduled Pinned Locked Moved Solved
FOG Problems
4
22
4.5k
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
    wanderson
    last edited by wanderson Jun 1, 2017, 11:00 AM Jun 1, 2017, 4:30 PM

    Server
    • FOG Version: 1.40
    • OS: CENTOS 7
    Client
    • Service Version: 1.35
    • OS: Windows 7 Professional
    Description

    I have the 1.40 fog with 35 storages connected to it.

    When I start to download an image, the apache server drops and comes back, it flashes, so computers have this error when they start.

    It also gives JASON error: Search failedSyntaxError: Unexpected token < in JSON at position 0

    0_1496334168781_fog_error.png

    0_1496335115951_fog_error2.png

    G 1 Reply Last reply Jun 1, 2017, 4:37 PM Reply Quote 0
    • G
      george1421 Moderator @wanderson
      last edited by Jun 1, 2017, 4:37 PM

      @wanderson Can we get a little bigger screen shot of the error.

      Also can you explain what 35 storages connected mean?

      Did this FOG server ever download or did you change something?

      Lastly if you tail /var/log/httpd/error_log is there anything helpful in there?

      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!

      1 Reply Last reply Reply Quote 0
      • W
        wanderson
        last edited by Jun 1, 2017, 4:46 PM

        1. Storage == FOG NODE

        2. FOG 1.35 update to FOG 1.40

        3. 0_1496335564286_fog_error3.png

        G T 2 Replies Last reply Jun 1, 2017, 4:50 PM Reply Quote 0
        • G
          george1421 Moderator @wanderson
          last edited by Jun 1, 2017, 4:50 PM

          @wanderson Yep, we are going to need the developers to look at these error.

          just to be clear you did update from 1.3.5 to 1.4.1?

          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!

          W 1 Reply Last reply Jun 1, 2017, 4:53 PM Reply Quote 0
          • W
            wanderson @george1421
            last edited by Jun 1, 2017, 4:53 PM

            @george1421

            update fog 1.35 to 1.40

            G 1 Reply Last reply Jun 1, 2017, 4:55 PM Reply Quote 1
            • G
              george1421 Moderator @wanderson
              last edited by Jun 1, 2017, 4:55 PM

              @wanderson Is that when the issue occurred? This is an abnormal error, I’m just trying to understand the trigger.

              Any other insight you can provide will help the developers come to an answer quicker.

              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!

              W 1 Reply Last reply Jun 1, 2017, 5:21 PM Reply Quote 0
              • W
                wanderson @george1421
                last edited by Jun 1, 2017, 5:21 PM

                @george1421

                Apache is not able to answer all requests, would it?

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott @wanderson
                  last edited by Jun 1, 2017, 5:39 PM

                  @wanderson Those “last insert ID” errors are almost always fixed because:

                  https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy

                  That said, when updating, you probably need to refresh the page (after ensuring the DB is usable).

                  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 1
                  • T
                    Tom Elliott
                    last edited by Jun 1, 2017, 6:06 PM

                    Mind you all,

                    the suggestions I give are based on experiences, this is not by any means a cureall for every situation. The lastInsertID might be present from the period of time you were updating the server to begin with, so unlikely to be the problem you’re experiencing.

                    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 Jun 1, 2017, 6:08 PM

                      Remember, errors and “solutions” are very subjective. One fix will not fix every scenario especially when dealing with different OS’s.

                      I gave information based on what i saw in the error, but this does not mean the “suggestion” I gave is going to fix the problem you were having.

                      In regards to things, did your server update?

                      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

                      W 1 Reply Last reply Jun 1, 2017, 6:11 PM Reply Quote 0
                      • W
                        wanderson @Tom Elliott
                        last edited by Jun 1, 2017, 6:11 PM

                        @Tom-Elliott

                        update fog sucess fog 1.40

                        T 1 Reply Last reply Jun 1, 2017, 6:11 PM Reply Quote 0
                        • T
                          Tom Elliott @wanderson
                          last edited by Jun 1, 2017, 6:11 PM

                          @wanderson And the task page is still giving the json token 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! 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

                          W 1 Reply Last reply Jun 1, 2017, 6:14 PM Reply Quote 0
                          • W
                            wanderson @Tom Elliott
                            last edited by Jun 1, 2017, 6:14 PM

                            @Tom-Elliott When I restart the server, it works again, but then the error happens again

                            1 Reply Last reply Reply Quote 0
                            • W
                              wanderson
                              last edited by Jun 1, 2017, 6:15 PM

                              @Tom-Elliott Would not the httpd be down?

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tom Elliott
                                last edited by Jun 1, 2017, 6:16 PM

                                What? Why would httpd be down?

                                This sounds like a max_connections issue to me though.

                                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

                                W 2 Replies Last reply Jun 1, 2017, 6:29 PM Reply Quote 0
                                • W
                                  wanderson @Tom Elliott
                                  last edited by Jun 1, 2017, 6:29 PM

                                  @Tom-Elliott Yes, after a few minutes, give the error http 500

                                  T 1 Reply Last reply Jun 2, 2017, 1:55 AM Reply Quote 0
                                  • W
                                    wanderson @Tom Elliott
                                    last edited by Jun 1, 2017, 6:37 PM

                                    @Tom-Elliott

                                    I will try to apply this rule in apache

                                    <IfModule mpm_prefork_module>
                                    	StartServers          4
                                    	MinSpareServers       20
                                    	MaxSpareServers      40
                                    	MaxClients           200
                                    	MaxRequestsPerChild  4500
                                    </IfModule>```
                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Tom Elliott @wanderson
                                      last edited by Jun 2, 2017, 1:55 AM

                                      @wanderson Is it giving 500, or is it getting “connection” errors? 500 means apache is responding.

                                      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

                                      W 1 Reply Last reply Jun 2, 2017, 2:14 AM Reply Quote 0
                                      • W
                                        wanderson @Tom Elliott
                                        last edited by Jun 2, 2017, 2:14 AM

                                        @Tom-Elliott, yes, Was giving HTTP 500 connection errors while doing the image upload task

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wanderson
                                          last edited by Jun 2, 2017, 2:17 AM

                                          Problems began to appear after I started adding more than 20 nodes, I’m currently using 34 fog nodes

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            10/22
                                            Last post

                                          178

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project