Fog 0.32 unable to start replicator service
-
I’m under 1.2 and log should be somewhere else.
Try to find it with this command :[CODE]
locate fogreplicator.log
[/CODE] -
No results with that command.
-
What happens if you run:
[code]sudo service FOGMulticastManager stop
sudo service FOGImageReplicator stop
sudo service FOGScheduler stop
sudo service FOGMulticastManager start
sudo service FOGImageReplicator start
sudo service FOGScheduler start
updatedb
locate fogreplicator.log[/code] -
Hi Tom, Attached a zip file of the logs you requested including a screen shot (well a text output of my putty session) of the commands you suggested I run…
I have look around the forums and even google searching the issue and so far nothing comes up why the services don’t start or stay running and usually the ones I do find already have the log files available for troubleshooting which of course is not true in my case. the TTY2, 3, and 4 screens aren’t available either and they show up fine on my other FOG servers I have setup with storage nodes. I typically use the Ubuntu 12.0.4 LTS server install 32bit or 64bit OS and the 0.32 FOG installer on my installations. The server I’m having trouble with is a 32bit version.
I also have redone this particular server from scratch last week, and restored the images and database on it and still have the same issue… perhaps an issue with the MYSQL database?
The server does fine with all other functions, downloading and uploading images and running snapins.
[url=“/_imported_xf_attachments/1/1333_zipfile of logs of 0.32 main FOG server.zip?:”]zipfile of logs of 0.32 main FOG server.zip[/url]
-
What version of PHP are you running?
Run from a terminal:
[code]php -v[/code] -
here’s the text output of that command
root@cec-fog:~# php -v
PHP 5.3.10-1ubuntu3.13 with Suhosin-Patch (cli) (built: Jul 7 2014 18:52:09)
Copyright 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright 1998-2012 Zend Technologies
root@cec-fog:~# -
I see that services were not running when you run the stop command.
Does it change something after you started them manually ?When i have strange things, i run install.sh and fog takes it as an update (no db drop or image deleted).
In fact, i do it for each new svn version.
Maybe this could fix something ? -
When I start the services I don’t notice any changes especially the log files or the other TTY screens appearing, it’s like they load into a black hole somewhere never to be seen again. I was hoping to find a log file somewhere that will note any information regarding the startup of the services so that I may track it down easier… like I said earlier, I had to change the NIC on the main server which may have caused this issue which so far is only a theory.
I have attempted the re-install of FOG and it has not changed anything and I’m hesitant to do a SVN or regular upgrade to the 1.2 version. I experimented upgrading 0.32 to version 1.0.x versions and my results were OK, but I noted some challenges and will mean a few changes on our backend like DHCP options is required.
I did meet with my supervisors yesterday afternoon and we are discussing some changes on how we are managing the FOG servers and we will look into the newer releases of FOG sometime in June 2015. Right now I’m observing other forums regarding the best combinations for new FOG releases and the OS distro/version to use.
-
This sounds a lot like the services are crashing before any logs are output. When they crash or exit unexpectedly, the output is masked by start-stop-daemon, and goes into the “black hole”.
What happens if you manually run the services like so… (these do not background when run like this… if successful, you will not see any output, they will appear to just sit there. Control+Z to suspend, then bg to send to background)
[code]
sudo /opt/fog/service/FOGImageReplicator/FOGImageReplicator
{Control+z}
bg
sudo /opt/fog/service/FOGMulticastManager/FOGMulticastManager
{Control+z}
bg
sudo /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler
{Control+z}
bg
[/code]
Any errors? -
I did what you suggested Mentaloid and I immediately got a permission denied error, I applied the permission octal code 0755 to directories and set the permissions recursively and restarted my FOG server and now those services are starting up. For some reason the octal code was set to 0644.
I now have the TTY 2 ,3 and 4 screens. I will now retry to connect my second storage node
-
Confirmed my main FOG server can replicate to my storage node now. Thanks again everyone for your help I’m glad the solution was simple.