Project

General

Profile

Unable to browser remote SVN

Added by Arne De Herdt almost 14 years ago

Hello,

after some struggling I managed to get redmine up and running on my fedora system at work, and we can work fine with the tickets etc.
We wish to include however the repository running on a different server.

Our Fedora machine is running on the IP 192.168.0.36 and the SVN is running on the IP 192.168.0.254
So i've tried to configure the repository settings for it in one of our projects:

SCM : Subversion
URL : https://192.168.0.254/svn/branches%209.4
Login : <myusername>
Password <mypassword>

clicked the save button, but when I visit the repository through the link in the project, I get the following error message at the top :

The entry or revision was not found in the repository.

So I decided to take a look at the error log generated by apache and found the following:

[CODE]
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/bin/passenger-spawn-server:61
...
No close tag for /lists/list
Line:
Position:
Last 80 unconsumed characters:
Output was:

<lists>
<list
path="svn://192.168.0.254/svn/CurrentRelease/C++%202007/Watch">
[/CODE]

There's more in the logfile, but I hope this is sufficient.
I tried to run the SVN command as root from the server to access the SVN and that worked fine. I got the entire XML representing the SVN repository, but it seems redmine isn't succeeding in this.

Anyone who can explain what is going wrong? I'm not an expert in Linux...
If needed i can post more logs if that helps.
Really like redmine so far, so i'd like to solve this as well.


Replies (35)

RE: Unable to browser remote SVN - Added by Felix Schäfer almost 14 years ago

Delete the .subversion directory, log in with su - apache (the - is important because it tells su to really become that user rather than just pretending to be him) and try again. Maybe you should just create a dedicated redmine user, give all necessary read permissions on the redmine stuff + write permissions on the 4 needed folders, do the accept the certificate trick and tell apache to run redmine as this user.

RE: Unable to browser remote SVN - Added by Arne De Herdt almost 14 years ago

you mean the .subversion directory inside the redmine directory?

RE: Unable to browser remote SVN - Added by Felix Schäfer almost 14 years ago

No, the one in the apache home.

RE: Unable to browser remote SVN - Added by Arne De Herdt almost 14 years ago

no such folder there.

But I'll take note with su - stuff, because I think I forgot that.

RE: Unable to browser remote SVN - Added by Felix Schäfer almost 14 years ago

Well, subversion stores stuff like accepted certificates in ~/.subversion, so if it's not there, you haven't permanently accepted anything ;-)

RE: Unable to browser remote SVN - Added by Arne De Herdt almost 14 years ago

Perhaps it's best to make a dedicated redmine user then...?

- make a homedirectory for the redmine user
- configure apache to run passenger as redmine
- change owner rights of the redmine folder to redmine
- run svn as redmine user to get the certificate
- restart apache.

anything missing, or should that do the trick ?

RE: Unable to browser remote SVN - Added by Felix Schäfer almost 14 years ago

Arne De Herdt wrote:

- make a homedirectory for the redmine user

The home directory should be created along with the user. Just make sure to give the user "no" password (can't say for sure what it would look like on fedora) so that noone can use the user as an intrusion vector.

- configure apache to run passenger as redmine
- change owner rights of the redmine folder to redmine

Well, normally I'd say make a group for redmine too and recursively set the redmine directory to 750/640 and root:redmine, give the redmine group write permission on the 4 needed directories, but it seems this is more or less for personal use, so I'm not sure how "secure" you'd like to have it. Recursively setting the owner of the redmine directory to redmine will work too.

- run svn as redmine user to get the certificate
- restart apache.

anything missing, or should that do the trick ?

That should do it :-)

RE: Unable to browser remote SVN - Added by Arne De Herdt almost 14 years ago

Woo, we're a step further now :)

in the log I have the following :

svn: OPTIONS of 'https://192.168.0.254/Branches%209.4' : 200 OK (https://192.168.0.254)

So at least it's connecting now without problems, but I still can't see my files in the repository.
Is this because the repository has a different name then the project, or because I'm pointing to the root of the branches with various sub projects?

RE: Unable to browser remote SVN - Added by Arne De Herdt almost 14 years ago

never mind it works \o/

had a small typo in the url of the SVN :)

Felix, a big thank you for the patience and the help ^^

(26-35/35)