EricssonResearch / calvin-base

Calvin is an application environment that lets things talk to things, among other things.
Apache License 2.0
282 stars 91 forks source link

cscontrol connection refused (err:111) distributed environment #111

Closed ShivJindal closed 5 years ago

ShivJindal commented 5 years ago

I tried to connect to distributed environment using separate JSON file but failed everytime when pass name as attribute which i stored in requirements file. Neither csruntime nor cscontrol working for me if i try to use json file. Please guide me how to do that exactly may be i am missing something?

olaan commented 5 years ago

Could you give a bit more information on this?

How have you set up the environment, and what does the JSON look like?

ShivJindal commented 5 years ago

Hi Ola,

I am following the mini tutorial of “Hello World” so my content of json file is exactly the one of “hello.deployjson”.

For setup, I followed these instructions. https://github.com/EricssonResearch/calvin-base/wiki/Installation

When I am doing csruntime by using requirements file it shows delay and failed to connect.

In case of cscontrol , shows err111 httpconnectionpool max retries exceeded cscontrol http://192.168.2.3:5001 deploy --reqs hello.deployjson hello.calvin

Regards, Shivani

olaan commented 5 years ago

I see you are using the IP address used in the example. Is that really the IP of your machine, or did you forget to replace it with the one you use?

ShivJindal commented 5 years ago

I got this working !!!

Hi I am using my machine’s IP address only i.e. the one of my VM while calling two different runtimes. But forgot to do, in case of cscontrol and mentioned localhost instead.

Putting address of VM at all three positions, brings it up.

olaan commented 5 years ago

Glad to hear it!

Closing this as resolved. Cheers.