Can't migrate db, probably incompatibility
Added by Matheus Dewes over 13 years ago
Hello everyone.
I'm not very close to RoR yet, so I'm having some trouble.
Here's the catch:
I have cloned redmine 1.2.0 from github recently and I want to try some minor changes on its features.
I'm almost sure that it's some kind of incompatibility between gems. I'll describe everything I've made till now and versions of everything.
Or if there's a HowTo for installing redmine for a development version, I couldn't find it, sorry, but if there is one I'd appreciate if someone give the link.
SO: Ubuntu 11.04 installed on VirtualBox VM
MySQL version: 14.14
Ruby version 1.8.7
RubyGems version 1.4.2
Rails version 2.3.5
changed config/database.yml to:
- MySQL (default setup).
production:
adapter: mysql
database: redmine
host: localhost
username: root
password: root
development:
adapter: mysql
database: redmine_dev
host: localhost
username: root
password: root
encoding: utf8
- Warning: The database defined as "test" will be erased and
- re-generated from your development database when you run "rake".
- Do not set this db to the same as development or production.
test:
adapter: mysql
database: redmine_test
host: localhost
username: root
password: root
encoding: utf8*
Now if I try to do it: RAILS_ENV=development script/about I get:
/home/rails/Projects/redmine/config/environment.rb:27: undefined method `autoload_paths' for #<Rails::Configuration:0xb75fe814> (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:111:in `run'
from /home/rails/Projects/redmine/config/environment.rb:20
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/about.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/about:4
And finally here is my gem list:
- LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.8, 2.3.11, 2.3.5)
actionpack (3.0.8, 2.3.11, 2.3.5)
activemodel (3.0.8)
activerecord (3.0.8, 2.3.11, 2.3.5)
activeresource (3.0.8, 2.3.11, 2.3.5)
activesupport (3.0.8, 2.3.11, 2.3.5)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.15)
erubis (2.6.6)
i18n (0.5.0, 0.4.2)
mail (2.2.19)
mime-types (1.16)
polyglot (0.3.1)
rack (1.1.0, 1.0.1)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (2.3.5)
railties (3.0.8)
rake (0.9.2)
rubygems-update (1.8.5)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.28)
Note that I have 2 versions of Rack if I remove the 1.0.1 and use only the 1.1.0 my rails gem imply disappear I can't even get it's version, and if I try to reinstall rails 2.3.5 then it instals rack 1.0.1 again.
Any idea, anybody?
Thanks in advance.
And sorry if it's a silly topic :(
Replies (2)
RE: Can't migrate db, probably incompatibility - Added by Matheus Dewes over 13 years ago
PS.: You may notice that the error in bold mentions a folder called 1.8
still if I type gem -v I get 1.4.2
RE: Can't migrate db, probably incompatibility - Added by Matheus Dewes over 13 years ago
I've started from the beggining again, I'm finally able to migrate the DB
I don't know how to close this topic... anyway it's OK I probalby missed some configuration.