heroku db:pull does not work?

╄→尐↘猪︶ㄣ 提交于 2020-01-11 01:33:06

问题


I get the following error message:

heroku db:pull --debug postgres://USERNAME:PASSWORD@localhost/test 
Loaded Taps v0.3.23
Warning: Data in the database 'postgres://USERNAME:PASSWORD@localhost/test' will be overwritten and will not be recoverable.
Receiving schema
Unable to fetch tables information from http://heroku:foo9dsfsdfsdb465ar@taps19.heroku.com. Please check the server log.

The command above does not produce any messages in the log that can be viewed using 'heroku logs'.

Any idea what I am doing wrong?


回答1:


Use pgbackups instead of taps/db:pull

http://devcenter.heroku.com/articles/pgbackups




回答2:


I answered to similar problem here: Unable to fetch tables information when running heroku db:pull

I found some kind of work-around.
I have the same problem with my SHARED_DATABASE on heroku
ruby 1.9.2
gems:
pg (0.11.0)
heroku (2.32.4)
heroku-api (0.3.5)
taps (0.3.24)
heroku db:pull ended with:
Unable to fetch tables information from http://...@taps19.heroku.com. Please check the server log.

I switched to ruby 1.8.7 using rvm and heroku db:pull works fine.
Back again to ruby 1.9.2 to develop my application.

I hope this help someone until db:pull will be fixed with ruby 1.9.2.




回答3:


Was able to get it going by reverting back to ruby 1.9.3 and Rails 3.1.0.

Here are some instructions on how to do that with rvm:

$ rvm install 1.9.3
$ ruby -v
$ rvm use 1.9.3-p286
$ rvm gemset create rails310
$ rvm 1.9.3-p286@rails310
$ rails -v
$ gem install rails -v 3.1.0
$ rvm gemset list
$ heroku db:pull –app <yourapp>
$ gem install taps
$ gem install sqlite3
$ heroku db:pull –app <yourapp>

More reading on rvm can be found here: http://rvm.io/gemsets/basics



来源:https://stackoverflow.com/questions/8892354/heroku-dbpull-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!