Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURL Error with version 0.5.0 #23

Closed
DoubleOTheven opened this issue Mar 16, 2015 · 19 comments
Closed

CURL Error with version 0.5.0 #23

DoubleOTheven opened this issue Mar 16, 2015 · 19 comments

Comments

@DoubleOTheven
Copy link

Error

When executing development restore production, I get an error with parity 0.5.0:

 !    Resource not found

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
pg_restore: [archiver] input file is too short (read 0, expected 5)

Specs

Curl 7.37.1
Ruby 2.2.1p85

Parity 0.4 is working...

@geoffharcourt
Copy link
Collaborator

@sonblind, which command and args are you using?

@DoubleOTheven
Copy link
Author

I'm running: development restore production

@geoffharcourt
Copy link
Collaborator

OK, now that I've uninstalled the shims from homebrew and am running Parity 0.5.0, I'm getting the same error. I'm looking into it.

@RafaelVidaurre
Copy link

Same here

@croaky
Copy link
Contributor

croaky commented Mar 18, 2015

Possibly fixed by 89be4ad ?

We might want to release 0.5.1

@geoffharcourt
Copy link
Collaborator

@croaky, 89be4ad doesn't resolve the problem, so hold off on 0.5.1 for the moment. I have some time to look at it now.

@RafaelVidaurre
Copy link

I can't do backups either

@geoffharcourt
Copy link
Collaborator

I think we broke in 5e789c3, when I use those commands directly at the command line they don't work.

@geoffharcourt
Copy link
Collaborator

According to Heroku's docs, the command new pg:backups subcommand heroku pg:backups public-url should yield the URL for the last backup, but if you run the command with the --app appname or --remote remotename switches, you get the reported error about the resource not being found.

I think we should revert 5e789c3, file an issue with Heroku about the toolbelt and/or pg command, and then reintroduce it after the issue is resolved with the toolbelt. In the interim, we should release 0.5.1 with the reversion so that users who upgraded to 5.x aren't stranded without what is likely the most-used functionality of parity.

EDIT: Also a similar problem with the backup command.

@croaky
Copy link
Contributor

croaky commented Mar 19, 2015

@geoffharcourt How does #26 look?

@croaky
Copy link
Contributor

croaky commented Mar 19, 2015

@croaky croaky closed this as completed Mar 19, 2015
@JuanitoFatas
Copy link

👏 Thanks @croaky and everyone!

@DoubleOTheven
Copy link
Author

Great fix! Thanks @croaky and team! 👍

@srt32
Copy link

srt32 commented Mar 26, 2015

I'm seeing this issue when I run development restore staging on version 0.5.1. Was there something I needed to update on my end to apply the fix?

EDIT: it looks like my issue is slightly different. I'm seeing:

!    No backup found.
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
pg_restore: [archiver] input file is too short (read 0, expected 5)

If I run heroku pg:backups -r staging there is a backup present. Does this issue seem related?

@geoffharcourt
Copy link
Collaborator

@srt32, Did you install the Homebrew package? I found I wasn't using the version from the Gem which led to some confusing debugging when issues came up with 0.5.0.

@srt32
Copy link

srt32 commented Mar 31, 2015

@geoffharcourt thanks for the idea! I installed it via the gem. I tried uninstalling the gem and reinstalling but I see the same issue.

@geoffharcourt
Copy link
Collaborator

OK, just for my own sanity (because I had some similar issues with 0.5.0), what version of Heroku toolbelt do you have, and can you confirm that which production is using the Rubygem version, and that you don't have any old versions of parity installed?

I had a project using a different version of Ruby, and with rbenv shims I had issues with which gem version was being used by the executable.

@srt32
Copy link

srt32 commented Apr 3, 2015

heroku version yields heroku-toolbelt/3.30.6 (x86_64-darwin10.8.0) ruby/1.9.3 (the Ruby version looks odd).

which production yields /Users/simon/.rbenv/shims/production. Maybe I've got some shim crossed up somewhere, like you mentioned.

@croaky
Copy link
Contributor

croaky commented Apr 25, 2015

rm /Users/simon/.rbenv/shims/production
rm /Users/simon/.rbenv/shims/staging
gem uninstall parity
brew update && brew install parity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants