[Bug 762551] New: importing base distribution fails at the api script
https://bugzilla.novell.com/show_bug.cgi?id=762551 https://bugzilla.novell.com/show_bug.cgi?id=762551#c0 Summary: importing base distribution fails at the api script Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dom@vbi.vt.edu QAContact: adrian@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.3 Safari/536.11 Going through the procedure in step 4.2 in README.SETUP you get an error: # import the project obs_mirror_project openSUSE:12.1 standard x86_64 -v # Restart the scheduler to scan the new project rcobsscheduler restart # Run the api import script: cd /srv/www/obs/api/script RAILS_ENV="production" ruby import /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:131:in `const_missing': uninitialized constant Suse::Validator::SCHEMA_LOCATION (NameError) from /srv/www/obs/api/lib/opensuse/validator.rb:76 from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require' from /srv/www/obs/api/app/controllers/application_controller.rb:6 from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing' from /srv/www/obs/api/app/controllers/about_controller.rb:1 from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:250:in `depend_on' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:162:in `require_dependency' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:414:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:413:in `each' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:413:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:411:in `each' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:411:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:197:in `process' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run' from import:20 Including the environment.rb file in the import script, using this patch: # diff -u import import.orig --- import 2012-05-16 08:50:15.941294374 -0400 +++ import.orig 2012-05-16 08:49:45.239075217 -0400 @@ -1,7 +1,5 @@ #!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' -require File.dirname(__FILE__) + '/../config/environment.rb' - # set this to true if you want to create users that appear in metafiles # (useful for importing on devel workstations) There are more errors: # RAILS_ENV="production" ruby import ** Erubis 2.6.6 /srv/www/obs/api/config/initializers/logging.rb:7: warning: already initialized constant NUMBER_TO_NAME_MAP /srv/www/obs/api/config/initializers/logging.rb:8: warning: already initialized constant NUMBER_TO_COLOR_MAP /srv/www/obs/api/config/initializers/options.rb:4: warning: already initialized constant CONFIG --> storing projects import:153: undefined method `dump_xml' for nil:NilClass (NoMethodError) from /srv/www/obs/api/lib/activexml/node.rb:440:in `call' from /srv/www/obs/api/lib/activexml/node.rb:440:in `method_missing' from /usr/lib64/ruby/gems/1.8/gems/nokogiri-1.4.4/lib/nokogiri/xml/node_set.rb:239:in `each' from /usr/lib64/ruby/gems/1.8/gems/nokogiri-1.4.4/lib/nokogiri/xml/node_set.rb:238:in `upto' from /usr/lib64/ruby/gems/1.8/gems/nokogiri-1.4.4/lib/nokogiri/xml/node_set.rb:238:in `each' from /srv/www/obs/api/lib/activexml/node.rb:438:in `method_missing' from import:138 As a net result, we're unable to import a base distribution. Reproducible: Always Steps to Reproduce: 1.cd /srv/www/obs/api/script 2.RAILS_ENV="production" ruby import 3. This is an identical issue described by another person in this post: http://lists.opensuse.org/opensuse-buildservice/2012-04/msg00013.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=762551 https://bugzilla.novell.com/show_bug.cgi?id=762551#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |adrian@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com