15 Replies Last post: Mar 22, 2013 6:27 PM by Roberto Schneiders  
Roberto Schneiders Newbie 18 posts since
Mar 14, 2013
Currently Being Moderated

Mar 19, 2013 6:25 PM

TeamCity Duplicates finder (Java)  does not work on linux

I'm setting up a continuous integration server with TeamCity.

 

I configured a build with Duplicates Finder (java).

 

gave error:

Tests passed: 2; error message is logged; process exited with code 255

 

Build errors

[13:30:02] Step 2/3: Duplicate Code (Duplicates Finder (Java)) (1s)

[13:30:04] [Step 2/3] Upload duplicate fragments

[13:30:04] [Upload duplicate fragments] Fragments date not found in file / home/sysmo/TeamCity/buildAgent/temp/buildTmp/duplicates3350364825119326364/fragments.xml

[13:30:04] [Step 2/3] Upload duplicates

[13:30:04] [Upload duplicates] Duplicates date not found in file / home/sysmo/TeamCity/buildAgent/temp/buildTmp/duplicates3350364825119326364/duplicates.xml

[13:30:04] [Step 2/3] Step Duplicate Code (Duplicates Finder (Java)) failed

 

I came to realize that the build agent works correctly in Windows, but does not work in linux (Suse 12.2). (See image).

 

Any tips on how to solve this problem?

Attachments:
Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 20, 2013 12:58 AM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Roberto,

 

If would be easier if you can attach full build log as there might be relevant messages.

 

It seems that the duplicates finder fails for some reason. One of possible reasons is JVM memory issues: either too small that is fails with OutOfMemory (so need to increase -Xmx), or large for the JVM to initiazlize on the machine.

Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 20, 2013 5:13 PM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Roberto,

 

Pleae check that the processes launched by the TeamCity agent can connect to the agent's port (http://localhost:9090 in the case from the logs). Seems like this is not the case for the build, while this is a necessary pre-requisite for the due functionaing of TeamCity agent logic.

Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 20, 2013 6:43 PM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Roberto,

 

Sone runners do work. But not the others.

Can you please try Ant build runner?

Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 20, 2013 10:28 PM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Roberto,

 

Idea duplicates and inspectinos runned will not works until the process launched fromt he agent can connect to the agent's port (http://localhost:9090 in the case from the logs).

Maven runner does not need the ability.

I asked you to try Ant as it also requires the ability to connect to the port and would expose the same issue.

Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 21, 2013 5:06 PM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Robert,

 

> How could he not have access to port 9090?

 

I am not a Linux administratino guru, so won't help you much here.

 

I'd start by opening the address ( http://localhost:9090 , but may vary, can be seen in the command line in the build log) on the agent machine in the browser (message "Method GET not implemented" means the agent is accessible). You might need ot run theat on behalf of the same user running TeamCity agent.

 

If it works, I'd try to run the agent from the same user's console (agnet.sh start).

Next, I'd try to connect to the port from a test script run as a build in TeamCity.

Yegor Yarko JetBrains 1,699 posts since
May 5, 2004
Currently Being Moderated
Mar 22, 2013 12:25 AM in response to: Roberto Schneiders
Re: TeamCity Duplicates finder (Java) raises Fragments data not found

Roberto,

 

Please check that you have only one agent running (one agent uses two nested java processes).

 

Could you please also try to install the agent on another machine to see if that is specific to environment?

More Like This

  • Retrieving data ...