Hosts not communicating, but pinging from FOG? Apache2 error.log included!
-
Ok, so I recently redid my Fog server. I am running:
Version - 1.2.0
Ubuntu - 12.04
Elitedesk 8300I got everything transferred over and set up exactly as I had it before. I even imaged a machine and it worked great, PXE boot and all. Only problem I noticed was that it was supposed to join the computer to the domain and also change the hostname afterward. It never did. On the web UI it showed the little status bar graphic “Pinging 290 hosts Complete!” and on the hosts list they all have the red exclamation point saying “could not resolve hostname.”
I looked up errors related to it on the forum and mostly found people having issues with their firewalls though I know it isn’t that since the firewall is off (we have our images set up that way since we have a District firewall and anti-virus). I tried pinging each computer from each other and was successful, however I could not ping the actual hostname, which when I looked at how you can set what DNS servers to search and all. Everything appears to be set properly and searching through the right dns servers.
The only thing I can find that seems like it may be a clue is in the Apache2 error.log. Could anyone tell me if I am on the right track? And for extra point, decipher where I’m to go from here? Could really use this pretty soon
Here is what I am getting, and its from all sorts of different IP’s on our network, so I’m sure those are hosts that are trying to connect. I could swear all the permissions are right, but now I’m not sure.
And advice?
[CODE]
[Thu Sep 11 19:56:56 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.14 with Suhosin-Patch configured – resuming normal operations
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:25 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:26 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:26 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:27 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:27 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:27 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:27 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:28 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:28 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:28 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:28 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:28 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:29 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:29 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:29 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:29 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:30 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:31 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:31 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:32 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:35 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:38 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:39 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied
[Thu Sep 11 19:57:43 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:43 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:44 2014] [error] [client ...] (13)Permission denied: access to /fog/index.php denied, referer: http://fog.edu/
[Thu Sep 11 19:57:44 2014] [error] [client ...] (13)Permission denied: access to /fog/index.php denied, referer: http://fog.edu/
[Thu Sep 11 19:57:47 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:48 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:48 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:50 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:50 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:52 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:52 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:53 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:53 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:55 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:57:58 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:57:58 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:58:02 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:58:03 2014] [error] [client ...] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks
[Thu Sep 11 19:58:07 2014] [error] [client ...] (13)Permission denied: access to /fog/service/servicemodule-active.php denied
[Thu Sep 11 19:58:08 2014] [error] [client ...**] (13)Permission denied: access to /fog/management/index.php denied, referer: http://fog.edu/fog/management/index.php?node=tasks[/CODE]
much love,
Creed
-
what do you see if you go to those pages in a browser?
what are the permissions set to for those files? -
How do you access the pages? Do you access them as:
[url]http://IP.OF.FOG.SERVER/fog[/url]
or
[url]http://IP.OF.FOG.SERVER[/url]
This could be the issue. I believe the postfix for the client currently is hardcoded to look for fog/service/<filename>
If you’re redirecting so you don’t have to type the /fog at the end of your IP this may be why you’re getting permission denied.
-
Sorry its taken me so long! Dang school ordered three 40x Chromebook mobile labs and they wanted them ready ASAP! Haha!
Ok, so here is what i pulled as far as permissions on the files in /var/www/fog/services/
[CODE]
-rwxrwxrwx 1 www-data www-data 277 Sep 6 15:43 alo-bg.php
-rwxrwxrwx 1 www-data www-data 739 Sep 6 15:43 autologout.php
-rwxrwxrwx 1 www-data www-data 8384 Sep 6 15:43 auto.register.php
-rwxrwxrwx 1 www-data www-data 855 Sep 6 15:43 av.php
-rwxrwxrwx 1 www-data www-data 2358 Sep 6 15:43 blame.php
-rwxrwxrwx 1 www-data www-data 1332 Sep 6 15:43 capone.php
-rwxrwxrwx 1 www-data www-data 318 Sep 6 15:43 checkcredentials.php
-rwxrwxrwx 1 www-data www-data 108 Sep 6 15:43 debug.php
-rwxrwxrwx 1 www-data www-data 247 Sep 6 15:43 dircleanup-dirs.php
-rwxrwxrwx 1 www-data www-data 979 Sep 6 15:43 displaymanager.php
-rwxrwxrwx 1 www-data www-data 882 Sep 6 15:43 donate.php
-rwxrwxrwx 1 www-data www-data 269 Sep 6 15:43 greenfog.php
-rwxrwxrwx 1 www-data www-data 373 Sep 6 15:43 grouplisting.php
-rwxrwxrwx 1 www-data www-data 402 Sep 6 15:43 hostnameloop.php
-rwxrwxrwx 1 www-data www-data 1013 Sep 6 15:43 hostname.php
-rwxrwxrwx 1 www-data www-data 373 Sep 6 15:43 imagelisting.php
-rwxrwxrwx 1 www-data www-data 51 Sep 6 15:43 index.php
-rwxrwxrwx 1 www-data www-data 4201 Sep 6 15:43 inventory.php
drwxrwxrwx 2 www-data www-data 4096 Sep 6 15:43 ipxe
-rwxrwxrwx 1 www-data www-data 655 Sep 6 15:43 jobs.php
-rwxrwxrwx 1 www-data www-data 215 Sep 6 15:43 locationcheck.php
-rwxrwxrwx 1 www-data www-data 400 Sep 6 15:43 locationlisting.php
-rwxrwxrwx 1 www-data www-data 719 Sep 6 15:43 man.hostexists.php
-rwxrwxrwx 1 www-data www-data 2013 Sep 6 15:43 mc_checkin.php
-rwxrwxrwx 1 www-data www-data 3876 Sep 6 15:43 Post_Stage2.php
-rwxrwxrwx 1 www-data www-data 1820 Sep 6 15:43 Post_Stage3.php
-rwxrwxrwx 1 www-data www-data 930 Sep 6 15:43 Post_Wipe.php
-rwxrwxrwx 1 www-data www-data 4223 Sep 6 15:43 Pre_Stage1.php
-rwxrwxrwx 1 www-data www-data 1522 Sep 6 15:43 PrinterManager.php
-rwxrwxrwx 1 www-data www-data 1921 Sep 6 15:43 progress.php
-rwxrwxrwx 1 www-data www-data 1636 Sep 6 15:43 register.php
-rwxrwxrwx 1 www-data www-data 2038 Sep 6 15:43 servicemodule-active.php
-rwxrwxrwx 1 www-data www-data 1325 Sep 6 15:43 snapcheck.php
-rwxrwxrwx 1 www-data www-data 3012 Sep 6 15:43 snapins.checkin.php
-rwxrwxrwx 1 www-data www-data 1748 Sep 6 15:43 snapins.file.php
-rwxrwxrwx 1 www-data www-data 1170 Sep 6 15:43 updates.php
-rwxrwxrwx 1 www-data www-data 255 Sep 6 15:43 usercleanup-users.php
-rwxrwxrwx 1 www-data www-data 1308 Sep 6 15:43 usertracking.report.php[/CODE]And this is from /management
[CODE]
drwxrwxrwx 2 www-data www-data 4096 Sep 6 15:43 ajax
drwxrwxrwx 5 www-data www-data 4096 Sep 6 15:43 css
-rwxrwxrwx 1 www-data www-data 553 Sep 6 15:43 export.php
drwxrwxrwx 2 www-data www-data 4096 Sep 6 15:43 images
-rwxrwxrwx 1 www-data www-data 6943 Sep 6 15:43 index.php
drwxrwxrwx 3 www-data www-data 4096 Sep 6 15:43 js
drwxrwxrwx 8 www-data www-data 4096 Sep 6 15:43 languages
drwxrwxrwx 3 www-data www-data 4096 Sep 6 15:43 lib
drwxrwxrwx 2 www-data www-data 4096 Sep 7 10:56 other
drwxrwxrwx 3 www-data www-data 4096 Sep 6 15:43 phpimages
drwxrwxrwx 2 www-data www-data 4096 Sep 6 15:43 reports
drwxrwxrwx 3 www-data www-data 4096 Sep 6 15:43 static[/CODE]I’m not best on what is needed permissions-wise but I thought I had set everything the way it was before.
Tom,
I do have a domain name for the server that has worked in the past. I am wondering if that is the root of my issue now. I can go to FOGSERVER.domain.edu and it brings me right to the main page. Dumb question: would that be network-side? I know I changed the bind-address in /etc/mysql/my.cnf to the IP of the server.
And then I don’t know if this may affect it but per the previous guy’s instructions I edited /var/www/index.html to look like:
[CODE]<html>
<head>
<meta http-equiv=“Refresh” content=“0; URL=fog/index.php”>
</head>
</html>[/CODE]But this was supposedly to access the web ui from the root IP? Anyway, I hope this is some ok info. Ill talk to the guy that originally edited DHCP to see if he knows about re-routing it. Thanks for all your help. I feel like I’m getting close!
- Creed