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

    Error when creating capture/deploy task

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    14
    3.2k
    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.
    • D
      darius
      last edited by darius

      Hi
      I am new to FOG, I first installed FOG 1.2 and it worked great!

      I have now installed FOG 6563 on Ubuntu 14.04
      When I try to create a capture or deploy task instant, I get the following error

      The website encountered an error while retrieving http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1. It may be down for maintenance or configured incorrectly.

      Creating the task as delayed works fine. Creating advanced actions also works great.

      In the apache error log I get the following error:
      [Sat Mar 05 19:47:10.368432 2016] [:error] [pid 21132] [client 172.16.0.250:54091] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1

      At first I upgraded from 1.2 to 6563 and got the same error. the I did a fresh install of Ubuntu and installed 6563. same problem.
      Can somebody help?

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        The error should be fixed, but your still going to run into a problem. You need to ensure your image is associated to a storage group.

        This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

        D 1 Reply Last reply Reply Quote 0
        • D
          darius @Tom Elliott
          last edited by darius

          Thanks for taking the time to answer @Tom-Elliott

          @Tom-Elliott said:

          The error should be fixed, but your still going to run into a problem.

          What do you mean? Is this a known error that you are going to fix? But I will still have this problem.

          You need to ensure your image is associated to a storage group.

          This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.

          I did not understand this, I choose the “default” storage group by cliking on it, that did now work. Do I need to at a new group?

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @darius
            last edited by Tom Elliott

            @darius said:

            Thanks for taking the time to answer @Tom-Elliott

            @Tom-Elliott said:

            The error should be fixed, but your still going to run into a problem.
            What do you mean? Is this a known error that you are going to fix? But I will still have this problem.

            What I mean by this is the error will not give you a blank page, but it could’ve still caused an issue in generating the task.

            @darius said:

            You need to ensure your image is associated to a storage group.

            This means, selecting your image, then click on Storage Groups, it will show one being defined but this is solely so you can actually edit the image.

            I did not understand this, I choose the “default” storage group by cliking on it, that did now work. Do I need to at a new group?

            If you added the image to the storage group you should be fine.

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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

            1 Reply Last reply Reply Quote 0
            • D
              darius
              last edited by

              Adding the storage group to the image didn’t make any difference. Any other suggestions?

              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @darius
                last edited by

                @darius How didn’t it make any difference? Are you still seeing the same error or is it presenting another error?

                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                D 1 Reply Last reply Reply Quote 0
                • D
                  darius @Tom Elliott
                  last edited by

                  @Tom-Elliott I get the same error 😞

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @darius
                    last edited by

                    @darius Then do me a favor.

                    Run:

                    sudo rm -rf /var/www/fog
                    sudo rm -rf /var/www/html/fog
                    sudo ln -s /var/www/html/fog /var/www/fog
                    

                    Then rerun the installer.

                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    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

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      darius @Tom Elliott
                      last edited by darius

                      @Tom-Elliott

                      Deleted the directories and installed again. same error when trying to capture.

                      I run the installer with sudo. I read the manual again, and stated that i need to run the installer with root. Can it be a permission issue?

                      The website encountered an error while retrieving http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1. It may be down for maintenance or configured incorrectly.

                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @darius
                        last edited by

                        @darius What’s in the apache error logs?

                        Are you sure you’re updating the trunk folder? Does it show the proper version in the cloud? What is in the cloud?

                        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        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

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          darius @Tom Elliott
                          last edited by darius

                          @Tom-Elliott thanks for your patience

                          Not sure what a trunk folder is (im new to fog) but in the cloud is “FOG 6563”

                          This is my apache log:
                          [Sat Mar 05 19:14:40.572322 2016] [:error] [pid 18038] [client 172.16.0.250:53618] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 19:15:23.848370 2016] [:error] [pid 18082] [client 172.16.0.250:53772] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 19:15:56.968386 2016] [:error] [pid 18038] [client 172.16.0.250:53819] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=2
                          [Sat Mar 05 19:40:48.384507 2016] [:error] [pid 18036] [client 172.16.0.250:53903] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 19:47:10.368432 2016] [:error] [pid 21132] [client 172.16.0.250:54091] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 20:01:39.544315 2016] [:error] [pid 21133] [client 172.16.0.250:54723] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: https://172.16.0.10/fog/management/?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 20:10:42.944254 2016] [:error] [pid 21612] [client 172.16.0.250:56257] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: https://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=2
                          [Sat Mar 05 20:46:49.563800 2016] [:error] [pid 18039] [client 172.16.0.104:59142] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
                          [Sat Mar 05 20:52:40.383518 2016] [:error] [pid 18037] [client 172.16.0.104:59242] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
                          [Sat Mar 05 21:14:56.659907 2016] [:error] [pid 21131] [client 172.16.0.104:59521] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 21:18:13.632334 2016] [:error] [pid 21133] [client 172.16.0.104:59568] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
                          [Sat Mar 05 22:13:50.776286 2016] [:error] [pid 21133] [client 172.16.0.104:63508] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=1&type=2
                          [Sat Mar 05 22:15:36.462617 2016] [:error] [pid 18036] [client 172.16.0.104:63525] PHP Warning: html_entity_decode() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 87, referer: http://172.16.0.10/fog/management/index.php?node=image&sub=membership&id=5
                          [Sat Mar 05 22:15:44.073216 2016] [:error] [pid 18038] [client 172.16.0.104:63527] PHP Warning: html_entity_decode() expects parameter 1 to be string, array given in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 87, referer: http://172.16.0.10/fog/management/index.php?node=image&sub=membership&id=5
                          [Sat Mar 05 23:01:58.529804 2016] [mpm_prefork:notice] [pid 18033] AH00169: caught SIGTERM, shutting down
                          [Sat Mar 05 23:02:27.457031 2016] [mpm_prefork:notice] [pid 5085] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
                          [Sat Mar 05 23:02:27.457062 2016] [core:notice] [pid 5085] AH00094: Command line: ‘/usr/sbin/apache2’
                          [Sat Mar 05 23:03:43.679406 2016] [:error] [pid 5121] [client 172.16.0.250:57199] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/?node=host&sub=deploy&sub=deploy&type=2&id=1
                          [Sat Mar 05 23:05:43.331206 2016] [:error] [pid 5121] [client 172.16.0.250:57255] PHP Fatal error: Call to a member function isValid() on null in /var/www/fog/lib/fog/host.class.php on line 547, referer: http://172.16.0.10/fog/management/index.php?node=host&sub=deploy&id=2&type=2

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            How did you install fog?

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

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

                              @darius Welcome to the forums. As you seam to be new I’ll give you a quick rundown on how things work with FOG trunk. Thanks a lot for letting us know about the error. This is very helpful! Tom found the issue and fixed it in the source code. So you need to “update” your local copy of the source code to see Tom’s change as well.

                              I guess you used svn or git command to checkout the FOG trunk code. Then you ran the installer. To update your local copy of FOG change to the folder (cd /fog/code/directory) and run svn up or git pull (depending on what you used earlier). Then run the installer again!

                              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

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                darius @Sebastian Roth
                                last edited by darius

                                @Sebastian-Roth Updatet to 6597 from Git and Success! 🙂 thanks to @Tom-Elliott for all the help and for fixing the code!

                                Looking forward to the final release. I Have one lab with 98 computers at work that need to be re imaged alot. Looking forwarded to trying out FOG there 🙂

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

                                250

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project