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

    Snapin problem on fog 1.5.9-RC1 and 1.5.9-RC2

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    13
    1.3k
    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.
    • B
      borg
      last edited by

      we have 5 sites with 20 - 30 clients on each site.
      no replication between servers, they are independent but the network is routed, for administrative purposes. the reason for this is that the sites need to be able to run independently if core network fails.

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @borg
        last edited by

        @borg said in Snapin problem on fog 1.5.9-RC1 and 1.5.9-RC2:

        we have 5 sites with 20 - 30 clients on each site.

        ok 30 clients would not cause that php-fpm error. This is strange though I would have expected 100s of workstations hitting this server with that error.

        When you say “older” servers are OK, what version is older?

        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
        • george1421G
          george1421 Moderator
          last edited by

          This apache error is directly linked to php-fpm error

          [proxy_fcgi:error] [pid 6282] (70007)The timeout specified has expired: [client 10.100.72.81:49792] AH01075: Error dispatching request to :
          

          In that php-fpm did not return an answer in the expected time allowed.

          Have you made any adjustments to the php-fpm config file www.conf ?

          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
          • B
            borg
            last edited by

            thank you for your support,
            We are running 1.5.8 with no problems.
            on a note, this is also the server we “copied” the original Image from.
            the clients were running FOG client 0.11.X if I remember correctly, not online with my servers at the moment.
            that is why I updated our image with fog client 0.12.0 to work with 1.5.9-RCx.

            1 Reply Last reply Reply Quote 0
            • B
              borg
              last edited by

              No we did not change anything, we run a vanilla CENTOS 7 and a vanilla FOG 1.5.9-RC-1 and RC2 fresh install, no changes, only thing in that matter I can think of is that we run it as an ESXI client.

              george1421G 1 Reply Last reply Reply Quote 0
              • B
                borg
                last edited by

                on your note I did change the /etc/httpd/conf.d/fog.conf to include a proxy timeout, saw this on an older post. but not working solution.

                1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @borg
                  last edited by george1421

                  @borg ok lets test something. Make sure you have at least 4GB of ram in your FOG server before doing this.

                  1. Search the /etc directory for a file www.conf depending on the version of PHP installed on your fog server that file’s location will change. But you should only have one in the /etc path.
                  2. Edit that file and search for pm = dynamic Change it to pm = static
                  3. Search for pm.max_children = 50 change it to pm.max_children = 75
                  4. Restart php-fpm sudo systemctl restart php-fpm

                  Lets see if we can clear those php-fpm error messages. Setting pm to static will save time on building up and taking down of the php-fpm worker services on demand. It will require a bit more ram to have these workers just hanging around waiting for something to do. But the error was there wasn’t enough workers to respond to the requests from apache.

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @george1421 @borg Checking the php-fpm-www log I see this:

                    [29-Jun-2020 14:14:27 UTC] PHP Warning: fopen(ftp://...@10.100.72.18/opt/fog/snapins/BMS_Genveje.ps1): failed to open stream: operation failed in /var/www/html/fog/lib/client/snapinclient.class.php on line 623
                    

                    To me it seems like this is the root cause of this issue. I have to admit that I haven’t seen this error before and I would need to dig into this.

                    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

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @Sebastian Roth
                      last edited by george1421

                      @Sebastian-Roth said in Snapin problem on fog 1.5.9-RC1 and 1.5.9-RC2:

                      fopen(ftp://

                      This is what confused me, does the client access the snapins over ftp protocol? I still think its on the php-fpm side though. Lets see if bumping up the number of clients fixes the error. I do have some doubt that the max number of clients is the issue because there are only 30 systems at each site. At 100 systems I might see an issue.

                      I guess the OP should check to ensure this file /opt/fog/snapins/BMS_Genveje.ps1 exists and has the right permissions so that the fogproject user can read it.

                      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 1
                      • B
                        borg
                        last edited by

                        @george1421 will try that when I get back to the mines tomorrow, an let you know.
                        @Sebastian-Roth the “/opt/fog/snapins/BMS_genveje.ps1” do exist I checked, did not check permissions though, Will do tomorrow.
                        on a weird note the FOG server was very slow on accepting new snapins? when I deployed a new snapin it lasted up till 60s before the GUI told me it was updated I thought it strange, but put it down to bad links, sorry for not including this in the original post.

                        1 Reply Last reply Reply Quote 0
                        • B
                          borg
                          last edited by

                          UPDATE:
                          Checked permissions fogproject:apache user has full rights to all snapins, why it is the apache group I don’t really know.
                          also changed the www.conf file.
                          No change unfortunately.

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

                          173

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project