Open jiridanek opened 4 years ago
I found the following in strace -f
[pid 30064] setpgid(0, 0) = 0
[pid 30064] dup2(6, 0) = 0
[pid 30064] fcntl(1, F_SETFD, 0) = 0
[pid 30064] fcntl(2, F_SETFD, 0) = 0
[pid 30064] execve("", ["", "-http_addr", "localhost:11100", "-grpc_addr", "localhost:12100", "-log_level", "debug"], [/* 34 vars */]) = -1 ENOENT (No such file or directory)
[pid 30058] <... nanosleep resumed> NULL) = 0
[pid 30064] write(8, "\2\0\0\0\0\0\0\0", 8 <unfinished ...>
[pid 30058] clock_gettime(CLOCK_MONOTONIC, <unfinished ...>
[pid 30064] <... write resumed> ) = 8
Aha, got it. Go defaults GOPATH
to $HOME/go
when the variable is unset, but scoot requires explicit value there,
export GOPATH=/root/go
fixes my problem, scoot now starts up.
edit: but dies eventually with
INFO[0000] Serving GRPC CAS API on: 127.0.0.1:12100 sourceLine="cas/service.go:81"
INFO[0000] Serving http & stats on: localhost:11100 sourceLine="endpoints/endpoints.go:50"
INFO[0000] repo.Repository.Run, [rev-parse --show-toplevel] sourceLine="repo/repo.go:63"
INFO[0000] repo.Repository.Run complete. Err: <nil> sourceLine="repo/repo.go:72"
INFO[0000] git.NewRepository: /tmp/scoot-tmp-615000239/gitdb-repo-141061186, top: /tmp/scoot-tmp-615000239/gitdb-repo-141061186 sourceLine="repo/repo.go:132"
INFO[0010] Killing 1 cmds sourceLine="setup/cmds.go:75"
INFO[0010] SIGINT: 31727 /root/go/bin/apiserver sourceLine="setup/cmds.go:91"
INFO[0010] Cmd 31727 (/root/go/bin/apiserver) finished sourceLine="setup/cmds.go:149"
INFO[0010] All completed sourceLine="setup/cmds.go:100"
FATA[0010] port 11100 is not up after 5s sourceLine="setup-cloud-scoot/main.go:53"
exit status 1
but that is probably another issue.
thanks for the report! are you able to run the apiserver binary on its own?
Yes. I've reported the second issue, the broken port check, in https://github.com/twitter/scoot/issues/481. Turned out I did not have nc
installed.
Which file does not exist?
Are the command line options given with double dashes, or single dash. Instructions in readme show double dashes, here in --help output I see single dash.