Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

500 error from binary pull #132

Closed
grooverdan opened this issue Apr 15, 2021 · 4 comments · May be fixed by tj/gobinaries#39
Closed

500 error from binary pull #132

grooverdan opened this issue Apr 15, 2021 · 4 comments · May be fixed by tj/gobinaries#39

Comments

@grooverdan
Copy link
Contributor

Describe the bug

Unable to download ding gobinaries script

To Reproduce

curl -sf https://gobinaries.com/datacharmer/dbdeployer | PREFIX=. sh

==> Downloading github.com/datacharmer/dbdeployer@master
==> Resolved version master to v1.59.0
==> Downloading binary for linux amd64

Error downloading, got 500 response from server

Expected behavior

Rainbows and unicorns, a 200 response would be ok too.

Environment:

  • x86_64 Fedora 33

Additional context

Has been hitting our CI on this for a while - https://buildbot.mariadb.org/#/builders/210 I was hoping it was a transient GH issue.

@datacharmer
Copy link
Owner

Hi
Thanks for reporting this issue.
The reason for the error is that gobinaries is still compiling with Go 1.15, while the latest version of dbdeployer requires Go 1.16.

I have no control on gobinaries, but I can offer two workarounds:

  1. Use the installation script provided by dbdeployer itself
$ curl -s https://raw.githubusercontent.com/datacharmer/dbdeployer/master/scripts/dbdeployer-install.sh | bash
dbdeployer-1.59.0.linux.tar.gz: OK
-rwxr-xr-x 1 msandbox msandbox  12M Apr 11 13:13 dbdeployer-1.59.0.linux
-rw-r--r-- 1 msandbox msandbox 5.6M Apr 16 01:52 dbdeployer-1.59.0.linux.tar.gz
-rw-r--r-- 1 msandbox msandbox   97 Apr 16 01:52 dbdeployer-1.59.0.linux.tar.gz.sha256
/home/msandbox/usr/local/bin
/home/msandbox/go/bin
/home/msandbox/bin
file dbdeployer-1.59.0.linux ready to move in $PATH
e.g.:
sudo mv dbdeployer-1.59.0.linux /usr/local/bin/dbdeployer
  1. Pull from gobinaries, with a specific version
$ curl -sf https://gobinaries.com/datacharmer/[email protected] | PREFIX=. sh

  ==> Downloading github.com/datacharmer/[email protected]
  ==> Resolved version 1.58.2 to v1.58.2
  ==> Downloading binary for linux amd64
  ==> Installing dbdeployer to .
  ==> Installation complete

@grooverdan
Copy link
Contributor Author

Lets hope the tj/gobinaries#36 deployment will be global for 1.16 (so intentionally name dropping an issue for good measure). I'll pick up a work around in the mean time. Thanks @datacharmer

grooverdan added a commit to grooverdan/gobinaries that referenced this issue Apr 16, 2021
grooverdan added a commit to MariaDB/mariadb.org-tools that referenced this issue Apr 16, 2021
@datacharmer
Copy link
Owner

Note that the workaround n.1 is not exactly equivalent to your previous workflow with gobinaries.

The dbdeployer script will fetch dbdeployer-x.x.x.OS (e.g. dbdeployer-1.59.0.linux), not simply dbdeployer.
You can automate the usage by also fetching the current version:

version=$(curl curl https://raw.githubusercontent.com/datacharmer/dbdeployer/master/common/VERSION)
dbdeployer=dbdeployer-${version}.linux`

@grooverdan
Copy link
Contributor Author

greenness restored - https://buildbot.mariadb.org/#/builders/210/builds/349

fauust pushed a commit to fauust/mariadb.org-tools that referenced this issue Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants