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

    Issue: Finalising Image Capture

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    12
    936
    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

      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 Reply Quote 0
      • N
        Nuit @Nuit
        last edited by

        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
        • Tom ElliottT
          Tom Elliott
          last edited by

          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

            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 Reply Quote 0
            • Q
              Quazz Moderator @Nuit
              last edited by Quazz

              @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

                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 Reply Quote 0
                • Q
                  Quazz Moderator @Nuit
                  last edited by

                  @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

                    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

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

                      @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

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

                        292

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project