Project

General

Profile

Actions

Defect #3929

closed

Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>

Added by Zachary Crockett over 14 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2009-09-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm running redmine on the same server as an SVN repository. The repo is accessed with the svn protocol using svnserve listening on a non-standard port. If the redmine repo settings use a file:/// URL then all goes well. (That's my workaround for now, which would not help users for whom redmine and the repo are on separate servers.) If I put the svn:// URL in the repo settings with the correct username and password, I get the following error on any attempt to view the repo: "The entry or revision was not found in the repository." The error in the redmine logs is the subject of this defect: "Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>" AFAIK, as shown below, there are, in fact, closing </list> and </lists> tags.

Production log pasted below. If I run redmine in development mode, scm.stderr.log is not created (I saw this referred to in some forum posts), only the development.log. The start of the debug log (before the exact same stack trace) is pasted below. If I copy and paste the exact command shelled out to svn according to the dev logs, either on the server or on my laptop, the output is exactly as it should be. That XML output is also pasted below; it has a line break in the list tag, which shouldn't matter, but makes me suspicious. On the other hand, the dev logs seem to contain 2 successful svn info commands before the failing svn list command. When I copy and paste the svn info command in my terminal, the output also has elements containing line breaks.

My searches in the forums have yielded these items which I've ruled out.
  • I'm not using https and there's no certificate to accept
  • Redmine knows that the svn binary is at /usr/bin/svn

Component Versions

  • MySQL 5.1.37
  • Ruby 1.8.7 (x86_64-linux)
  • Rails 2.1.2
  • Redmine 0.8.5.stable.2902
  • SVN 1.6.5 (r38866)

Production Log with Stack Trace

Processing RepositoriesController#show (for 206.55.180.50 at 2009-09-26 16:15:23) [GET]
  Session ID: c0d0eed67ab87f2098815bd0eb7b0547
  Parameters: {"action"=>"show", "id"=>"energy-star", "controller"=>"repositories"}
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:227:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `new'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `entries'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:177:in `call'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:177:in `shellout'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:175:in `popen'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:175:in `shellout'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:165:in `shellout'
/srv/http/nginx/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:82:in `entries'
/srv/http/nginx/redmine/app/models/repository.rb:63:in `entries'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations/association_proxy.rb:173:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations/association_proxy.rb:173:in `method_missing'
/srv/http/nginx/redmine/app/controllers/repositories_controller.rb:71:in `show'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/rails.rb:87:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/rack/adapter/rails.rb:75:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/connection.rb:74:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/connection.rb:57:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/server.rb:156:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/controllers/controller.rb:80:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:174:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:174:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/lib/thin/runner.rb:140:in `run!'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.4/bin/thin:6
/usr/bin/thin:19:in `load'
/usr/bin/thin:19
...
No close tag for /lists/list
Line: 
Position: 
Last 80 unconsumed characters:
Output was:
 <?xml version="1.0"?>
<lists>
<list
   path="svn://mydomain.com:29999/myrepo">
Rendering template within layouts/base
Completed in 0.27201 (3 reqs/sec) | Rendering: 0.02800 (10%) | DB: 0.00400 (1%) | 500 Internal Server Error [http://mydomain.com/repositories/show/myproject]

Partial Development Log with Shellout

Processing RepositoriesController#show (for 206.55.180.50 at 2009-09-26 15:25:03) [GET]
  Session ID: c0d0eed67ab87f2098815bd0eb7b0547
  Parameters: {"action"=>"show", "id"=>"energy-star", "controller"=>"repositories"}
  Setting Columns (0.000000)   SHOW FIELDS FROM `settings`
  SQL (0.000000)   SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` 
  Setting Load (0.000000)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'autologin') LIMIT 1
  Token Columns (0.000000)   SHOW FIELDS FROM `tokens`
  Token Load (0.000000)   SELECT * FROM `tokens` WHERE (`tokens`.`value` = '96d5e19d619109221117db4d1e141583127d5bb3' AND `tokens`.`action` = 'autologin') 
  User Columns (0.004000)   SHOW FIELDS FROM `users`
  User Load (0.000000)   SELECT * FROM `users` WHERE (`users`.`id` = 1) 
  Project Columns (0.000000)   SHOW FIELDS FROM `projects`
  Project Load (0.000000)   SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'myproject') LIMIT 1
  Repository Load (0.000000)   SELECT * FROM `repositories` WHERE (`repositories`.project_id = 1) LIMIT 1
  Repository Columns (0.000000)   SHOW FIELDS FROM `repositories`
  EnabledModule Load (0.000000)   SELECT * FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 1) 
  EnabledModule Columns (0.004000)   SHOW FIELDS FROM `enabled_modules`
  Setting Load (0.004000)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'autofetch_changesets') LIMIT 1
  Repository::Subversion Columns (0.000000)   SHOW FIELDS FROM `repositories`
Shelling out: svn info --xml 'svn://mydomain.com:29999/myrepo/' --username 'myuser' --password 'mypassword'
  SQL (0.000000)   BEGIN
  SQL (0.000000)   COMMIT
Shelling out: svn info --xml 'svn://mydomain.com:29999/myrepo/' --username 'myuser' --password 'mypassword'
  SQL (0.000000)   BEGIN
  SQL (0.000000)   COMMIT
Shelling out: svn list --xml 'svn://mydomain.com:29999/myrepo/'@HEAD --username 'myuser' --password 'mypassword'
Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>

XML Output by SVN list command

<?xml version="1.0"?>
<lists>
<list
   path="svn://mydomain.com:29999/myrepo">
<entry
   kind="dir">
<name>branches</name>
<commit
   revision="3">
<author>userxxx</author>
<date>2009-09-13T22:13:46.989534Z</date>
</commit>
</entry>
<entry
   kind="dir">
<name>tags</name>
<commit
   revision="2">
<author>userxxx</author>
<date>2009-09-13T22:13:11.199495Z</date>
</commit>
</entry>
<entry
   kind="dir">
<name>trunk</name>
<commit
   revision="11">
<author>userxxx</author>
<date>2009-09-25T19:26:27.486546Z</date>
</commit>
</entry>
</list>
</lists>

Related issues

Related to Redmine - Defect #8823: Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>Closed2009-09-26

Actions
Actions

Also available in: Atom PDF