Create Task Capture Error
-
@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.
-
I am having the same issue. Tried re-installing as listed below. Still getting the same generic error - internal server error when trying to perform a capture.
-
@Jim-Holcomb Yes, you’re on working-1.6 and I’ll be helping with that here shortly.