Search code examples
herokurails-postgresql

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


Solution

  • 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 (: