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

    FOG Client and The remote server returned an error: (500)

    Scheduled Pinned Locked Moved Solved FOG Problems
    3 Posts 2 Posters 14 Views
    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.
    • G
      GregorS
      last edited by

      Hello,

      I have updated FOG server to the latest stable version: 1.5.10.1903.
      FOG server is running on Ubuntu 24.04.4 LTS.

      The problem is that now FOG clients are returning error:

      Communication ERROR: Could not contact FOG server
      Communication ERROR: The remote server returned an error: (500) Internal Server Error.

      1.png

      When I have checked apache2/error.log I have folowing error:

      Wed Jul 22 09:45:28.388629 2026] [proxy_fcgi:error] [pid 676068] [client 10.0.0.107:54208] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ValueError: min(): Argument #1 ($value) must contain at least one element in /var/www/fog/lib/fog/storagegroup.class.php:228\nStack trace:\n#0 /var/www/fog/lib/fog/storagegroup.class.php(228): min()\n#1 /var/www/fog/lib/client/snapinclient.class.php(160): StorageGroup->getMasterStorageNode()\n#2 /var/www/fog/lib/fog/fogpage.class.php(3306): SnapinClient->json()\n#3 /var/www/fog/lib/fog/fogpage.class.php(255): FOGPage->requestClientInfo()\n#4 /var/www/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct()\n#5 /var/www/fog/lib/fog/loadglobals.class.php(65): DashboardPage->__construct()\n#6 /var/www/fog/lib/fog/loadglobals.class.php(79): LoadGlobals::_init()\n#7 /var/www/fog/commons/base.inc.php(38): LoadGlobals->__construct()\n#8 /var/www/fog/management/index.php(22): require(’…‘)\n#9 {main}\n thrown in /var/www/fog/lib/fog/storagegroup.class.php on line 228’

      From the logs I assume that there is a problem with StorageGroup.
      I have a few storage groups & storage nodes as per pictures below.
      st-gr.png

      st-nd.png

      Snapins Storage group on this FOG server are set to GR storage.

      snapin.png
      Is my setup wrong?
      Can you help me somehow?


      GregorS

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • G
        GregorS @Tom Elliott
        last edited by

        @Tom-Elliott
        Updated to latest dev-branch and snapins are working now
        Thansk for help.


        GregorS

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @GregorS
          last edited by

          @GregorS Thanks for letting us know.

          I’ve pushed some code into dev-branch if you’d be willing to install and verify that your fog client functions now?

          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

          G 1 Reply Last reply Reply Quote 0
          • G
            GregorS @Tom Elliott
            last edited by

            @Tom-Elliott
            Updated to latest dev-branch and snapins are working now
            Thansk for help.


            GregorS

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT Tom Elliott has marked this topic as solved
            • 1 / 1
            • First post
              Last post

            81

            Online

            12.7k

            Users

            17.6k

            Topics

            156.8k

            Posts
            Copyright © 2012-2026 FOG Project