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

    Image Replication Issues

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    4
    39
    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.
    • P
      ProfessorFow
      last edited by ProfessorFow

      I have a primary FOG server and Storage node server on my LAN (in the same subnet), and replication works fine. However, I have another Storage node in a remote location, which the Primary server’s replication logs indicate as “Error: Cannot connect to <remote-storage-node>”.

      The primary server and remote storage node can ping each other, and both firewalls on the IPSec tunnel are set to allow all traffic between the two subnets, and the firewalls are disabled on both servers.

      Not sure if there’s a setting in FOG or a config I need to change to allow replication to work on servers outside of my primary server’s LAN?

      Edit:
      I also get this message when I check the status of the FOGImageReplicator.service
      “FTP connection failed in /var/www/fog/lib/fog/fogftp.class.php on line 219”

      Fog Version: 1.5.10.1660
      Server OS: Ubuntu 24.04.02 LTS

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

        @ProfessorFow The FOG replicator uses ftp to transfer files to the storage node. Make sure ftp is not being blocked between the master server and the remote storage node. You might test by on the master node, issue `ftp <remote_server_ip> if you are not prompted to enter a login then FTP is being blocked.

        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!

        P 1 Reply Last reply Reply Quote 0
        • P
          ProfessorFow @george1421
          last edited by ProfessorFow

          @george1421 When I try to manually FTP from the Primary Server to the Remote Storage Node, it connects, then it says the remote server has closed the connection, as shown below. It looks like it’s able to connect, but then the Remote Storage Node closes the connection instantly.

          root@fog:~# ftp 192.168.6.223
          Connected to 192.168.6.223.
          421 Service not available, remote server has closed connection.
          ftp>

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

            @ProfessorFow OK what I want you to do is on the master node, go into the storage group where this remote node is. Look at this remote node. There should be a ftp user ID and password listed there (said from memory). Use those credentials to connect like you did with the ftp CLI from the master node to the remote node. See if you can login using ftp to the remote node. Then issue a ls command, Its not important what the answer is as long as it gives you an answer and not an error.

            If you can’t login using those credentials then on the remote storage node look at the /opt/fog directory. There is a hidden file called .fogsettings. issue the command cat /opt/fog/.fogsettings In that file should be the password for the account used when the fog server was installed. Make sure they match what is on the master node.

            There is something with ftp that is not working correctly, that is why the replication is not happening.

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

            185

            Online

            12.1k

            Users

            17.3k

            Topics

            155.4k

            Posts
            Copyright © 2012-2024 FOG Project