[PageOneX] [dev] Help needed! not able to run a rake db:migration in dev server. [BUG] Segmentation fault
pablo rey
pablo at basurama.org
Fri May 16 13:37:31 EDT 2014
Hi there,
I've added a biography section for users that it is displayed in the
threads list.
The problem is that I am not being able to run a db migration in the dev
server to make the new changes work.
After running "bundle exec rake db:migrate --trace"
I get
/var/lib/gems/1.9.1/gems/therubyracer-0.11.4/lib/v8/init.so: [BUG]
Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Aborted (core dumped)
I think it might be related to the ruby version that is using. Below the
long story.
thanks for your help!
pablo
---------------
Here a list of the things I've done. Do you know what I am missing?
After "rake db:migrate"
Could not find rake-10.0.4 in any of the sources
Run `bundle install` to install missing gems.
Running bundle install was again giving errors.
After some turn arounds I did to set up the gem path:
export GEM_HOME=/var/lib/gems/1.9.1
export GEM_PATH=/var/lib/gems/1.9.1
I restored the Gemlock.lock in the repository and I could bundle.
Not sure if 1.9.1 was the right choice, as ruby version is 1.9.3p0
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux])
Now when trying to rake db:migrate
I get:
rake aborted!
Gem::LoadError: You have already activated rake 10.3.2, but your Gemfile
requires rake 10.0.4. Using bundle exec may solve this.
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in
`gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `require'
/var/www/pageonex/dev/config/boot.rb:6
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/pageonex/dev/config/application.rb:1
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/pageonex/dev/Rakefile:5
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in
`load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:687:in
`raw_load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:94:in
`load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in
`standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:93:in
`load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:77:in `run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in
`standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
And running: "bundle exec rake db:migrate --trace"
I get
/var/lib/gems/1.9.1/gems/therubyracer-0.11.4/lib/v8/init.so: [BUG]
Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Aborted (core dumped)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/pageonexdev/attachments/20140516/4c4251e3/attachment.htm
More information about the Pageonexdev
mailing list