Create Task Capture Error
-
@george1421 I ran this command from the CLI:
tail /var/log/apache2/error.log
and also this command
tail /var/log/php*-fpm.logand it produced what I shared abit ago.
-
@butch2861 Let me start with a common thread in regards to FOG 1.5.4 and some issues we’ve discovered since it was released.
///
Lets assume is the issue we’ve found after FOG 1.5.4 has been released.
- Change to the /etc directory from the fog server linux command prompt.
- Search for www.conf file. It can be in a number of locations depending on what version of php is installed. Use this command.
find /etc -name www.conf
(hopefully you will only find one) - Edit that file file and ensure these settings are accurate. Don’t just add them since all should be there except
php_admin_value[memory_limit] = 256M
you will need to add that entry.
php_admin_value[memory_limit] = 256M pm.max_requests = 2000 pm.max_children = 35 pm.min_spare_servers = 5 pm.start_servers = 5
- Save and exit your text editor.
- Reboot the fog server.
- See if that fixes what is wrong. You really should only see this strangeness under heavy load, but I guess it might show up sooner under certain conditions.
Also we found there is something strange going on in the linux kernels after 4.15.2, I’m going to recommend that you downgrade your FOG/FOS kernel to 4.15.2. The issue with later kernels is that its taking 3-5 minutes to create the disk structure under certain circumstances, where with 4.15.2 and older its only seconds to create the structure.
///I don’t think any of the above is related to your issue at the moment. I know the above changes have fixed a few things. You don’t have a unique setup using ubuntu 16.04 and FOG 1.5.4. If there was an issue with that combination it would have shown up before with other installations. So that leaves us with a configuration setting that is a bit wonky.
Since this seems to be related to capturing an image. What do you have configured for the image definition? What about the host definition you want to capture.
HINT: If you use the free image capture software greenshot you can get a better quality image capture than the entire screen. Its a bit hard to see the small print in your example below.
-
@george1421 I went in to edit the file (only found 1 www.conf btw) and down at the very bottom of the file was the setting for php_admin_value[memory_limit] = 256M and it had “NO” ; in the front of it, also I did not see ANY of this in the file:
pm.max_requests = 2000
pm.max_children = 35
pm.min_spare_servers = 5
pm.start_servers = 5I added this to the end of the file thinking that I needed to put a ; in front of each item and so I did so and rebooted with NO fix. I am still having the issue & btw here is the naming convention for the Image I used WIN1018032 for Image filename and Host is named win10test
-
@butch2861 That is not a normal www.conf file. Those settings must have already been in there. The php_admin_value[memory_limit] is defaulted to 32M and commented out by the line starting with a semicolon. Any text that is preceded by a semicolon is ignored.
Will you upload your www.conf file to the forum here so I can take a look at it. Something is off here.
-
@george1421 I have tried with no luck getting the file onto a usb drive; as I stated I am not a Linux dude…LOL; is it possible to let you onto my pc and SSH into with Putty and check it for me? I am an IT Director for a School District and this Server means alot to me for Imaging; Tom has putty into my machine a couple years ago to help me out and that worked…let me know George; I appreciate you sir.
-
@george1421 I got it George…I puttied into the file and edited it and just copied whole thing into notepad for you; more than 1 way to skin a cat they say…LOL; uploading now.
-
-
@butch2861 OK with the config file the way you have it php-fpm will not start. Remove the following from the bottom of the file.
pm.max_requests = 2000 pm.max_children = 35 pm.min_spare_servers = 5 pm.start_servers = 5
Leave the following line
php_admin_value[memory_limit] = 256M
then reboot the server.
That should allow you to get to the web ui again. Those lines I told you to check are interspersed in the config file.
-
@george1421 I just seen all that and have the file reset to just add the last line in. I had not seen those settings mingled in the text from top to bottom.
-
@george1421 got the file fixed, I can log into the Server just fine through the GUI but I still am getting that error on Uploading and also now downloading an Image to a pc…kinda weird. I made NO changes the last week but it did update maybe a week ago a few files for the Server i ran the git pull and it had a few files to update so I did it…how do I roll back on the Kernel as you were stating?
-
@george1421 George I will be checking back with you tomorrow; I have a migrane working on me so I am heading to the house for the day; Thank You for your help and I look forward to working with you more on this.
-
@butch2861 said in Create Task Capture Error:
Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class ‘ServiceModule’ not found in /var/www/fog/service/servicemodule-active.php
I’d say this is the main issue here. See if you have the file defining that class. Run
ls -al /var/www/fog/lib/client/servicemodule.class.php
and post full result or picture here. -
@Sebastian-Roth I get this ls: cannot access ‘/var/www/fog/lib/client/servicemodule.class.php’: No such file or directory
-
@butch2861 Something went very wrong when installing FOG I’m afraid. You can try fixing this very issue by copying the PHP file over from the source but I wonder why it’s missing. Possibly other parts are also missing? For now try:
sudo -i cd /path/to/git/repo cd packages/web/lib/client/ cp -i servicemodule.class.php /var/www/fog/lib/client/
-
@Sebastian-Roth I ran this and got this back:
cp:cannot stat ‘servicemodule.class.php’ :No such file or directory"I can get into Fog via Web GUI and everything seems to work just fine but the Client Capture…
-
@Sebastian-Roth i have 2 files in this dir ‘packages/web/lib/client/’ they are download and index.php
-
@Sebastian-Roth the path may be
/var/www/html/fog/lib/client/servicemodule.class.php
just for kicks run this command
find /var/www -name servicemodule.class.php
That should give you the full path to the file if it exists in the web services directory. -
@george1421 When I run this command I get back to the prompt and it displays nothing.
find /var/www -name servicemodule.php
I manually went into these dir and could not see it anywhere.
next step? -
@butch2861 Just to be sure I ran that on my FOG server.
find /var/www -name servicemodule* /var/www/html/fog/lib/client/servicemodule.class.php
And it was found in that path. I’m almost thinking you have a botched install (but also be aware that the file name you repeated in your last post is incorrect too).
How did you install FOG? Did you use the git method?
-
@george1421 George I ran this command find /var/www -name servicemodule* and it found this:
/var/www/fog/service/servicemodule-active.phpwhen I do an update for Fog I do this procedure that Tom Elliot told me to do:
cd /root/fogproject
git pull
cd bin
./installfog.sh -y