FOG Replication saying login incorrect



  • Server
    • FOG Version: 1.3.3
    • OS: Ubuntu 14
    Client
    • Service Version:
    • OS:
    Description

    I have 1 storage group and 2 storage nodes, the 1 node is the default node that was created when I installed FOG. The 2nd node is one that was created when I installed the Storage server (different IP).

    I can see both storage nodes on the GUI home page. But every time the replication process starts, I get this in the log:
    [03-07-17 8:04:43 pm] * Type: 2, File: /var/www/fog/lib/fog/fogftp.class.php, Line: 463, Message: ftp_login(): Login incorrect., Host: 172.31.161.251, Username: fog
    [03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Jail
    [03-07-17 8:04:38 pm] * Found Image to transfer to 1 node
    [03-07-17 8:04:38 pm] * Attempting to perform Group -> Nodes image replication.
    [03-07-17 8:04:38 pm] | There are no other members to sync to.
    [03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Patrol
    [03-07-17 8:04:38 pm] * Not syncing Image between groups
    [03-07-17 8:04:38 pm] | There are no other members to sync to.
    [03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Jail
    [03-07-17 8:04:38 pm] * Not syncing Image between groups
    [03-07-17 8:04:38 pm] * Attempting to perform Group -> Group image replication.
    [03-07-17 8:04:38 pm] * We are node ID: 1. We are node name: Parkway_Storage_Node
    [03-07-17 8:04:38 pm] * We are group ID: 1. We are group name: Parkway_Storage_Group
    [03-07-17 8:04:38 pm] * Starting Image Replication.

    Which Password do I need to change? where should I look? I did look in the .fogsettings file of each server and the password there is different, is this the problem?



  • @Wayne-Workman I got it working. I must have messed up the passwords. I fixed it so the user pass matched the .fogsettings password and replication started working. Thank you.


  • Moderator


  • Moderator

    @chris.dees No this IS the right path here. Its not clear why this is being difficult (It shouldn’t be).

    I might recommend that you update to 1.3.5RC11 too. If I remember right 1.3.2 and 1.3.3 had some inherent flaws that were overcome with 1.3.4. And then 1.3.5RC11 fixed a bunch of issues with resizable images.

    FWIW: You need to update the master node first then all storage nodes connected to the master fog node.



  • @george1421 ok. I will try this first thing in the morning. Just to clarify, I am just trying to make sure the replication services work on the two machines I set up. This will eventually turn into a bigger multi site setup. The end result will be to have our main FOG management server at our Parkway building, and then to have different storage nodes setup at each of our precincts, North, South, East, West, and our Jail. The images for the precincts will all replicate from our Parkway server out to the 4 precincts and the images for our jail will only replicate out to the jail. Any ideas on if I am heading down the wrong path? I plan to set a location for each storage node but do I need a different storage group too?


  • Moderator


  • Moderator

    @chris.dees Ok then from a third system (windows could be) see if you can log into the storage node via ssh (putty) using the fog credentials, if you can log in via ssh, then try ftp, with the same linux user ID and password. The error message is still indicating the storage node password is not matching the linux fog user on the storage node.



  • I updated the password setting. I simply copied and pasted the password from the fog storage node to the password field on the main fog server. It still gives me Login Incorrect.

    [03-07-17 8:34:54 pm] * Type: 2, File: /var/www/fog/lib/fog/fogftp.class.php, Line: 463, Message: ftp_login(): Login incorrect., Host: 172.31.161.251, Username: fog
    [03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Jail
    [03-07-17 8:34:50 pm] * Found Image to transfer to 1 node
    [03-07-17 8:34:50 pm] * Attempting to perform Group -> Nodes image replication.
    [03-07-17 8:34:50 pm] | There are no other members to sync to.
    [03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Patrol
    [03-07-17 8:34:50 pm] * Not syncing Image between groups
    [03-07-17 8:34:50 pm] | There are no other members to sync to.
    [03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Jail
    [03-07-17 8:34:50 pm] * Not syncing Image between groups
    [03-07-17 8:34:50 pm] * Attempting to perform Group -> Group image replication.
    [03-07-17 8:34:50 pm] * We are node ID: 1. We are node name: Parkway_Storage_Node
    [03-07-17 8:34:50 pm] * We are group ID: 1. We are group name: Parkway_Storage_Group
    [03-07-17 8:34:50 pm] * Starting Image Replication.


  • Moderator

    is it safe to assume 172.31.161.251 is the IP address of your storage node?

    If so you need to ensure the user name and password listed for this storage node (on the main fog server. Storage Management->Edit Storage node-Field: Management Username and Field: Management Password) is consistent with the linux user fog on the storage node.

    FOG uses FTP to move files from the Master server to all storage nodes. So it (FOG Master node) needs to know the remote ftp user ID and password for each storage node.


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.