Image Replication Issues
-
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 -
@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.
-
@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> -
@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.