migrate_from_trac error with activerecord-sqlite3-adapter
Added by Tim Thornton over 12 years ago
Hi,
When running migrate_from_trac, after entering data for the various prompts I get the following error message:
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (
sqlite3 is not part of the bundle. Add it to Gemfile.)
Full trace and other details are given at the end.
If I then try running gem install activerecord-sqlite3-adapter I get the following error message:
ERROR: Could not find a valid gem 'activerecord-sqlite3-adapter' (>= 0) in any
repository
ERROR: Possible alternatives: activerecord-jdbcsqlite3-adapter, activerecord-s
lserver-adapter, activerecord-spatialite-adapter, activerecord-dbslayer-adapter
activerecord-nulldb-adapter
I'm floundering a bit as I am new to Ruby and Redmine.
Any assistance greatly appreciated.
Many thanks,
Tim
Windows Server 2008
Ruby 1.9.1
Redmine 2.0.0
Trac database is Sqlite3
List of gems installed:
- LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.2.3, 3.1.4, 3.0.10, 2.3.5)
actionpack (3.2.3, 3.1.4, 3.0.10, 2.3.5)
activemodel (3.2.3, 3.1.4, 3.0.10)
activerecord (3.2.3, 3.1.4, 3.0.10, 2.3.5)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcsqlite3-adapter (1.2.2)
activeresource (3.2.3, 3.1.4, 3.0.10, 2.3.5)
activesupport (3.2.3, 3.1.4, 3.0.10, 2.3.5)
arel (3.0.2, 2.2.3, 2.0.10)
bigdecimal (1.1.0)
builder (3.0.0, 2.1.2)
bundler (1.1.3)
coderay (1.0.6)
daemons (1.1.8)
erubis (2.7.0, 2.6.6)
eventmachine (1.0.0.beta.4.1 x86-mingw32)
hike (1.2.1)
i18n (0.6.0, 0.5.0)
io-console (0.3)
jdbc-sqlite3 (3.7.2)
journey (1.0.3)
json (1.7.3, 1.5.4)
mail (2.4.4, 2.3.3, 2.2.19)
mime-types (1.18)
minitest (2.5.1)
multi_json (1.3.5)
mysql2 (0.3.11 x86-mingw32)
net-ldap (0.3.1)
polyglot (0.3.3)
prototype-rails (3.2.1)
rack (1.4.1, 1.3.6, 1.2.5, 1.0.1)
rack-cache (1.2)
rack-mount (0.8.3, 0.6.14)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.2.3, 3.1.4, 3.0.10, 2.3.5)
railties (3.2.3, 3.1.4, 3.0.10)
rake (0.9.2.2)
rdoc (3.12, 3.9.4)
ruby-openid (2.1.8)
rubygems-update (1.3.7)
sprockets (2.1.3, 2.0.4)
sqlite3 (1.3.6 x86-mingw32)
sqlite3-ruby (1.3.3)
thin (1.2.11 x86-mingw32)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
- Invoke redmine:migrate_from_trac (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:migrate_from_trac
WARNING: a new project will be added to Redmine during this process.
Are you sure you want to continue ? [y/N] y
Trac directory []: d:\trac\cadre
Trac database adapter (sqlite3, mysql2, postgresql) [sqlite3]:
Trac database encoding [UTF-8]:
Target project identifier []: cadre
This project already exists in your Redmine database.
Are you sure you want to append data to this project ? [Y/n]
rake aborted!
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (
sqlite3 is not part of the bundle. Add it to Gemfile.)
c:/Ruby19/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/rubygems_integratio
n.rb:147:in `block in replace_gem'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connecti
on_adapters/sqlite3_adapter.rb:3:in `<top (required)>'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/depend
encies.rb:251:in `require'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/depend
encies.rb:251:in `block in require'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/depend
encies.rb:236:in `load_dependency'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/depend
encies.rb:251:in `require'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connecti
on_adapters/abstract/connection_specification.rb:48:in `resolve_hash_connection'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connecti
on_adapters/abstract/connection_specification.rb:27:in `spec'
c:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-3.2.3/lib/active_record/connecti
on_adapters/abstract/connection_specification.rb:127:in `establish_connection'
D:/redmine/lib/tasks/migrate_from_trac.rake:712:in `block in establish_connectio
n'
D:/redmine/lib/tasks/migrate_from_trac.rake:709:in `each'
D:/redmine/lib/tasks/migrate_from_trac.rake:709:in `establish_connection'
D:/redmine/lib/tasks/migrate_from_trac.rake:371:in `migrate'
D:/redmine/lib/tasks/migrate_from_trac.rake:769:in `block (2 levels) in <top (re
quired)>'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:205:in `call'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:200:in `each'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
c:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
c:/Ruby19/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_leve
l'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `each'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling
'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling
'
c:/Ruby19/lib/ruby/1.9.1/rake/application.rb:63:in `run'
c:/Ruby19/bin/rake:32:in `<main>'
Tasks: TOP => redmine:migrate_from_trac
Replies (1)
RE: migrate_from_trac error with activerecord-sqlite3-adapter - Added by Daniel Lee over 12 years ago
I am also having this problem. Can anyone help please?