Project

General

Profile

SVN: The entry or revision was not found in the repository.

Added by Bit Master over 13 years ago

When I try to open the SVN repository in Redmine I get the following error: "The entry or revision was not found in the repository."

In "lib/redmine/scm/adapters/subversion_adapter.rb", I changed SVN_BIN = "svn" into SVN_BIN = "svn --trust-server-cert --tolerant-ssl --non-interactive --config-dir /tmp" because I use the https protocol for subversion and only have a self-signed certificate.

I'm running ArchLinux with extra/ruby 1.9.1_p378-2 from the Arch repository and using webrick webserver through an apache reverse proxy.

Error Log:
No close tag for /lists/list
Line: 4
Position: 77
Last 80 unconsumed characters:
Output was:

<lists>
<list
path="https://svn.server.tld/cms">
Rendering template within layouts/base
Completed in 502ms (View: 29, DB: 8) | 500 Internal Server Error [http://redmine.server.tld/projects/cms/repository]

Full error log: http://pastebin.com/pmXiGy9a

Is there anything I may have overlooked? Any suggestion is very welcome :)!


Replies (12)

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Have you already had a look at the FAQ? You could have a look at the log/scm_error.log to see why svn borks, and you should also use ruby 1.8.7, not 1.9.x, as the latter is not supported with redmine. Have a look at RedmineInstall for the exact required versions, if you need ruby 1.9.x, have a look at rvm (ruby version manager), it allows to install many concurrent ruby versions.

RE: SVN: The entry or revision was not found in the repository. - Added by Bit Master over 13 years ago

Hmm I will have a look at that.
I replaced the Full error log with a new one because i forgot to remove someone's IP: http://pastebin.com/shfY3JMP

There is no file named scm_error.log in the log directory, i'm afraid.

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Well, the error doesn't say much else than that svn doesn't deliver the XML redmine is looking for, and that is mostly due to svn not being able to non-interactively connect to the remote host. The best thing you could do to test the connection would be to log in as the user running redmine, issue the svn commands redmine uses (something along the lines of svn info --xml https://yourhost/therepo --no-auth-cache --non-interactive) and see why svn stumbles there.

RE: SVN: The entry or revision was not found in the repository. - Added by Bit Master over 13 years ago

Ok i found the issue. SVN wouldn't accept my certificate, so i had to do a checkout first before i could use it in redmine. (As stated in: http://www.redmine.org/wiki/redmine/FAQ#I-cant-browse-my-svn-repository-through-redmine)

Also, i'm installing ruby-1.8 from the AUR repository as we speak!
Thanks for the (very quick!) help :)

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

I expected the self-signed certificate to be the problem. Glad you got everything running :-)

RE: SVN: The entry or revision was not found in the repository. - Added by Bit Master over 13 years ago

Hmm, I'm sorry to bug you again, but it's still not working :(
The server is running ruby 1.8.7 now, installed using the redmine manual and anything ruby asked for.

When i run `svn list --xml https://svn.server.tld/cms --no-auth-cache --trust-server-cert --non-interactive --username redmine --password <pass>` from the command line, I get a xml formatted list with the folders in the repository. No questions asked.

I wrongly assumed that, if the above command worked (because it didn't previously), the error in Redmine was gone too. After installing ruby 1.8, I had another go, but it still failed :(.

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Make sure you have restarted webrick, and also make sure the command works as the user running webrick.

RE: SVN: The entry or revision was not found in the repository. - Added by Bit Master over 13 years ago

Yes, everything is running as root for now, so that shouldn't be the problem. When everything is working correctly i'll run it as non-admin. I had to restart the webrick server because i also removed ruby 1.9.

The log files indicate i'm running ruby 1.8 and that SVN is still failing on the incomplete XML.

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Wow, well then… To be honest, I don't have any idea left :-(

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Mmh, apart from maybe an outdated svn version, but seeing you were running ruby 1.9, I don't suppose that would be the case. Maybe a version too new? Do you have any strange or extra characters in the xml output that might make the whole stuff bork?

RE: SVN: The entry or revision was not found in the repository. - Added by Bit Master over 13 years ago

Aawwhh damn, so sorry. I made a big mistake. I edited the ./lib/redmine/scm/adapters/subversion_adapter.rb file, adding the additional svn parameters to SVN_BIN... but this is wrong because ruby has to append the command directly after the svn binary. I moved the parameters to credentials_string and everything works now, for real! :D

Thanks again!

RE: SVN: The entry or revision was not found in the repository. - Added by Felix Schäfer over 13 years ago

Don't sweat it, errors happen :-) Happy that it works for you though!

    (1-12/12)