-OPENVIDU CDRs not getting generated

31 views
Skip to first unread message

idea...@gmail.com

unread,
Dec 28, 2019, 1:19:27 PM12/28/19
to OpenVidu
HI

I have created application.properties file in "/opt/openvidu/application.properties" with below configuration

openvidu.cdr=true
openvidu.secret=MY_SECRET
openvidu.recording=true
openvidu.recording.path=/opt/openvidu/recordings


i have set JAVA_HOME as  /usr/lib/jvm/java-8-openjdk-amd64  in /etc/profile

But i am not able to see any openvidu CDRs.  As per the documentation  "The CDR file will be located under log/ folder in the same path as your Java executable."
I am assuming that OPENVIDU will create the folder "logs"  in the Java Executable path and start generating CDRs there.  

But please correct me if i have to keep the folder "log"  created ( some thing like.../usr/lib/jvm/java-8-openjdk-amd64/log) for Openvidu to generate CDRs.


Thanks in advane
Ias

Micael Gallego

unread,
Dec 29, 2019, 12:52:33 PM12/29/19
to idea...@gmail.com, OpenVidu
Hello Ias, 

log folder is supposed to be created in the working directory of OpenVidu Server. Documentation can be a bit confusing. 

Where do you have your .jar located? Which is the working directory when you execute the command "java -jar ..." ?

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/8191e3ba-dd10-4a4d-a7bb-e26eb0388889%40googlegroups.com.

Sai M

unread,
Dec 29, 2019, 1:07:24 PM12/29/19
to Micael Gallego, OpenVidu
Hi Micael
I have OV installed on Ubuntu Xenial on Google Cloud Compute Engine VM. 

When open SSH shell of the VM, by default I am in the my login home directory which is something like... "home /login Id".  So this is the directory from where I launch OV with the usual command like... "java - D......-D.....open Vidu v2. 11. 0".

So are you saying I should create "log" folder under the default home directory when I connected to SSH? Something like... "hime/login id/log" so that OV can create CDR events?. 

Also another related question is, at present we are running OV on our GCP VM by manually SSH into the VM from my laptop which means we have to keep my laptop ON to keep OV running in VM. 

But how can we keep the OV running on the GCP VM without having dependency on our laptop to start the OV through SSH please? 


Thanks 
Ias 

Micael Gallego

unread,
Dec 29, 2019, 1:16:50 PM12/29/19
to Sai M, OpenVidu
Please find my comments below

On Sun, Dec 29, 2019 at 7:07 PM Sai M <idea...@gmail.com> wrote:
Hi Micael
I have OV installed on Ubuntu Xenial on Google Cloud Compute Engine VM. 

When open SSH shell of the VM, by default I am in the my login home directory which is something like... "home /login Id".  So this is the directory from where I launch OV with the usual command like... "java - D......-D.....open Vidu v2. 11. 0".

So are you saying I should create "log" folder under the default home directory when I connected to SSH? Something like... "hime/login id/log" so that OV can create CDR events?. 

Yes, I think so. 

Also another related question is, at present we are running OV on our GCP VM by manually SSH into the VM from my laptop which means we have to keep my laptop ON to keep OV running in VM. 

But how can we keep the OV running on the GCP VM without having dependency on our laptop to start the OV through SSH please? 

Sai M

unread,
Dec 29, 2019, 1:30:40 PM12/29/19
to Micael Gallego, OpenVidu
Thanks a lot for your quick response Micael, that too on Sunday. Truly appreciate your support.

Cheers 
Ias 

Micael Gallego

unread,
Dec 29, 2019, 1:33:12 PM12/29/19
to Sai M, OpenVidu
You are welcome. 

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead

Message has been deleted

idea...@gmail.com

unread,
Dec 30, 2019, 5:10:03 AM12/30/19
to OpenVidu
HI Micael,

We have tried by creating a "log" directory under the user's default home directory in the SSH.
So it is like  /home/userid/log

After that we have run few WebRTC calls and below is the configuration we have in  "application.properties" file under /opt/openvidu/ folder.

openvidu.cdr=true 
openvidu.secret=MY_SECRET 
openvidu.recording=true 
openvidu.recording.path=/opt/openvidu/recordings 
openvidu.recording.public-access=true

But we are not able to see any CDRs generated in /home/userid/log.  Can you please suggest where are we going wrong.?

Just to confirm below is our current env variable JAVA_HOME set

userid@ov-rec-cdr-instance-1:~$ echo $JAVA_HOME 
/usr/lib/jvm/java-8-openjdk-amd64

thaks
Ias
Ias 



Thanks 
Ias 

To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Pablo

unread,
Jan 2, 2020, 7:09:50 AM1/2/20
to OpenVidu
Hi,

First of all, please check OpenVidu Server logs to see if openvidu.cdr property is actually true. You should see a line stating this: [INFO] 2020-01-02 13:04:20,678 [main] io.openvidu.server.OpenViduServer (cdr) - OpenVidu CDR service is enabled

OpenVidu Server JAR executable will automatically create "log" folder for you, so make sure the JAR has write properties over its path. And inside that folder, CDR files will be created (one for each execution of the JAR file). So the final look after launching OpenVidu Server with option openvidu.cdr=true must be something like this:

Selection_327.png


And inside log folder you will find CDR files:


Selection_328.png



Reply all
Reply to author
Forward
0 new messages