Hello, strange problem here : I have a nightly cron task that execute
the script/runner task of my MySQL based application.
Everything ran smoothly until I installed the latest version of the
Oracle adapter for use with different application. This application is
completely unrelated with the first one.
Now when the script/runner (first app, MySQL) is invoked I get the error
below. I don’t understand what’s going wrong. I must add that the web
part of the MySQL application is still running correctly, only the
runner is affected.
Of course, the ruby adapter is never required in the MySQL app and the
database.yml file does only refer to MySQL connections.
Any help, really, really appreciated…
================================ CRON TASK (a cron.daily file)
containing
/usr/local/www/ror_stoneprices/script/runner Runner.run
================================ RUNNER
class Runner
def self.run
# snip
end
end
================================ ERROR
/usr/lib/site_ruby/1.8/oci8.rb:49:in create': ERROR (OCIError) from /usr/lib/site_ruby/1.8/oci8.rb:49 from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
require’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:7:in
require_library_or_gem’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:5:in
require_library_or_gem’
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracle_adapter.rb:29
from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
require' ... 8 levels... from /usr/lib/site_ruby/1.8/rubygems.rb:37:in
require_gem_with_options’
from /usr/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem’
from ./script/…/config/boot.rb:28
from script/runner:2