• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Create Task Capture Error

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    37
    6.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • george1421G
      george1421 Moderator @butch2861
      last edited by george1421

      @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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      B 3 Replies Last reply Reply Quote 0
      • B
        butch2861 @george1421
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • B
          butch2861 @george1421
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • B
            butch2861 @george1421
            last edited by

            @george1421 0_1537995385684_www.conf.txt

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @butch2861
              last edited by

              @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.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              B 2 Replies Last reply Reply Quote 0
              • B
                butch2861 @george1421
                last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • B
                  butch2861 @george1421
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • B
                    butch2861 @george1421
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @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.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        butch2861 @Sebastian Roth
                        last edited by

                        @Sebastian-Roth I get this ls: cannot access ‘/var/www/fog/lib/client/servicemodule.class.php’: No such file or directory

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by

                          @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/
                          

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          B george1421G 3 Replies Last reply Reply Quote 0
                          • B
                            butch2861 @Sebastian Roth
                            last edited by

                            @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…

                            1 Reply Last reply Reply Quote 0
                            • B
                              butch2861 @Sebastian Roth
                              last edited by

                              @Sebastian-Roth i have 2 files in this dir ‘packages/web/lib/client/’ they are download and index.php

                              1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @Sebastian Roth
                                last edited by

                                @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.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  butch2861 @george1421
                                  last edited by

                                  @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?

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @butch2861
                                    last edited by

                                    @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?

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      butch2861 @george1421
                                      last edited by

                                      @george1421 George I ran this command find /var/www -name servicemodule* and it found this:
                                      /var/www/fog/service/servicemodule-active.php

                                      when 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

                                      george1421G 1 Reply Last reply Reply Quote 0
                                      • george1421G
                                        george1421 Moderator @butch2861
                                        last edited by

                                        @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.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          butch2861 @george1421
                                          last edited by

                                          @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:

                                            http://10.0.10.247/fog/management

                                          • Press [Enter] key when database is updated/installed.

                                          george1421G 1 Reply Last reply Reply Quote 0
                                          • george1421G
                                            george1421 Moderator @butch2861
                                            last edited by george1421

                                            @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.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                            B 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post

                                            210

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project