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

    Can't capture image, looks like permissions, but can't see how it could be

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    15
    2.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.
    • E
      ENorum
      last edited by ENorum

      Server
      • FOG Version: 1.4.4
      • OS: Debian 9
      Client
      • Service Version:
      • OS: Windows 7
      Description

      After not using fog for a time it will no longer capture images. It gets all the way through the capturing process and then fails with this error:

      alt text

      So, figured its a permissions issue, checked those, didn’t see any problem. Was able to FTP to the location and grab the specified file with the same credentials.

      Got fed up with it, and set permissions to 777

      alt text

      Same error. I’m at a loss. At this point I’ve updated Fog (started with 1.4), updated/upgraded Debian (started with 8 ), messed with all kinds of permissions, including removing the account and re-adding it. I really don’t want to have to start over and reinstall everything.

      Whats most frustrating is I had the same problem yesterday, and resolved it, but today back to this problem and now I can’t fix it.

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

        Just for something abstract, is 10.2.0.87 your FOG master node server?

        Oh, what the hell is that?? image name =v2Office365-SymFix/18 Why is that forward slash ( / ) in the file name? What you have done is allowed in FOG, but I don’t think that is what you really intended here. By putting the forward slash in there FOG will look for a directory called v2Office365-SymFix and place the image in a image directory named 18 This allows for grouping of like Images. If this isn’t what you intended, replace the forward slash with something other than a special character.

        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 2
        • george1421G
          george1421 Moderator
          last edited by

          Lets first talk about what is going on behind the screen here.

          When you capture an image with FOG, it uploads the image to /images/dev/<mac_address>. Once the capture is complete the target computer logs into the FOG server over the FTP protocol and requests the /images/dev/<mac_address> directory to be moved to /images/<image_name> using the linux service account called fog This is the point at which your image capture is failing.

          The linux user fog needs to have Read/Write/Execute permissions to the /images and /images/dev directories for this transfer to happen. So I would start there to ensure that the fog user can do what is needed.

          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 1
          • S
            Sebastian Roth Moderator
            last edited by

            @ENorum Follow George’s instructions plus you might want to checkout this: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

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

              So went through and checked permissions on all of those folders, they were good.

              Went through the FTP troubleshooting article, found that the FTP service was misconfigured, I was able to connect and authenticate, but not able to send files to the server. Found the vsftpd.conf had a line that we needed that was commented out:

              Uncomment this to enable any form of FTP write command
              write-enable=YES

              So fixed that, so now I’m able to connect, authenticate and send files to all of those directories.

              However, fog still fails with the same error message.

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

                @enorum said in Can't capture image, looks like permissions, but can't see how it could be:

                So fixed that, so now I’m able to connect, authenticate and send files to all of those directories.

                You mean using a FTP client software? Please try creating files (upload), creating a directory, moving and deleting files… see if all possible file/dir operations work using a standard FTP client.

                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 0
                • E
                  ENorum @Sebastian Roth
                  last edited by

                  @sebastian-roth Sorry, yes, using an FTP client.

                  And yes, I can perform all of those actions using the FTP client.

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

                    @ENorum I suppose I should have explained more clearly on what to test using the FTP client. What FOG does at this stage is move the just uploaded image from /images/dev/<MACADDRESS> to /images/<IMAGENAME>. So please try moving a directory like described above (same locations in the filesystem). I doubt this will work.

                    Please post what you get when running ls -al /images /images/dev on the command line of yor FOG server

                    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
                      ENorum
                      last edited by

                      Yeah, sorry. Not really familiar with Linux. I was able to move files and folders around in those folders.

                      alt text

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

                        @ENorum Maybe there is just not enough space on disk?? Run df -h and post a picture 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

                        1 Reply Last reply Reply Quote 0
                        • E
                          ENorum
                          last edited by

                          Had that problem, moved the server and added more diskspace 6 months ago.

                          alt text

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

                            @ENorum Well then, I have to admit, I am out of ideas for now. But I am sure others here in the forum have new ideas.

                            I am still wondering why this is working properly using a FTP client. Could you take a picture of when you move a directory (including files) from /images/dev/abc to /images/test?

                            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
                            • george1421G
                              george1421 Moderator
                              last edited by george1421

                              Just for something abstract, is 10.2.0.87 your FOG master node server?

                              Oh, what the hell is that?? image name =v2Office365-SymFix/18 Why is that forward slash ( / ) in the file name? What you have done is allowed in FOG, but I don’t think that is what you really intended here. By putting the forward slash in there FOG will look for a directory called v2Office365-SymFix and place the image in a image directory named 18 This allows for grouping of like Images. If this isn’t what you intended, replace the forward slash with something other than a special character.

                              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 2
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @george1421 Awesome man! We had this before and I remember noticing it after staring at the error pic long enough… but not this time. Great you found it!!!

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

                                  Ok, fixed that and capturing a new image now, but I have to head home for the day. I’ll update tomorrow, but I bet that’s it.

                                  Awsome guys, thank you. Especially you Sebastian for wracking your brain over it!

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    ENorum
                                    last edited by

                                    That did it! Thank you guys!

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

                                    157

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project