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

Unable to Capture Image - Invalid Storage Group

Scheduled Pinned Locked Moved
FOG Problems
2
18
1.5k
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.
  • J
    jramos76
    last edited by jramos76 Apr 22, 2020, 8:56 AM Apr 22, 2020, 2:54 PM

    Hi,

    I’m having issues capturing an image in FOG. The capture process captures all of the partitions and then at the very end, it gives an error - “Could not complete tasking (/bin/fog.upload)” and it has “Error returned: Invalid Storage Group” listed many times above. I’m running FOG version 1.5.6

    Any help would be appreciated.

    Thanks!

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Apr 22, 2020, 10:04 AM Apr 22, 2020, 4:04 PM

      @jramos76 I would think this issue is solved in the current version of FOG - 1.5.8. Though you might give manually fixing this in the code a quick try before you head into an update.

      Edit /var/www/html/fog/lib/fog/task.class.php on your FOG server, go to line 251 and change the code from

          public function getStorageGroup()
          {
              return $this->get('storagegroup');
          }
      

      to

          public function getStorageGroup()
          {
              return new StorageGroup($this->get('storagenode')->get('storagegroupID'));
          }
      

      For reference, here is the commit that should fix the issue: https://github.com/FOGProject/fogproject/commit/3c28f7bf862662a790ac2876db79f0c80bd0d89a#diff-8f1eb4dac68b90b06624e0fefdbfe47c

      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

      J 1 Reply Last reply Apr 22, 2020, 4:51 PM Reply Quote 0
      • J
        jramos76 @Sebastian Roth
        last edited by Apr 22, 2020, 4:51 PM

        @Sebastian-Roth Thanks for the code edit. I made the changes and my GUI stopped working so I couldn’t test if the capture works now. I restarted the server, but I still get “The page isn’t working” HTTP ERROR 500.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Apr 22, 2020, 5:45 PM

          @jramos76 Sorry for that. I am very sure there must be something you got wrong when editing. Please copy and paste the code you have in that file now (line 240 to 260 for example) and post that 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

          J 1 Reply Last reply Apr 22, 2020, 6:12 PM Reply Quote 0
          • J
            jramos76 @Sebastian Roth
            last edited by Apr 22, 2020, 6:12 PM

            @Sebastian-Roth Here is the code:

            public function getHost()
            {
            return $this->get(‘host’);
            }
            /**
            * Returns the storage group object.
            *
            * @return object
            /
            public function getStorageGroup()
            {
            return new StorageGroup($this->get(‘storagenode’)->get('storagegroupID));
            }
            /
            *
            * Returns the storage node object.
            *
            * @return object
            /
            public function getStorageNode()
            {
            return $this->get(‘storagenode’);
            }
            /
            *
            * Returns the image object.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth Apr 23, 2020, 5:24 AM Apr 23, 2020, 11:24 AM

              @jramos76 Sorry for the late reply. Just saw this now. Too much other work…

              Take a close look at the code you posted. There is the last ' (single quote) missing close to the end of the line. This would be causing the HTTP 500 I think. Better you copy&paste that code from the forums…

              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

              J 2 Replies Last reply Apr 23, 2020, 3:23 PM Reply Quote 0
              • J
                jramos76 @Sebastian Roth
                last edited by Apr 23, 2020, 3:23 PM

                @Sebastian-Roth Yes, my mistake. Thank you for noticing the missing quote. I now have the GUI back. I’ll post back here how the capture goes. Thanks again and have a nice day!

                1 Reply Last reply Reply Quote 0
                • J
                  jramos76 @Sebastian Roth
                  last edited by Apr 24, 2020, 3:15 PM

                  @Sebastian-Roth - I tried to do the capture again and still receive the same error message (Unable to capture image). Do you have other suggestions or are we at the point of upgrading to FOG 1.5.8? If so, do you have a link to instructions for upgrading? Thank you for your help with this.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Apr 24, 2020, 4:44 PM

                    @jramos76 I suggest you first take a picture of the error on screen, upload that to an image share and post a link here. Unless we see the exact error we cannot be sure.

                    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

                    J 1 Reply Last reply Apr 24, 2020, 6:42 PM Reply Quote 0
                    • J
                      jramos76 @Sebastian Roth
                      last edited by Apr 24, 2020, 6:42 PM

                      @Sebastian-Roth Here is the error: https://ibb.co/gzWYsfQ

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Apr 26, 2020, 9:03 PM

                        @jramos76 Hmmm, still not sure if this is caused by an issue in the old FOG 1.5.6 version. Do you use any plugins (like Location plugin)?

                        Please check the task list in the FOG web UI when you have a task scheduled. What does it show in the column “Working with node”?

                        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

                        J 2 Replies Last reply Apr 27, 2020, 3:07 PM Reply Quote 0
                        • J
                          jramos76 @Sebastian Roth
                          last edited by Apr 27, 2020, 3:07 PM

                          @Sebastian-Roth - It says “DefaultMember”

                          1 Reply Last reply Reply Quote 0
                          • J
                            jramos76 @Sebastian Roth
                            last edited by Apr 28, 2020, 9:59 PM

                            @Sebastian-Roth Also, I don’t use any plugins.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth Apr 28, 2020, 10:27 PM Apr 29, 2020, 4:26 AM

                              @jramos76 Ok. I think it’s best you update to the latest version and if you still get the error we can take another look at the code. I am almost certain it doesn’t happen anymore.

                              We just pushed out a version called 1.5.9-RC1 as a release candidate for the new to come 1.5.9 version. It’s close to final. I recommend you to use that because there were a few issues in 1.5.8 which is the last official release currently. 1.5.9-RC1 has those all fixed!

                              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

                              J 1 Reply Last reply Apr 29, 2020, 4:07 PM Reply Quote 0
                              • J
                                jramos76 @Sebastian Roth
                                last edited by Apr 29, 2020, 4:07 PM

                                @Sebastian-Roth Ok, thank you. Do you have a link with instructions on how to get 1.5.9-RC1?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Apr 30, 2020, 5:57 AM

                                  @jramos76 Using the following commands:

                                  sudo -i
                                  cd /opt
                                  git clone https://github.com/FOGProject/fogproject/
                                  cd fogproject/bin/
                                  ./installfog.sh
                                  

                                  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

                                  J 1 Reply Last reply May 7, 2020, 4:57 PM Reply Quote 0
                                  • J
                                    jramos76 @Sebastian Roth
                                    last edited by May 7, 2020, 4:57 PM

                                    @Sebastian-Roth Thank you for the instructions. Updating FOG to 1.5.9-RC1 resolved the issue. I am now able to capture and restore an image without issue.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by May 7, 2020, 9:05 PM

                                      @jramos76 Good to hear things are working for you with 1.5.9-RC1. 🙂

                                      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
                                      • 1 / 1
                                      • First post
                                        Last post

                                      238

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project