Create Task Capture Error
-
@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 -
@butch2861 Yes that is the right process, but it didn’t find the needed file.
I would suggest that you rerun the installer and then confirm that the file exists after running the installer.
cd /root/fogproject/bin ./installfog.sh
(note without the -y) make sure the defaults are still accurate. The installer will insert what you answered the first time you ran through the installer for answers.
-
@george1421 okay i re-ran the install and at the end it displayed this and I am still at this point: what do I need to do about the database schema issue?
-
You still need to install/update your database schema.
-
This can be done by opening a web browser and going to:
-
Press [Enter] key when database is updated/installed.
-
-
@butch2861 OK at this point go to that URL using your windows browser.
On that page there should be a button to update the schema. Press it. When it says the schema has been updated return to the linux server install script and press enter to continue with the installation.
If you don’t get the schema update page, but the login window instead then the schema is up to date and just return to the installer and continue with the install.
-
@george1421 I ahve re-ran the installer and rebooted and am still getting the same error when trying to Upload an Image to a pc…
-
@butch2861 look at the forum chat bubble for additional information.
-
@butch2861 To me it looks like the GIT repo you are running the installer from is corrupted. Missing files?!? Possibly just delete and re-clone.
-
@Sebastian-Roth I remoted into the OPs fog server. I switch him over to the working branch and repulled the using git. After I reran the installer all of the files were where they should be. He was able to schedule a deployment. I think he is good for now.