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

    FreeNas FTP error

    Scheduled Pinned Locked Moved
    General
    4
    11
    2.3k
    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.
    • L
      lubo
      last edited by

      I’m getting error while fog try to move the image file from /dev into images fodler on my FreeNas Server((192.168.88.88)
      the error is No such file or directory, Host 192.168.88.88, Username: Free
      *Reattemping to update database…
      Error returned: Type: 2 File: /var/www/html/fog/lib/fog/fogftp.class.php.
      Line: 708. Message: ftp_put (/images/dev/{MAC Address}): failed to open stream. No such file or directory. Host 192.168.88.88. Username: Free
      I tried to change storage mnt points for Free user on FreeNAS and also change the settings in Sotrage Nodes.
      Here are the attachments from freenas and fog setup

      The ftp is working. I’m able to run put from Windows machine and copy file over to FreeNAS2_1514579175811_FreeNAS FTP user.PNG 1_1514579175811_folder permissions.PNG 0_1514579175810_Fog Storage Node.PNG

      Thank you. Any help will be appreciated.

      L 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by Wayne Workman

        The FTP Root is normally different than the NFS root on NAS and SAN devices. This is why we have two different fields for this: Image Path and FTP Path. Looks like you need to adjust the FTP Path to be correct. This is also documented in the wiki already: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#FTP_Path

        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
        • L
          lubo
          last edited by

          @lubo said in FreeNas FTP error:

          *Reattemping to update database…
          Error returned: Type: 2 File: /var/www/html/fog/lib/fog/fogftp.class.php.

          What should I adjust this to? It is something with the ftp:
          Here is the error from fog logs.
          [pid 2617] [client 192.168.88.112:34710] PHP Warning: ftp_rename(): Rename /images/Dell-Vanilla: Is a directory in /var/www/html/fog/lib/fog/fogftp.class.php on line 769
          [Fri Dec 29 08:25:46.626228 2017] [:error] [pid 2617] [client 192.168.88.112:34710] PHP Warning: ftp_put(/images/dev/90b11c7ea08d): failed to open stream: No such file or directory in /var/www/html/fog/lib/fog/fogftp.class.php on line 708

          1 Reply Last reply Reply Quote 0
          • L
            lubo
            last edited by

            Seems that ftp part and FreeNas are not working… But at the same time I have no trouble login with “Free” account from Windows ftp client

            1 Reply Last reply Reply Quote 0
            • L
              lubo
              last edited by

              Regarding the FTP Root. As you can see in the screenshot I mapped the home directory for “Free” to \mnt\RaidZ . The path to images folder is \mnt\RaidZ\images. What also I have to change?

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @lubo
                last edited by Wayne Workman

                @lubo Using the FTP credentials, simply log in via actual FTP, and do an ls to see where you are. Wherever you ‘plop’ into, that’s your FTP root. Taking that into consideration, you need to adjust FOG’s FTP Path to start at the ftp root -> to the images directory. If that makes sense. Also, could be a simple permissions issue too.

                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
                • L
                  lubo
                  last edited by

                  I restarted from scratch, but the same error persists.
                  I double checked and verified every single step of wiki link:
                  https://wiki.fogproject.org/wiki/index.php?title=Use_FOG_with_FreeNAS
                  See my attachments
                  6_1514599750783_NFS-images.PNG 5_1514599750783_NFS-dev.PNG 4_1514599750782_images permissions.PNG 3_1514599750782_freenas user.PNG 2_1514599750782_FreeNAS FTP service.PNG 1_1514599750782_fog node.PNG 0_1514599750781_dev permissions.PNG
                  The temp images is created on FreeNAS on /images/dev folder, but then seems like ftp cannot move this image over to /images folder.
                  I checked the home ftp folder and did adjust Fog settings accordingly.
                  I’m scratching my head and cannot think of anything else.

                  Please help.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lubo
                    last edited by

                    3_1514599832271_temp image verification.PNG 2_1514599832271_ftp user home verification.PNG 1_1514599832271_Freenas permissions verification.PNG 0_1514599832270_20171229_195235.jpg

                    1 Reply Last reply Reply Quote 0
                    • L
                      lubo @lubo
                      last edited by

                      @lubo ![0_1514602490965_20171229_205040.jpg](Uploading 100%)

                      I also tried to change the home dir one level up to /mnt/RaidZ and then adjusted Fog ftp settings in Storage node to /images instead of /
                      Still getting an error, but now the message is for folder is /images/dev/MACADDRESS.
                      Interesting enough when I tried from Windows machine to upload file to folder in question it worked.0_1514602790475_ftp verification.PNG .Same user account as fog ftp user
                      0_1514602957503_20171229_205040.jpg

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

                        We do have two (three) tutorials for using a traditional NAS as a FOG storage node.

                        Synology
                        https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node

                        QNAP
                        https://forums.fogproject.org/topic/10973/add-a-nas-qnap-ts-231-as-a-storage-node-fog-v1-4

                        Windows 2012
                        https://forums.fogproject.org/topic/10097/setting-up-a-windows-2012-server-as-a-fog-storage-node

                        The point being you may be able to glean what is needed from those tutorials to make freenas work for you. I have not personally tried to setup a freenas image as a fog storage node, but on the surface it should be possible as long as it has NFS and FTP support.

                        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

                          @lubo Carefully read through this to understand why this happens and how to solve it: https://forums.fogproject.org/topic/9850/freenas-ftp-command-question

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

                          153

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project