CDN Edge cant connect to ORIGIN

nathvela

Member
I get the following error logs when i play the stream form my edge server:

17:13:11,756 ERROR CDNNodes - com.flashphoner.cdn.node.CDNNodes Failed to connect to node wcs1.icondat.com
17:13:12,792 INFO C - CDNOutbound-BOSS-pool-34-thread-1 Exception on channel [id: 0x0df79d3f]
17:13:12,792 ERROR CDNNodes - com.flashphoner.cdn.node.CDNNodes Failed to connect to node wcs1.icondat.com
17:13:13,828 INFO C - CDNOutbound-BOSS-pool-34-thread-1 Exception on channel [id: 0x60eb7ca8]
17:13:13,828 ERROR CDNNodes - com.flashphoner.cdn.node.CDNNodes Failed to connect to node wcs1.icondat.com
17:13:14,865 INFO C - CDNOutbound-BOSS-pool-34-thread-1 Exception on channel [id: 0x311444b2]
17:13:14,865 ERROR CDNNodes - com.flashphoner.cdn.node.CDNNodes Failed to connect to node wcs1.icondat.com


HERE are my flashphoner properties:
EDGE:
cdn_enabled=true
cdn_ip=wcs4.icondat.com
cdn_nodes_resolve_ip=true
cdn_point_of_entry=wcs1.icondat.com
cdn_role=edge

ORIGIN:
cdn_enabled=true
cdn_ip=wcs1.icondat.com
cdn_nodes_resolve_ip=true
cdn_role=origin

======
RUNNING show cdn-nodes in cli at EDGE gives me:
wcs1.icondat.com PASSIVE

RUNNING show cdn-nodes in cli at EDGE gives me: nothing

Thanks
 

AlanM

Member
Try this config. From our testing, we found the IP resolving never worked, and wasn't even needed.

Edge
Code:
cdn_enabled=true
cdn_ip=0.0.0.0
cdn_point_of_entry=origin-server.foobar.com
cdn_role=edge
Origin
Code:
cdn_enabled=true
cdn_ip=0.0.0.0
cdn_role=origin
 

Max

Administrator
Staff member
In case cdn_ip=<hostname>, the other nodes will be able to connect if the hostname resolves to the server public IP. That can be check using ping - ping <its own hostname> - on the server. If the hostname resolves to 127.0.0.1, edit /etc/hosts: remove lines resolving the hostname not to the public IP (both for IPv4 and IPv6).
 
Top