continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonín Faltýnek <to...@kaf.cz>
Subject Re: Continuum under Tomcat & CVS
Date Thu, 11 Oct 2007 13:58:56 GMT
This is really funny,

because I'm running on linux box, I'm not able to perform cvs login for 'ext' 
server and my repo is not run on pserver.

So I tried connecting to cvs server through ssh using rsa key.

When I configure (fresh install and upload of one POM) continuum, which was 
running as standalone, everything works fine.

When I run continuum from Tomcat, under same user as before I got following 
error, I've same configuration, same user, only another container:

2007-10-11 15:53:19,506 [pool-1-thread-1] INFO  
BuildController:default        - Initializing build
2007-10-11 15:53:19,513 [pool-1-thread-1] INFO  
BuildController:default        - Starting build of TIF Utils
2007-10-11 15:53:19,552 [pool-1-thread-1] INFO  
BuildController:default        - Purging exiting working copy
2007-10-11 15:53:19,552 [pool-1-thread-1] INFO  
BuildController:default        - Performing action clean-working-directory
2007-10-11 15:53:19,554 [pool-1-thread-1] INFO  
BuildController:default        - Updating working dir
2007-10-11 15:53:19,554 [pool-1-thread-1] INFO  
BuildController:default        - Performing action check-working-directory
2007-10-11 15:53:19,557 [pool-1-thread-1] INFO  
BuildController:default        - Performing action checkout-project
2007-10-11 15:53:19,560 [pool-1-thread-1] INFO  
ContinuumScm:default           - Checking out project: 'TIF Utils', id: '6' 
to '/var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory/6'.
2007-10-11 15:53:19,561 [pool-1-thread-1] INFO  
ScmManager:default             - 
Executing: /bin/sh -c "cd /var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory

&& cvs -z3 -f -d :ext:afaltynek@repository2.trask.cz:/cvs -q checkout -d 6 
TIF_Utils"
2007-10-11 15:53:19,561 [pool-1-thread-1] INFO  
ScmManager:default             - Working 
directory: /var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,590 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          - servletPath=/WEB-INF/jsp/projectView.jsp, 
pathInfo=null, queryString=null, name=null
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,590 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Path Based Forward
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,592 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          - 
servletPath=/WEB-INF/jsp/navigations/ProjectMenu.jsp, pathInfo=null, 
queryString=tab=view, name=null
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,592 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Path Based Include
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,649 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          - 
servletPath=/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp, 
pathInfo=null, queryString=null, name=null
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,649 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Path Based Include
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,687 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Disabling the response for futher output
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,688 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  The Response is vehiculed using a wrapper: 
com.opensymphony.module.sitemesh.filter.PageResponseWrapper
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,690 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          - 
servletPath=/WEB-INF/jsp/decorators/default.jsp, pathInfo=null, 
queryString=null, name=null
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,690 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Path Based Include
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,744 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          - 
servletPath=/WEB-INF/jsp/components/companyLogo.jsp, pathInfo=null, 
queryString=null, name=null
log4j:ERROR Attempted to append to closed appender named [R].
2007-10-11 15:53:19,744 [http-8080-Processor24] DEBUG 
ApplicationDispatcher          -  Path Based Include
org.netbeans.lib.cvsclient.connection.AuthenticationException: Cannot 
authenticate. Reason: Publickey authentication failed.
        at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:135)
        at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:164)
        at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:475)
        at 
org.apache.maven.scm.provider.cvslib.cvsjava.command.checkout.CvsJavaCheckOutCommand.executeCvsCommand(CvsJavaCheckOutCommand.java:50)
        at 
org.apache.maven.scm.provider.cvslib.command.checkout.AbstractCvsCheckOutCommand.executeCheckOutCommand(AbstractCvsCheckOutCommand.java:83)
        at 
org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(AbstractCheckOutCommand.java:49)
        at 
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58)
        at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:521)
        at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.checkout(AbstractCvsScmProvider.java:595)
        at 
org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:444)
        at 
org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:399)
        at 
org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:382)
        at 
org.apache.maven.continuum.scm.DefaultContinuumScm.checkOut(DefaultContinuumScm.java:136)
        at 
org.apache.maven.continuum.core.action.CheckoutProjectContinuumAction.execute(CheckoutProjectContinuumAction.java:91)
        at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:417)
        at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.updateWorkingDirectory(DefaultBuildController.java:400)
        at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:112)
        at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
        at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
        at 
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
        at 
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Publickey authentication failed.
        at 
ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:259)
        at 
ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:377)
        at 
ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:428)
        at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:118)
        ... 23 more
Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you 
specify the correct password?
        at ch.ethz.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:109)
        at ch.ethz.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:286)
        at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:319)
        at 
ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:168)
        ... 26 more
2007-10-11 15:53:19,824 [pool-1-thread-1] WARN  
ContinuumScm:default           - Error while checking out the code for 
project: 'TIF Utils', id: '6' 
to '/var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory/6'.
2007-10-11 15:53:19,824 [pool-1-thread-1] WARN  
ContinuumScm:default           - Command output:
2007-10-11 15:53:19,824 [pool-1-thread-1] WARN  
ContinuumScm:default           - Provider message: The cvs command failed.
2007-10-11 15:53:19,868 [pool-1-thread-1] INFO  
BuildController:default        - Merging SCM results
2007-10-11 15:53:19,920 [pool-1-thread-1] INFO  
BuildController:default        - Error updating from SCM, not building


Dne čtvrtek 11. října 2007 Antonín Faltýnek napsal(a):
> Nope, I've tried to use Continuum configuration options 'SCM username'
> and 'SCM password'.
>
> Tonda
>
> Dne středa 10. října 2007 Emmanuel Venisse napsal(a):
> > Do you have a .cvspass file with your cvsroot declared in it?
> >
> > Emmanuel
> >
> > Antonín Faltýnek a écrit :
> > > I've tried but it was not functional for me, this error was caused when
> > > I've tried to use 'SCM username' and 'SCM password'. In ./.ssh
> > > directory is only known_hosts file.
> > >
> > > TOnda
> > >
> > > Dne středa 10. října 2007 Emmanuel Venisse napsal(a):
> > >> Do you use a private/public ssh key to connect to your cvs server?
> > >> where is it stored?
> > >>
> > >> Emmanuel
> > >>
> > >> Antonín Faltýnek a écrit :
> > >>> I'm sorry for late response, but I was away from town.
> > >>>
> > >>> I'd tried new continuum beta3, but connection to CVS is not still
> > >>> working, Tomcat user has its home directory with ssh configuration.
> > >>> It's environmet varible CVS_RSH is correctly set to 'ssh', this
> > >>> command is available on PATH.
> > >>>
> > >>> When I try to use username/password authentication I get following
> > >>> error:
> > >>>
> > >>> 2007-10-10 08:36:04,837 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Starting build of TIF Utils
> > >>> 2007-10-10 08:36:04,873 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Purging exiting working copy
> > >>> 2007-10-10 08:36:04,873 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Performing action
> > >>> clean-working-directory 2007-10-10 08:36:04,875 [pool-1-thread-1]
> > >>> INFO BuildController:default        - Updating working dir
> > >>> 2007-10-10 08:36:04,875 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Performing action
> > >>> check-working-directory 2007-10-10 08:36:04,877 [pool-1-thread-1]
> > >>> INFO BuildController:default        - Performing action
> > >>> checkout-project 2007-10-10 08:36:04,882 [pool-1-thread-1] INFO
> > >>> ContinuumScm:default           - Checking out project: 'TIF Utils',
> > >>> id: '1' to '/var/lib/tomcat-5.
> > >>> 5/webapps/continuum/WEB-INF/working-directory/1'.
> > >>> 2007-10-10 08:36:04,883 [pool-1-thread-1] INFO
> > >>> ScmManager:default             -
> > >>> Executing: /bin/sh -c "cd /var/lib/tomcat-5.5/webapps/continuum/W
> > >>> EB-INF/working-directory &&
> > >>> cvs -z3 -f -d :ext:afaltynek@repository2.trask.cz:/cvs -q checkout
-d
> > >>> 1 TIF_Utils"
> > >>> 2007-10-10 08:36:04,883 [pool-1-thread-1] INFO
> > >>> ScmManager:default             - Working
> > >>> directory: /var/lib/tomcat-5.5/webapps/continuum/WEB-INF/
> > >>> working-directory
> > >>> java.lang.IllegalArgumentException: password argument is null
> > >>>         at
> > >>> ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)
> > >>>         at
> > >>> org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(
> > >>>Ex tC onnection.java:122) at
> > >>> org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.conne
> > >>>ct (C vsConnection.java:164) at
> > >>> org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.proce
> > >>>ss Co mmand(CvsConnection.java:475) at
> > >>> org.apache.maven.scm.provider.cvslib.cvsjava.command.checkout.CvsJava
> > >>>Ch ec kOutCommand.executeCvsCommand(CvsJavaCheckOutCommand.java:50)
at
> > >>> org.apache.maven.scm.provider.cvslib.command.checkout.AbstractCvsChec
> > >>>kO ut Command.executeCheckOutCommand(AbstractCvsCheckOutCommand.java
> > >>>
> > >>>                       :83) at
> > >>>
> > >>> org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.execute
> > >>>Co mm and(AbstractCheckOutCommand.java:49) at
> > >>> org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.
> > >>>ja va
> > >>>
> > >>> :58) at
> > >>>
> > >>> org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCo
> > >>>mm an d(AbstractCvsScmProvider.java:521) at
> > >>> org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.checkout(
> > >>>Ab st ractCvsScmProvider.java:595) at
> > >>> org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractSc
> > >>>mP ro vider.java:444) at
> > >>> org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractSc
> > >>>mP ro vider.java:399) at
> > >>> org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractSc
> > >>>mP ro vider.java:382) at
> > >>> org.apache.maven.continuum.scm.DefaultContinuumScm.checkOut(DefaultCo
> > >>>nt in uumScm.java:136) at
> > >>> org.apache.maven.continuum.core.action.CheckoutProjectContinuumAction
> > >>>.e xe cute(CheckoutProjectContinuumAction.java:91) at
> > >>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.per
> > >>>fo rm Action(DefaultBuildController.java:417) at
> > >>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.upd
> > >>>at eW orkingDirectory(DefaultBuildController.java:400) at
> > >>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.bui
> > >>>ld (D efaultBuildController.java:112) at
> > >>> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.e
> > >>>xe cu teTask(BuildProjectTaskExecutor.java:50) at
> > >>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exe
> > >>>cu to rRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at
> > >>> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdap
> > >>>te r. call(Executors.java:442) at
> > >>> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureT
> > >>>as k. java:176) at
> > >>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
> > >>>Wo rk er(ThreadPoolExecutor.java:987) at
> > >>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
> > >>>ke r. run(ThreadPoolExecutor.java:528) at
> > >>> java.lang.Thread.run(Thread.java:595) 2007-10-10 08:36:05,043
> > >>> [pool-1-thread-1] WARN
> > >>> ContinuumScm:default           - Error while checking out the code
> > >>> for project: 'TIF Utils', id: '                                   1'
> > >>> to
> > >>> '/var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory/1'.
> > >>> 2007-10-10 08:36:05,043 [pool-1-thread-1] WARN
> > >>> ContinuumScm:default           - Command output:
> > >>> 2007-10-10 08:36:05,043 [pool-1-thread-1] WARN
> > >>> ContinuumScm:default           - Provider message: The cvs command
> > >>> failed. 2007-10-10 08:36:05,080 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Merging SCM results
> > >>> 2007-10-10 08:36:05,192 [pool-1-thread-1] INFO
> > >>> BuildController:default        - Error updating from SCM, not
> > >>> building
> > >>>
> > >>> Dne středa 26. září 2007 Emmanuel Venisse napsal(a):
> > >>>> Do you have more informations about the SCM error in your build
> > >>>> result?
> > >>>>
> > >>>> Emmanuel
> > >>>>
> > >>>> Antonín Faltýnek a écrit :
> > >>>>> Dne středa 26. září 2007 Emmanuel Venisse napsal(a):
> > >>>>>> For cvs (and continnum and maven) a user home is required
because
> > >>>>>> cvs store authentication in ${user.home}/.cvspass maven
required
> > >>>>>> it too to store the local repository and settings.xml
> > >>>>>>
> > >>>>>> Emmanuel
> > >>>>>>
> > >>>>>> Antonín Faltýnek a écrit :
> > >>>>>>> Hi all,
> > >>>>>>>
> > >>>>>>> I have problem with Continuum 1.1 beta2, which I'm
running on
> > >>>>>>> Linux box under Tomcat 5.5. Continuum is not able to
perform CVS
> > >>>>>>> update command, when I use command from log file and
run it as
> > >>>>>>> any other user it works fine for me.
> > >>>>>>>
> > >>>>>>> Tomcat is running under user tomcat, which has no home
directory
> > >>>>>>> (/dev/null).
> > >>>>>>>
> > >>>>>>> Has anybody met (and happily solved :)) this issue?
> > >>>>>>>
> > >>>>>>> Thanks
> > >>>>>>>
> > >>>>>>> Tonda
> > >>>>>
> > >>>>> So I've created user home for tomcat, I haven't mentioned that
for
> > >>>>> connection I'm using ssh with rsa key, from command line it
works
> > >>>>> fine, tomcat is really running under tomcat user, but continuum
> > >>>>> still fails.
> > >>>>>
> > >>>>> (continuum is updating, because co was performed by hand)
> > >>>>>
> > >>>>> -------------------- log snipped --------------------
> > >>>>>
> > >>>>> 38787 [http-8080-Processor25] DEBUG
> > >>>>> org.apache.catalina.core.ApplicationDispatcher  -  Path Based
> > >>>>> Include 38727 [pool-1-thread-1] INFO
> > >>>>> org.apache.maven.continuum.scm.ContinuumScm:default  - Updating
> > >>>>> project: id: '1', name 'TIF Utils'.
> > >>>>> 38980 [pool-1-thread-1] INFO
> > >>>>> org.apache.maven.scm.manager.ScmManager:default  -
> > >>>>> Executing: /bin/bash -c "cd /var/lib/tomcat-5.5/webapps/continuum
> > >>>>> /WEB-INF/working-directory/1 && cvs -z3 -f -q update
-d"
> > >>>>> 38980 [pool-1-thread-1] INFO
> > >>>>> org.apache.maven.scm.manager.ScmManager:default  - Working
> > >>>>> directory: /var/lib/tomcat-5.5/webapps/continuum/WEB-INF/
> > >>>>> working-directory/1
> > >>>>> 39155 [http-8080-Processor25] DEBUG
> > >>>>> org.apache.catalina.core.ApplicationDispatcher  -
> > >>>>> servletPath=/WEB-INF/jsp/components/companyLogo.jsp, pathInf
> > >>>>> o=null, queryString=null, name=null
> > >>>>> 39155 [http-8080-Processor25] DEBUG
> > >>>>> org.apache.catalina.core.ApplicationDispatcher  -  Path Based
> > >>>>> Include 40079 [pool-1-thread-1] WARN
> > >>>>> org.apache.maven.continuum.scm.ContinuumScm:default  - Error
while
> > >>>>> updating the code for project: 'TIF Utils', id: '
> > >>>>> 1' to
> > >>>>> '/var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory/1'
> > >>>>>. 40080 [pool-1-thread-1] WARN
> > >>>>> org.apache.maven.continuum.scm.ContinuumScm:default  - Command
> > >>>>> output: 40080 [pool-1-thread-1] WARN
> > >>>>> org.apache.maven.continuum.scm.ContinuumScm:default  - Provider
> > >>>>> message: The cvs command failed.
> > >>>>> 40123 [pool-1-thread-1] INFO
> > >>>>> org.apache.maven.continuum.buildcontroller.BuildController:default

> > >>>>> - Merging SCM results
> > >>>>> 40622 [pool-1-thread-1] INFO
> > >>>>> org.apache.maven.continuum.buildcontroller.BuildController:default

> > >>>>> - Error updating from SCM, not building


Mime
View raw message