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

Issue: Finalising Image Capture

Scheduled Pinned Locked Moved Solved
FOG Problems
4
12
934
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.
  • N
    Nuit
    last edited by May 3, 2018, 10:20 AM

    Hey there,

    running Fog 1.4.2 on Debian CentOS-7.1511 (the whole thing is a VM running on ESXi 5.5)
    and have one of these quite common problems with the image capture not getting finished:
    0_1525340539185_Fog_Error_Client.jpg

    Searched the forum and went trough the according Wiki: Troubleshoot FTP - FOG Project

    • reset password for the “fog”-user everywhere,
    • reset folder permissions and ownership
    • checked vsftpd.conf and .fogsettings
    • verified web interface settings
    • verified network settings
    • verified that plenty of space is available
    • just for testing annihilated any firewall functionality on the Debian machine

    Still does not work.

    So what’s the thing at:
    The images get captured and are found in “/images/dev” (under their MAC address) but no named folder for the image is created in “/images” and the files are not moved if a new image is captured or if an existing image should be overwritten, the overwrite does not happen.
    So the task in FOG never finishes and the client is ending with the error pictured above.

    Ran some tests on FTP availability (going there from a Windows machine).
    Loging in with the standard FOG user, works fine, puts me to the “/home/fog” folder, where I can create subfolders, put, get, del files etc.
    But when I move over to the “/images” folder no creating folders, files or whatsoever anymore:
    0_1525341075031_Fog_Error_FTP.jpg

    Giving the results, I’d assume there is some permission problem somewhere, so the question is what did I miss ?
    Stupid side fact: The whole thing worked til December like a charm. We were deploying images during the last few month just fine. Only found out about the error when trying to update the images recently. And no one here remembers having changed anything about the server (as usual).

    Any help would be appreciated.

    Cheers Nuit

    1 Reply Last reply Reply Quote 0
    • Q
      Quazz Moderator @Nuit
      last edited by May 7, 2018, 1:18 PM

      @nuit It is probable that SELinux is the culprit here. I believe it is disabled by default on Debian (correct me if I’m wrong).

      Maybe the SELinux configuration for vsftpd isn’t set correctly.

      Try setenforce 0 and see if that helps. May have to restart the ftp service.

      1 Reply Last reply Reply Quote 1
      • G
        george1421 Moderator
        last edited by May 3, 2018, 10:40 AM

        I’m sure you have already been through this tutorial. https://forums.fogproject.org/topic/11203/resyncing-fog-s-service-account-password The issue IS you either have the linux fog user account out of sync or something happened so that the linux fog user can not create files in /images.

        FOG uploads images to /images/dev/<mac_address> then after the upload moves them to /images/<image_name> using ftp. If the linux user fog doesn’t have rights to make this move either on the source directory or destination directory then you will have an issue.

        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
        • N
          Nuit
          last edited by May 3, 2018, 2:12 PM

          Hi,

          thanks for the reply.
          Yes, I did the resync too. But that did not change anything.

          Regarding this, when running the reinstall of Fog for finishing the resync, there is a request to “Update the Database Scheme” via the Web Console before continuing.
          Is there anything else needed doing this appart from validating the info in the Web Console?
          Is there any actual function for “updating the database scheme” in the Web-Console ?

          Cheers, Nuit

          N 1 Reply Last reply May 3, 2018, 2:30 PM Reply Quote 0
          • N
            Nuit @Nuit
            last edited by May 3, 2018, 2:30 PM

            One little add: this “permission problem” seems to be somewhat connected with the FTP function.
            When loggin onto the CentOS console with the “fog” user, the user can actually copy and move files within the “/images” and “/dev” folders (the file permissions are somewhat reduced) but the copy/move works.

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by May 3, 2018, 4:05 PM

              What happens if you run commands:

              chown -R fog:root /images
              chmod -R 777 /images
              

              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
              • N
                Nuit
                last edited by Nuit May 7, 2018, 3:15 AM May 7, 2018, 6:44 AM

                Hi,

                that was one of the first things I did when recognising this was some sort of permission problem.

                “/images” ownership and all subfolders is set to fog:root
                and full permissions on everything are set:

                0_1525674660858_Fog_Permissions_images.jpg

                As you can see in the screenshot, the whole thing worked til December.

                As mentioned before the problem seems not really to be located on folder/file level.
                If I do login to the console using the “fog” user I can create/move files and folders between “/image” and any subfolders without problems.

                But if I do login via FTP using the “fog” user I no longer can (getting Error 550 when trying to create a Folder and Error 553 when trying to create a file (using put command).
                If I stay in the “fog” users home folder the FTP commands do work.
                So I get the impression, that something with “/images” folder and it’s setting with the FTP service or the permissions of the “fog” user regarding FTP is broken.

                Q 1 Reply Last reply May 7, 2018, 9:37 AM Reply Quote 0
                • Q
                  Quazz Moderator @Nuit
                  last edited by Quazz May 7, 2018, 3:55 AM May 7, 2018, 9:37 AM

                  @nuit As a test, can you see if you can download any files from that folder?

                  Can you post your vsftpd conf here?

                  Not sure if you have tried this already, but just in case, what about if you restart your ftp service?

                  edit: Also, just in case someone enabled Selinux check with sestatus

                  1 Reply Last reply Reply Quote 0
                  • N
                    Nuit
                    last edited by May 7, 2018, 1:06 PM

                    Ok here is the vsftpd.conf (looks the same as mentioned in the Wiki):

                    0_1525697285536_Fog_vsftpd.conf.jpg

                    and the SELinux status:

                    0_1525697318632_Fog_sestatus.jpg

                    FTP Service has been restarted several times by now.
                    But it looks like the status has even gone worse now.
                    I guess since the resyncing of the fog service account password. I can no longer do anything via FTP since then.
                    I can still log in using the “fog” user. But that’s about it. Can change directories but not even list anything anymore:

                    0_1525698294447_Fog_Error_FTP2.jpg

                    Q 1 Reply Last reply May 7, 2018, 1:18 PM Reply Quote 0
                    • Q
                      Quazz Moderator @Nuit
                      last edited by May 7, 2018, 1:18 PM

                      @nuit It is probable that SELinux is the culprit here. I believe it is disabled by default on Debian (correct me if I’m wrong).

                      Maybe the SELinux configuration for vsftpd isn’t set correctly.

                      Try setenforce 0 and see if that helps. May have to restart the ftp service.

                      1 Reply Last reply Reply Quote 1
                      • N
                        Nuit
                        last edited by May 7, 2018, 3:00 PM

                        Yay…that kinda did it.

                        The setenforce 0 and restarting the FTP did the trick.

                        So question is, what went wrong on the SELinux.
                        I am actually not aware, that I ever fiddled with it on the Debian machine to start with.
                        Is there any possibilty to keep this permissive mode for good, so I do not to redo it manually every time I reboot the VM ?

                        Or would there be any prime reason to actually fix the config for vsftpd and get it back up running again ?

                        Thanks a lot so far for the fix.
                        Cheers, Nuit

                        G 1 Reply Last reply May 7, 2018, 3:15 PM Reply Quote 0
                        • G
                          george1421 Moderator @Nuit
                          last edited by May 7, 2018, 3:15 PM

                          @nuit SELINUX needs to be disabled for FOG to function correctly. Please check /etc/selinux/config and ensure that its set to permissive. The setenforce command will only work until your FOG server is rebooted then the value of selinux will return if you don’t update the selinux config file.

                          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
                          • N
                            Nuit
                            last edited by May 8, 2018, 7:50 AM

                            Ok, config for SELinux has been changed, did a reboot for testing, looking good so far.

                            Even if I still do not know, how the SELinux got enabled at all, it looks like the issue is solved.

                            Thank you very much to all of you guys who helped with the issue.

                            Cheers Nuit

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

                            239

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project