burak guder
Member
I changed the port so it doesn't conflict with other apps but it doesn't work on demo license.
Flashphoner conf :
Error Log
Flashphoner conf :
Code:
# Config flashphoner.properties
# To get more settings:
# ssh -p 2001 admin@localhost
# default password: admin
# show node-settings
# show node-settings | grep port
#server ip
ip =xxxxxxxxxx
ip_local =xxxxxxxxxx
#webrtc ports range
media_port_from =55540
media_port_to =65535
#codecs
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv
codecs_exclude_sip =mpeg4-generic,flv,mpv
codecs_exclude_streaming =flv,telephone-event
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv
#websocket ports
ws.port =9080
wss.port =9443
rtp_force_synchronization=true
disable_manager_rmi=false
#disable_rest_auth=false
disable_drop_aac_frame=true
rest_access_control_allow_origin=*
rest_access_control_allow_headers=content-type,x-requested-with
rest_access_control_allow_methods=POST
rtp_receive_buffer_size=131072
rtp_send_buffer_size =131072
rest_max_connections=3000
http.port=8082
https.port=9444
Error Log
Code:
00:49:04,624 INFO WSServerHandler - WSS-pool-23-thread-2 Orgign: https://blabla.com:9444
00:49:04,804 INFO RestClient - API-ASYNC-pool-13-thread-4 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/connect
OBJECT:
{
"nodeId" : "ForqNWGuvDHKe166N4biTbb1F2C264jZ@135.181.61.179",
"appKey" : "defaultApp",
"sessionId" : "/178.233.144.171:57134/135.181.61.179:9443-7d15aeb0-829e-4569-8001-334ca3fa7ae0",
"useWsTunnel" : false,
"useWsTunnelPacketization2" : false,
"msePacketizationVersion" : 2,
"useBase64BinaryEncoding" : false,
"mediaProviders" : [ "WebRTC" ],
"clientVersion" : "2.0.168",
"clientOSVersion" : "5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
"clientBrowserVersion" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
"keepAlive" : false,
"origin" : "https://blabla:9444"
}
00:49:04,805 ERROR RestClient - API-ASYNC-pool-13-thread-4 Got exception in REST
org.apache.http.conn.HttpHostConnectException: Connect to localhost:8081 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at com.flashphoner.rest.client.RestClient.postForObject(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.processDataObject(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.lambda$queryApiAsync$0(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
... 17 more
00:49:04,805 WARN ManagerApiConnection - API-ASYNC-pool-13-thread-4 Failed to get object from REST with exception:Connect to localhost:8081 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
00:49:04,807 INFO RestClient - API-ASYNC-pool-13-thread-5 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/ConnectionStatusEvent
OBJECT:
{
"nodeId" : "ForqNWGuvDHKe166N4biTbb1F2C264jZ@135.181.61.179",
"appKey" : "defaultApp",
"sessionId" : "/178.233.144.171:57134/135.181.61.179:9443-7d15aeb0-829e-4569-8001-334ca3fa7ae0",
"status" : "FAILED",
"info" : "com.flashphoner.server.commons.filter.RemoteFilterException: Connect to localhost:8081 [localhost/127.0.0.1] failed: Connection refused (Connection refused)"
}
00:49:04,809 ERROR RestClient - API-ASYNC-pool-13-thread-5 Got exception in REST
org.apache.http.conn.HttpHostConnectException: Connect to localhost:8081 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at com.flashphoner.rest.client.RestClient.postForObject(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.processDataObject(Unknown Source)
at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
at com.flashphoner.server.client.handler.HandlerUtils.processRestException(Unknown Source)
at com.flashphoner.server.client.handler.HandlerUtils.lambda$processThroughREST$0(Unknown Source)
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
... 20 more
00:49:04,810 WARN ManagerApiConnection - API-ASYNC-pool-13-thread-5 Failed to get object from REST with exception:Connect to localhost:8081 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
00:49:04,810 INFO ManagerApiConnection - API-ASYNC-pool-13-thread-5 Method error policy is LOG, return same object to client
00:49:04,812 INFO WSClient - API-ASYNC-pool-13-thread-5 Close connection for channel [id: 0x48154ba4, /178.233.144.171:57134 => /135.181.61.179:9443] with status code: 1000 ; reason: Disconnected by error on REST method /connect
00:49:06,700 INFO WSClients - WSClientsKeepaliveThread-89 Remove client with closed channel [id: 0x48154ba4, /178.233.144.171:57134 :> /135.181.61.179:9443]
00:49:06,701 INFO WSClient - WSClientsKeepaliveThread-89 Close connection for channel [id: 0x48154ba4, /178.233.144.171:57134 :> /135.181.61.179:9443] with status code: 1000 ; reason: Disconnected by closed channel