Re: problem running PVCS build with anthill OS 1.8.1.303
Varban <[email protected]> Mon, 23 Oct 2006 14:44:11 -0400
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Organization | Urbancode |
| Message-ID | <[email protected]> |
Peter, the problem is that Anthill is executing the following command: cmd /x/c cd /d "c:\anthill\..\zoobuild\JavaServerProgram\Utility" && pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli" "Z:\zoo\PVCS Server" "JavaServerProgram/Utility" and the command is returning an exit code -1 which is not a success exit code. I do not recall Windows ever returning negative codes (although I could be completely wrong here) and according to the pvcs 8.1.3 manual pcli does not return -1 either (they conveniently go from 0 to -2), which I think it does in this case. I would suggest that you try and execute the above command from command line when you are logged in with the user that is running the servlet container that hosts Anthill. If the command fails then it is some configuration/pvcs issue. If not then it is most likely some user permissions issue. Regards, Varban On Monday 23 October 2006 13:50, Peter Tung wrote: > Hi all, > > Some background info: > Anthil version : 1.8.1.303 > Ant version : 1.6.5 > Java version : 1.4.2_05 > PVCS (Serena ChangMan) version : 8.1.3 > Running anthill on Tomcat 4.1 > > I'm running into some issues when running builds after a successful initial > build, wondering if anyone's ran into this before... What it looks like is > that it can't execute the getRevisionsSince script properly, but I'm kind > of confused as far as where I can find what's wrong to come up with a > solution. > > > Here's the dump from the tomcat screen: > --------------------------------------------------------------------------- >- ---- > 12:29:50:827 [Thread - AnthillBuildDaemon] INFO > com.urbancode.anthill.adapter.P > VCSRepositoryAdapter - getRevisionsSince script command: cmd /x/c cd /d > "c:\ant > hill\..\zoobuild\JavaServerProgram\Utility" && > pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli" > "Z:\zoo\PVCS > Server" "JavaServerProgram/Utility" > > 12:29:50:842 [Thread - AnthillBuildDaemon] ERROR > com.urbancode.anthill.BuildMana > ger - PVCSRepositoryAdapter: Error executing: cmd /x/c cd /d > "c:\anthill\..\zoo > build\JavaServerProgram\Utility" && > pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli" > "Z:\zoo\PVCS > Server" "JavaServerProgram/Utility" > . Exit Code: -1 > com.urbancode.anthill.adapter.RepositoryException: PVCSRepositoryAdapter: > Error > executing: cmd /x/c cd /d > "c:\anthill\..\zoobuild\JavaServerProgram\Utility" && > pcli run -s"c:\anthill\conf\profiles\Win32\win_pvcs\myscript.pcli" > "Z:\zoo\PVCS > Server" "JavaServerProgram/Utility" > . Exit Code: -1 > at > com.urbancode.anthill.adapter.PVCSRepositoryAdapter.getRevisionsSince > (PVCSRepositoryAdapter.java:261) > at > com.urbancode.anthill.BuildManager.loadRevisions(BuildManager.java:28 > 7) > at com.urbancode.anthill.BuildManager.build(BuildManager.java:215) > at > com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.ja > va:231) > at > com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158) > at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73) > --------------------------------------------------------------------------- >- ---- > > The error code doesn't really explain much and I'm having trouble finding > more information. The command shown in the screen seems to run fine in a > separate cmd window. What I noticed is that with any other command > execution that ran successfully, this shows up on the screen: > > --------------------------------------------------------------------------- >- ---- > 12:29:39:343 [Thread - AnthillBuildDaemon] INFO > com.urbancode.anthill.adapter.P > rofileRepositoryAdapter - Executing Command: pcli put -prZ:\zoo\PVCSServer > -ac: > \anthill\..\zoobuild\JavaServerProgram\Utility\BuildJobs\switchupdate.versi >o n -f > -Y -mCommitted_by_Anthill > /JavaServerProgram/Utility/BuildJobs/switchupdate.ver > sion > 12:29:39:358 [Thread - AnthillBuildDaemon] INFO > com.urbancode.anthill.adapter.P > rofileRepositoryAdapter - Execute:Java13CommandLauncher: Executing 'pcli' > with > arguments: > ... (lists the command arguments and execution below) > --------------------------------------------------------------------------- >- ---- > > But that's not the case with the getRevisionSince script. > > Any help is appreciated. Thanks in advance. > > Peter Tung > > > _______________________________________________ > Anthill mailing list > Anthill-IWHQxnLZ/[email protected] > http://lists.urbancode.com/mailman/listinfo/anthill