Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ARList.init
- `echo "TRACE 0 $SAFE: #{$SAFE}" >/tmp/mess.debug`
- `echo "TRACE 1 #{RAILS_ENV}" >>/tmp/mess.debug`
- `echo "TRACE 2 #{RAILSBASEDIR}" >>/tmp/mess.debug`
- dbstr = "#{Product}_production"
- `echo "TRACE 3 #{dbstr}" >>/tmp/mess.debug`
- if @@DBCfg then
- ActiveRecord::Base.establish_connection(
- :adapter => "mysql",
- :host => "localhost",
- :username => "root",
- :password => "",
- :database => dbstr
- )
- else
- STDERR.puts "YAML::load returned false on @@DBYMLSpec: #{@@DBYMLSpec}"
- end
- logger.info "TRACE 9 #{dbstr}"
- end
- --snip--
- TRACE 0 : 1
- TRACE 1 production
- TRACE 2 /home/u1/railsapp
- TRACE 3 u1_production
- ----snip----
- [Wed May 28 17:42:22 2008] [error] mod_ruby: error in ruby
- [Wed May 28 17:42:22 2008] [error] mod_ruby: /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': Insecure operation - gem_original_require (SecurityError)
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:229:in `establish_connection'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/jb/app/jb/scriptlib/ARList.rb:48:in `init'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/jb/app/jb/scriptlib/TestServer.rb:72:in `initialize'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/jb/app/jb/scriptlib/ExtractionTreeMenu.rb:39:in `new'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/jb/app/jb/scriptlib/ExtractionTreeMenu.rb:39:in `initialize'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/u1/apachebase/cccr/index.rhtml:7:in `new'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /home/u1/apachebase/cccr/index.rhtml:7
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from (eval):0
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `eval_string_wrap'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `run'
- [Wed May 28 17:42:22 2008] [error] mod_ruby: from /usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler'
Add Comment
Please, Sign In to add comment