Heroku rake db: migrate failing - how to diagnose / fix?

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

This worked well before.

How to diagnose this?

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

Use of rake 0.8.7.

+4
source share
2 answers

Ok heroku support already helped me!

Here's a workaround

"try switching from bash dyno?"

 $ heroku run bash 

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

 $ bundle exec rake db:migrate --trace 

It was a good job, and I could port my application.

Greetings

Joel

+4
source

I had this problem before, I assume it is a server problem.

To work around the problem:

I added the planned heroku addon, added the scheduled task for "rake db: migrate":

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

It allows you to run the task on the web interface, as well as confirm that the result was successful.

Not the solution that I know, but should solve the problem at the moment.

+2
source

Source: https://habr.com/ru/post/1384588/


All Articles