I don’t know if it makes a difference but my storage node is located at a different site connected back to my main site where my main FOG server is located.
Posts made by seq-nate
-
RE: Can't get FOG to replicate to storage node
-
RE: Can't get FOG to replicate to storage node
Changed to use root and still have same results.
-
RE: Can't get FOG to replicate to storage node
I filled out the fields on my main server, restarted FOGReplicator and still getting the same results.
-
RE: Can't get FOG to replicate to storage node
[quote=“Tom Elliott, post: 22674, member: 7271”]Check the file /opt/fog/service/etc/config.php
Make sure the MYSQL information is set correctly for your database.
Restart the FOG Services:
[code]sudo service FOGMulticastManager restart
sudo service FOGImageReplicator restart
sudo service FOG Scheduler restart[/code]That error should go away.
If you can’t login because the mysql server is separate from the FOG Server you can allow root to the host from any place with
GRANT PRIVILEGES to ‘root’@‘%’ IDENTIFIED BY ‘PASSWORD’;This should allow any host to connect as the root user.
You are correct that fogstorage user is created, but I don’t know exactly where it needs to connect.[/quote]
Here is config.php from my storage node:
<?php
define( “UPDSENDERPATH”, “/usr/local/sbin/udp-sender” );
define( “MULTICASTLOGPATH”, “/opt/fog/log/multicast.log” );
define( “MULTICASTDEVICEOUTPUT”, “/dev/tty2” );
define( “MULTICASTSLEEPTIME”, 10 );
define( “MULTICASTINTERFACE”, “eth0” );
define( “UDPSENDER_MAXWAIT”, null );define( “MYSQL_HOST”, “10.10.1.101” );
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “fogstorage” );
define( “MYSQL_PASSWORD”, “fs9536” );define( “LOGMAXSIZE”, “1000000” );
define( “REPLICATORLOGPATH”, “/opt/fog/log/fogreplicator.log” );
define( “REPLICATORDEVICEOUTPUT”, “/dev/tty3” );
define( “REPLICATORSLEEPTIME”, 600 );
define( “REPLICATORIFCONFIG”, “/sbin/ifconfig” );define( “SCHEDULERLOGPATH”, “/opt/fog/log/fogscheduler.log” );
define( “SCHEDULERDEVICEOUTPUT”, “/dev/tty4” );
define( “SCHEDULERWEBROOT”, “/var/www/fog” );
define( “SCHEDULERSLEEPTIME”, 60 );
?>On my main FOG server the only difference with the file is this:
define( “MYSQL_HOST”, “” );
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “” );
define( “MYSQL_PASSWORD”, “” );Do I need to be filling out these fields?
-
Can't get FOG to replicate to storage node
I have a fresh install of FOG (.32) and a fresh install of Ubuntu (13.10) on both my main FOG server and storage node. I didn’t run into any snags installing on the main server however I can’t get the storage node to talk to the mysql database on my main server. It only says “Failed to connect to database server, will try again in next iteration.”
The only site I found that talks about the issues is:
[url]http://www.edugeek.net/forums/o-s-deployment/55058-cant-replicate-storage-node.html[/url]They recommend allowing the root user to log in from any host. This didn’t make sense to me because the storage node is supposed to be using a fogstorage user which does have permission to log in from any host. Regardless, I tried following the procedures with no change.
I am at a loss, is there something I am missing or is there some incompatibility with Ubuntu 13.10?
-
RE: Can't search client list
I just recently started completely over from scratch because of something else I broke. I installed a fresh copy of Ubuntu 13.10 and downloaded the latest version of FOG. I got it up and running, made no changes and went straight into nodes. I created a node and then tried to search and go the same result. I am still able to list all nodes but not search for one individually. Is there a problem with one of the packages and Ubuntu 13.10?
-
RE: Can't search client list
Here are the answers to the posts since I was on last.
-PHP 5.5.3
-I found and removed &$tmp from /var/www/fog/management/includes/tasks.confirm.include.php which resolved, before this issue, a problem creating tasks.
-Yes, I am using Firefox
-I am able to connect to my old FOG server and perform a search without problems. -
RE: Can't search client list
only thing in apache log is:
[CODE]10.10.1.68 - - [29/Jan/2014:14:55:45 -0700] “GET /fog/management/ajax/host.search.php?crit=test&_=1391032548832 HTTP/1.1” 500 342 “http://10.10.1.101/fog/management/index.php?node=host&sub=newsearch” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0”[/CODE]The only thing I am seeing in dev tools is that it is throwing ‘ERROR_SEARCHING’ but don’t see why.
I have completely removed FOG and the MYSQL database and did a fresh install without any modification or imports and still getting the same problem.
-
RE: Can't search client list
Yes, when I cleared the table I created a new host entry and search for the host name I entered.
-
RE: Can't search client list
I cleared the host table, added a new test host and tried to search and still have the same result.
-
RE: Can't search client list
It appears that the search function is not working correctly being that the necessary fields are populated and also my test of a new import. Is there somewhere else I can be looking?
-
RE: Can't search client list
Searching through the host db it appears that it did successfully import the identifier fields.
-
RE: Can't search client list
just to test it, I deleted a host and then went through the procedure to register the host and I get the same result searching for the newly registered machine.
-
RE: Can't search client list
I only imported the hosts so ImageID is missing. OSID, Hostname, MAC are there. Hardware info is not.
-
Can't search client list
I am working at integrating FOG into my network. I have been running FOG on a laptop and imaging separately. I created the new server (Ubuntu 13.10) and installed FOG. I then exported the clients from the database on my old server and imported them into new server. If I select “list all hosts”, It displays all the hosts imported however if I try to search specifically for one machine it tells me “Error searching, please try again…”