struCoder / pmgo

pmgo is a process manager for Golang applications.
MIT License
625 stars 65 forks source link

FATA[0000] Failed to start go bin due to: ERROR: exit status 1 OUTPUT: #24

Closed dongmai closed 6 years ago

dongmai commented 6 years ago

Hi @struCoder ,

I always got this error message when trying to start an app. (the app was tusd: https://github.com/tus/tusd)

I cloned the repo to tusd folder, and the main.go file is located at tusd/cmd/tusd/main.go

I've tried both pmgo start tusd/cmd/tusd/main.go TUS-API and pmgo start /tusd/ TUS-API and no luck.

Can you help me to resolve this? Thanks.

struCoder commented 6 years ago

Hi @dongmai

image

struCoder commented 6 years ago

@dongmai just sub-dir under GOPATH/src and do not include *.go

Have Good Time :)

nshah14285 commented 6 years ago

I have placed the go application inside GOPATH/src/github.com/ From inside GOPATH/src I ran command pmgo start github.com/project/ app-name , it throws the error "FATA[0000] Failed to start go bin due to: ERROR: exit status 2 OUTPUT:" Where to check the actual cause of error? Application get started using go run command without any error. Any idea how to resolve? Can't we run application from any folder using pmgo.

struCoder commented 6 years ago

@nshah14285 Your system is windows or based with *nix systems ?

thetruth4u commented 6 years ago

Hi @struCoder, This is coming again,

pmgo start github.com/tus/tusd/cmd/tusd TUS-API

Do you have any idea about this?

struCoder commented 6 years ago

@thetruth4u emmmm... That is interesting.. Do you set correct gopath?

thetruth4u commented 6 years ago

yes, the gopath is at ~/go

thetruth4u commented 6 years ago

Here is my result when go env:

...
GOPATH="/home/{my_username}/go"
GOROOT="/usr/local/go"
...
JeHyunwoo91 commented 6 years ago

hi @thetruth4u where is your source-code directory, including $GOPATH ?? i had similarly your issue , but i got solution.

if my $GOPATH, like this.... GOPATH="/home/{my_username}/go"

and my project source-code directory configured like this... /home/{my_username}/go/github.com/abc/def/

so, i run pmgo command like this... pmgo start github.com/abc/def ABC

check your project source-code directory's including $GOPATH

i hope It was a good reference to you ... thx

wpbawsed commented 5 years ago

您好~我照著相同的方式將https://github.com/tus/tusd 下載到GOPATH,並且照著專案的使用者直接開啟執行檔是可以的,但使用pmgo start github.com/tus/tusd/cmd/tusd/ tusd 一樣會發生 FATA[0000] Failed to start go bin due to: ERROR: exit status 1 OUTPUT: 系統是MAC; GOPATH="/Users/{user_name}/go"; GOROOT="/usr/local/go"

dicklei commented 5 years ago

Hi @struCoder , I cloned the repo and git checkout beta and build

command-line-arguments

command-line-arguments

./pmgo.go:103:17: too many arguments in call to cli.StartGoBin have (string, string, bool, []string, bool)

Can you help me to resolve this? Thanks.

struCoder commented 5 years ago

@dicklei Hi there Can you show me your start command line?