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

    Unable to Create Download Task from NAS-stored image

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    10
    2.6k
    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.
    • C
      Chris Bosman
      last edited by

      Hello,

      I posted originally in an older topic but am now creating a new topic for this issue, as I am just finding time to come back around to it.

      I am attempting to use a Synology NAS for the storage of my FOG server’s images. I am able to successfully upload images to the NAS, however I am unable to then deploy those images, receiving the error “You must first upload an image to create a download task.”

      I am using FOG Trunk Git version 4660 on Ubuntu 15.04.

      My pertinent storage node information is as followed:

      Storage Node Name: [NAME]
      IP Address: [NAS IP Address]
      Web root [NAS IP Address] (Is this correct?)
      Image Path: [NFS path to Images folder on the NAS]
      FTP Path: [Identical to Image Path] (Is this correct?)
      Management Username: fog
      Management Password: [password for fog user on the NAS]

      Per the documentation at https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Credentials_.2F_Passwords, all passwords mentioned on that page are identical. Additionally, the fog user on the NAS also has that same password.

      I am able to successfully FTP from the FOG server to the NAS using the fog user credentials and both upload and download a test text file to the Images folder. Permissions when I do so appear appropriately, and when I do FTP into the NAS from the FOG server using the fog user, I do end up in the Images folder.

      Ultimately, once I upload the image, said image ends up in the /[Images NFS path]/dev/[Machine’s MAC address] folder, which if I’m remembering correctly indicates some failure of FTP.

      Any assistance would be appreciated.

      Thank you,
      Chris Bosman

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Chris Bosman
        last edited by

        @Chris-Bosman No, the FTP path for Synology NAS needs to be changed.

        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
        • C
          Chris Bosman
          last edited by

          What does it need to be changed to?

          To be specific, my Image Path is /volume1/Workstation_Images, as is my FTP path.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Remove the volume1 for the 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! 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 1
            • C
              Chris Bosman
              last edited by

              Tom,

              I have tried “/Workstation_Images” and simply “Workstation_Images” as the ftp path and have had no luck. The images still end up in the /[NFS path]/dev/[MAC address] folder.

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

                @Chris-Bosman said:

                Tom,

                I have tried “/Workstation_Images” and simply “Workstation_Images” as the ftp path and have had no luck. The images still end up in the /[NFS path]/dev/[MAC address] folder.

                It sounds like you have a mixture of FTP Path and FTP Credentials problems.

                So, to find out the correct path, you simply manually connect via Command Line Interface to the synology NAS via FTP.

                You would then figure out what directory is the “root” directory, the lowest you can go via your FTP session. Then, from there, figure out the path to the /images directory. that path is your FTP path - it will be different from the synology NAS’s ACTUAL path, this is specific to Synology NAS boxes.

                And for the FTP credentials part, just make sure that in your storage node settings, you have a user and pass that actually exists on the Snynology BOX, and that user has permission over the /images directory.

                Here’s a article on FTP, I really should add a bit in it about FTP Path. https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

                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
                • C
                  Chris Bosman
                  last edited by

                  Wayne,

                  Going into the folder where my images are to be stored on the NAS via the command line and running pwd, the path I get is “/volume1/Workstation_Images”. The lowest directory I can get to on the NAS simply displays as “/”.

                  To me, this would suggest that “/volume1/Workstation_Images” is the proper path? Am I correct in assuming that? Because I’ve attempted using that path and still receive the error.

                  For FTP credentials, I am using the same user name and credentials in the following locations. This has been the case since the start:

                  • On the Synology NAS box, which as read/write privileges over the Workstation_Images folder
                  • Under Management Username & Management Password for the storage node.
                  • Under FOG_TFTP_FTP_USERNAME/FOG_TFT_FTP_PASSWORD
                  • For the FOG Server’s “fog” user
                  • In the file /opt/fog/.fogsettings under storageftpuser/storageftppass
                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @Chris Bosman
                    last edited by

                    @Chris-Bosman said:

                    Wayne,

                    Going into the folder where my images are to be stored on the NAS via the command line and running pwd, the path I get is “/volume1/Workstation_Images”. The lowest directory I can get to on the NAS simply displays as “/”.

                    To me, this would suggest that “/volume1/Workstation_Images” is the proper path? Am I correct in assuming that? Because I’ve attempted using that path and still receive the error.

                    For FTP credentials, I am using the same user name and credentials in the following locations. This has been the case since the start:

                    • On the Synology NAS box, which as read/write privileges over the Workstation_Images folder
                    • Under Management Username & Management Password for the storage node.
                    • Under FOG_TFTP_FTP_USERNAME/FOG_TFT_FTP_PASSWORD
                    • For the FOG Server’s “fog” user
                    • In the file /opt/fog/.fogsettings under storageftpuser/storageftppass

                    So close.

                    On a windows machine at a command prompt, you can FTP into your FOG box.

                    Like this:

                    upload-f61bf509-55ef-46d3-8afe-2e9276ca0bbb

                    There are more details here: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Try_to_get_a_file_with_Windows:

                    So, the path you found was the disk path, via CLI on the server itself. I’m asking you to figure out your “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/

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Chris Bosman @Wayne Workman
                      last edited by

                      @Wayne-Workman said:

                      @Chris-Bosman said:

                      Wayne,

                      Going into the folder where my images are to be stored on the NAS via the command line and running pwd, the path I get is “/volume1/Workstation_Images”. The lowest directory I can get to on the NAS simply displays as “/”.

                      To me, this would suggest that “/volume1/Workstation_Images” is the proper path? Am I correct in assuming that? Because I’ve attempted using that path and still receive the error.

                      For FTP credentials, I am using the same user name and credentials in the following locations. This has been the case since the start:

                      • On the Synology NAS box, which as read/write privileges over the Workstation_Images folder
                      • Under Management Username & Management Password for the storage node.
                      • Under FOG_TFTP_FTP_USERNAME/FOG_TFT_FTP_PASSWORD
                      • For the FOG Server’s “fog” user
                      • In the file /opt/fog/.fogsettings under storageftpuser/storageftppass

                      So close.

                      On a windows machine at a command prompt, you can FTP into your FOG box.

                      Like this:

                      upload-f61bf509-55ef-46d3-8afe-2e9276ca0bbb

                      There are more details here: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#Try_to_get_a_file_with_Windows:

                      So, the path you found was the disk path, via CLI on the server itself. I’m asking you to figure out your “FTP Path”

                      Wayne,

                      Following the instructions in the linked Troubleshooting document does not work with the instructions provided. Most commands using Windows Command Line give me an error of “500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this”. This includes attempting to use “ls” to list any directory or using “cd”. Using “pwd” to list the directory gives me an answer of “‘/’ is current directory.”

                      I did, however, find the Workstation_Images folder by randomly inputting some cd commands. Getting into that folder and requesting the filepath gave me “‘/Workstation_Images’ is current directory”. This would be helpful, except I’ve already attempted using both “/Workstation_Images” and "Workstation_Images’ (without the leading /) as my FTP Path.

                      Any advice on where to go from here?

                      • Chris
                      1 Reply Last reply Reply Quote 0
                      • C
                        Chris Bosman
                        last edited by

                        Alright, I got this figured out. Everything was configured correctly on the FOG end, it ended up being a setting on the Synology NAS that I needed to change. I had to enable SFTP. Once that was enabled, everything began working correctly.

                        1 Reply Last reply Reply Quote 2
                        • 1 / 1
                        • First post
                          Last post

                        271

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project