Question

heroku rake db:migrate --trace --app app-name
  !   Internal server error

This was working fine before.

How to diagnose this?

rake db:migrate works fine on my local db. There is no entry in the log. VERSION=xxx did not help either.

Using rake 0.8.7.

Was it helpful?

Solution

Ok heroku support already helped me out!

Here the workaround

"try running the migration from a bash dyno?"

$ heroku run bash

"Then just run your migration command (something like):"

$ bundle exec rake db:migrate --trace

This was a good work around I could migrate my application.

Cheers,

Joel

OTHER TIPS

I had this problem earlier, I assume it's a server issue.

To get around the problem:

I added the heroku scheduled addon, added a scheduled job for 'rake db:migrate':

https://heroku-scheduler.herokuapp.com/dashboard#

It allows you to run the job on the web interface, as well as confirm the output was successful.

Not a solution I know, but should get around the issue for the moment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top