@sebastian-roth
Nice one! thanks. I added the VPN MAC address!
Posts made by palloquin
-
RE: fog client no longer rebooting system to deploy, where to start?
-
RE: fog client no longer rebooting system to deploy, where to start?
@sebastian-roth Thanks for your help! that solved it:
in www-error.log I have and endless list of these errors:
[28-Jan-2021 11:23:41 UTC] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209 Stack trace: #0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array) #1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true) #2 /var/www/html/fog/lib/fog/fogpage.class.php(3013): RegisterClient->json() #3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo() #4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard') #5 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct() #6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init() #7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct() #8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...') #9 {main} thrown in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209
looking at the date in c:\fog.log (or access_log on the server)
http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&mac=00:FF:3E:84:3E:C1|40:A8:F0:61:47:B3&newService&json
We see two macs being posted. One this the mac of acual NIC in the machine, the other is for a VPN client.
The MAC for the VPN client is identical on all machines, and, by mistake, that mac got linked to a host in FOG. I removed the incorrect MAC from the host config and things started working again!thanks again!
-
RE: fog client no longer rebooting system to deploy, where to start?
Ok, thanks!
that seems to prompt some issues:
------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:25 Client-Info Client Version: 0.11.16 21/01/2021 11:25 Client-Info Client OS: Windows 21/01/2021 11:25 Client-Info Server Version: 1.5.7 21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object. 21/01/2021 11:25 Service Sleeping for 32 seconds 21/01/2021 11:25 Middleware::Communication URL: http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&configure&newService&json 21/01/2021 11:26 Middleware::Response Success 21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&mac=00:FF:3E:84:3E:C1|40:A8:F0:61:47:B3&newService&json 21/01/2021 11:26 Middleware::Communication ERROR: Could not contact FOG server 21/01/2021 11:26 Middleware::Communication ERROR: The remote server returned an error: (500) Internal Server Error. 21/01/2021 11:26 Middleware::Response Success 21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/service/getversion.php?clientver&newService&json 21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/service/getversion.php?newService&json 21/01/2021 11:26 Service Creating user agent cache 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 21/01/2021 11:26 Client-Info Client Version: 0.11.16 21/01/2021 11:26 Client-Info Client OS: Windows 21/01/2021 11:26 Client-Info Server Version: 1.5.7 21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection 21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object. 21/01/2021 11:26 Service Sleeping for 79 seconds
-
fog client no longer rebooting system to deploy, where to start?
So,
I have about 30 PC’s linked to my fog server, all windows 10. I have the fog client installed (v.0.11.16).Up to a a while ago, I could create a deploy task and the client would automatically reboot to receive the new image. Imaging still works fine, but the client needs to be manually rebooted.
Somehow, the fogclient does not seem to receive or execute the reboot command.
Where do I start with debugging this?
-
RE: taging an installion / using a snap in / where to start?
Hi George!
Thank you for your quick repsonse. I get what you are saying. I agree that I would prefere not to mess with the windows registry externally if there is another way to do things.
We don’t sysprep the systems, seems less hassle in our situation. But, the bread crumbs you mention can be picked up by any system I suppose, not just OOBE, but a snapin script for example…But, which bread crumbs are your refering to? and how would you go about leaving that trail?
-
taging an installion / using a snap in / where to start?
Hi,
I’m looking for a way to keep track of which image or version I have installed on my clients.
I’m thinking about using a snapin to write a registry key that holds this info. But, I’m open to other suggestions.
If I use the snap in, is there a way I can pass the name of the image that was just deployed as an argument to the snap in?
-
RE: Passwords, I broke 'em...
Thanks @Tom-Elliott , @Wayne-Workman !
I’ll keep the re-run in mind in case of future issues.
This begs the question though… Why can I change the ‘fog’ user’s password through the web interface if this just breaks it…
If I understand correctly, there is no way of just using the web interface to change the fog user’s password. I will always afterwards have to either:- re-run the install script
or - become much wiser than I am and do some
linux-config-dark-magic-stuff
to make it work.
right?
- re-run the install script
-
RE: Passwords, I broke 'em...
Ok, panic is over, things are working again…
Now for the million dollar question…
What if, some one, insane as this might sound, would think 'Hmmmmm I don’t like it if my password is… “password” ', what if this foolish person was bent on changing it… how would he go about that?
Is there a step by step guide?
:)
Thanks!
Daaf
-
RE: Passwords, I broke 'em...
Hi Tom!
another week, another question you help me with
/opt/fog/.fogsettings contains some form of encoded password at the moment.
should I replace it with “password” plain text to reset?
and… how do you make pards of your code red in your posts?
testing
123
-
Passwords, I broke 'em...
Hi,
So I thought I’d change FOG’s default very secure password to something slightly harder to remember
Silly as I am I went in to the web interface and under ‘User Management’ located the ‘fog’ user and changed the password… BOOM, done, that all there’s to it… or so I thought… Logging in on the web interface with the new password works fine, but then capturing an image fails, all kinds up update errors ftp_login() errors, etc.
This is roughly what I get at the end of a capture task:
* Task Complete * Updating Database...............................Failed * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host: 172.16.1.2, Username: fog * Reattempting to update database.................Failed * Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, line 463, Message: ftp_login(): Login incorrect., Host: 172.16.1.2, Username: fog ---- AND SO ON ----
after reading: https://wiki.fogproject.org/wiki/index.php?title=Password_Central
I tried a bunch of things:
-
change the linux fog user password.
direct FTP still not working.
— panic, ‘maybe I don’t really need all that password security stuff’ — -
changed back the linux fog user password.
direct FTP still working again!
but, still getting the error while capturing the image
— panic and cry (a little), ‘I really don’t understand all this’ — -
changed back the user password in the web interface
Still captures fail with the ftp_login() error.
— panic, cry (more), ‘Maybe I should consider quitting my job?’ —
so, before I go for step
4) reinstall f’ing centos and start from scratch…
— suck it up, I should have learned a trade ----I thought I’d ask what to do here…
Thank you all again!
-
-
RE: FOG backup script, NICE! FOG restore script?
Hi Tom!
thanks for the response.
I understand what the backup script does (just not exactly how it does it). I take these backups from the fogserver using sftp and store them in our backup system.I, and likely others like me, simply do not have the experience to know what to do with these separate items in a backup.
I’m sure I should copy the images somewhere, somehow restore the database, etc. But I lack the knowledge of how and what exactly. I could of course make that my question: “How do I restore?”A restore a utility would be very welcome. It would seem that since the backup script knows where to find the sources to backup, an inverse script that knows where to restore should be doable indeed.
But for now (so I can finish this job) could you describe how to manually restore the backups?
Thank you so much!
Daaf
-
FOG backup script, NICE! FOG restore script?
Hi all,
The wiki has a nice article on how to backup a FOG machine: https://wiki.fogproject.org/wiki/index.php?title=Backing_up_FOG
It tells us about a wonderful script:
utils/FOGBackup/FOGBackup.sh
to backup every thing. NICE!
But… now I want to move from that flimsy old test machine to a production server. I have my fog backups stored somewhere, now what? how do I restore these backups?
#linuxNoob.
-
RE: GIT Update not working?
@Joe-Schmitt
Uh, I really don’t know. I suppose I followed some install instruction…I suppose I set
SELINUX=permissive
and
setenforce=0?
-
RE: GIT Update not working?
to add to the discussion, it seem to run just fine. just updating failed.
-
RE: GIT Update not working?
Solved it.
I did:
SELINUX=disabled
and then rebooted.
install worked after that, now running:
Running Version 1.3.4-RC-2 SVN Revision: 6063
What is the advised way to leave SELinux? disabled? permissive? or enforcing?
Thanks all!
-
RE: GIT Update not working?
@Wayne-Workman
Sorry:Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327.36.3.el7.x86_64 Architecture: x86-64
-
RE: GIT Update not working?
Hi Quazz, Tom, Wayne,
I’m just a simple boy from Windows-Country lost in the big Linux-city… all y’all be speaking linux lingo to me hoping I’ll undestand
@Quazz :
sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinux sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/selinux/config
doesn’t compute:
[root@localhost bin]# sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinux sed: warning: failed to get security context of /etc/sysconfig/selinux: No data available[root@localhost bin]# [root@localhost bin]# sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/selinux/config sed: warning: failed to get security context of /etc/selinux/config: No data available[root@localhost bin]#
next:
[root@localhost bin]# service iptables stop Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: Unit iptables.service not loaded. [root@localhost bin]# Failed to stop iptables.service: Unit iptables.service not loaded.
makes sense I guess, I tried to kill that one dead a while ago, I run in a network I trust this machine is not connected to the outside world.
-
RE: GIT Update not working?
Hey Quazz!
Results as shown:
[root@localhost fogproject]# tail bin/error_logs/fog_error_1.3.4-RC-2.log php-mcrypt-5.6.30-1.el7.remi.x86_64 php-mysqlnd-5.6.30-1.el7.remi.x86_64 php-process-5.6.30-1.el7.remi.x86_64 tar-1.26-31.el7.x86_64 tftp-server-5.2-13.el7.x86_64 unzip-6.0-16.el7.x86_64 vsftpd-3.0.2-21.el7.x86_64 wget-1.14-13.el7.x86_64 xinetd-2.3.15-13.el7.x86_64 passwd: SELinux denying access due to security policy.
I knew just enough to check the state of SELinux:
[root@localhost fogproject]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: disabled Current mode: permissive Mode from config file: permissive Policy MLS status: disabled Policy deny_unknown status: denied Max kernel policy version: 28
-
GIT Update not working?
Hi,
I’m trying to update my fog server to the latest version, using the guide (and video) @ https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk (kudos for the clear linux noob explanations there!)
The git pull worked fine the first time, but the install never updated anything.
Below the output of a second attempt, it seems to end in “Setting up fog password…Failed!”
what could I be doing wrong?
Currently installed: Running Version 1.3.0-RC-22 SVN Revision: 6016
[root@localhost fogproject]# git pull Already up-to-date. [root@localhost fogproject]# cd bin/ [root@localhost bin]# ./installfog.sh Installing LSB_Release as needed * Attempting to get release information.......................Done systemd +------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 1.3.4-RC-2 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Redhat based Installation ###################################################################### # FOG now has everything it needs for this setup, but please # # understand that this script will overwrite any setting you may # # have setup for services like DHCP, apache, pxe, tftp, and NFS. # ###################################################################### # It is not recommended that you install this on a production system # # as this script modifies many of your system settings. # ###################################################################### # This script should be run by the root user. # # It will prepend the running with sudo if root is not set # ###################################################################### # ** Notice ** FOG is difficult to setup securely # # SELinux and IPTables are usually asked to be disabled # # There have been strides in adding capabilities # # The recommendations would now be more appropriate # # to set SELinux to permissive and to disable firewall for now. # # You can find some methods to enable SELinux and maintain firewall # # settings and ports. If you feel comfortable doing so please do # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Redhat * Detected Linux Distribution: CentOS Linux * Server IP Address: 172.16.1.2 * Server Subnet Mask: 255.255.0.0 * Interface: enp2s4 * Installation Type: Normal Server * Donate: 0 * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. 172.16.1.2) * Option 067/filename is the bootfile: (e.g. undionly.kpxe) * Are you sure you wish to continue (Y/N) y * Installation Started * Installing required packages, if this fails | make sure you have an active internet connection. * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: bc curl gcc gcc-c++ gzip httpd lftp m4 make mariadb mariadb-server mod_ssl net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-process tar tftp-server unzip vsftpd wget xinetd * Skipping package: bc........................................(Already Installed) * Skipping package: curl......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: gcc-c++...................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: httpd.....................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: make......................................(Already Installed) * Skipping package: mariadb...................................(Already Installed) * Skipping package: mariadb-server............................(Already Installed) * Skipping package: mod_ssl...................................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: nfs-utils.................................(Already Installed) * Skipping package: php.......................................(Already Installed) * Skipping package: php-bcmath................................(Already Installed) * Skipping package: php-cli...................................(Already Installed) * Skipping package: php-common................................(Already Installed) * Skipping package: php-fpm...................................(Already Installed) * Skipping package: php-gd....................................(Already Installed) * Skipping package: php-ldap..................................(Already Installed) * Skipping package: php-mbstring..............................(Already Installed) * Skipping package: php-mcrypt................................(Already Installed) * Skipping package: php-mysqlnd...............................(Already Installed) * Skipping package: php-process...............................(Already Installed) * Skipping package: tar.......................................(Already Installed) * Skipping package: tftp-server...............................(Already Installed) * Skipping package: unzip.....................................(Already Installed) * Skipping package: vsftpd....................................(Already Installed) * Skipping package: wget......................................(Already Installed) * Skipping package: xinetd....................................(Already Installed) * Updating packages as needed.................................OK * Confirming package installation * Checking package: bc........................................OK * Checking package: curl......................................OK * Checking package: gcc.......................................OK * Checking package: gcc-c++...................................OK * Checking package: gzip......................................OK * Checking package: httpd.....................................OK * Checking package: lftp......................................OK * Checking package: m4........................................OK * Checking package: make......................................OK * Checking package: mariadb...................................OK * Checking package: mariadb-server............................OK * Checking package: mod_ssl...................................OK * Checking package: net-tools.................................OK * Checking package: nfs-utils.................................OK * Checking package: php.......................................OK * Checking package: php-bcmath................................OK * Checking package: php-cli...................................OK * Checking package: php-common................................OK * Checking package: php-fpm...................................OK * Checking package: php-gd....................................OK * Checking package: php-ldap..................................OK * Checking package: php-mbstring..............................OK * Checking package: php-mcrypt................................OK * Checking package: php-mysqlnd...............................OK * Checking package: php-process...............................OK * Checking package: tar.......................................OK * Checking package: tftp-server...............................OK * Checking package: unzip.....................................OK * Checking package: vsftpd....................................OK * Checking package: wget......................................OK * Checking package: xinetd....................................OK * Configuring services * Setting up fog user.........................................Already setup * Setting up fog password.....................................Failed! [root@localhost bin]# ```