Failed to Connect to DefaultMember



  • [FONT=arial][SIZE=3]My previous FOG server failed and I needed to reinstall:[/SIZE][/FONT]
    [FONT=arial][SIZE=3]FOG 0.32 on Ubuntu 12.04 LTS Server AMD64[/SIZE][/FONT]

    [FONT=arial][SIZE=3]Here is my installation answer set:[/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]What version of Linux would you like to run the installation for? 2[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]What type of installation would you like to do? N[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]What is the IP address to be used by this FOG Server? 192.168.1.10[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Would you like to setup a router address for the DHCP server? N[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Would you like to setup a DNS address for the DHCP server and client boot image? N[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Would you like to change the default network interface from eth0? Y[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Would network interface would you like to use? eth1[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Would you like to use the FOG server for dhcp service? Y[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]This version of fog has internationalization support, would you like to install the additional language packs? N[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]Are you sure you wish to continue? Y[/COLOR][/SIZE][/FONT]

    [FONT=arial][SIZE=3][COLOR=#000000]I then changed the config.php to point to my MySQL server with all the previous data. Also, I moved images over from the failed machine to the new one and ran [/COLOR][COLOR=#000000]the following:[/COLOR][/SIZE][/FONT]

    [FONT=arial][SIZE=3][COLOR=#000000]sudo chown -R fog /images[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]sudo chmod -R 755 /images[/COLOR][/SIZE][/FONT]
    [FONT=arial][SIZE=3][COLOR=#000000]sudo chmod -R 777 /images/dev[/COLOR][/SIZE][/FONT]

    [FONT=arial][SIZE=3][COLOR=#000000]I can log in just fine and see all the hosts, snapins, etc. but I get a “Failed to Connect to DefaultMember” on the dashboard’s storage display and I see no bandwidth. These are the (I think) corresponding errors in Apache’s error.log:[/COLOR][/SIZE][/FONT]

    [FONT=arial][SIZE=3][COLOR=#000000]PHP Notice: Undefined index: ngmInterface in /var/www/fog/management/ajax/dashboard.bandwidth.php on line 28, referer: [url]https://kratos.dhcp.umsl.edu/fog//management/index.php[/url][/COLOR][/SIZE][/FONT]

    [FONT=arial][SIZE=3][COLOR=#000000]P[/COLOR][/SIZE][/FONT][SIZE=3][FONT=arial][COLOR=#000000]HP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: [/COLOR][/FONT][/SIZE][URL=‘https://kratos.dhcp.umsl.edu/fog//management/index.php’][SIZE=3][FONT=arial]https://kratos.dhcp.umsl.edu/fog//management/index.php[/FONT][/SIZE][/URL]

    [FONT=arial][SIZE=3][COLOR=#000000]On top of which, I can’t get a machine to PXE boot. LOL I have a feeling all of this is related to something I’m missing. Can someone help me troubleshoot this problem?[/COLOR][/SIZE][/FONT]


  • Moderator

    Eddieduce, please start a new thread and post your relevant setup information such as FOG version, OS version, how many FOG servers you’re setting up and what type of installation you performed (normal or storage node).



  • I face the same issue. I just setup a new FOG server and it keeps telling me the same thing. I have checked the username, fog and password. They all match. IP for DefaultMember is correct.

    Any Idea?



  • I just had this problem when upgrading FOG from 0.30 to 0.32 though in our case the cause was different.

    In our case, we are using 2 interfaces, one on our main network, and the other on a private network used just for imaging. The ‘Failed to Connect to DefaultMember’ error on the dashboard was due to a combination of having a private (non routed) subnet for imaging, and configuring a http proxy in FOG. The problem is that the ‘Fetch’ command defined in commons/functions.include.php and used to get the /fog/status/hw.php page for the StorageNode will try to use the proxy to access the private network IP (which of course is not accessible via the proxy).

    Our workaround is to remove the proxy configuration, and the dashboard error disappears.

    For a proper solution, is there any way to configure the proxy for internet access, but not use it for accessing the StorageNode URL?

    It seems that in 0.30, the StorageNode URL was fetched using curl, and did not use the FOG proxy settings - this behaviour has changed in 0.32 with the introduction of the Fetch command which always uses proxy settings if they are available.



  • LOL!! Jeez. I had two gateways defined in /etc/network/interfaces! Took it out and now we are good.

    Feeling stupid … Thank you so much!


  • Moderator

    Silly question: Do you have the right IP address for your storage node “defaultMember” in the StorageNodes definition in the Web UI? I think this is stored in the mysql database and may not be pointing to the right server since you are recovering onto a new installation.



  • Unfortunately that didn’t do the trick : ( I changed them all to be same as what is found in ‘commons/config.php’. I wasn’t aware that these setting were in two places.

    I should mention that the Apache error log gets about 100 ‘PHP Notices’ every time I load a page. The ones I mentioned in the previous post are just the last two and correspond to the [SIZE=3][FONT=arial][COLOR=#000000]“Failed to Connect to DefaultMember” error. I figured they’d all be related though.[/COLOR][/FONT][/SIZE]

    [SIZE=3][FONT=arial][COLOR=#000000]Here is a sample from the error log:[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: node in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000][…][/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: [/COLOR][/FONT][FONT=arial][COLOR=#000000]Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000][SIZE=2]PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmen[/SIZE]u.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: node in /var/www/fog/management/includes/mainmenu.include.php on line 32, [/COLOR][/FONT][/SIZE]
    [SIZE=3][FONT=arial][COLOR=#000000][…][/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: node in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506,[/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined index: ngmInterface in /var/www/fog/management/ajax/dashboard.bandwidth.php on line 28, [/COLOR][/FONT][/SIZE]
    [SIZE=2][FONT=arial][COLOR=#000000]PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, [/COLOR][/FONT][/SIZE]


  • Moderator

    Go to your Fog web ui, Other Information, Fog Settings, and find the TFTP Server section. YOu’ll need the FOG_TFTP_FTP_USERNAME and FOG_TFTP_FTP_PASSWORD values.

    Go to Fog web ui, storage management, All Storage Nodes, and click on defaultMember. Make sure your management username matches the FOG_TFTP_FTP_USERNAME from the other screen. Same with Management Password and FOG_TFTP_FTP_PASSWORD.

    Update, go back to home screen, see if you can connect to the defaultMember.

    If you still have issues after this, we’ll continue, but try this to get rid of the errors about connecting to the storage node.


Log in to reply
 

400
Online

38937
Users

10696
Topics

101490
Posts

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