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

New Snapin - Cannot change directory

Scheduled Pinned Locked Moved Solved
FOG Problems
2
11
1.4k
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.
  • T
    Taspharel
    last edited by Jun 4, 2020, 3:30 PM

    Hello.

    Server: Centos 7
    FOG: You’re running the latest dev-branch version: 1.5.9-RC2.8

    When I try Creating a new snapin I get the following error:

    Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 464, Message: ftp_login(): OOPS: cannot change directory:/home/fogproject, Host: 192.168.43.17, Username: fogproject
    

    Checked the .fogsettings file, Storage settings and tftp Settings, both user and password seem to be identical.

    Re-Ran the installfog.sh

    Reset the password for the fogproject user to make sure its what i thought it should be.

    What am I doing wrong? 😞

    Thanks for your ongoing support.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott @Taspharel
      last edited by Jun 5, 2020, 11:44 AM

      @Taspharel Can you make the folder:

      chown -R fogproject:fogproject /home/fogproject
      

      I don’t know who admin_ha is.

      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
      • T
        Taspharel
        last edited by Jun 4, 2020, 3:43 PM

        Just noticed, similar error when trying to do a kernel update:

        Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 464, Message: ftp_login(): OOPS: cannot change directory:/home/fogproject, Host: 192.168.43.17, Username: fogproject
        
        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jun 4, 2020, 3:52 PM

          Did somebody delete the /home/fogproject folder?

          That seems to be what happened here.

          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
          • T
            Taspharel
            last edited by Jun 5, 2020, 6:52 AM

            Doesn’t look like it 😞

            2020-06-05 08_49_50-fog_home_fogproject.jpg

            T 1 Reply Last reply Jun 5, 2020, 10:40 AM Reply Quote 0
            • T
              Tom Elliott @Taspharel
              last edited by Jun 5, 2020, 10:40 AM

              @Taspharel is selinux running? And enforcing? Can you set to permissive and see if that works?

              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
              • T
                Taspharel
                last edited by Jun 5, 2020, 11:05 AM

                This is what I get from sestatus:

                2020-06-05 13_03_24-fog_sestatus.png

                So it seems its set to permissive already? Shall I deactivate?

                I am not Linux native so sorry for any confusions that may arise. Thanks for taking the time!!

                T 1 Reply Last reply Jun 5, 2020, 11:20 AM Reply Quote 0
                • T
                  Tom Elliott @Taspharel
                  last edited by Jun 5, 2020, 11:20 AM

                  @Taspharel You shouldn’t need to do anything special.

                  What’s the permissions for that 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

                  1 Reply Last reply Reply Quote 0
                  • T
                    Taspharel
                    last edited by Jun 5, 2020, 11:23 AM

                    Is it this from ls -ld fogproject (run from the home directory)?

                    2020-06-05 13_22_16-FOG-Server_dir_per.png

                    T 1 Reply Last reply Jun 5, 2020, 11:44 AM Reply Quote 0
                    • T
                      Tom Elliott @Taspharel
                      last edited by Jun 5, 2020, 11:44 AM

                      @Taspharel Can you make the folder:

                      chown -R fogproject:fogproject /home/fogproject
                      

                      I don’t know who admin_ha is.

                      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
                      • T
                        Taspharel
                        last edited by Jun 5, 2020, 11:48 AM

                        It works now. Great!!

                        That would be my user on the fog machine. No idea why that user became the owner, wouldnt the install script set permissions to the fogproject user?

                        Or does the output from ls mean something different?

                        T 1 Reply Last reply Jun 5, 2020, 11:57 AM Reply Quote 0
                        • T
                          Tom Elliott @Taspharel
                          last edited by Jun 5, 2020, 11:57 AM

                          @Taspharel Only when initially created yes. I don’t think it resets the permissions after.

                          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
                          • 1 / 1
                          1 / 1
                          • First post
                            2/11
                            Last post

                          162

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project