jenkinsci / jenkinsci/subversion-plugin

[JENKINS-17431] 500 Internal Server Error on attempt to run a build

Open
#1,014 23 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

jenkins throws :

ERROR: Failed to update https://XXXXXXX

org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT of '/svn/playspan/!svn/vcc/default': 500 Internal Server Error

on attempt to run build.

on svn server side in the error log:

" Could not access revision times. 500, #0"

I think what happened was:

when build is requested, svnkit is trying to run svn log on the svn server by runnint it between two time stamps - previous build and current time. sometimes either dates were not recorded on svn server or the current dated obtained on the jenkins server is running ahead of svn server and, I think, this causes the problem.

my suggestion:

do not use timestamp at all

instead run log (or svn diff) between two revision numbers, which are always present on svn server.

2. I think running svn log on remote svn server is not very efficient.

I think, would be better:

1. when build is requested, capture current revision on the working space.

2. run svn update

3. capture the revision

4. run log or diff locally between two revisions.

this way, jenkins will communicate to svn server just once instead of multiple times.

---
Originally reported by smasleni, imported from: 500 Internal Server Error on attempt to run a build


  • assignee: recena
  • status: Open
  • priority: Critical
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 11
  • watchers: 15
  • imported: 20251212-090250

Raw content of original issue

jenkins throws :
ERROR: Failed to update https://XXXXXXX
org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT of '/svn/playspan/!svn/vcc/default': 500 Internal Server Error

on attempt to run build.
on svn server side in the error log:
" Could not access revision times. 500, #0"

I think what happened was:
when build is requested, svnkit is trying to run svn log on the svn server by runnint it between two time stamps - previous build and current time. sometimes either dates were not recorded on svn server or the current dated obtained on the jenkins server is running ahead of svn server and, I think, this causes the problem.
my suggestion:
do not use timestamp at all
instead run log (or svn diff) between two revision numbers, which are always present on svn server.
2. I think running svn log on remote svn server is not very efficient.
I think, would be better:
1. when build is requested, capture current revision on the working space.
2. run svn update
3. capture the revision
4. run log or diff locally between two revisions.

this way, jenkins will communicate to svn server just once instead of multiple times.

  • environment: linux redhat 2.6.18-238.el5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.