如何解决pgbackups错误:备份网址无效? [英] How do I fix a pgbackups error: backup url is invalid?
问题描述
我试图按照迁移到Cedar的说明进行操作(除了我进行了重大改写,因此这不是以前的应用程序的一个分支,而是一个独立的程序),并停留在数据库迁移步骤。我安装了pgbackup和heroku postgresql插件,但得到了这个结果:
j3(master):heroku pgbackups:restore DATABASE heroku pgbackups:url - app dada-foe-110
--app something-something-4311
32mQkEpWyJdfplOnXhlCnCRsoxYE12-05-25 --app something-something-4311
EXTERNAL_BACKUP< --- restore- - b002.dump
!警告:破坏性行为
!这个命令会影响应用程序:something-something-4311
!要继续,请输入something-something-4311或重新运行此命令--confirm something-something-4311
[输入的应用名称]
正在检索... done
!发生错误,您的恢复未完成。
!备份网址无效。使用 pgbackups:url
生成一个新的临时URL。
Turn我需要更新Heroku宝石。尽管如此,他们错误的消息传递很糟糕,我不得不去支持票据了解这一点,因为我只是过时了一两个小版本,你不会指望在这个级别发生重大变化。哦,好。
I'm trying to follow the instructions on migrating to Cedar (except I did a major rewrite so this isn't a branch of the previous app but a separate one) and stuck at the db migration step. I installed the pgbackup and heroku postgresql addons but get this result:
j3(master) : heroku pgbackups:restore DATABASE heroku pgbackups:url --app dada-foe-110
--app something-something-4311
32mQkEpWyJdfplOnXhlCnCRsoxYE12-05-25 --app something-something-4311
EXTERNAL_BACKUP <---restore--- b002.dump
! WARNING: Destructive Action ! This command will affect the app: something-something-4311 ! To proceed, type "something-something-4311" or re-run this command with --confirm something-something-4311
[entered app name]
Retrieving... done
! An error occurred and your restore did not finish.
! The backup url is invalid. Use pgbackups:url
to generate a new temporary URL.
Turns out I needed to update the Heroku gem. Poor error messaging from them, though, that I had to go to a support ticket to understand this since I was only out of date one or two minor versions and you wouldn't expect breaking changes at that level. Oh well.
这篇关于如何解决pgbackups错误:备份网址无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!