Project

General

Profile

reposman Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass

Added by Loïs PUIG about 14 years ago

Hi,

Seems reposman doesn't want to work anymore..
SVN Server is fine as i can access to http://my.redmine.host/svn/

But when i try :
ruby /var/www/redmine/extra/svn/reposman.rb --redmine my.redmine.host --svn-dir /var/www/svn --owner apache --url file:///var/www/svn/ --key XXXXXXXXXXX

i get the following error :
Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass

Couldn't find anything about that on the net and i searched for hours. Don't understand 'cause it used to work perfectly.

Please Help...

System CentOS 5.4
Redmine 0.9.6


Replies (4)

RE: reposman Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass - Added by Loïs PUIG about 14 years ago

For information i also tried with Redmine from stable and trunk branches, same issue.

I also checked that WS option is checked and the API key is the right one.

If i go to http://my.redmine.host/sys i get the message "Access denied. Repository management WS is disabled or key is invalid."
I'm not sure but i guess it is normal.

RE: reposman Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass - Added by Loïs PUIG about 14 years ago

All right, i managed to find a solution.. dumb i am it was a dns problem as the reposman.rb couldn't find anything at the redmine url.

So far now it does work but i have to use the --force reposman.rb option, otherwise nothing's happening.

So when i use the following command :

ruby /var/www/redmine/extra/svn/reposman.rb --redmine my.redmine.host --svn-dir /var/www/svn --owner apache --url file:///var/www/svn/ --key XXXXXXXXXXX --force

I got the message :

repository /var/www/svn/test not registered in Redmine: Failed.  Response code = 409.  Response message = Conflict.
repository /var/www/svn/test created

Any idea please ?

RE: reposman Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass - Added by Loïs PUIG about 14 years ago

Ok,

again i found the solution..

i added the following statement above all the other require statements in reposman.rb and it finally works.

require 'rdoc/ri/ri_paths'

RE: reposman Unable to connect to http://my.redmine.host/sys/: undefined method `closed?' for nil:NilClass - Added by Felix Schäfer about 14 years ago

Loïs PUIG wrote:

So far now it does work but i have to use the --force reposman.rb option, otherwise nothing's happening.

I don't think you want to have --force, as this option might overwrite (and thus delete) existing repositories and especially overwrite the "repository" setting of all projects with the one it generates.

reposman.rb per default only creates a repository for each project that doesn't have a repository setting yet so as not to overwrite existing settings.

    (1-4/4)