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

Error: ftp_rename(): Permission denied.

Scheduled Pinned Locked Moved Solved
FOG Problems
5
15
2.7k
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.
  • B
    Buzer1
    last edited by Buzer1 Aug 16, 2016, 2:44 PM Aug 16, 2016, 8:42 PM

    I am getting an error when trying to upload in image to our fog server-

    Local Path: /images/dev/0024e83373fd, Error: ftp_rename(): Permission denied.

    Any help would be appreciated…

    W 1 Reply Last reply Aug 16, 2016, 9:36 PM Reply Quote 0
    • G
      GavinK88
      last edited by Aug 17, 2016, 6:15 PM

      Buzer1 and I fixed the issue, “write_enable” was commented out on the vsftpd.conf file and uncommenting it seemed to fix our upload issue. I believe the issue was caused when I upgraded the system from Ubuntu 12.04 to 14.04 and I had run into issues with vsftpd and forgot to check on it during the installation process and had to reinstall it at some point in time.

      1 Reply Last reply Reply Quote 1
      • W
        Wayne Workman @Buzer1
        last edited by Aug 16, 2016, 9:36 PM

        @Buzer1 we need to know what version of fog.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 1
        • S
          Sebastian Roth Moderator
          last edited by Aug 17, 2016, 5:18 AM

          @Buzer1 Knowing the version of FOG you are running would definitely help us pointing you the right way but as well please read trough this: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP (credentials and permissions)

          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

          B 1 Reply Last reply Aug 17, 2016, 3:14 PM Reply Quote 2
          • B
            Buzer1
            last edited by Aug 17, 2016, 1:16 PM

            Fog version 14.04 - The error happens when uploading the image. After it says 100% - then it goes to this screen-
            0_1471439825845_image1.JPG

            Q 1 Reply Last reply Aug 17, 2016, 1:17 PM Reply Quote 0
            • Q
              Quazz Moderator @Buzer1
              last edited by Aug 17, 2016, 1:17 PM

              @Buzer1 I spot login failed.

              https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Credentials_.2F_Passwords

              B 1 Reply Last reply Aug 17, 2016, 1:23 PM Reply Quote 1
              • B
                Buzer1 @Quazz
                last edited by Buzer1 Aug 17, 2016, 7:24 AM Aug 17, 2016, 1:23 PM

                @Quazz What does that mean? I spot login failed? Could you explain more? I am super new at this. I have checked the username and passwords and they all match.

                Q 1 Reply Last reply Aug 17, 2016, 1:25 PM Reply Quote 0
                • Q
                  Quazz Moderator @Buzer1
                  last edited by Aug 17, 2016, 1:25 PM

                  @Buzer1 At the top of the screenshot it talks about FTP login failing. It tries to rename afterwards but since it’s not logged in it obviously fails.

                  So, you need to check out your FTP credentials, the Wiki should be very helpful to help remedy this.

                  The error is very clear, the login does not work.

                  If you have changed the password in /opt/fog/.fogsettings you need to run the installer again for the changes to take effect.

                  B 1 Reply Last reply Aug 17, 2016, 1:33 PM Reply Quote 0
                  • B
                    Buzer1 @Quazz
                    last edited by Aug 17, 2016, 1:33 PM

                    @Quazz I did this and am uploading an image now

                    You can enable all permissions (just for troubleshooting) on the /images directory recursively like this:

                    sudo chmod -R 777 /images

                    How do I do this portion that you mentioned?
                    If you have changed the password in /opt/fog/.fogsettings you need to run the installer again for the changes to take effect.

                    Q 1 Reply Last reply Aug 17, 2016, 1:36 PM Reply Quote 0
                    • Q
                      Quazz Moderator @Buzer1
                      last edited by Aug 17, 2016, 1:36 PM

                      @Buzer1 Is this a recent install? How to rerun the FOG installer script depends on where you store the installation files.

                      B 2 Replies Last reply Aug 17, 2016, 1:52 PM Reply Quote 0
                      • B
                        Buzer1 @Quazz
                        last edited by Aug 17, 2016, 1:52 PM

                        @Quazz Not recent. We were imaging desktop pc’s just 3 months ago, but now it all of a sudden will not upload.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Buzer1 @Sebastian Roth
                          last edited by Aug 17, 2016, 3:14 PM

                          @Sebastian-Roth @Quazz Actually running Fog 1.2.0 on Ubuntu 14.04

                          1 Reply Last reply Reply Quote 0
                          • B
                            Buzer1 @Quazz
                            last edited by Aug 17, 2016, 3:58 PM

                            @Quazz I can download an image to a pc, but cannot upload an image. Any ideas on that?

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Aug 17, 2016, 4:38 PM

                              @Buzer1 Checked the FTP credentials? Download and upload are two completely different things. If one works it does not mean the other is working as well. Please go through the mentioned wiki article and thouroughly check your FTP credentials!

                              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 2
                              • G
                                GavinK88
                                last edited by Aug 17, 2016, 6:15 PM

                                Buzer1 and I fixed the issue, “write_enable” was commented out on the vsftpd.conf file and uncommenting it seemed to fix our upload issue. I believe the issue was caused when I upgraded the system from Ubuntu 12.04 to 14.04 and I had run into issues with vsftpd and forgot to check on it during the installation process and had to reinstall it at some point in time.

                                1 Reply Last reply Reply Quote 1
                                • W
                                  Wayne Workman
                                  last edited by Wayne Workman Aug 19, 2016, 9:24 PM Aug 20, 2016, 3:20 AM

                                  For future readers, the below posted link to the “Troubleshoot FTP” wiki article contains the needed vsftpd configuration files that FOG needs, both for Debian and RHEL variants. The FOG installer automatically sets these up for you on a fresh install with a fresh OS. The OP’s problem was caused specifically by an OS migration from Ubuntu 12 to Ubuntu 14.

                                  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!
                                  Daily Clean Installation Results:
                                  https://fogtesting.fogproject.us/
                                  FOG Reporting:
                                  https://fog-external-reporting-results.fogproject.us/

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

                                  247

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project