[OSM-dev] Problem with Linux Install on "rake db:migrate" command
Lucier, Trent
trent.lucier at lmco.com
Mon Jun 1 22:23:45 BST 2009
Hello,
I am trying to build OpenStreetMap on a Linux machine (CentOS 5). This
machine does not have internet connectivity, so I have been manually
downloading what I believe are the necessary Ruby components. My end
goal is to have functionality like www.openstreetmap.org in an intranet
(without a lot of the data, of course). Unfortunately, I'm having a
problem with the rake db:migrate command that is used in the Rails Port
install document
(http://wiki.openstreetmap.org/wiki/The_Rails_Port#Database_tables_.28Bo
th_MySQL_and_Postges.29). I have pasted my error below. I am not sure
what is causing the problem. Is it a MySQL issue? My database.yml file
is configured correctly. I can connect to the MySQL server - which is
on localhost - via the command line using the parameters in
database.yml. I've pasted the function that seems to be causing the
crash here. Any help is appreciated.
#################################################
######### Function Causing Crash ################
#################################################
def initialize(session, option=nil)
if @session = @@session_class.find_session(session.session_id) ##
CRASHES HERE ##
@data = unmarshalize(@session.data)
else
@session = @@session_class.create_session(session.session_id,
marshalize({}))
@data = {}
end
end
#################################################
########### rake db:migrate #####################
#################################################
[root at november rails_port]# rake db:migrate --trace
(in /root/Desktop/OSM/rails_port)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `session_id' for
#<ActionController::RewindableInput:0xb52d75c>
/root/Desktop/OSM/rails_port/vendor/plugins/sql_session_store/lib/sql_se
ssion_store.rb:33:in `initialize'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:72:in `new'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:72:in `build'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:116:in `block in build'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:116:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:116:in `inject'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/middleware_stack.rb:116:in `build'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/dispatcher.rb:82:in `initialize'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/dispatcher.rb:52:in `new'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/action_controll
er/dispatcher.rb:52:in `run_prepare_callbacks'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/initializer.rb:609:i
n `prepare_dispatcher'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/initializer.rb:183:i
n `process'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/initializer.rb:113:i
n `run'
/root/Desktop/OSM/rails_port/config/environment.rb:32:in `<top
(required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_suppo
rt/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_suppo
rt/dependencies.rb:156:in `block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_suppo
rt/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/active_suppo
rt/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.2/lib/tasks/misc.rake:4:in
`block in <top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in `block
in execute'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:in `block
in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:in `block
in invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:in `block
in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
`block (2 levels) in top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
`block in top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2001:in
`block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top
(required)>'
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19:in `<main>'
[root at november rails_port]#
#################################################
########### System Configuration ################
#################################################
[root at november rails_port]# ruby -v
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
[root at november rails_port]# rails -v
Rails 2.3.2
[root at november rails_port]# gem -v
1.3.4
[root at november /]# mysql -v
Server version: 5.0.45 Source distribution
[root at november /]# cat /etc/*release*
CentOS release 5.2 (Final)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090601/a495cfab/attachment.html>
More information about the dev
mailing list