Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12934

Subversion Tag plugin tries to copy from invalid source path

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Last week the subversion tagging plugin stopped working, and I have so far not been able to pinpoint the source of this error.
      This bug is a showstopper for us since the tags are used in other jobs.

      The job module have Subversion SCM set up with the following repo:
      https://svn.myserver.com/svn/repo/folder1.sub/trunk
      The svn-tag plugin is configured with:
      https://svn.myserver.com/svn/repo/folder1.sub/tags/${env['BUILD_VERSION']}

      The error message from the plugin shows that apparently it tries to copy from an invalid source path.
      (note: I have obfuscated url names, but otherwise the number of parts are the same)

      Remote Module Location: https://svn.myserver.com/svn/repo/folder1.sub/trunk@2254.
      Tag Base URL: https://svn.myserver.com/svn/repo/folder1.sub/tags/0.0.3.2254.
      There was no old tag at https://svn.myserver.com/svn/repo/folder1.sub/tags/0.0.3.2254.
      Subversion copy failed. svn: File not found: revision 2254, path '/folder1.sub/trunk/folder1.sub/trunk'
      svn: '/svn/repo/!svn/bc/2254/folder1.sub/trunk' path not found: 404 Not Found (https://svn.myserver.com)
      Build step 'Perform Subversion tagging on successful build' marked build as failure

        Attachments

          Activity

          Hide
          eladiomartin98 Eladio Martin added a comment -

          Hello Folks... Any word on the fix to this...

          I have 2 jobs, that point to two different repos. On one it works and the other it fails with the above error.

          I am on Jenkins ver 1.447.2 and using the latest version of the svn tag plugin.

          It fails on this line in the SvnTagPlugin.java

          SVNCommitInfo commitInfo =
          copyClient.doCopy(new SVNCopySource[]

          { new SVNCopySource(rev, rev, SVNURL.parseURIEncoded(mlUrl)) }

          ,
          parsedTagBaseURL, false,
          true, false, evalComment, new SVNProperties());

          The error is:

          Subversion copy failed. svn: File not found: revision 8286, path '/foo/trunk/appname/comp1/foo/trunk/appname/comp1'
          svn: '/svnrepos/reponame/!svn/bc/8286/foo/trunk/appname/comp1/foo' path not found: 404 Not Found (https://svn url)

          Any thoughts, this is a huge problem for us...

          Eladio

          Show
          eladiomartin98 Eladio Martin added a comment - Hello Folks... Any word on the fix to this... I have 2 jobs, that point to two different repos. On one it works and the other it fails with the above error. I am on Jenkins ver 1.447.2 and using the latest version of the svn tag plugin. It fails on this line in the SvnTagPlugin.java SVNCommitInfo commitInfo = copyClient.doCopy(new SVNCopySource[] { new SVNCopySource(rev, rev, SVNURL.parseURIEncoded(mlUrl)) } , parsedTagBaseURL, false, true, false, evalComment, new SVNProperties()); The error is: Subversion copy failed. svn: File not found: revision 8286, path '/foo/trunk/appname/comp1/foo/trunk/appname/comp1' svn: '/svnrepos/reponame/!svn/bc/8286/foo/trunk/appname/comp1/foo' path not found: 404 Not Found ( https://svn url) Any thoughts, this is a huge problem for us... Eladio
          Hide
          harry_dudie Harry Cool added a comment -

          Hi Friends,

          Is anyone able to fix this issue? Even I'm getting the same error. I am not able to perform SVN tagging after the successful build. Here is what I am getting in the output.

          BUILD SUCCESSFUL
          Remote Module Location: http://10.10.10.10/MY-SVN-REP/Project1/trunk/ENVS@203.
          Tag Base URL: http://10.10.10.10/MY-SVN-REP/Project2/tags/TEST_DEPLOYMENT.
          There was no old tag at http://10.10.10.10/MY-SVN-REP/Project2/tags/TEST_DEPLOYMENT.
          Subversion copy failed. svn: File not found: revision 203, path '/Project1/trunk/ENVS/Project1/trunk/ENVS'
          svn: '/MY-SVN-REP/!svn/bc/203/Project1/trunk/ENVS' path not found: 404 Not Found (http://10.10.10.10)
          Build step 'Perform Subversion tagging on successful build' marked build as failure
          Finished: SUCCESS

          The error message from the plugin shows that apparently it tries to copy from an invalid source path (Invalid Remote module location)

          Can anyone share some light on this?

          Show
          harry_dudie Harry Cool added a comment - Hi Friends, Is anyone able to fix this issue? Even I'm getting the same error. I am not able to perform SVN tagging after the successful build. Here is what I am getting in the output. BUILD SUCCESSFUL Remote Module Location: http://10.10.10.10/MY-SVN-REP/Project1/trunk/ENVS@203 . Tag Base URL: http://10.10.10.10/MY-SVN-REP/Project2/tags/TEST_DEPLOYMENT . There was no old tag at http://10.10.10.10/MY-SVN-REP/Project2/tags/TEST_DEPLOYMENT . Subversion copy failed. svn: File not found: revision 203, path '/Project1/trunk/ENVS/Project1/trunk/ENVS' svn: '/MY-SVN-REP/!svn/bc/203/Project1/trunk/ENVS' path not found: 404 Not Found ( http://10.10.10.10 ) Build step 'Perform Subversion tagging on successful build' marked build as failure Finished: SUCCESS The error message from the plugin shows that apparently it tries to copy from an invalid source path (Invalid Remote module location) Can anyone share some light on this?
          Hide
          rudyj03 Rudy Jadeja added a comment -

          Hello,

          I am also having the same problem where tagging is trying to copy from an invalid path. I have the following error in the build output:

          Remote Module Location: https://svn.cmm.dev/cmm/trunk@129.
          Tag Base URL: https://<hostname>/<module>/tags/last-successful.
          There was no old tag at https://<hostname>/<module>/tags/last-successful.
          Subversion copy failed. svn: File not found: revision 129, path '/trunk/trunk'
          svn: '/<module>/!svn/bc/129/trunk' path not found: 404 Not Found (https://<hostname>)
          Build step 'Perform Subversion tagging on successful build' marked build as failure
          Finished: SUCCESS

          This may very well be a configuration issue but I am not sure why it is trying to access /trunk/trunk instead of just /trunk.

          Show
          rudyj03 Rudy Jadeja added a comment - Hello, I am also having the same problem where tagging is trying to copy from an invalid path. I have the following error in the build output: Remote Module Location: https://svn.cmm.dev/cmm/trunk@129 . Tag Base URL: https://<hostname>/<module>/tags/last-successful. There was no old tag at https://<hostname>/<module>/tags/last-successful. Subversion copy failed. svn: File not found: revision 129, path '/trunk/trunk' svn: '/<module>/!svn/bc/129/trunk' path not found: 404 Not Found (https://<hostname>) Build step 'Perform Subversion tagging on successful build' marked build as failure Finished: SUCCESS This may very well be a configuration issue but I am not sure why it is trying to access /trunk/trunk instead of just /trunk.
          Hide
          cook_gallaher Cook Gallaher added a comment -

          Hi guys,

          same issue with path duplicating, did anybody solve it?

          Regards,
          Cook

          Show
          cook_gallaher Cook Gallaher added a comment - Hi guys, same issue with path duplicating, did anybody solve it? Regards, Cook
          Hide
          cook_gallaher Cook Gallaher added a comment -

          Hello,

          try to update Subversion Plug-in.
          After update to 1.45 version it works nice for us.

          Regards,
          Cook

          Show
          cook_gallaher Cook Gallaher added a comment - Hello, try to update Subversion Plug-in. After update to 1.45 version it works nice for us. Regards, Cook

            People

            • Assignee:
              Unassigned
              Reporter:
              plillevold Peter Lillevold
            • Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: