database update issues following image capture
-
@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.
-
@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.
-
@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.
-
@sebastian-roth
OK. I will be doing some more testing next week. I will update the thread with results. Thanks. -
@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.
-
@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. -
@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?
-
@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.
-
@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.
-
@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. -
@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? -
@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? -
@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?
-
@george1421
We are using a USB, directly, attached MyBook storage unit. I then just run a move between the storage and the main machine. -
@epatterson So moving the images may be the problem.
FWIW if you have DAS attached storage you can / could add a second hard drive to this computer, or if the USB hard drive is attached via USB3.0 you could image directly from that.
In fog you would just setup a second primary storage node in a new storage group. You would use all of the same settings as your default storage node. You do not want to add this alternate hard drive as a secondary storage node in your default storage group because then fog will just replicate from the internal hard drive to the usb hard drive. But if the usb hard drive is setup as a master node in its own storage group then FOG will be happy and you won’t have to fiddle with moving image files.
Is there an option to add a second physical hard drive to the existing fog server? I realize you use a usb attached drive for this today.
-
@george1421
I’ll shut the machine down and do some checking. I’ll let you know. Thanks.