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

    FOG image upload hangs after "Task Complete"

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    6
    2.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.
    • X
      xjxby
      last edited by

      I’m using Ubuntu 12.04 and FOG .32.
      My problem is that the client hangs after uploading its image to the server. This is what I see on the client:

      • Image uploaded
      • Task complete
        *
        *
        *
        *
        …

      On the server, a folder named <mac-address> is created under /images/dev and it contains a .mbr file + several .img files. But nothing is created under /images.

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

        This sounds like one of two things. First thing, it sounds like the transfer of /images/dev/MA:CA:#D:RE:SS:## isn’t happening. This could be because, from the web gui, Storage Management->Storage Nodes-><YOUR STORAGE NODE>->Username and Password [B]AND[/B] Other Information (the Question Symbol)->FOG Settings->[FONT=Ubuntu][COLOR=#333333]FOG_TFTP_FTP_USERNAME [/COLOR][/FONT][B][COLOR=#333333]AND[/COLOR][/B][FONT=Ubuntu][COLOR=#333333]FOG_TFTP_FTP_PASSWORD ane make sure they’re the same as the fog user on your fog server. The other item, it sounds to me, is the utility wget is inaccessible, or your web service directories ({FOGWEBDIR}/service) files are inaccessible.[/COLOR][/FONT]

        [FONT=Ubuntu][COLOR=#333333]Try giving us a printout of your apache2 error log, located at (/var/log/apache2/error.log) and possibly a printout of your access.log file (/var/log/apache2/access.log). Of course, try to make this issue occur, then give us the last few lines of the files so we can be of greater assistance to you.[/COLOR][/FONT]

        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
        • X
          xjxby
          last edited by

          Thanks for the reply. I checked the password and it’s the same in both places.

          The machine I’m trying to image has IP = 84.88.151.112 and MAC = 00:1b:78:84:bd:7a

          Here are the last 4 minutes of the logs:
          error.log: [url]http://pastebin.com/HiEEzn3J[/url] (lots of errors)
          access.log: [url]http://pastebin.com/BmrQ9j3F[/url]

          1 Reply Last reply Reply Quote 0
          • X
            xjxby
            last edited by

            Also, another thing I noticed was that when partimage’s “save partition to image file” screen appears, it says that the “Available space for image” is only 400MB. Could this be the cause of the problem? I don’t know where this comes from, because I have GBs of space left both on the server and the client disks.

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

              Partimage wasn’t very good at translating free space, though in some cases it was accurate, many times, if you had terabytes worth of data, it wouldn’t work properly.

              Looking at the access log, it looks like it’s trying to send the data, properly, to Post_Stage2.php

              This line is what worries me:
              [code]GET /fog/service/Post_Stage2.php?to=prova&mac=00:1b:78:84:bd:7a&ftp=&size=&imgid=4&imgtype=mps HTTP/1.1" 302 697 “-” “Wget”[/code]

              Not so much the line itself, but it feels like it can’t move the image file from /images/dev to /images/prova.

              It keeps repeating this line so it continues to try to perform the move. Have the permissions on the /images directory changed? The permissions are typically chmod -R 777 /images, but if it’s changed to 755, or 655, you’ll likely need to add apache:apache to the owner so the files can be written through php.

              I’d start by verifying and setting permissions to:
              [code] chmod -R 777 [/code] and if it’s permissions, you’ll see the task clean up.

              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
              • X
                xjxby
                last edited by

                Right now, everything (including the .mntcheck files) under /images has been already chmoded to 777 and it’s owned by fog:root. [S]Should I try changing the ownership to apache:apache?[/S] Since it’s been chmoded to 777 it shouldn’t matter who owns the file right?

                EDIT: Also, how are images stored in its final form? Do I have to create a folder named prova beforehand?

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

                233

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project