Project

General

Profile

SVN Browser not working after upgrade to 1.3.1

Added by Felix Göcking over 12 years ago

Hi, i've recently upgraded Redmine to version 1.3.1 stable. It seems as if everything works fine, except the svn repository browser. I can access the svn using the url http://mydomain/svn, but in redmine i get the message "entry and or revision doesn't exist in the repository". I checked the error log and this is what it says:

svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///var/svn-repos/sms-gateway'
svn: Can't open file '/var/svn-repos/sms-gateway/format': Permission denied
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///var/svn-repos/sms-gateway'
svn: Can't open file '/var/svn-repos/sms-gateway/format': Permission denied
Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:28:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:228:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb:17:in `new'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb:17:in `parse'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/xml_mini.rb:12:in `__send__'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/xml_mini.rb:12:in `parse'
/usr/share/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:106:in `entries'
/usr/share/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:233:in `call'
/usr/share/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:233:in `shellout'
/usr/share/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:231:in `popen'
/usr/share/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:231:in `shellout'
/usr/share/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:210:in `shellout'
/usr/share/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:100:in `entries'
/usr/share/redmine/app/models/repository.rb:120:in `entries'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `send'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
/usr/share/redmine/app/controllers/repositories_controller.rb:94:in `show'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1333:in `send'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/flash.rb:151:in `perform_action'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process_without_filters'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:438:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/usr/share/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
/var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
/var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
/var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
/var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/usr/share/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
...
No close tag for /lists/list
Line: 
Position: 
Last 80 unconsumed characters:
Output was:
 <?xml version="1.0"?>
<lists>
<list
   path="file:///var/svn-repos/sms-gateway">

I found some forum entries describing the same problem, but their solutions didn't work for me. Is there anything I maybe forgot after the upgrade?


Replies (3)

RE: SVN Browser not working after upgrade to 1.3.1 - Added by Jean-Philippe Lang over 12 years ago

The user Redmine is running with doesn't have the permission to read your repository.

RE: SVN Browser not working after upgrade to 1.3.1 - Added by Felix Göcking over 12 years ago

But how can that be? I'm running redmine using apache and the apache user (www-data) has access to the repository. The previous version also was working with apache and with it the repository browser worked. I only updated the redmine files and configuration. I don't know how I can chnage that...

RE: SVN Browser not working after upgrade to 1.3.1 - Added by Felix Göcking over 12 years ago

OK, i did a very silly mistake. I forgot to change the owner of the environment.rb back to the apache user.

So thanks for the help

    (1-3/3)