thoughtbot / parity

Shell commands for development, staging, and production parity for Heroku apps
https://thoughtbot.com
MIT License
895 stars 57 forks source link

restore-from fails #146

Closed dbinetti closed 6 years ago

dbinetti commented 6 years ago

Help us track down and resolve parity problems faster with this template.

What command did you execute?

(barberscore-api)bash-3.2$ development restore-from production

What did you expect to happen?

Restore from backup

What actually happened?

(barberscore-api)bash-3.2$ development restore-from production
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 59.1M  100 59.1M    0     0  5412k      0  0:00:11  0:00:11 --:--:-- 9602k
pg_restore: [archiver] unsupported version (1.13) in file header
(barberscore-api)bash-3.2$ 

Some information about your installation

N/A

dbinetti commented 6 years ago

I should also mention it has been working flawlessly; I've only been updating application code so I'm not sure what's causing it to fail. Local Postgres and Heroku Postgres both 10.2

yun-cn commented 6 years ago

me too

geoffharcourt commented 6 years ago

I'm seeing this as well. We saw some automated backups outside of Heroku (not using Parity) fail for a similar reason. I'm not sure what the issue is, but I suspect this is a bigger problem. I'm going to try executing the commands for download and restore separately, if you could all do the same that would be helpful.

geoffharcourt commented 6 years ago

Hi, the issue seems to be that Heroku did an upgrade for a vulnerable patch version of PG 9.6.x. You need to update your local PG version to 9.6.8 or 10.3.x to resolve the issue.

https://www.postgresql.org/docs/9.6/static/release-9-6-8.html

dbinetti commented 6 years ago

Not for me -- on current versions both local and prod, and have been throughout. was the first thing I checked.

On Mon, Mar 5, 2018 at 6:05 AM, Geoff Harcourt notifications@github.com wrote:

Hi, the issue seems to be that Heroku did an upgrade for a vulnerable patch version of PG 9.6.x. You need to update your local PG version to 9.6.8 or 10.3.x to resolve the issue.

https://www.postgresql.org/docs/9.6/static/release-9-6-8.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thoughtbot/parity/issues/146#issuecomment-370429144, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ3urGnXNaZTc1CEBrP1pt25xqiS-Niks5tbUZEgaJpZM4SZZaP .

dbinetti commented 6 years ago

now functional again. not sure what changed, but perhaps was on the Heroku side. regardless, working and closing.