First, make sure that you have a connection to the cloud, run the command iotkit-admin test. Check what version you have installed with iotkit-admin –V and notice in https://github.com/enableiot/iotkit-agent that there are several new features related to proxies for different versions. Upgrade if needed following the steps of section 3. Once you’ve upgraded, try to reset the proxy in case there’s a misconfiguration issue with iotkit-admin reset-proxy. Then, try to configure the proxy once again.
Let us know your results.
I have the same problem!!
2016-04-20T16:31:59.922Z - info: Trying to connect to host ...
2016-04-20T16:32:22.821Z - error: Data Submission Error code=ESRCH, errno=ESRCH, syscall=getaddrinfo
2016-04-20T16:32:22.885Z - error: Connection failed to dashboard.us.enableiot.com
I type iotkit-admin –V then it shown that my version was 1.7.0
I though this problem was about my internet connection because I did this on my school lab. But I can't figure it out because I still connected to internet and can run the Web client on Example sketch.
But I found that my computer cannot ping Google.com while still connected to internet.
If you’re not able to ping google from your computer you might have a firewall blocking your requests. Make sure you’re not being blocked by a firewall and that you have all proxy settings set correctly, as explained in the post above.
My agent version was 1.7.0 before updating and after updating (using command: npm update -g iotkit-agent), it is same. Do I need to run this command:
iotkit-admin set-data-directory <data_directory> ?
And if yes then how to find the data directory?
I tried to connect my board with my home network, still the error is there.
In my work network I am trying to connect behind proxy server using commands:
1. iotkit-admin proxy http://172.16.80.90 8080
Please let me know the correct command for connecting behind the proxy.....
Thanks in anticipation
According to https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0ahUKEwiDxbeMnLLMAhUM3WMKHUJGCIkQFggvMAI&url=https%3A%2F%2Fraw.githubusercontent.com%2Fwiki%2Fenableiot%2Fiotkit-agent%2FIoT_Developer_Kit_Guide_to_Using_Intel_Cloud_Analytics.pdf&usg=AFQjCNEDTsIt5FseFTJ0peU_YuWt1NPQWg&sig2=D2dYaaqGJhlenT82LVS6oA&cad=rja
If you are attempting the connection from behind a firewall with a proxy server, add the proxy
server to the iotkit-admin configuration:
iotkit-admin.js proxy http://proxy.company.com 8080