Just upgraded to 1.2.0 and iPXE gives operation not permitted
-
We have been using FOG for imaging and wanted to explore the other things it can do. We also were having issues with Dell Optiplex 9020’s failing to upload images.
Runing Ubuntu 10.04
Was working fine other than Optiplex 9020 on version .32
Now any system we try to boot into FOG gives the PXE Operation not permitted.I have looked through the forums all morning and did find [url]http://fogproject.org/forum/threads/stuck-at-boot-php-operation-not-permitted.10706/[/url] but the solution in it did not resolve the issue.
Any help would be great!!!
-
At which state exactly do you see “Operation not permitted”? Please take a picture for us! AFAIK this error can happen at several stages and would mean something different depending on when it happens.
-
[IMG]http://i847.photobucket.com/albums/ab34/Rehendril/20150327_144218_zpsoyfoqsaq.jpg[/IMG]
The DHCP server is set to use ipxe.kpxe, not sure if the /default.ipxe means that it is not picking that up from the DHCP server or not. We have DHCP running on the same system as FOG.
-
what do you see if you go to [url]http://172.25.100.80/fog/service/ipxe/boot.php[/url] in a web browser?
-
When I go there I get permission denied. I did see this in the thread I mentioned in my original post and ran the two commands below, but I guess I forgot to check after running them.
sudo chown -R www-data:www-data /var/www/fog
sudo chown -R fog:www-data /var/www/fog/service/ipxe -
Is there a firewall? 10.04 is very old.
-
No there is no firewall. 10.04 is what it was set up on previous to me getting here and taking it over.
The system is self contained, it cannot reach the outside world nor any other part of the company network, so they did not put a Firewall in. -
lets get a copy of your install log
-
Maybe just double check to be sure? See if this command will run:
[CODE]sudo ufw status verbose[/CODE]And, if that works, you could do something similar to turn the firewall off (if it’s on):
[CODE]sudo ufw disable[/CODE]If those commands don’t work, you can use the iptables command:
[CODE]sudo iptables -L[/CODE]Resources used:
[url]http://www.howtogeek.com/115116/how-to-configure-ubuntus-built-in-firewall/[/url]
[url]https://help.ubuntu.com/community/IptablesHowTo[/url]#LetsMakeScripts
-
Here is the install log.
I will try the commands Wayne suggested.
[url=“/_imported_xf_attachments/1/1819_foginstall.txt?:”]foginstall.txt[/url]
-
The first command came back “disabled”, so I skipped the second command.
The third command gave me some output but I still get the Permission denied on the url from earlier and the same error when trying to boot the system to image it.
-
What version of ph do you have?
-
I am not sure and niether is the other Tech in the office. How can I check? Sorry I am newer to Linux.
-
[CODE]php -v[/CODE]
Resource used:
[url]http://serverfault.com/questions/296156/how-to-check-my-php-and-mysql-version-on-ubuntu-vps[/url]#LetsMakeScripts
-
PHP version 5.3.2
mysql 5.1.7 -
Anything in the apache log files?? See Tom’s signature on where to find those. And please check apache’s access.log too! See if this files is really being requested.
Do you use this webserver for other things too (virtual host setup) or is only FOG installed on this system??
-
We only use it for FOG. Since it is completely on it’s own network I will look at the apache logs on Monday when I get back into the office. I doesn’t connect to the internet at all.
-
Attached is snippets from the apache error and access logs. I don’t see any activity from Friday March 27th, which is when we did the upgrade. I am thinking maybe the issue is with the networking setup on the machine? Do you guys have any ideas? I was thinking about just backing up our data, upgrading to a newer distro (that you guys have listed as stable) and redoing the install of the latest FOG version.
[url=“/_imported_xf_attachments/1/1832_Apache Logs.txt?:”]Apache Logs.txt[/url]
-
Please don’t reinstall yet. We better find out what’s wrong and then you can still decide. Better to learn and know what was wrong than having a clean new install working but no idea about why (well, at least that’s how I see things).
From what I can see in the error.log I am pretty sure it’s access rights on that file. Not sure how that could happen… Please post the output of the following command run on the FOG server:
[CODE]sudo ls -alZ /var/www/fog/service/ipxe[/CODE] -
Here is the output:
[EMAIL]root@fog-server[/EMAIL]:~# sudo ls -al /var/www/fog/service/ipxe
total 34188
drwx------ 2 fog www-data 4096 2015-03-26 11:54 .
drwx------ 3 www-data www-data 4096 2015-03-26 11:54 …
-rwxr-xr-x 1 fog www-data 1105 2015-03-26 11:54 advanced.php
-rwxr-xr-x 1 fog www-data 44908 2015-03-26 11:54 bg.png
-rwxr-xr-x 1 fog www-data 756 2015-03-26 11:54 boot.php
-rwxr-xr-x 1 fog www-data 6169392 2015-03-26 11:54 bzImage
-rwxr-xr-x 1 fog www-data 6170512 2015-03-26 11:54 bzImage32
-rwxr-xr-x 1 fog www-data 234697 2015-03-26 11:54 grub.exe
-rwxr-xr-x 1 fog www-data 9577456 2015-03-26 11:54 init_32.xz
-rwxr-xr-x 1 fog www-data 10914208 2015-03-26 11:54 init.xz
-rwxr-xr-x 1 fog www-data 25340 2015-03-26 11:54 memdisk
-rwxr-xr-x 1 fog www-data 1839104 2015-03-26 11:54 memtest.bin