Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Connection refused when running make test #25

Open
etsangsplk opened this issue Sep 29, 2019 · 6 comments
Open

Connection refused when running make test #25

etsangsplk opened this issue Sep 29, 2019 · 6 comments

Comments

@etsangsplk
Copy link

etsangsplk commented Sep 29, 2019

src/github.com/oracle/speedle/setTestEnv.sh: connect: Connection refused
dev/src/github.com/oracle/speedle/setTestEnv.sh: line 80: /dev/tcp/localhost/6733: Connection refused

Does the script spin up the sever or not?
If not, can you enhance the script to do so?

@caiwl
Copy link
Contributor

caiwl commented Sep 30, 2019

@etsangsplk I guess you ran it on mac. can you please confirm?

@etsangsplk
Copy link
Author

@caiwl yes. on mac

@caiwl
Copy link
Contributor

caiwl commented Oct 1, 2019

thanks @etsangsplk for the confirmation.

@ahrtr @bill828 do you recall below logic in setTestEnv.sh?

100 if [ uname -s == "Darwin" ] ; then
101 alias pms=${GOPATH}/bin/speedle-pms-mac
102 alias ads=${GOPATH}/bin/speedle-ads-mac
103 else
104 alias pms=${GOPATH}/bin/speedle-pms
105 alias ads=${GOPATH}/bin/speedle-ads
106 fi

@ahrtr
Copy link

ahrtr commented Oct 1, 2019

@ahrtr @bill828 do you recall below logic in setTestEnv.sh?

100 if [ uname -s == "Darwin" ] ; then
101 alias pms=${GOPATH}/bin/speedle-pms-mac
102 alias ads=${GOPATH}/bin/speedle-ads-mac
103 else
104 alias pms=${GOPATH}/bin/speedle-pms
105 alias ads=${GOPATH}/bin/speedle-ads
106 fi

It just sets an alias for pms/ads on Mac/Linux respectively. "Darwin" means MacOS. Afterwards, we can just invoke "pms" or "ads" directly, no matter which OS it's.

It seems that the PMS did not get started for some reasons.

@etsangsplk Can you please provide the exact test steps to reproduce this issue, and the output logs?

@ahrtr
Copy link

ahrtr commented Oct 1, 2019

I just tried to build Speedle on my Mac, and it generated speedle-pms and speedle-ads. @caiwl So the logic you pasted isn't correct any more.

@etsangsplk FYI. https://speedle.io/quick-start/

@etsangsplk
Copy link
Author

etsangsplk commented Oct 1, 2019

@ahrtr and others
There is a PR to make this at least run in mac. But the etcd is not gracefully shutdown between tests
for example:
make testSpeedleRestADSCheck:

new embedded Etcd store: embeddedEtcdDataDir = "./speedle.etcd", etcdEndpoint = "localhost:2379", keyPrefix = "/opss_ps/"
ERRO[0000] listen tcp 127.0.0.1:2380: bind: address already in use
FATA[0000] SPDL-1001 failed to start embedded etcd server: listen tcp 127.0.0.1:2380: bind: address already in use

  • shift
  • (( i = 0 ))
  • (( i < 60 ))

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

No branches or pull requests

3 participants