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

    Image Capture/Upload gets to 100%, then Updating Database task fails

    Scheduled Pinned Locked Moved
    FOG Problems
    7
    17
    12.1k
    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.
    • E
      erikd
      last edited by

      Hello.

      I’ve recently setup FOG 1.3.0 on Ubuntu 14.04. I am trying to upload my first image from a registered host. I’ve tried single and multiple partition images with the same result. Here’s a screenshot of what I see after the upload reaches 100%:

      alt text

      The computer is a sys-prepped Windows 7 box.

      Thanks for any help you can provide!

      Erik

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @erikd
        last edited by

        @erikd Just an FYI, 1.3.0 doesn’t exist yet 😉 We call the pre-1.3.0 “fog trunk”.

        What OS have you installed FOG Trunk on? Did you set a mysql password? Can you give us more information about the hardware you’re uploading from?

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          @erikd Is your web interface working fine? I guess it is if you are able to schedule an upload task. I am asking because “Updating Database” is just sending a HTTP request to the FOG webserver. Why would that fail?

          Do you see any messages in your apache error log when this happens (/var/log/apache2/error.log)??

          Can you please check if /var/www/fog/service/Post_Stage2.php (possibly it’s /var/www/html/fog/service/Post_Stage2.php) exists on your FOG server. Then try accessing this URL (http://your.fog.ip.address/fog/service/Post_Stage2.php) from any of your computers. You’ll probably see an error (“No Active Task found for Host”) but just to make sure this is kind of working as it should.

          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

          E 1 Reply Last reply Reply Quote 1
          • Q
            Quazz Moderator
            last edited by

            Can you tell us what revision you are on?

            E 1 Reply Last reply Reply Quote 0
            • E
              erikd @Wayne Workman
              last edited by

              @Wayne-Workman said:

              @erikd Just an FYI, 1.3.0 doesn’t exist yet 😉 We call the pre-1.3.0 “fog trunk”.

              What OS have you installed FOG Trunk on? Did you set a mysql password? Can you give us more information about the hardware you’re uploading from?

              Hi Wayne, thanks for your help. Yes I am on FOG Trunk not 1.3.0, sorry :-). It’s installed on Ubuntu 14.04.

              I did not set a mysql password.

              The hardware I’m trying to capture/upload an image from is a Dell Optiplex 790. When I was using the last version of FOG (different server), which I believe was 1.2.0 (?), I didn’t have any problems with these (we have lots of them).

              One thing I should have mentioned in my original post: When I first did setup, I messed up the DHCPD.conf file and wasn’t intelligent enough to back it up first. So I re-ran the installer to re-create that file - could that have led to this problem?

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • E
                erikd @Sebastian Roth
                last edited by

                @Sebastian-Roth said:

                @erikd Is your web interface working fine? I guess it is if you are able to schedule an upload task. I am asking because “Updating Database” is just sending a HTTP request to the FOG webserver. Why would that fail?

                Do you see any messages in your apache error log when this happens (/var/log/apache2/error.log)??

                Can you please check if /var/www/fog/service/Post_Stage2.php (possibly it’s /var/www/html/fog/service/Post_Stage2.php) exists on your FOG server. Then try accessing this URL (http://your.fog.ip.address/fog/service/Post_Stage2.php) from any of your computers. You’ll probably see an error (“No Active Task found for Host”) but just to make sure this is kind of working as it should.

                Hi Sebastian, thanks for your help.

                As I just stated in the reply to Wayne, one thing I should have mentioned in my original post: When I first did setup, I messed up the DHCPD.conf file and wasn’t intelligent enough to back it up first. So I re-ran the installer to re-create that file.

                To answer your questions, I have no problems I can find in the web interface - everything seems good.

                I did find some errors in my Apache error.log:

                [Mon Feb 08 16:21:58.567011 2016] [:error] [pid 4153] [client 192.168.1.1:49335] PHP Fatal error:  Uncaught exception 'Exception' with message 'FOGFTP: Login failed. Host: 192.168.1.1, Username: fog, Password: m59gl25QR3i/sjCNfH3KRn7aG+VJ1ECF279QzZ3V2cA=, Error: ftp_login(): Login incorrect.' in /var/www/html/fog/lib/fog/fogftp.class.php:29\nStack trace:\n#0 /var/www/html/fog/lib/pages/fogconfigurationpage.class.php(741): FOGFTP->connect()\n#1 [internal function]: FOGConfigurationPage->log()\n#2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n  thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 29, referer: http://192.168.1.1/fog/management/index.php?node=about&sub=client-updater
                

                When I go to …/fog/service/Post_Stage2.php on the FOG server itself, I see the error “Invalid MAC Address!”

                1 Reply Last reply Reply Quote 0
                • E
                  erikd @Quazz
                  last edited by

                  @Quazz said:

                  Can you tell us what revision you are on?

                  Hi Quazz, thanks for your help.

                  I am on revision 6213.

                  1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @erikd
                    last edited by

                    @erikd said:

                    When I first did setup, I messed up the DHCPD.conf file and wasn’t intelligent enough to back it up first. So I re-ran the installer to re-create that file - could that have led to this problem?

                    Nope. The DHCP config that fog builds for you is solid, I’ve been working to improve it.

                    Sounds like your issue might be FTP related. Check all the FTP credentials related stuff here in this article: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

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

                      Well, the FTP error is definitely not good and should be fixed but I don’t find this being related to the client not being able to update the database after uploading.

                      The “Invalid MAC Address” error is ok I think as you are accessing the page from a computer not registered in FOG. At least this php file seams ok!

                      Sure you don’t have any error in apache log when you see the error after upload?

                      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

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

                        @Sebastian-Roth The Upload task might fail if the image could not be FTP’d to the /images 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! 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

                        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman @Tom Elliott
                          last edited by

                          @Tom-Elliott Is there a way to get more specific errors from the upload script? Any way to check to see if the FTP move succeeded?

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

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

                            @Wayne-Workman Sorry, i’m not that good.

                            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
                            • E
                              erikd
                              last edited by

                              Thanks everyone, following the steps under Credentials / Passwords section in the following link fixed the issue.
                              https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Credentials_.2F_Passwords

                              Really appreciate all your help - I got quicker support here than most of my paid support contacts! 😄

                              Wayne WorkmanW 1 Reply Last reply Reply Quote 2
                              • Wayne WorkmanW
                                Wayne Workman @erikd
                                last edited by Wayne Workman

                                @erikd said:

                                Really appreciate all your help - I got quicker support here than most of my paid support contacts!

                                Why don’t more people point this out ???

                                I mean really - quite honestly, greater than 90% of people here get a reply in under 10 minutes if they post during sane hours. And not just a “Thank you for posting, we will get with you” reply, but an actual answer or suggestion or advice.

                                And to imagine, we are volunteer powered.

                                FOG is something special, let me tell you. People here - seems like - race to answer first. and that’s an amazing thing! It’s the open source mind set. Learn, explore, share, and help others freely and openly. As open source freely flows, so to does information flow freely into and out of the helpers here. It’s a mind set. We don’t hoard information and answers for ourselves. If you ask us, we will give you our best answers, or try damn hard to find the best answers so that not only you can know, but so we can know 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!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                1 Reply Last reply Reply Quote 2
                                • Wayne WorkmanW
                                  Wayne Workman
                                  last edited by

                                  Problem and solution documented in the Wiki here: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Updating_Database...Failed

                                  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!
                                  Daily Clean Installation Results:
                                  https://fogtesting.fogproject.us/
                                  FOG Reporting:
                                  https://fog-external-reporting-results.fogproject.us/

                                  D V 2 Replies Last reply Reply Quote 2
                                  • D
                                    darius @Wayne Workman
                                    last edited by

                                    @Wayne-Workman I had the same problem! This worked great 🙂 Thanks 🙂

                                    1 Reply Last reply Reply Quote 1
                                    • V
                                      virtuarafa @Wayne Workman
                                      last edited by

                                      @Wayne-Workman Thanks a lot, this did the trick, I had the exact same problem!

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

                                      185

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project