Project

General

Profile

Actions

Defect #2868

closed

Cannot View Reposity Files or Diffs

Added by Rami Kassab over 15 years ago. Updated over 15 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

Even though we are successfully able to browse the repository, anytime we try to view a specific file or diff, we are presented with "The entry or revision was not found in the repository."

System Details:
  • svn, version 1.5.1 (r32289)
    • Running via dav_svn for Apache 2.2.8
    • Using HTTPS
  • mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
  • ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
  • Rails 2.2.2
  • Redmine revision 2538

Upon examination of the production log, we see the following:

Processing RepositoriesController#entry (for 166.129.110.83 at 2009-02-28 18:58:05) [GET]
  Parameters: {"rev"=>"606", "action"=>"entry", "id"=>"kassabjewelers", "controller"=>"repositories", "path"=>["branches", "inventory", "kassabjewelers", "jewelry", "admin.py"]}
Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:27:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:227:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `new'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `entries'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:181:in `call'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:181:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:179:in `popen'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:179:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:165:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:82:in `entries'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:93:in `entry'
/var/www/sites/code.typethink.com/redmine/app/models/repository.rb:59:in `entry'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:214:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:214:in `method_missing'
/var/www/sites/code.typethink.com/redmine/app/controllers/repositories_controller.rb:112:in `entry'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.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.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/request_handler.rb:53:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/request_handler.rb:38:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_request_handler.rb:165:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:321:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:282:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:280:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:279:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:179:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:263:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:263:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:87:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:222:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:217:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:217:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:126:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:251:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-spawn-server:46
...
No close tag for /lists/list
Line: 
Position: 
Last 80 unconsumed characters:
Output was:
 <?xml version="1.0"?>
<lists>
<list
   path="https://svn.typethink.com/kassabjewelers/branches/inventory/kassabjewelers/jewelry">
Rendering template within layouts/base
Completed in 2057ms (View: 98, DB: 23) | 500 Internal Server Error [https://code.typethink.com/projects/kassabjewelers/repository/revisions/606/entry/branches/inventory/kassabjewelers/jewelry/admin.py]

Actions #1

Updated by Jean-Philippe Lang over 15 years ago

Please, set the log level to :debug in environment.rb and report the log.

Actions #2

Updated by Rami Kassab over 15 years ago

Jean-Philippe Lang wrote:

Please, set the log level to :debug in environment.rb and report the log.

This is what I get after following your instructions and restarting the app (the rep login credentials have been masked):

Processing RepositoriesController#diff (for 166.129.219.78 at 2009-03-01 21:02:37) [GET]
  Parameters: {"rev"=>"609", "action"=>"diff", "id"=>"kassabjewelers", "controller"=>"repositories", "path"=>["branches", "inventory", "kassabjewelers", "media", "js", "jquery.js"]}
  SQL (0.3ms)   SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` 
  User Load (0.3ms)   SELECT * FROM `users` WHERE (`users`.`id` = 4) AND (users.status = 1) 
  Project Load (0.3ms)   SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'kassabjewelers') LIMIT 1
  Repository Load (0.3ms)   SELECT * FROM `repositories` WHERE (`repositories`.project_id = 3) LIMIT 1
  EnabledModule Load (0.3ms)   SELECT * FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 3) 
  UserPreference Load (0.4ms)   SELECT * FROM `user_preferences` WHERE (`user_preferences`.user_id = 4) LIMIT 1
Cached fragment hit: views/repositories/diff/7/b5c57275a791891eadf5180fee065d0e (0.1ms)
Shelling out: svn diff -r 608:609 'https://svn.typethink.com/kassabjewelers//branches/inventory/kassabjewelers/media/js/jquery.js'@609 --username '**********' --password '**********'
Rendering template within layouts/base
  Project Load (0.4ms)   SELECT `projects`.* FROM `projects` INNER JOIN members ON projects.id = members.project_id WHERE ((`members`.user_id = 4) AND ((projects.status=1))) 
  SQL (2.3ms)   SELECT count(*) AS count_all FROM `versions` WHERE (`versions`.project_id = 3) 
  Wiki Load (11.1ms)   SELECT * FROM `wikis` WHERE (`wikis`.project_id = 3) LIMIT 1
  SQL (0.3ms)   SELECT count(*) AS count_all FROM `boards` WHERE (`boards`.project_id = 3) 
Completed in 286ms (View: 68, DB: 16) | 500 Internal Server Error [https://code.typethink.com/projects/kassabjewelers/repository/revisions/609/diff/branches/inventory/kassabjewelers/media/js/jquery.js]

Actions #3

Updated by Rami Kassab over 15 years ago

Rami Kassab wrote:

Jean-Philippe Lang wrote:

Please, set the log level to :debug in environment.rb and report the log.

This is what I get after following your instructions and restarting the app (the rep login credentials have been masked):
[...]

That was for trying to view a diff. This is the output I get when just trying to view the file itself:

Processing RepositoriesController#entry (for 166.129.219.78 at 2009-03-01 21:07:18) [GET]
  Parameters: {"rev"=>"609", "action"=>"entry", "id"=>"kassabjewelers", "controller"=>"repositories", "path"=>["branches", "inventory", "kassabjewelers", "media", "js", "jquery.js"]}
  SQL (0.3ms)   SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` 
  User Load (0.3ms)   SELECT * FROM `users` WHERE (`users`.`id` = 4) AND (users.status = 1) 
  Project Load (0.3ms)   SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'kassabjewelers') LIMIT 1
  Repository Load (0.3ms)   SELECT * FROM `repositories` WHERE (`repositories`.project_id = 3) LIMIT 1
  EnabledModule Load (0.3ms)   SELECT * FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 3) 
Shelling out: svn list --xml 'https://svn.typethink.com/kassabjewelers//branches/inventory/kassabjewelers/media/js'@609 --username '**********' --password '**********'
Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:27:in `parse'
/usr/lib/ruby/1.8/rexml/document.rb:227:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `new'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:85:in `entries'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:181:in `call'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:181:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:179:in `popen'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:179:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:165:in `shellout'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:82:in `entries'
/var/www/sites/code.typethink.com/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:93:in `entry'
/var/www/sites/code.typethink.com/redmine/app/models/repository.rb:59:in `entry'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:214:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:214:in `method_missing'
/var/www/sites/code.typethink.com/redmine/app/controllers/repositories_controller.rb:112:in `entry'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.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.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/request_handler.rb:53:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/request_handler.rb:38:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_request_handler.rb:165:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:321:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:282:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:280:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:163:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/utils.rb:161:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:279:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/application_spawner.rb:179:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:263:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:263:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:135:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `fork'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:112:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/railz/framework_spawner.rb:87:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:222:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:217:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:217:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:126:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/spawn_manager.rb:251:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:317:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/lib/passenger/abstract_server.rb:168:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-spawn-server:46
...
No close tag for /lists/list
Line: 
Position: 
Last 80 unconsumed characters:
Output was:
 <?xml version="1.0"?>
<lists>
<list
   path="https://svn.typethink.com/kassabjewelers/branches/inventory/kassabjewelers/media/js">
Rendering template within layouts/base
  Project Load (0.4ms)   SELECT `projects`.* FROM `projects` INNER JOIN members ON projects.id = members.project_id WHERE ((`members`.user_id = 4) AND ((projects.status=1))) 
  SQL (13.7ms)   SELECT count(*) AS count_all FROM `versions` WHERE (`versions`.project_id = 3) 
  Wiki Load (0.3ms)   SELECT * FROM `wikis` WHERE (`wikis`.project_id = 3) LIMIT 1
  SQL (0.3ms)   SELECT count(*) AS count_all FROM `boards` WHERE (`boards`.project_id = 3) 
Completed in 288ms (View: 66, DB: 16) | 500 Internal Server Error [https://code.typethink.com/projects/kassabjewelers/repository/revisions/609/entry/branches/inventory/kassabjewelers/media/js/jquery.js]

Actions #4

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from New to Closed

The following means that the svn command gives an error:

No close tag for /lists/list
Line: 
Position: 
Last 80 unconsumed characters:
Output was:
 <?xml version="1.0"?>
<lists>
<list
   path="https://svn.typethink.com/kassabjewelers/branches/inventory/kassabjewelers/media/js">

There can be many reasons for that.
Try to run this command manually in the same environment than the application. You can also run the application in development mode and svn stderr should then be printed to log/scm.stderr.log.

Actions #5

Updated by Rami Kassab over 15 years ago

Jean-Philippe Lang wrote:

The following means that the svn command gives an error:

[...]

There can be many reasons for that.
Try to run this command manually in the same environment than the application. You can also run the application in development mode and svn stderr should then be printed to log/scm.stderr.log.

I'm not quite sure I know how to run the project in development mode? Could you perhaps provide some quick instructions? I looked through the config files but couldn't find anything. I'm assuming I need to manually run the project and it's development server through a command line command but I just don't know how to do this with Rails. I haven't written in Ruby nor built an app in Rails before. I mainly use Python and Django.

Thanks!

Actions #6

Updated by Rami Kassab over 15 years ago

Jean-Philippe Lang wrote:

The following means that the svn command gives an error:

[...]

There can be many reasons for that.
Try to run this command manually in the same environment than the application. You can also run the application in development mode and svn stderr should then be printed to log/scm.stderr.log.

Please ignore my previous reply. We figured out how to get the project in development mode and read the scm logs. Here was the issue, in case anyone else needs a solution for this. As mentioned in the ticket, we run our SVN server behind HTTPS so there is a cert that needs to be accepted. Redmine was running as the www-data user, whos home directory was set to /var/www, which is owned by root. The problem with that is that www-data didn't have access to write it's own .subversion directory in /var/www so save the permanently accepted certificate. What we did was manually created a .subversion directory in /var/www and gave it read and write access by www-data. The folder isn't hosting public files but rather Django and Rails projects, which are in their own sub folders... in case you were wondering about the security risk.

A more reliable and clean solution would have been to re-assign the www-data user's home directory instead so for those hosting public files right out of their /var/www folder, I recommend you do that instead (or lock down the .subversion directory in your apache conf).

Thanks for the help with discovering what the issue was. The SCM logs did indeed indicate that SVN was trying to accept the SSL cert but had no means of doing so and storing the setting anywhere.

Actions

Also available in: Atom PDF