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

Errors when installing wfcli #133

Closed
pl04351820 opened this issue Apr 16, 2018 · 4 comments
Closed

Errors when installing wfcli #133

pl04351820 opened this issue Apr 16, 2018 · 4 comments

Comments

@pl04351820
Copy link

Environment: OSX
I run go get and met the following error.

C7s-MacBook-Pro:go c7$ go get -u github.com/fission/fission-workflows/cmd/wfcli
# github.com/fission/fission-workflows/pkg/util
/Users/c7/go/src/github.com/fission/fission-workflows/pkg/util/util.go:13:19: multiple-value uuid.NewV4() in single-value context
# github.com/fission/fission-workflows/pkg/types/graph
/Users/c7/go/src/github.com/fission/fission-workflows/pkg/types/graph/graph.go:148:13: cannot use n (type graph.Node) as type int64 in argument to g.To

If install from release. The permission operation made command fail.

C7s-MacBook-Pro:~ c7$ sudo curl -o wfcli https://github.com/fission/fission-workflows/releases/download/0.2.0/wfcli-osx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   599    0   599    0     0    599      0 --:--:-- --:--:-- --:--:--  2786
C7s-MacBook-Pro:~ c7$ 
C7s-MacBook-Pro:~ c7$ sudo mv ./wfcli /usr/local/bin
C7s-MacBook-Pro:~ c7$ wfcli
-bash: /usr/local/bin/wfcli: Permission denied
C7s-MacBook-Pro:~ c7$ sudo wfcli
sudo: wfcli: command not found

my go environment

export GOPATH=/Users/c7/go
export PATH=$GOPATH/bin:$PATH
export GOROOT=/usr/local/go
export GOOS=darwin
export GOARCH=amd64
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
@pl04351820 pl04351820 changed the title Errors when install wfcli Errors when installing wfcli Apr 16, 2018
@soamvasani
Copy link
Member

There's a missing chmod. Try: sudo chmod +x /usr/local/bin/wfcli.

@erwinvaneyk can you check if both the helm install notes and the install instructions have the full set of commands for installing wfcli?

@pl04351820
Copy link
Author

pl04351820 commented Apr 16, 2018

Thanks for your fast reply! @soamvasani
But I get another error after changing chmod.

$ sudo chmod +x /usr/local/bin/wfcli
$ wfcli
/usr/local/bin/wfcli: line 1: syntax error near unexpected token `<'
/usr/local/bin/wfcli: line 1: `<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/97091215/5806b8a2-ff85-11e7-89c4-a41223a7564a?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180416%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20180416T045224Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=2397e3e08950066b13c3fcf0628d2cdfff87ca8f32fd31ede060e8a487199ca5&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;response-content-disposition=attachment%3B%20filename%3Dwfcli-osx&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

@soamvasani
Copy link
Member

Can you do the download again, this time with -L to curl? That will make curl follow HTTP redirects. Right now the file you have is just a github page that says you're being redirected :)

curl -Lo wfcli https://github.com/fission/fission-workflows/releases/download/0.2.0/wfcli-osx
chmod +x wfcli
sudo mv wfcli /usr/local/bin/

@pl04351820
Copy link
Author

Wow~
It works this time by using -L.
Thanks~

erwinvaneyk added a commit that referenced this issue Apr 17, 2018
This PR adds a missing instruction to the installation docs. Moreover, it fixes a couple of awkward sentences in the top-level documents.

This addresses #133
erwinvaneyk added a commit that referenced this issue May 15, 2018
This PR adds a missing instruction to the installation docs. Moreover, it fixes a couple of awkward sentences in the top-level documents.

This addresses #133
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

2 participants