licode icon indicating copy to clipboard operation
licode copied to clipboard

Does not connect to Socket.io

Open prospdragon opened this issue 12 years ago • 1 comments

I installed licode as installation guide. It seems there are no problems while install it. For test licode, I run ; ./licode/scripts/initLicode.sh ./licode/scripts/initBasicExample.sh

And I browse in Chrome <server_ip>:3001. Then it show my local camera. But I found error occur in console as below;

eyJ0b2tlbklkIjoiNTQ2YjEwNTlmYTIwOWM2NjcyZmQ0NWVlIiwiaG9zdCI6IjE2Mi4yNTQuMTQ5LjEwNzo4MDgwIiwic2VjdXJlIjpmYWxzZSwic2lnbmF0dXJlIjoiTVdSak4yTTBOakU0TldJMk56aGpOVGc0TVdGaU5EQTRORFZtWlRabFlqZGtNelZqT0RZek5RPT0ifQ== script.js:55 DEBUG: Requested access to local media erizo.js:155 DEBUG: Object {video: Object, audio: true, fake: undefined, screen: "", extensionId: undefined} erizo.js:155 INFO: User has granted access to local media. erizo.js:155 DEBUG: Event: access-accepted erizo.js:155 Object {tokenId: "546b1059fa209c6672fd45ee", host: "<server_ip>:8080", secure: false, signature: "MWRjN2M0NjE4NWI2NzhjNTg4MWFiNDA4NDVmZTZlYjdkMzVjODYzNQ=="} erizo.js:139 DEBUG: Creating URL from stream [object MediaStream] erizo.js:155 The 'overflowchanged' event is deprecated and may be removed. Please do not use it. erizo.js:165 XMLHttpRequest cannot load http://<server_ip>:8080/socket.io/1/?t=1416302681229. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<server_ip>:3001' is therefore not allowed access. The response had HTTP status code 404. <server_ip>/:1

For remove this, I have installed licode 10 times more. But still I face this issue.

prospdragon avatar Nov 18 '14 09:11 prospdragon

I found 8080 port is used by apache-tomcat. And socket.io of licode use this port. So I killed process of apache-tomcat, then licode work well.

prospdragon avatar Nov 18 '14 16:11 prospdragon