Error Installing Fog - FOG Multicast Management Server Failed
-
Did you make sure to update your sources/OS before installing FOG? On ubuntu, that’s apt-get update following by an apt-get upgrade.
This makes sure you have the latest info on the packages. This can solve many a tricky install problem.
-
She’s running centos 6.4, so:
[CODE]yum -y update[/CODE]
Would work much better (and yes I totally just learned how to use bb code element )
-
I’m starting to lean more towards this being a package issue.
Are you sure you’re system is updated to it’s fullest extent?
Also,
After you’ve performed an install, can you give the last 20 lines of the file:
/var/log/httpd/error_log
This may be telling us your exact issue which would be extremely helpful as FOGMulticastManager is a PHP file, so error’s should be written there.
-
You can open another terminal using ALT+F2, and do a [CODE]tail -f /var/log/syslog[/CODE] as you do the install.
Toggle between the screens using ALT+F1 for the installer and ALT+F2 for the log.
This might help us find what is happening.
The syslog may be in a different location for CentOS. I’m kind of spoiled to Ubuntu.
-
CentOS is:
[CODE]tail -f /var/log/messages[/CODE]
-
Everything is updated, i made sure to run the updates through yum at least three times today before starting the FOG installation. One thing I probably should mention is that i have another NIC on this VM which is disabled for now. This shouldnt interfere should it? Our plan is to run this on every vlan on our network, which will require multiples NICs.
As far as log files, no its been a while since I have used linux. I used to know bash shell really well bc of previous programming experience. Just been a while since ive utilized it. I will get you those lines as soon as I can.
-
Alright,
Is the nic you have available setup for bridged or NAT network?
If it’s NAT, that’s probably why you’re having an issue, outside traffic is allowed, but incoming traffic is not. Even if this isn’t the direct cause of the issue, it will cause issues down the road. When I setup my VM (I already deleted it) I had it set to NAT, and although everything installed fine on mine, I use virtualbox rather than VMWare, so it may be slightly different configurations in that regard. I’d try making sure your VM is using a bridged adapter versus the VM NAT network system.
-
[B]When you run the installer, are you running it with SUDO or equivalent?[/B]
If you are and still having the issue, continue…
Ok. Checking through the 0.32 source code for a RedHat based install, it appears that it should be copying files to the init.d path and then trying to start those services using
[CODE]
service ${initdMCfullname} restart >/dev/null 2>&1;
service ${initdMCfullname} status >/dev/null 2>&1;
[/CODE]where initdMCfullname=“FOGMulticastManager”;
the result of the “status” check is failing. Make sure in your init.d path (/etc/init.d possibly), you have a file called FOGMulticastManager, and its permissions are rwxr-xr-x root root.
If you do, try running
[CODE]
sudo service FOGMulticastManager restart
[/CODE]and check the output.
If you need to, run
[CODE]
sudo service FOGMulticastManager status
[/CODE] and check the output. -
If you look at the “status” option in the /etc/init.d/FOGMulticastManager script, you’ll see the command it’s using to check the status when you call it using:
[CODE]sudo service FOGMulticastManager status[/CODE].Looks to be
[CODE]sudo status FOGMulticastManager[/CODE]What do those commands give you?
-
When trying to start the FOGMulticastManger service using
[CODE]service FOGMulticastManager start[/CODE]
It comes back and says Permission Denied. The path for that service is /opt/fog/service/FOGMulticastManager/FOGMulticastManagerI change the permissions like suggested above to rwxr-xr-x root root for the file /etc/init.d/FOGMulticastManager
Still says permission denied. The services are enabled.NICs are set for bridged.
-
Make sure you’re installing fog as user root.
Also, make sure you’re running the command chad’s stated as root.
If you’re logged in as another user, who has sudo privileges:
run the installfog.sh with:
[CODE]sudo ./installfog.sh[/CODE] -
I updated my previous posts to include the sudo part just to clear up any confusion.
-
I’m logged in as root. Everything I’ve done on this server has been as root
-
I’d, still, highly recommend just logging in as root. Or sudo up to root with the command:
[CODE]sudo su -[/CODE]
Then run the installer.
You’ll be in as root and won’t need to append the sudo command to every statement.
-
If you are getting permission denied as root, even when using sudo, then there is something else wrong and not really a FOG problem. I don’t know where to go from here…
-
It’s almost as if you’ve got umasks turned on and/or the root filesystem is set as noexec within the fstab file.
-
We are going to start over from scratch. My boss wanted to use CentOS instead of Ubuntu because of more stability. I’ve convinced him now that we need to use what is RECOMMENDED! lol Sorry that this a been a roller coaster. Thanks for all your help!
-
I don’t think CentOS is a problem. I run CentOS with no issues with fog. As I also performed my install with the same WIKI you did, it seems more like your system is just setup for noexec on the root filesystem which could be causing the issues you’re seeing. Essentially, the service FOGMulticastManager script is executing on a file, rather than a binary, it would cause the issues you’re seeing from what I can tell.
-
I’m looking at /etc/fstab and all the filesystems are on default, none of them say noexec.
-
Then I would say do the “from scratch” method you suggested as I haven’t any clue what else to try.