[Anthill-pro] problem adding agent on differnet network segment

Varban vvv at urbancode.com
Tue Oct 17 12:44:34 CDT 2006


Simon,

the fact that you did not see the agent in the "available" table suggests that 
there might be a firewall/router between the two network segments that might 
prevent communication between the server and agent. If that is the case and 
the ip of the agent cannot be resolved from the server then that could be 
causing the problems you are experiencing (we try to resolve the ip/hostname 
of the agent before saving the data in the database). Furthermore, as Jason 
mentioned, the manual creation of an agent does not make sense with the 
latest communication model and should have been removed from the UI. 
You should be able to start the agent and go to the UI and look in the 
available (or ignored) tables for that agent unless the agent was not 
configured with the correct server ip and port. You can check those settings 
in the agent.conf file in the conf/agent directory under the agent install 
directory.

Regards,
Varban

On Tuesday 17 October 2006 13:33, Au, Simon wrote:
> Jim or Any Anthill3 guru,
>
> I didn't see the agent on the "available agents" area.  I made sure the
> port I assigned the agent was open to the server.
>
>
> Simon Au
> Software Configuration Management/Release Management
> Simon.au at blueshieldca.com
> Office:(415) 229-6136
>
>
> 	-----Original Message-----
> 	From: Jason Buck [mailto:buckja at gmail.com]
> 	Sent: Tuesday, October 17, 2006 10:15 AM
> 	To: Au, Simon
> 	Subject: Re: [Anthill-pro] problem adding agent on differnet
> network segment
>
>
> 	Simon,
>
> 	I believe this is a problem with the Create Agent function in
> the admin console.  This is actually an unnecessary step.  Simply
> install your agent on the desired machine and start both server and
> agent.  The server will automatically recognize the agent and place it
> in the "Available Agents" section.  You should then edit that agent and
> give it a name and select the Server Groups you wish it to belong to,
> then save.  The agent should now appear in the "Active Agents" section.
> We will be removing the Create Agent function altogether.
>
> 	Let me know if this still presents a problem for you.
>
> 	Regards,
> 	Jason Buck
> 	Urbancode, Inc.
>
> 	On Oct 16, 2006, at 6:56 PM, Au, Simon wrote:
>
>
> 		I am having problems adding agents on a different
> network segment.  My server is 165.253.44.175 running on windows but
> agent is 165.253.175.14 running on solaris.  Everytime I add the agent I
> get the message below and my database get corrupted so my server
> shutdown when I retry to start it up again.
>
> 		Agent add error message
>
> 		type Exception report
>
> 		message
>
> 		description The server encountered an internal error ()
> that prevented it from fulfilling this request.
>
> 		exception
>
>
> com.urbancode.anthill3.domain.persistent.PersistenceRuntimeException:
> com.urbancode.anthill3.domain.persistent.PersistenceException: Error
> storing object in database
>
> com.urbancode.anthill3.web.util.Conversation.unbind0(Conversation.java:1
> 69)
>
> com.urbancode.anthill3.web.util.Conversation.unbind(Conversation.java:49
> )
>
> com.urbancode.anthill3.web.controller.ControllerServlet.doPost(Controlle
> rServlet.java:384)
>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> com.urbancode.anthill3.web.util.LicenseFilter.doFilter(LicenseFilter.jav
> a:63)
>
> com.urbancode.anthill3.web.util.SecurityFilter.doFilter(SecurityFilter.j
> ava:64)
>
>
>
>
> 		note The full stack trace of the root cause is available
> in the Apache Tomcat/5.0.28 logs.
>
> 		Server restart error message
>
> 		C:\AntHill3\server\bin>run_ah3server.cmd
> 		Starting AnthillPro3 Server
> 		Logging configured
> 		Database starting...
> 		Database started
> 		License is valid
> 		Scheduler starting...
> 		Scheduler started
> 		Loading Server Settings...
> 		Server Settings loaded
> 		ERROR main
> com.urbancode.anthill3.main.server.AnthillServer -
> com.urbancode.anthill3.domain.persiste
> 		nt.PersistenceException: Error restoring object from
> database
>
> com.urbancode.anthill3.services.ServiceLifecycleException:
> com.urbancode.anthill3.domain.persistent.
> 		PersistenceException: Error restoring object from
> database
> 		        at
> com.urbancode.anthill3.services.agent.AgentManager.start(AgentManager.ja
> va:102)
> 		        at
> com.urbancode.anthill3.main.server.AnthillServer.run(AnthillServer.java:
> 331)
> 		        at
> com.urbancode.anthill3.main.server.AnthillServer.main(AnthillServer.java
>
> :96)
>
> 		        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 		        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> 		        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 		        at
> java.lang.reflect.Method.invoke(Method.java:585)
> 		        at
> com.urbancode.anthill3.launcher.Launcher.main(Launcher.java:68)
> 		Caused by:
> com.urbancode.anthill3.domain.persistent.PersistenceException: Error
> restoring object fro
> 		m database
> 		        at
> com.urbancode.anthill3.domain.persistent.DaoSql.restoreAll(DaoSql.java:3
> 42)
> 		        at
> com.urbancode.anthill3.persistence.UnitOfWorkDefault.restoreAll0(UnitOfW
> orkDefault.java:2
> 		73)
> 		        at
> com.urbancode.anthill3.persistence.UnitOfWork.restoreAll(UnitOfWork.java
>
> :489)
>
> 		        at
> com.urbancode.anthill3.domain.agent.AgentFactory.restoreAll(AgentFactory
> .java:76)
> 		        at
> com.urbancode.anthill3.services.agent.AgentManager.start(AgentManager.ja
> va:69)
> 		        ... 7 more
> 		Caused by:
> com.urbancode.anthill3.domain.persistent.PersistenceException: Error
> restoring object fro
> 		m database
> 		        at
> com.urbancode.anthill3.domain.agent.AgentDaoSql.restore(AgentDaoSql.java
>
> :158)
>
> 		        at
> com.urbancode.anthill3.domain.persistent.DaoSql.restoreAll(DaoSql.java:3
> 37)
> 		        ... 11 more
> 		Caused by: java.lang.IllegalArgumentException: hostname
> can't be null
> 		        at
> java.net.InetSocketAddress.<init>(InetSocketAddress.java:121)
> 		        at
> com.urbancode.devilfish.client.ServiceEndpoint.<init>(ServiceEndpoint.ja
> va:74)
> 		        at
> com.urbancode.anthill3.domain.agent.AgentDaoSql.restore(AgentDaoSql.java
>
> :139)
>
> 		        ... 12 more
> 		WARN  main
> com.urbancode.anthill3.main.server.AnthillServer - Shutting down
> server...
>
> 		Simon Au
> 		Software Configuration Management/Release Management
> 		Simon.au at blueshieldca.com
> 		Office:(415) 229-6136
>
>
> 		_______________________________________________
> 		Anthill-pro mailing list
> 		Anthill-pro at lists.urbancode.com
> 		http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list