stf icon indicating copy to clipboard operation
stf copied to clipboard

stf provider as slave machine, cannot provide phones

Open dyxrdyxr opened this issue 9 years ago • 8 comments

I have two server, both mac mini. server A run stf local --public-ip x.x.x.x --allow-remote server B has 2 phones linked to it, and run stf provider --connect-sub tcp:// x.x.x.x:7250 --connect-push tcp:// x.x.x.x:7270 --storage-url http:// x.x.x.x:7100 --public-ip x.x.x.x --min-port=35000 --max-port=40000 --heartbeat-interval 20000 but B result is: INF/provider 10745 [] Subscribing to permanent channel "qnSu3UvKTmeZsyf9XXld5g==" INF/provider 10745 [] Sending output to "tcp://x.x.x.x:7270" INF/provider 10745 [] Receiving input from "tcp://x.x.x.x:7250" INF/provider 10745 [] Tracking devices INF/provider 10748 [] Found device "ENU7N15B12014604" (device) INF/provider 10748 [] Found device "69edb8c0" (device) INF/provider 10748 [*] Providing all 0 of 2 device(s); ignoring "ENU7N15B12014604", "69edb8c0"

why?

dyxrdyxr avatar Jun 20 '17 08:06 dyxrdyxr

Pretty sure it's unable to connect to your other server. After devices are found, a request is made to the other server which then needs to reply. If there's no response, it might look like that.

sorccu avatar Jun 20 '17 08:06 sorccu

so do you mean - tcp:// x.x.x.x:7250 or tcp:// x.x.x.x:7270 dosn't reply . should I appoint the sub/push port for server B

dyxrdyxr avatar Jun 20 '17 09:06 dyxrdyxr

It can be that the address is wrong, or that there's a firewall on the other machine. Unfortunately I have no time to help you with that, so please try to figure it out and post your solution once you find it.

sorccu avatar Jun 20 '17 09:06 sorccu

did u fix it ? can u tell the solution?

5pac avatar Dec 04 '18 08:12 5pac

can you tell me how to solution?help!

vip68 avatar Dec 14 '18 08:12 vip68

@vip68 @ysxAAA Refer to #989 , hope this would be helpful.

thinkhy avatar Dec 14 '18 08:12 thinkhy

@vip68 @ysxAAA Refer to #989 , hope this would be helpful.

This is not the same issue; the device IDs are unique.

LightAutumnMelancholy avatar May 07 '19 15:05 LightAutumnMelancholy

Pretty sure it's unable to connect to your other server. After devices are found, a request is made to the other server which then needs to reply. If there's no response, it might look like that.

This helped. I used netstat -atnp on the triproxy machines. I found that it was not listening on the ports specified in the docker compose file. I added network_mode: host and it worked.

rounakcodes avatar Apr 11 '21 11:04 rounakcodes