@Tom-Elliott I’m not sure. I’m about to copy them back over and then upload a new file through the snapin manager. Will report back.
Posts made by apathetic_admin
-
RE: /opt/fog/snapins disappearing
-
RE: /opt/fog/snapins disappearing
This just happened to us last night. We’re on 6152.
-
ALL Snapins Disappeared Last Night
I don’t even know what to say. All our snapins were failing this morning, I look over in /opt/fog/snapins and the only thing there is a new snapin one of my guys made this morning, everything else is gone. We recently migrated from an older FOG server on old hardware, so I can scp the files back over, but I would guess it’s going to happen again.
I seem to remember seeing a post on here a while back about a guy having snapins disappear but I couldn’t find it this morning.
Found it: https://forums.fogproject.org/topic/6603/opt-fog-snapins-disappearing
See update in other post linked above. -
RE: Printer Problems
@Wayne-Workman Thanks for that. Been having trouble with the search feature on here so I wouldn’t have found that otherwise.
-
Printer Problems
Running 6152 from Github.
Trying to do network printers through the FOG client, not sure why it isn’t working.
The log shows:
------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 2/3/2016 3:47 PM Client-Info Version: 0.9.10 2/3/2016 3:47 PM PrinterManager Running... 2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/servicemodule-active.php?moduleid=printermanager&mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1 2/3/2016 3:47 PM Middleware::Communication Response: Success 2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/Printers.php?mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1 2/3/2016 3:47 PM Middleware::Communication Response: Success 2/3/2016 3:47 PM PrinterManager Creating list of printers 2/3/2016 3:47 PM PrinterManager Creating printer objects 2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/Printers.php?id=27&mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1 2/3/2016 3:47 PM Middleware::Communication Response: Success 2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/printerlisting.php?newService=1 2/3/2016 3:47 PM Middleware::Communication Response: Success 2/3/2016 3:47 PM Printer Removing printer: Annex HP Laserjet 4250 2/3/2016 3:47 PM PrinterManager Adding printers 2/3/2016 3:47 PM NetworkPrinter Attempting to add printer: 2/3/2016 3:47 PM NetworkPrinter --> Name = \\printers.domain.local\NE_Call_Center_HP_LaserJet_4250_PCL6 2/3/2016 3:49 PM Service ERROR: Process must exit before requested information can be determined.
Update: For the time being I have shut off the PrinterManager service and re-deployed all of our printers through GPOs. I’d love to get this working again though, it was very handy to manage printers through FOG.
-
RE: Failed to set disk guid (sgdisk -U) restoreUUIDinformation
@Tom-Elliott Yes my issue is resolved, thanks. On another thread I was able to mark it solved in Topic Tools but I didn’t have that option here.
-
RE: SSL Certificate is only valid for IP address, not hostname
@Wayne-Workman Yeah, that’s why I’m trying to work out my issues now - this is a fresh upgrade on a new server (installed FOG on new hardware, then moved my snapins and database over). Only place I have the new client installed is on a new image I’m working on, so this is the time to get this worked out. Next I have to try and figure out why the old FOG clients aren’t auto-upgrading like I would have thought they would.
-
RE: Failed to set disk guid (sgdisk -U) restoreUUIDinformation
@Tom-Elliott I read your post earlier, then I went and dealt with some other crap for a few hours, came back to my desk and deleted the contents of the file and then tried again. I re-read your post after I got home and realized that I did something stupid. Deleted the file, pushed an image, and it completed successfully.
-
RE: SSL Certificate is only valid for IP address, not hostname
@Tom-Elliott Thanks as always. You ever end up in Bloomington, IN I owe you a beer or twelve.
-
SSL Certificate is only valid for IP address, not hostname
FOG 6152 via git, the SSL certificate is only valid for the IP address of the server, and not the hostname. I’m guessing it’s something in .fogsettings, because when I do an upgrade for a new version it always overwrites my config file in /etc/apache2/sites-enabled with ServerName [ip address] and I will add ServerAlias [hostname] and restart Apache. I found a command (./installfog.sh --recreate-CA --recreate-keys) that I believe would take care of my issue IF I could get the correct hostname configured, assuming in .fogsettings.
.fogsettings below, I don’t see a hostname field there, so I’m not sure where that’s coming from.
Start of FOG Settings
## Created by the FOG Installer ## Version: 6134 ## Install time: Thu 28 Jan 2016 08:51:19 PM EST ipaddress='12.34.56.78' interface='bond0' submask='255.255.255.0' routeraddress='# option routers x.x.x.x;' plainrouter='' dnsaddress=' option domain-name-servers 12.34.57.79;' dnsbootimage='12.34.58.97' password='hunter2' osid='2' osname='Debian' dodhcp='N' bldhcp='0' blexports='1' installtype='N' snmysqluser='' snmysqlpass='' snmysqlhost='' installlang='0' donate='1' storageLocation='/images' fogupdateloaded=1 storageftpuser='fog' storageftppass='hunter2' docroot='/var/www/' webroot='fog/' caCreated='yes' startrange='' endrange='' bootfilename='' packages='apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa $ noTftpBuild='' notpxedefaultfile='' ## End of FOG Settings
Version: 6152
Edit: Server does know it’s hostname, both cat /etc/hostname and the hostname command return “fog” which is the correct name on the network.
Solution: host name can be put in the ipaddress field in .fogsettings
-
RE: Failed to set disk guid (sgdisk -U) restoreUUIDinformation
@Tom-Elliott Cleared out, reimaged, and the same thing happened.
-
RE: Failed to set disk guid (sgdisk -U) restoreUUIDinformation
/dev/sda 372b02d9
/dev/sda1 1:8C4A1EDF4A1EC63C 1:372b02d9-01
/dev/sda2 2:06AC20B6AC20A263 2:372b02d9-02 -
Failed to set disk guid (sgdisk -U) restoreUUIDinformation
Some history:
We wanted to upgrade from FOG 0.32 to current and move to a new server all at the same time, so we installed the OS (Ubuntu 14.04), installed FOG via git, and then I copied the mysql database over from the old server and ran the database upgrade via the web gui. We changed the IP address while we were at it, so I changed all occurrences of the IP address in the FOG database before I imported it into MySQL and did the upgrade. I have passwords synced up and everything is generally working the way I would expect except when an image has completed writing to a workstation, an error occurs:Failed to set disk guid (sgdisk -U) restoreUUIDinformation
After that, it waits for 60 seconds, and then reboots. If I allow it to boot to Windows everything works as I would expect after a machine was reimaged, however the task is never ended on FOG and if I PXE boot it will write the image again. I have tested several hardware configurations and I get this error for all of them.
I did a git pull about ten minutes ago, and I’m on FOG 6152 according to the version screen.
-
RE: pxe boot unable to locate configuration file
@Tom-Elliott
Thanks again as always! -
RE: pxe boot unable to locate configuration file
@Tom-Elliott 1.2.0 via the GitHub page.
I didn’t take note last night of what it said to set it to.
-
pxe boot unable to locate configuration file
I’m not sure what’s going on with the search function of the forum, but I was getting blank results back for everything. I googled a bit but found nothing definitive or remotely helpful for this particular situation.
I have pxelinux.0 set as my bootfile name in DHCP. I noticed there’s no pxelinux.cfg at all. This is a fresh fog install.
Never mind undionly.kpxe is what it needs to be now. I tried that earlier and got file not found, but I probably misspelled it or something.
-
RE: Add Snapin to all hosts by OS
INSERT INTO snapinAssoc (saHostID,saSnapinID) SELECT hostID,122 FROM hosts WHERE hostOS=‘1’
This will only work on FOG <1.0, but here it is, in case anybody is searching the forum for something similar. In this case, my saSnapinID is 122, and we were looking for all hosts with a hostOS of 1 (which was XP).
Thanks to Tom for all of his help!
-
RE: Add Snapin to all hosts by OS
I think I’ll just write my snapin to query the Windows version, and I can apply it to all for now. Hopefully this won’t be an issue too much longer if we can get rid of our XP machines, otherwise once we update to the latest and greatest FOG version I can group and associate by image as you suggested before.
-
RE: Add Snapin to all hosts by OS
[quote=“Tom Elliott, post: 45168, member: 7271”]Did 0.32 have a search feature to search by the OS?[/quote]
No