SVNKit Authentication reports "svn: Permission denied" if the User running the Agent does not have permission over the /tmp folder

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Won't Do
    • None
    • Component/s: Stages
    • None
    • 0
    • 1

      The SVNKit log messages do not report any problem and the checkout seem to finish without problems. However the whole process fails.

      Adding complete read/write to the Agent /tmp permissions, fixes the problem.

        | jvm 1    | 2011/11/10 17:18:33 | 2011-11-10 17:18:33,247 INFO [1-BAM::colblapp1d.datacenter.automotive.com::Agent:pool-3-thread-1] [SvnRepository] Working directory '/bamboo/agents/webproj/xml-data/build-dir/PROJ-PLAN-JOB1' is empty. Checking out SVN URL 'http://svn.domain.com/webproj/proj123/trunk'
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 2011-11-10 17:18:33,697 WARN [1-BAM::colblapp1d.datacenter.automotive.com::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for PHPCI-FAL-JOB1-40
      INFO   | jvm 1    | 2011/11/10 17:18:33 | com.atlassian.bamboo.repository.RepositoryException: Failed to checkout source code to revision '16570' for http://svn.automotive.com/webphp/flow.autoloan.v1/trunk
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:926)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:948)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithException(SvnRepository.java:510)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithCleanup(SvnRepository.java:448)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:393)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.doCall(CheckoutUpdateForBuild.java:136)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:41)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:187)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at java.lang.Thread.run(Thread.java:662)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | Caused by: org.tmatesoft.svn.core.SVNException: svn: Permission denied
      INFO   | jvm 1    | 2011/11/10 17:18:33 | svn: PROPFIND request failed on '/webproj/proj123/trunk'
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:126)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineProperties(DAVUtil.java:216)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineInfo(DAVUtil.java:174)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.checkPath(DAVRepository.java:221)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:904)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	at com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:922)
      INFO   | jvm 1    | 2011/11/10 17:18:33 | 	... 11 more
      

            Assignee:
            Unassigned
            Reporter:
            Renan Battaglin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: