Installation FAQ

Common errors reported across all releases and certain trunk revisions.

A note on BDB repositories and permission

If your Subversion repository is in the Berkely DB file format you will need write access for the webserver user on the log dir in the repository.

This is not needed when using FSFS, which is the default format with many advantages over BDB and is generally recommended to convert to this format.

Assertion failed: is_canonical

Assertion failed: (is_canonical (base, blen)), function svn_path_join, file subversion/libsvn_subr/path.c, line 114.

Will usually mean that the repos_path in repository.yml ends with a slash, like this:

repos_path: /path/to/thing/

But it needs to be:

repos_path: /path/to/thing

(this is fixed in Collaboa 0.5.5 and above)

undefined method `view_changesets?' for nil:NilClas

Run rake migrate and make sure there’s a user named ‘Public’ in the users table.

All path components have an implicit default of []

(Collaboa 0.5) An error message that looks like this

[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:233:in `default='
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] :
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] All path components have an implicit default of []
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196]  (
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] ActionController::RoutingError
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] )
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] \tfrom /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:351:in `configure_components'
[Mon Aug 22 21:04:40 2005] [error] [client 82.93.9.196] \tfrom /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:350:in `each'
.....

Is a Collaboa 0.5 issue and is due to some internals changes in newer versions of the Routes. The fix is look in config/routes.rb and find that line which looks like this:

  map.connect 'repository/file/*path', 
              :controller => 'repository', 
              :action => 'view_file',
              :path => nil

and change it to:

  map.connect 'repository/file/*path', 
              :controller => 'repository', 
              :action => 'view_file'

Client Not Found

This is a really strange error that I found when I tried to run ./script/repository_syncer

$ ./script/repository_syncer
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__': no such file to load -- client (MissingSourceFile)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:214:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:39:in `require_or_load'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:22:in `depend_on'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:178:in `require_dependency'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:194:in `const_missing'
        from /usr/local/lib/site_ruby/1.8/svn/util.rb:60:in `fs_wrapper'
        from /usr/local/lib/site_ruby/1.8/svn/repos.rb:85:in `fs'
        from .//lib/actionsubversion/lib/action_subversion/repository_node.rb:9:in `initialize'
        from .//lib/actionsubversion/lib/action_subversion/base.rb:21:in `repos'
        from .//lib/actionsubversion/lib/action_subversion/base.rb:26:in `fs'
        from .//lib/actionsubversion/lib/action_subversion/base.rb:44:in `get_youngest_rev'
        from ./script/repository_syncer:68

This is quite a hack, but it totally works.

I found that I had a client.rb file in from /usr/local/lib/site_ruby/1.8/svn/ (Ubuntu dapper place to put it, it seems).

So find your client.rb file wherever it may be. If you can’t find it, run this...

   find * | grep client.rb

Then, go into your RAILS_APP/config/environment.rb file and add this to the top of the file

   require 'full/path/to/your/client.rb'

And viola, totally works now. I have no idea why that was happening, but it was.

 
collaboa/install/faq.txt · Last modified: 2006/03/26 21:24 by hcatlin
 
Recent changes RSS feed