RestComm / Restcomm-Docker

Docker Image for RestComm at https://github.com/RestComm/RestComm-Connect
http://www.restcomm.com/
GNU Affero General Public License v3.0
14 stars 31 forks source link

Can't login to Olympus but the administration console is fine #117

Closed pouraghajanOldAcc closed 6 years ago

pouraghajanOldAcc commented 6 years ago

Hi,

I've gone through all the steps mentioned in RestComm Docker quick start guide at http://documentation.telestax.com/connect/configuration/docker/Restcomm%20-%20Docker%20Quick%20Start%20Guide.html but there is a problem I couldn't solve. After deploying the container using docker-composer up command the Olympus console gets open in the browser but I can't login. (at the same time the administration console at http://mylocalip:8443 is accessible and I can login to it using the default user/pass). Here is the output of ipconfig command on my Windows 10 command prompt: image

and this is the IP config I've put in docker-compose.yml file: RCBCONF_STATIC_ADDRESS: 192.168.1.8 # YOUR LOCAL IP ADDRESS GOES HERE.

BTW, consider below points in my case:

pouraghajanOldAcc commented 6 years ago

In addition to that, I'm getting below error in FireFox Web Developer console:

2017-25-12 12:09:35.362 ERROR Error: $scope.iceServers is undefined $scope.connect@https://192.168.1.8:8443/olympus/resources/js/controllers/sign-in.js:130:9 $parseFunctionCall@https://192.168.1.8:8443/olympus/lib/angular/angular.js:12336:15 callback@https://192.168.1.8:8443/olympus/lib/angular/angular.js:21422:17 $eval@https://192.168.1.8:8443/olympus/lib/angular/angular.js:14388:16 $apply@https://192.168.1.8:8443/olympus/lib/angular/angular.js:14487:18 ngEventHandler/<@https://192.168.1.8:8443/olympus/lib/angular/angular.js:21427:17 dispatch@https://192.168.1.8:8443/olympus/lib/jquery/dist/jquery.js:4429:15 add/elemData.handle@https://192.168.1.8:8443/olympus/lib/jquery/dist/jquery.js:4116:6

Stack trace: commonLog@https://192.168.1.8:8443/olympus/resources/js/mobicents-libs/WebRTComm.js:4872:10 console.error@https://192.168.1.8:8443/olympus/resources/js/mobicents-libs/WebRTComm.js:4945:4 consoleLog/<@https://192.168.1.8:8443/olympus/lib/angular/angular.js:11598:18 $ExceptionHandlerProvider/this.$get</<@https://192.168.1.8:8443/olympus/lib/angular/angular.js:8548:7 $apply@https://192.168.1.8:8443/olympus/lib/angular/angular.js:14489:11 ngEventHandler/<@https://192.168.1.8:8443/olympus/lib/angular/angular.js:21427:17 dispatch@https://192.168.1.8:8443/olympus/lib/jquery/dist/jquery.js:4429:15 add/elemData.handle@https://192.168.1.8:8443/olympus/lib/jquery/dist/jquery.js:4116:6

The same error in Chrome:

2017-25-12 12:00:36.868 ERROR TypeError: Cannot read property 'iceServers' of undefined at ChildScope.$scope.connect (http://192.168.1.8:8080/olympus/resources/js/controllers/sign-in.js:130:39) at $parseFunctionCall (http://192.168.1.8:8080/olympus/lib/angular/angular.js:12336:18) at callback (http://192.168.1.8:8080/olympus/lib/angular/angular.js:21422:17) at ChildScope.$eval (http://192.168.1.8:8080/olympus/lib/angular/angular.js:14388:28) at ChildScope.$apply (http://192.168.1.8:8080/olympus/lib/angular/angular.js:14487:23) at HTMLButtonElement. (http://192.168.1.8:8080/olympus/lib/angular/angular.js:21427:23) at HTMLButtonElement.dispatch (http://192.168.1.8:8080/olympus/lib/jquery/dist/jquery.js:4430:9) at HTMLButtonElement.elemData.handle (http://192.168.1.8:8080/olympus/lib/jquery/dist/jquery.js:4116:28)

Stack trace: at commonLog (http://192.168.1.8:8080/olympus/resources/js/mobicents-libs/WebRTComm.js:4872:10) at console.error (http://192.168.1.8:8080/olympus/resources/js/mobicents-libs/WebRTComm.js:4945:4) at Object.error (http://192.168.1.8:8080/olympus/lib/angular/angular.js:11598:24) at http://192.168.1.8:8080/olympus/lib/angular/angular.js:8548:18 at ChildScope.$apply (http://192.168.1.8:8080/olympus/lib/angular/angular.js:14489:11) at HTMLButtonElement. (http://192.168.1.8:8080/olympus/lib/angular/angular.js:21427:23) at HTMLButtonElement.dispatch (http://192.168.1.8:8080/olympus/lib/jquery/dist/jquery.js:4430:9) at HTMLButtonElement.elemData.handle (http://192.168.1.8:8080/olympus/lib/jquery/dist/jquery.js:4116:28)

Also pausing the script at the point on which the exception has been thrown, in Chrome developer console, I've found below error (hope it could help):

image

pouraghajanOldAcc commented 6 years ago

Figured it out, I have ran the ResComm on a virtual machine while my host OS wasn't connected to Internet (didn't have full access as a matter of fact ;) ). It seems during the startup, RestComm does some transactions with external services over the Internet (Don't know why, btw)!! As soon as I connected my host OS to the Internet, problem solved.

gsaslis commented 6 years ago

Thanks for reporting back @pouraghajan !

Yes, I can confirm internet connectivity is required, both for some tools which are used at first run, but also for some runtime dependencies. For anyone else who comes across this, please ensure you have a working internet connection