Crash when added a large SVN repository to a project
Added by Proto Quark almost 13 years ago
I have an existing SVN repo that I'm trying to add to a Redmine project and I'm not having any luck getting the repository browser to work. The repo is over 1 GB in size.
I've tried added the repo and then executing the ruby script/runner "Repository.fetch_changesets" -e production which generates the following;
svn: Unable to find repository location for 'file:///home/user/repo/trunk/projA' in revision 100
svn: Unable to find repository location for 'file:///home/user/repo/trunk/projA' in revision 200
/home/user/public_html/redmine/vendor/rails/railties/lib/commands/runner.rb:48: /usr/local/lib/ruby/1.8/rexml/source.rb:121:in `split': failed to allocate memory (NoMemoryError)
from /usr/local/lib/ruby/1.8/rexml/source.rb:121:in `current_line'
from /usr/local/lib/ruby/1.8/rexml/parseexception.rb:44:in `line'
from /usr/local/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s'
from /usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in `message'
from /usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in `parse'
from /usr/local/lib/ruby/1.8/rexml/document.rb:227:in `build'
from /usr/local/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
from /home/user/public_html/redmine/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb:17:in `new'
from /home/user/public_html/redmine/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb:17:in `parse'
from /home/user/public_html/redmine/vendor/rails/activesupport/lib/active_support/xml_mini.rb:12:in `__send__'
from /home/user/public_html/redmine/vendor/rails/activesupport/lib/active_support/xml_mini.rb:12:in `parse'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:176:in `revisions'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:217:in `call'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:217:in `shellout'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:215:in `popen'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:215:in `shellout'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:194:in `shellout'
from /home/user/public_html/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:170:in `revisions'
from /home/user/public_html/redmine/app/models/repository/subversion.rb:64:in `fetch_changesets'
from /home/user/public_html/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `send'
from /home/user/public_html/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
from /home/user/public_html/redmine/app/models/repository.rb:243:in `fetch_changesets'
from /home/user/public_html/redmine/app/models/repository.rb:240:in `each'
from /home/user/public_html/redmine/app/models/repository.rb:240:in `fetch_changesets'
from (eval):1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `eval'
from /home/user/public_html/redmine/vendor/rails/railties/lib/commands/runner.rb:48
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/runner:3
Killed
Does anyone have any thoughts? I've tested it with a much smaller repo and it seems to be working fine for that case.
Replies (1)
RE: Crash when added a large SVN repository to a project
-
Added by Proto Quark almost 13 years ago
Environment Info
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.4.0
Rack version 1.1.2
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /home/user/public_html/redmine
Environment production
Database adapter mysql
Database schema version 20110511000000