Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku db:push fails with segfault

I am installing a new Heroku app for Rails 3.1, Ruby 1.9.2. The problem is in doing 'heroku db:push' to populate the database (which has been duly schematized--the only problem now is getting it some data). It fails with the following report:

/Users/upstill/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.5/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation fault

ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

Abort trap: 6

This is puzzling for two reasons: one, I am using a postgresql database both locally and on heroku (duly declared in config/database.yml). And two, where has ruby 1.8.7 got to do with anything? rvm is set up for 1.9.2, it's on my path, and yet heroku is trying to run it? What gives?

Thanks, Steve Upstill

like image 985
Steve Upstill Avatar asked Feb 22 '12 06:02

Steve Upstill


2 Answers

Had this problem as well, it was extremely annoying but eventually I got it to work. I had the toolbelt installed but it started working once I did this:

gem install heroku
sudo gem install taps

Yes, the toolbelt is already installed but I think this really fixed it. Plenty of people are having this problem, you're not alone.

Hope this helps (:

like image 75
Zach Avatar answered Nov 18 '22 01:11

Zach


Your code is trying to run the 1.9.2 version of SQLite using Ruby 1.8.7.

I would suggest switching to 1.9.2 before trying your push.

rvm use 1.9.2-p290
heroku db:push

Ideally you want to be switching to 1.9.2 full stop.

like image 36
Neil Middleton Avatar answered Nov 18 '22 01:11

Neil Middleton