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

    FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node

    Scheduled Pinned Locked Moved Tutorials
    51 Posts 8 Posters 31.5k Views
    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.
    • J
      jeremyvdv
      last edited by

      Hello George

      Actually it was the path in ftp Path.
      My image capture works. and I thank you very much.
      now I meet the problem attached when downloading the image : - /

      b637d4bb-44f2-4773-9fb9-f758091c0b77-image.png

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

        @jeremyvdv But this part worked before. This is the NFS side. The image was getting to the NAS but it was failing to move to the /images2 directory. That was/is an FTP issue. Now its failing to upload the image, which is an nfs issue.

        Ah, I see it. From my notes I have your nas at IP 10.1.5.8 your storeIP is 10.16.3.129 your fog server. Did you change the storage node configuration? Your nas server needs to be the master in the storage group. Here is the kernel line you collected from the debug session I saved.

        cat /proc/cmdline
        loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.16.3.129/fog/ consoleblank=0 rootfstype=ext4 mac=30:8d:99:14:a4:e6 
        ftp=10.1.5.8 storage=10.1.5.8:/volume1/images2/dev/ storageip=10.1.5.8 osid=5 irqpoll hostname=LP0045 chkdsk=0 
        img=test10 imgType=n imgPartitionType=all imgid=5 imgFormat=5 PIGZ_COMP=-10 hostearly=1 pct=5 
        ignorepg=1 isdebug=yes type=up
        

        See how it differs from the picture you posted?

        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 0
        • J
          jeremyvdv
          last edited by

          I did not change anything at the storage level …

          And I have never tested the download of an image since I have never been able to create until now 🙂

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

            @jeremyvdv Ah, OK I missed in the screen shot the type=down.

            Then what its doing is picking the FOG server as the download node. If you go into the storage configuration and pick the default storage node (the fog server) change the max clients field to 0. Make sure the max clients field on the NAS is set to something higher than 0 (10 is default).

            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 0
            • J
              jeremyvdv
              last edited by

              ok I try max client on fog a 0 and on the nas a 10 … I keep you informed.
              Thank you

              1 Reply Last reply Reply Quote 0
              • J
                jeremyvdv
                last edited by

                Hello
                so I check the parameters but I still have the same problem.

                1 Reply Last reply Reply Quote 0
                • J
                  jeremyvdv
                  last edited by

                  Hello

                  Do you have an idea @george1421 Georges for my problem?

                  Thank you

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

                    @jeremyvdv I’m sorry I don’t have a good answer for you. With the fog server max clients at 0 and other nodes greater than 0, the code should use the available storage nodes and not the FOG server for image delivery.

                    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 0
                    • L
                      loadedmind @Alex78
                      last edited by

                      @Alex78 What do we need to do to gain access to the images? When clicking any of the links, I get “Not Found”.

                      1 Reply Last reply Reply Quote 0
                      • V
                        Valer
                        last edited by

                        Hello everyone,

                        I am facing an issue with image capturing after performing an upgrade on my FOG server from 1.5.10 to 1.5.10.1886. Before the update, everything worked fine for me. The images were stored directly on the Synology NAS.

                        My Setup:

                        FOG Server: IP 192.168.10.220 (Debian 13)
                        
                        Storage: External Synology NAS with multiple virtual IPs (192.168.109.220 and 192.168.110.220).
                        
                        Storage Configuration: The Synology NAS is configured in FOG web UI as the Master Node for its storage group. The local Default storage node is NOT the master.
                        
                        Clients: Multiple clients on different subnets (e.g., 192.168.109.23 and 192.168.110.23).
                        

                        The Problem:
                        The Partclone phase finishes successfully on the client machine. The image files are correctly uploaded via NFS directly to the Synology NAS into the /images/dev/[MAC_ADDRESS] folder.

                        However, right after Partclone reaches 100%, the task gets stuck in the FOG Web UI (at around 70%), and the client screen shows the following PHP FTP error:

                        Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 709, Message: ftp_put(/images/dev/[MAC]): Failed to open stream: No such file or directory, Host: 192.168.110.220, Username: foguser

                        What I have verified:

                        I tested the FTP connection manually via CMD/PowerShell from a PC using the same foguser credentials. I am able to log in, mkdir, rename, and rmdir inside the /images and /images/dev directories on the NAS without any permission errors.
                        
                        If I move and rename the MAC folder manually inside Synology File Station from /images/dev/[MAC] to /images/[Image_Name], the image works fine.
                        
                        This setup worked flawlessly before the FOG server upgrade. The /images directory is NOT mounted locally on the FOG server itself (and never had to be).
                        
                        Verified FTP username and password on NAS and FOG. It's same.
                        

                        It seems that fogftp.class.php is incorrectly triggering ftp_put (trying to read a local file from the FOG server) instead of doing a remote ftp_rename directly on the NAS storage node.

                        Has anyone encountered this bug after a recent upgrade, or is there a specific setting in the new version that I missed?

                        Thank you for any help.

                        Storage Node for NAS
                        Storage Node for NAS.png

                        Error on PC
                        U10-PC13.jpg

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

                        70

                        Online

                        12.7k

                        Users

                        17.6k

                        Topics

                        156.7k

                        Posts
                        Copyright © 2012-2026 FOG Project