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

    database update issues following image capture

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    27
    4.0k
    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.
    • E
      epatterson @george1421
      last edited by

      @george1421
      Yup. I had seen php7.4-fpm.service in the results of >systemctl list-units --type=service earlier.
      I wasn’t sure if that was the match needed.
      After altering the command from earlier, I still get no results from it

      ls -al | grep php7.4-fpm
      or
      ls -al | grep php7.4-fpm.service
      The command just completes w/o any results displayed, dropping down to a fresh line in the terminal

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

        @epatterson said in database update issues following image capture:

        php7.4-fpm

        Ok then what is the output of this systemctl status php7.4-fpm The php-fpm engine needs to be running.

        also systemctl restart php7.4-fpm Then run a status check.

        FWIW the ls -al command as you have it below is list directory not ps process status. Your command will look for a file in the current directory called php7.4-fpm

        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!

        E 2 Replies Last reply Reply Quote 0
        • E
          epatterson @george1421
          last edited by

          @george1421
          It is listed as:
          Loaded: loaded
          Active: active (running)
          Status: Processes Active
          Server was rebooted this morning, and has been rebooted previously when receiving the error to see if that would kick it into gear

          1 Reply Last reply Reply Quote 0
          • E
            epatterson @george1421
            last edited by

            @george1421
            Thought the actual output might be more helpful:
            sysadmin@fog:/$ systemctl status php7.4-fpm
            ● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
            Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
            Active: active (running) since Fri 2022-03-25 10:11:58 CDT; 1h 7min ago
            Docs: man:php-fpm7.4(8)
            Process: 1141 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, st>
            Main PID: 863 (php-fpm7.4)
            Status: “Processes active: 0, idle: 6, Requests: 68, slow: 0, Traffic: 0req/sec”
            Tasks: 7 (limit: 14143)
            Memory: 28.9M
            CGroup: /system.slice/php7.4-fpm.service
            ├─ 863 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
            ├─1136 php-fpm: pool www
            ├─1137 php-fpm: pool www
            ├─1138 php-fpm: pool www
            ├─1139 php-fpm: pool www
            ├─1140 php-fpm: pool www
            └─1556 php-fpm: pool www

            Mar 25 10:11:47 fog.it.nex-tech.com systemd[1]: Starting The PHP 7.4 FastCGI Process Manager…
            Mar 25 10:11:58 fog.it.nex-tech.com systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

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

              @epatterson OK now that we’ve determined that php-fpm is running, can you access the web site? And to recap everything works OK except its failing to update the database at the end of image deployment? The inistial error you posted is apache saying hey I can’t talk to php-fpm.

              We may need to consult either the apache or php-fpm error log right after this error message happens to see what is getting posted in the logs.

              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!

              E 1 Reply Last reply Reply Quote 0
              • E
                epatterson @george1421
                last edited by

                @george1421
                During the process, we have not had any issue accessing the site. I am able to PXE boot and register/inventory machines w/o issue. I am able to deploy an image w/o issue and monitor the process on the site from Active Tasks.

                Additionally, when running a capture, I am able to monitor it on the site as well. I am testing a capture now, to get a recent log entry to look into. I may need some guidance locating the logs, as I am still learning linux. I know I have been in them before, when we had the memory issue with PHP.

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

                  @epatterson logs are in /var/logs directory. There is the apache directory and php-fpm may have its own directory or just in /var/logs.

                  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!

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    epatterson @george1421
                    last edited by

                    @george1421
                    Well, holy mother of all that is good and green. The machine I just tested with completed w/o issue.

                    Could it have anything to do with the model, or image itself? We normally work with Lenovo T15 and/or T14 machines. However, I have an X1 Carbon that we needed to wipe prior to being sent in for repair, so I registered and inventoried it. Created a new image category, specifically for it, so we can put it back when it returns, and ran the capture.

                    I have another machine (T15) that I just built. I’ll try capturing it as well and see what happens. I’ll update the thread once done. Thanks for helping me out today.

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

                      @epatterson said in database update issues following image capture:

                      Could it have anything to do with the model, or image itself?

                      Don’t think so. The gateway timeout is usually not specific to a particular model. Maybe there was a flood of hosts sending requests (fog-client installed) at some point that is not happening anymore now.

                      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

                      E 2 Replies Last reply Reply Quote 0
                      • E
                        epatterson @Sebastian Roth
                        last edited by

                        @sebastian-roth
                        OK. I will be doing some more testing next week. I will update the thread with results. Thanks.

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

                          @epatterson said in database update issues following image capture:

                          I have another machine (T15) that I just built. I’ll try capturing it as well and see what happens. I’ll update the thread once done. Thanks for helping me out today.

                          My concern is that we didn’t fix anything, so we really did solve the problem. It went away by itself and most likely will return without warning.

                          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
                          • E
                            epatterson @Sebastian Roth
                            last edited by

                            @sebastian-roth
                            Good morning,
                            I imaged some new machines yesterday, updated their applications, etc, and ran captures, on 2 of them, back to FOG just now.
                            The image capture ran correctly, but the process, again, failed on the database update. Receiving a “504 Gateway timeout” again.
                            The successful capture Friday was on a completely new image, first time capture.
                            I will try looking into logs later today.

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

                              @epatterson So does the apache or php-fpm error logs give us any clue to why this is happening?

                              Out of curiosity, how many computers with the fog client installed is this fog server talking to? Or to ask it a different way, how many computer have the fog client installed on 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!

                              E 2 Replies Last reply Reply Quote 0
                              • E
                                epatterson @george1421
                                last edited by

                                @george1421
                                Our setup is a single FOG server, with 2 network connections.
                                One to the main domain, and a second to a closed network that we use when imaging machines.
                                We aren’t actually installing a client on the machines. They are only connected to the FOG closed network to be imaged, or to capture an image back to FOG once updated.

                                I am running a test currently. I have imaged a machine, I am updating it, and will create a new image category to capture the image back to the system. I’ll update the thread once I have tried imaging back to the system. Thanks.

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

                                  @epatterson Ok that is fine. I was just trying to think of a reason why on occasion we get this gateway timeout. Having 500 computers checking into the fog server while trying to image might do just that. But if you don’t have the fog client running anywhere then fog server performance isn’t the problem. The rest of your setup sounds typical for a business environment.

                                  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
                                  • E
                                    epatterson @george1421
                                    last edited by

                                    @george1421
                                    So, saving the image from the machine to a new image in FOG worked. Could we have a database issue?
                                    It’s very odd that we can save a new image capture, but not a capture from an updated, established, image.

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

                                      @epatterson So from the same machine do a back to back capture. The first time it will be a new image and the second time same machine, same relative time frame will be a replace image capture. See if your logic holds.

                                      Are you running any other applications on your fog server that might make php-fpm slow to respond to apache? What does top show us?

                                      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!

                                      E 1 Reply Last reply Reply Quote 0
                                      • E
                                        epatterson @george1421
                                        last edited by

                                        @george1421
                                        The machine I was working with had to be sent out for the user. So, I imaged another machine, with the build I had created, updated the build, and imaged back. It worked w/o issue.
                                        Our FOG server only runs the FOG processes. We aren’t using it for anything else.
                                        Another thought. Because our machine is an older desktop and using the original hard drive, we have to make use of secondary attached storage. In doing so, we move images back and forth as needed. Could that be causing an issue with the images, or how the database “sees” them? Should we alter the image path to the attached storage, working all processes from there, instead of moving them back and forth?

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

                                          @epatterson said in database update issues following image capture:

                                          we have to make use of secondary attached storage

                                          What method are you using to do this? Is it external DAS storage, NFS, or iSCSI?

                                          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!

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            epatterson @george1421
                                            last edited by

                                            @george1421
                                            We are using a USB, directly, attached MyBook storage unit. I then just run a move between the storage and the main machine.

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

                                            228

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project