RestComm Docker - Visual Designer

33 views
Skip to first unread message

Ibrahima Gaye

unread,
Feb 17, 2016, 11:55:41 AM2/17/16
to restcomm, mobicent...@googlegroups.com
Hello,
any change on the visual designer ??
I can login to the administration interface
but can't connect to the Visuaal Designer interface ??

I created new account but same for the new account.

Where can i see/find the logs for the DB queries/replies ?

Best regards

------

Ibrahima GAYE,
Senior Project Management support
mob:

     +223  9  117 1464

     +221 77 564 9358 

My profiles: LinkedIn Skype:ibgayel

If you received this email in error, please notify us immediately by sending an e-mail or by calling.

 

 

Guilherme Humberto Jansen

unread,
Feb 19, 2016, 9:04:16 AM2/19/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

In order to have a better idea on the problem please provide  the "docker run" command you are using.
Usually (we advice), but depends on the RUN command you are using, to use as  logs location the host directory /var/log/restcomm/restcomm_core.
If possible, check in the Console of the browser (usually the "Inspector" under developer options menu) if there is error messages or something there that can be useful to troubleshoot.

Also, to help understand better the problem, could you please confirm if you are not able to access RVD using the URL (like http://localhost:8080/restcomm-rvd) or if you are accessing, but the login at this page is failing?

Thank you!
Gui.

Ibrahima Gaye

unread,
Feb 19, 2016, 9:39:13 AM2/19/16
to restcomm, mobicent...@googlegroups.com
Hi Gui,
Thanks for your reply.

I used:

 "docker run  -i -d --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS="YOUR_ETHERNET_IP" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 85:80 -p 445:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:latest"

i can access the dashboard and login without problem
but when i enter the same user/pwd (as dashboard user/pwd) for the RVD i have "/restcomm-rvd/services/auth/login 500 (Internal Server Error)" "error logging in" 
in the "inspector.

In the /var/log/restcomm/restcomm_core
i just see that the authentication has failed.

--
You received this message because you are subscribed to the Google Groups "restcomm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to restcomm+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ibrahima Gaye

unread,
Feb 22, 2016, 6:58:42 AM2/22/16
to restcomm, mobicent...@googlegroups.com
Still can't login in RVD,
if someone have any hints:
on web developer of chrome i have :
Inline image 1
On log i have : 
11:38:30,700 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9522) ==> Parameters: 
11:38:54,149 DEBUG [org.mobicents.servlet.restcomm.rvd.security.AuthenticationService] (http-/172.17.0.3:443-2) Authenticating myemail...@gmail.com on Restcomm
11:39:30,600 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@5c3086e5]
11:39:30,600 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ==>  Preparing: SELECT * FROM "restcomm_registrations"; 
11:39:30,601 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ==> Parameters: 
11:39:30,602 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@623e9449]
11:39:30,602 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ==>  Preparing: SELECT * FROM "restcomm_registrations"; 
11:39:30,602 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9523) ==> Parameters: 
11:39:30,799 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9523) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@5c3086e5]
11:39:30,799 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9523) ==>  Preparing: SELECT * FROM "restcomm_gateways"; 
11:39:30,800 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9523) ==> Parameters: 
11:40:30,700 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@623e9449]
11:40:30,701 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ==>  Preparing: SELECT * FROM "restcomm_registrations"; 
11:40:30,702 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ==> Parameters: 
11:40:30,702 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@5c3086e5]
11:40:30,702 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ==>  Preparing: SELECT * FROM "restcomm_registrations"; 
11:40:30,703 DEBUG [org.mobicents.servlet.sip.restcomm.dao.RegistrationsDao.getRegistrations] (RestComm-akka.actor.default-dispatcher-9524) ==> Parameters: 
11:40:30,899 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9524) ooo Using Connection [org.hsqldb.jdbc.JDBCConnection@623e9449]
11:40:30,899 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9524) ==>  Preparing: SELECT * FROM "restcomm_gateways"; 
11:40:30,900 DEBUG [org.mobicents.servlet.sip.restcomm.dao.GatewaysDao.getGateways] (RestComm-akka.actor.default-dispatcher-9524) ==> Parameters: 

Guilherme Humberto Jansen

unread,
Feb 22, 2016, 11:46:23 AM2/22/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

Thank you for the browser and RestComm logs. Please, could you also send us the log from Docker after execute the RUN command?
To retrieve the logs execute the following command replacing "container_id" by the id of RestComm container:

docker logs container_id

The result of this command will provide the required logs.

Thanks,
Gui.

Ibrahima Gaye

unread,
Feb 22, 2016, 12:37:54 PM2/22/16
to restcomm, mobicent...@googlegroups.com
Yes!
Thank you very much, that's the kind of information (
docker logs container_id) i was looking for;
Now i can see the detailled logs; i will try to find the problem myself 
if i fail i will ask for help ;)

------

Ibrahima Gaye

unread,
Feb 22, 2016, 12:58:40 PM2/22/16
to restcomm, mobicent...@googlegroups.com
Hi
the problem is :
- I'm trying to connect via HTTPS but internally restcomm is seing it as plaintext connection:
[ Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671) [jsse.jar:1.7.0_80]
at sun.security.ssl.InputRecord.read(InputRecord.java:504) [jsse.jar:1.7.0_80]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934) [jsse.jar:1.7.0_80]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) [jsse.jar:1.7.0_80]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) [jsse.jar:1.7.0_80]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) [jsse.jar:1.7.0_80]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
 ]
- If i try to connect via HTTP it's rejected because this parameter [-p 445:443] of the launcher is for HTTPS

- It seems that this part [-p 85:80] (for HTTP) is not working because the port_80 is not openned on restcomm server (docker). I can see in the logs that [DISABLE_HTTP is 'true'. Will disable HTTP Connector]. Is it Possible to enable it through the run command ?

But the login (with HTTPS) on the Dashboard is working fine.

Best regards,

Guilherme Humberto Jansen

unread,
Feb 23, 2016, 7:27:26 AM2/23/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

The situation that you reported here represents an issue and must be adjusted. Can you open an issue on https://github.com/RestComm/Restcomm-Docker ?
For now, to workaround this issue you can keep using the mapping -p 443:443 (like in the original Docker RUN command) instead of -p 445:443.

Please, try again following this suggestion and post your results here.

Thank you,
Gui.

Ibrahima Gaye

unread,
Feb 23, 2016, 7:38:31 AM2/23/16
to restcomm, mobicent...@googlegroups.com
​Hi Gui,
Ok i will open the issue;

Is it possible to re-Run with -p 443:443
​without deleting the container and recreating it ?

Best regards,​


On Tue, Feb 23, 2016 at 12:27 PM, Guilherme Humberto Jansen <guilherm...@telestax.com> wrote:
-p 443:443

Guilherme Humberto Jansen

unread,
Feb 23, 2016, 8:08:43 AM2/23/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

No its not possible. You will need to:
1 - stop the current container (docker stop container_ID);
2 - remove the current container (docker rm container_ID);
3 - run docker again using the command bellow:

docker run  -i -d --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS="YOUR_ETHERNET_IP" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 85:80 -p 443:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:latest

Gui.

Ibrahima Gaye

unread,
Feb 23, 2016, 8:58:02 AM2/23/16
to restcomm, mobicent...@googlegroups.com
Ok i Confirm using -p 443:443 fix the login issue ... 
but i need to use another port because my 443 port is already used.

Best regards,

Guilherme Humberto Jansen

unread,
Feb 23, 2016, 9:14:18 AM2/23/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

Great, thank you for confirming. :)
Please, can you proceed creating a new issue on https://github.com/RestComm/Restcomm-Docker ? I'll keep you informed about the news related to this issue.

Thanks,
Gui.

Ibrahima Gaye

unread,
Feb 23, 2016, 9:23:08 AM2/23/16
to restcomm, mobicent...@googlegroups.com
​Is there any workaround in meantime ?​

Guilherme Humberto Jansen

unread,
Feb 23, 2016, 11:37:17 AM2/23/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

Actually, the adjustment is ready. :)
With the new flag -e RVD_PORT in Docker RUN command you will be able to specify a different secure port and use RVD normally.

IMPORTANT: the value of the new flag -e RVD_PORT must me the same as specified with the parameter -p X:Y. 
e.g. If you want to use the secure port 445 instead of 443, you need to specify -e RVD_PORT="445" and -p 445:443.

To be able to use this new configuration, please, pull the latest RestComm using Docker and then use the following RUN command:

docker run  -i -t --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS="192.168.1.168" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh"  -e RVD_PORT="555"  -p 555:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:latest

Please, let me know if you have success.

Thanks,
Gui.

Ibrahima Gaye

unread,
Feb 23, 2016, 12:40:25 PM2/23/16
to restcomm, mobicent...@googlegroups.com
Great !
It works fine!

Guilherme Humberto Jansen

unread,
Mar 1, 2016, 1:57:45 PM3/1/16
to restcomm, mobicent...@googlegroups.com
Hi Ibrahima,

Please, you can ignore the last two messages. They were part of some old pool of messages. :)

Thanks,
Gui.

On Tuesday, March 1, 2016 at 2:26:34 PM UTC-3, elefther...@telestax.com wrote:
Hi Ibrahima,

Can you please provide with the necessary logs:

We need the initialization docker logs. You can generate it by running "docker logs container_id", after you run the container.

As well please provide with any RestComm logs related to the issue. Need to see an error related to the problem you have at : 
"/var/log/restcomm/restcomm_core/restcommCore-server.log"

BR.

Ibrahima Gaye

unread,
Mar 1, 2016, 3:05:54 PM3/1/16
to restcomm, mobicent...@googlegroups.com
Oh ok ;)

--
Reply all
Reply to author
Forward
0 new messages