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

    Continuous Fog Storage Node Replication problem

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    32
    3.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.
    • M
      MPSAdmin
      last edited by

      ok… I noticed something else… the portions I deleted from the originall fogreplicator.log are html pages from the synology. Is there a reason that the fog server is pulling html files from the synology?

      Wayne WorkmanW 2 Replies Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @MPSAdmin
        last edited by

        @mpsadmin said in Continuous Fog Storage Node Replication problem:

        Is there a reason that the fog server is pulling html files from the synology?

        It could be that the FTP Root is not set correctly for the synology. See this section: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#FTP_Path There are notes in there specifically about Synology devices. Use the troubleshooting higher in the article to determine what the FTP Root path 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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          Here is my POC tutorial to setup a synology nas as a FOG storage node: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node

          You need to watch directory permission on the synology NAS as well as nfs share permissions.

          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!

          M 1 Reply Last reply Reply Quote 1
          • M
            MPSAdmin
            last edited by

            Still doing the same thing. Rolling right through each file over and over again. I changed the rights to the folders as recommended.

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

              @mpsadmin But did you check the FTP root by logging in via 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/

              M 1 Reply Last reply Reply Quote 0
              • M
                MPSAdmin @george1421
                last edited by

                @george1421
                Hi George. I had hoped that you would chime in as I followed your fantastic storage node document when I set this up.
                in just noticed that the ‘images’ shared folder didn’t have rights for the fog user.

                george1421G 1 Reply Last reply Reply Quote 0
                • M
                  MPSAdmin @Wayne Workman
                  last edited by

                  @wayne-workman
                  yes I did. I logged in via ftp and was able to browse with no issues.

                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @MPSAdmin
                    last edited by george1421

                    @mpsadmin So are the files actually making it to the NAS? The only reason why the fog server would keep replicating is because the check sums would not match so it will send the file over again. Possibly date/time mismatch might trigger the replication again, but I think they are focusing on the check sum as the key to replicate.

                    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!

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

                      @mpsadmin said in Continuous Fog Storage Node Replication problem:

                      I logged in via ftp and was able to browse with no issues.

                      That’s not what I am referring to - I would like for you to FTP into the NAS and figure out where you land - i.e. the FTP Path directory.

                      • Is the directory where you land the FTP Path that is set for this node?
                      • What is your landing 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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        MPSAdmin @Wayne Workman
                        last edited by

                        @wayne-workman Apologies for not providing clearer info. The paths for the storage node are configured within fog as follows:
                        0_1519158734380_c31cc54a-37a2-40d7-aa84-1ab1f8a791b6-image.png

                        The ftp paths are as follows:
                        0_1519158795996_966faeda-2106-434a-b85e-3dcbc6c308f2-image.png

                        The files being replicated are within the G3-0118.1 folder, as listed below:
                        0_1519158844529_806dca24-017a-4760-ac1f-1448da4e5ba3-image.png

                        the source folder on the fog server is the /images folder, as shown below.
                        0_1519158945084_de15469e-5417-453b-937a-52daf3e9da66-image.png

                        Additionally, I have verified that both the synololgy and the fog server are using the same ntp source as the rest of the devices on the network. (a windows domain controller). After changing the ntp settings, i stopped the fog replication service, deleted the files from the synology folder, and restarted the replication service.

                        Thanks. I’ll keep digging. Most likely it is something simple that I have done.

                        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                        • M
                          MPSAdmin @george1421
                          last edited by

                          @george1421 yes, the files are making it to the NAS. Fog is replicating at full speed, up to the configured bandwidth limit. Once the files are replicated, the process begins anew.

                          1 Reply Last reply Reply Quote 0
                          • M
                            MPSAdmin
                            last edited by

                            Also, just checked with the d1.mbr file… md5 checksums match.

                            040d5ad57af1942104ab788d3b12778e fogserver
                            040d5ad57af1942104ab788d3b12778e synology web console

                            d1p1.img…checksums match here too.
                            79d8b1a77b8111418481c121c246501b fog server
                            79d8b1a77b8111418481c121c246501b synology web console

                            george1421G 2 Replies Last reply Reply Quote 0
                            • george1421G
                              george1421 Moderator @MPSAdmin
                              last edited by

                              @mpsadmin OK then we might need an opinion from one of the @developers to give us an idea why the NAS is not reporting what the FOG replicator expects.

                              If I remember right there is 2 or 3 replicator logs. One is the main replicator log, one is for the storage node, and there may be a log file for each image being replicated. I don’t have access to my production FOG server at the moment to confirm. But I thought the logs were pretty descriptive to why it was replicating.

                              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
                              • george1421G
                                george1421 Moderator @MPSAdmin
                                last edited by george1421

                                @mpsadmin I have my fog-pi server with me that has FOG 1.4.4 on it. I’m looking at the code and it appears to rely on the file byte count being the same to indicate if the file needs to be replicated or not. I’m not a programmer so this object oriented php is a bit greek to me. But so far it looks like byte count is the trigger. Now this is the byte count as reported by FTP session. Also the log writes to /opt/fog/log look fairly descriptive to what exactly the replicator is doing.

                                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
                                • Wayne WorkmanW
                                  Wayne Workman @MPSAdmin
                                  last edited by

                                  @mpsadmin Did you use the FTP option when logging in via WinSCP? I ask because I want to be sure. Photo:
                                  0_1519168575571_winscp ftp.png

                                  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/

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

                                    @mpsadmin said in Continuous Fog Storage Node Replication problem:

                                    the portions I deleted from the originall fogreplicator.log are html pages from the synology. Is there a reason that the fog server is pulling html files from the synology?

                                    @Developers I believe that quote is a symptom of the root problem. I am just trying to drill down to why.

                                    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/

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

                                      @wayne-workman It’s not a problem fog is causing. It’s a problem with how fog manages to do things. The request being made to the synology is not a fog based system and so synology is responding with its own information.

                                      This is just a guess on my part, but it’s unlikely to be anything we can fix.

                                      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
                                      • M
                                        MPSAdmin @Wayne Workman
                                        last edited by

                                        @wayne-workman yes. used ftp.
                                        0_1519223532615_12c40913-36db-419e-9802-bdbafed4fdf8-image.png

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          MPSAdmin
                                          last edited by

                                          Here are the logs from the replication, if you have time to look at them.

                                          fogreplicator.log https://pastebin.com/Lb0Kc17n
                                          fogimagesize.log https://pastebin.com/NN0nyrbY
                                          fogreplicator…transfer.spg-syn1.log https://pastebin.com/VHtHRZq3
                                          fogreplicator.G3-0118.1.transfer.spg-syn1.log https://pastebin.com/U51QxtkY

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            MPSAdmin
                                            last edited by

                                            What protocol does fog use to verify its images? somehow fog is pulling html from the synology… makes me wonder if it is looking in the /fog web path on the synology?

                                            (the synology guide by george says this folder doesnt matter because its not a real storage node)

                                            wondering if I can ‘create’ a webserver on the synology with the path fog is looking for? just a little more patience guys…i’d appreciate it.

                                            Thanks!

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

                                            303

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project