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

    Failed to upload image (Process Hung)

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    13
    1.0k
    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.
    • K
      Keating178
      last edited by

      All,

      We are having an issue where we start the upload of a new image to our FOG server and it starts the process but then it hangs until we manually kill it.

      There is no explanation for it and the logs do not stand out in a way that tells me what is going on.

      Has anyone had this issue, or have an idea on how we can fix it?

      Log:

      62ce2ad6-7527-4af7-a1c3-73677adaf8b5-image.png

      The time out line could have something to do with it but this all worked fine up until recently without issues.

      I verified, checked, and re-established my mount points and the all work fine. I verified my images, and the directory and I can write to them with no issues. This leads me to think the mount point is fine .

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

        What do you see on the screen of the target computer when its hangs. The logs really doesn’t give us a good picture of what is wrong. The FOS Linux error screen will.

        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!

        1 Reply Last reply Reply Quote 0
        • K
          Keating178
          last edited by

          I will upload a few screenshots when my tech comes back and hopefully that will help out a bit.
          As far as the task goes, it just keeps spinning.

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

            @Keating178 Yes the task will keep spinning unless it gets an all done message or a stat update message from the target computer.

            In fog imaging the target computer (and FOS Linux running on it) does all of the work. The fog server sends the image between the network adapter and local storage and manages the overall process, but the FOS Linux engine running on the target is where the action is. It will report actually what is going on or wrong.

            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!

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

              @Keating178 As George says, we definitely need pictures of what’s on the host’s screen to get an idea what’s wrong.

              About the timeout messages you have: For me this sound like one of your drives/partitions is not found. It tries to mount the disk/partition and fails. This is probably something happening on server boot up and doesn’t have to do with the image hang I suppose. Unless this is the disk where you had stored your images…

              Please run the following commands and post a screenshot here:

              cat /etc/fstab
              df -h
              lsblk
              

              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

              K 1 Reply Last reply Reply Quote 0
              • K
                Keating178
                last edited by

                Sorry for the delay, this is what is happening on the client side.
                80c88ca9-825e-4eb1-949f-79630438c788-image.png

                1 Reply Last reply Reply Quote 0
                • K
                  Keating178 @Sebastian Roth
                  last edited by

                  @Sebastian-Roth

                  cat /etc/fstab

                  1bd5d8c8-5cc8-4ece-b717-a96c8971db21-image.png

                  lsblk
                  7394c5a9-90aa-43b0-9ad6-6fedaea467ac-image.png

                  df -h
                  8bb61977-b77e-40d3-9507-986f42a1f8be-image.png

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

                    @Keating178 Ok, the timeout error is just complaining about the SWAP partition UUID not matching. That shouldn’t cause the capture issue. If you want to fix that you can edit /etc/fstab and put in /dev/sda3 instead of UUID=a5ff26a8-1f8b-4659-b897-e4cead8414e5 in line 13. Just be aware that messing things up in /etc/fstab can lease you with an unbootable OS. So do this with caution and on your own risk.

                    Now about the “Invalid Storage Group” error. Please take a look at the apache and PHP-FPM error logs (see my signature) so see if there are any error messages in the logs while this happens.

                    As well login to the web UI, open the Storage Node and Storage Group view and edit those. Save the settings and then try 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

                    1 Reply Last reply Reply Quote 0
                    • K
                      Keating178
                      last edited by

                      This is all my “Storage” section shows, should I add another one and see if that helps?
                      f54f4d8e-02f7-42e8-9dcc-244f4d17c989-image.png

                      Apache2 logs:
                      [Wed Nov 06 06:25:04.992901 2019] [mpm_prefork:notice] [pid 1295] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1c configured – resuming normal operations
                      [Wed Nov 06 06:25:04.992969 2019] [core:notice] [pid 1295] AH00094: Command line: ‘/usr/sbin/apache2’
                      [Wed Nov 06 10:37:55.921388 2019] [proxy_fcgi:error] [pid 62954] [client 10.200.208.38:53305] AH01071: Got error ‘PHP message: PHP Warning: Illegal offset type in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 296\n’, refe$

                      I am not sure what it is telling me here and if it is an error or just a warning.

                      PHP-FPM Logs:
                      xfec7837d-bd81-4058-bcf0-1ec28a0aee2c-image.png

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

                        @Keating178 said in Failed to upload image (Process Hung):

                        This is all my “Storage” section shows, should I add another one and see if that helps?

                        No need to add a new one. Just click the “default” Storage Group here and click Update to save. As well click “All Storage Nodes” on the left -> “DefaultMember” -> Update.

                        Thanks for the logs doesn’t seem like there is anything of value in that. Though You might want to check an older file because the log file might have been rotated already:

                        cat /var/log/apache2/error.log.1
                        zcat /var/log/apache2/error.log.2.gz
                        

                        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

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          Keating178
                          last edited by Sebastian Roth

                          @Sebastian-Roth said in Failed to upload image (Process Hung):

                          cat /var/log/apache2/error.log.1

                          I have clicked update on the storage options and I have listed the logs below from where you mentioned.

                          error.log.1:

                          [Wed Nov 06 06:25:04.992901 2019] [mpm_prefork:notice] [pid 1295] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1c configured -- resuming normal operations
                          [Wed Nov 06 06:25:04.992969 2019] [core:notice] [pid 1295] AH00094: Command line: '/usr/sbin/apache2'
                          [Wed Nov 06 10:37:55.921388 2019] [proxy_fcgi:error] [pid 62954] [client 10.200.208.38:53305] AH01071: Got error 'PHP message: PHP Warning:  Illegal offset type in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 296\n', refe$
                          [Thu Nov 07 06:25:04.913077 2019] [mpm_prefork:notice] [pid 1295] AH00171: Graceful restart requested, doing restart
                          

                          zcat error.log.2.gz:

                          [Tue Nov 05 06:25:04.838487 2019] [mpm_prefork:notice] [pid 1295] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1c configured -- resuming normal operations
                          [Tue Nov 05 06:25:04.838555 2019] [core:notice] [pid 1295] AH00094: Command line: '/usr/sbin/apache2'
                          [Tue Nov 05 15:32:27.701982 2019] [proxy_fcgi:error] [pid 17035] [client 10.200.208.71:64260] AH01071: Got error 'PHP message: PHP Warning:  array_diff(): Argument #2 is not an array in /var/www/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning:  array_diff(): Argument #2 is not an array in /var/www/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning:  array_diff(): Argument #2 is not an array in /var/www/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/fog/lib/fog/fogcontroller.class.php on line 1100\n'
                          [Wed Nov 06 06:25:04.699292 2019] [mpm_prefork:notice] [pid 1295] AH00171: Graceful restart requested, doing restart
                          
                          1 Reply Last reply Reply Quote 0
                          • K
                            Keating178 @Sebastian Roth
                            last edited by

                            @Sebastian-Roth

                            I haven’t heard back from anyone on the issues that I am having. I have tried verifying all storage paths both in the GUI as well as the server shell and all is working correctly.

                            Were you able to see anything from the logs I uploaded last?

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

                              @Keating178 The Invalid Storage Group error you were seeing should be fixed if you can upgrade to the latest within the dev-branch from GIT.

                              Hopefully this will fix the issue you were seeing too.

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

                              156

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project