@george1421 Ahh okay thank you!
Posts made by rodluz
-
RE: Post Download Scripts Included Variables
@george1421 Thank you so much that helps a lot! I’ll have to modify a few things and test it out.
One question. What does the
dots
command do? I’ve tried to search what that command does in bash but I can’t find anything about it.EDIT: Also does the file have to be a
.rek
filetype or can it just be a txt? -
RE: Post Download Scripts Included Variables
@george1421 I didn’t think of having a text file on the image itself, that is so simple to implement.
I’ll try both things out next week when I am back at the office.Thank you so much!
-
Post Download Scripts Included Variables
Hello, I am trying to create a post download script to add drivers to my image.
I have read many forum posts about this and have created my script. Most of those posts reference the$osid
variable that can be used in these scripts.I have different drivers for different versions of Windows 10 (1909, 2004, 20H2, …) but I don’t see a way of figuring out what version I am imaging on a computer.
So, I am thinking I could add the version number in the image name and add the logic to the script.
That being said, is there a variable for the image name?
I know that the images table in the database has andimageName
field, but is there a variable for it that can be used in the post download scripts?Also, is there a link/file where I can see what other variables are available to the FOS at that moment?
Thanks for the help!
-
RE: FOG update broke rEFInd exit
@Sebastian-Roth Thank you so much for telling me about the
Reset Encryption Data
, that worked!If you could please let me know the way to do that for all the computers en mass, I would greatly appreciate it!
-
RE: FOG update broke rEFInd exit
@Sebastian-Roth @george1421 Thank you for your reply. I did do that from the link provided before submitting my last reply.
This make me think that the issue I had with my old FOG server may have been a certificate issue.
Since I copied the ssl certificate from the old FOG server and this still doesn’t work, does this mean I just have to redeploy the fog client from the new server on all the computers?
If so, is there anything I must remove from the computer before doing that? (e.g. registry data)
Once again, thank you so much for all your help!
-
RE: FOG update broke rEFInd exit
@george1421 Hello once again!
I just finished setting up my new FOG server following the links that you provided.I am getting a
RSA ERROR: Certificate validation failed
on the computer I am using to test snapins. Also, the host’s status is unknown for all my computers. What would be the best way to fix this issue?
My thought was to write a script to reinstall the FOG client on the computers through a GPO but maybe there is something easier to fix this?Once again thank you so much for all your help!
-
RE: FOG update broke rEFInd exit
@george1421 Hello once again.
I have decided to just recreate my imaging server. I was able to get newer hardware so now is probably the best time.Would you be able to guide me in the right direction (with links) on how to setup my new server with FOG correctly and move over hosts, groups, images, and snapins?
Thank you again for all your help!
-
RE: FOG update broke rEFInd exit
@george1421 Hello again. Thank you for your help.
I tried both suggestions and sadly still no luck.I decided to install FOG 1.5.5 using a clean Ubuntu install on another computer just to see what happens. When changing the DHCP to use the IP of the fresh install machine, the
rEFInd Initializing...
screen goes away after 3 seconds (how it should work). Since that worked, I used the refind.conf and refind.efi files and copied them to my FOG server running 1.5.8 and it still didn’t work.Then, I installed FOG 1.5.8 to see if I get the same issue on the clean machine and I do. The
rEFInd Initializing...
screen doesn’t go away.I then replaced all the files in
/var/www/fog/service/ipxe/
to use the ones from the 1.5.5 install and it still didn’t work but I saw an error saying that it was looking for arefind_x64.efi
file. I renamed therefind.efi
torefind_x64.efi
and it now works.Since that worked, I did the exact same thing on my production FOG server (using the files from the clean install computer that did work) and I am still stuck on the same screen.
Other than reinstalling the OS and FOG on my server, what else could I try to check since I guess the issue isn’t the actual refind.efi or refind.conf files?
EDIT:
Could it have to do with some authentication issue? -
RE: FOG update broke rEFInd exit
@george1421 Hello, I just reverted it back to version 0.11.0 but sadly I’m still having the same issue.
Any other ideas to try out?
-
RE: FOG update broke rEFInd exit
Thank you for the reply.
I have not been in the office until today so will try it and reply. -
FOG update broke rEFInd exit
Hello,
I updated my FOG server from 1.5.4 to 1.5.8 a couple of weeks ago to be able to image some new laptops (HP Elitebook 850 G6) that were not imaging with the older version. After some google-ing all the answers pointed to the latest version supporting that laptop’s NVMe drive.I installed version 1.5.8 and was able to image the laptops. However, now I have an even bigger problem. All my lab computers that have the newer version of HP’s BIOS (the one that you can use the mouse on) get stuck at a
rEFInd Initializing...
screen. All those computers were working fine with FOG and rEFInd before upgrading to 1.5.8. The computers with the older BIOS type work fine. I am using UEFI for all my computers so my DHCP is setup to use ipxe.efi.
Example:
HP EliteDesk 800 G1 - Works
HP EliteDesk 800 G2 - Doesn’t WorkI have googled for a couple of weeks now trying different things but still no luck. I have tried everything from these links and more (I didn’t save all the links):
https://forums.fogproject.org/topic/10773/fog-with-uefi-refind-error-failure-booting-legacy-bios-os
https://forums.fogproject.org/topic/14189/fog-1-5-7-uefi-refind-boot-to-win-10I have tried downloading the newest version of refind_x64.efi and changing the
Exit to Hard Drive Type(EFI)
option in FOG’siPXE Menu Settings
.Maybe I just didn’t type the right combination of search terms and there is already a solution for this, if so, sorry for the duplicate.
Thanks in advance!
TL;DL:
Updated from 1.5.4 to 1.5.8 now computers with newer BIOS getting stuck atrEFInd Initializing...
. -
RE: 503 Error and stuck at "attempting to update database"
@george1421 So I am pretty sure it is fixed now. I looked at the logs for php and found this error
[20-Aug-2019 17:28:19] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
So I changed the pm.max_children setting to 150, just to be sure, and it is now working perfectly!
I re-imaged the same lab with 20 computers and monitored the server to see how many php-fpm services ran and I found that at one point I had 10 instances so bringing that up from 5 did help for sure. -
RE: 503 Error and stuck at "attempting to update database"
@Sebastian-Roth I restarted the service and the server too just to be sure.
-
RE: 503 Error and stuck at "attempting to update database"
@george1421 I checked the logs and I think I found the issue. I’m not at my office anymore so I’ll test it tomorrow and update the thread.
Thank you so much for your support, quick response, and excellent help!! -
RE: 503 Error and stuck at "attempting to update database"
@george1421 Made the changes on the server and deployed the image to a lab of 20 computers and it’s giving me the same issue.
-
RE: 503 Error and stuck at "attempting to update database"
@george1421 Thank you so much! I just did that and will test it by imaging more labs. If anything I keep having this issue today or tomorrow I will update the thread.
-
RE: 503 Error and stuck at "attempting to update database"
@george1421 I found it in /etc/php/7.1/fpm/pool.d
-
RE: 503 Error and stuck at "attempting to update database"
@george1421 Thank you! The php_admin_value line is actually commented out (I don’t know why). Does this mean some other setting could be active somewhere else?
Also, what about adding more than 256M to that value?
-
RE: 503 Error and stuck at "attempting to update database"
@george1421 I can’t access the web interface at all, it gives me either a 503 error or 504. The FOG server works fine for day-to-day imaging, but this happens when I am trying to image multiple labs at a time.
I ran the command that you put in your comment and this is the result