Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Agent hostname change make the agent dissapear #2452

probert ·
Hi,

We are moving our Windows 7 VM from Parallels Desktop to XenServer, and I have a strange problem with my first move. I moved one of the VM, and I changed the Windows name of the VM from "COMPILIX2-WIN" to "XEN-WIN-COMPIL", while keeping the same IP address. Problem is: in Grid -> Active Nodes, I see XEN-WIN-COMPIL, which is fine, but if I try to add it as a resource, XEN-WIN-COMPIL disappears and COMPILIX2-WIN is back in the list. If I try to use COMPILIX2-WIN, it disappears and I see XEN-WIN-COMPIL again.

So it looks like a part of QuickBuild is still seeing the old Windows name, but I can't find where.
  • replies 9
  • views 3222
  • stars 0
robinshen ADMIN ·
Please unauthorize this agent and also unauthorize original agent from inactive list, then authorize it again to see if it fixes the problem.
probert ·
That did the trick. The original agent didn't show up, but unauthorizing the XEN-WIN-COMPIL fixed the problem.
probert ·
Well, it worked for 15 minutes. Now, on the agent, I get:

Problem accessing /service/node. Reason:
Access denied for connection from '192.168.1.109'.</pre></p><h3>Caused by:</h3><pre>com.pmease.quickbuild.AccessDeniedException: Access denied for connection from '192.168.1.109'.

192.168.1.109 is the IP of our QuickBuild server, so I don't see why it's saying that access is denied.
robinshen ADMIN ·
Please restart the agent to see if it solves the problem. Also which QB version are you using?
probert ·
Using 5.0.33 on Mac OS X 10.7.2 (java version "1.6.0_41").
probert ·
Just did a restart of the agent, still the same error.
robinshen ADMIN ·
The token table looks like messed up, please do the following:
1. Stop qb server.
2. Open qb database table qb_token with your database tool and delete all entries.
3. Start qb server and all your build agents will appear as inactive nodes after a while.
4. Reauthorize them.
probert ·
I did your instructions, and no luck. Funny thing is that it actually start jobs on this agent, but the console is only errors. In the Agent Log tab on the server, I see:

2013-08-23 10:14:07,307 [Thread-13] ERROR com.pmease.quickbuild.Quickbuild - Error connecting server: Build agent 'XEN-WIN-COMPIL:8811' is not authorized to join the grid.
Please follow below steps to authorize this agent:
1. Keep this agent running.
2. Login to QuickBuild as administrator and switch to menu 'Grid->Unauthorized Nodes'.
3. Select the agent from there and click the authorize button.

But the agent is authorized (it's listed in the Active Nodes, and Unauthorized Nodes is empty).
robinshen ADMIN ·
This is odd, can you please send below to robin at pmease dot com for diagnosis?
1. your current database backup
2. Ip address of the problematic agent
3. Conf/node.properties of the problematic agent.