How to repair your CDR

Sysmpton:

There is no results find in CDR and recordings or you may get a 502 bad gateway when downloading CDR.

 

Solution:

Repair your database. Detail steps are below:

Step 1 Login in the Putty

You could find the account and password through the path in your S-series PBX: System>Security>Service>Enable SSH

If you have any question about how to login the SSH, please check the below guide:

https://support.yeastar.com/hc/en-us/articles/225066728-How-to-Login-the-SSH-of-Yeastar-MyPBX

Step 2 Download the program to your PBX

1) Get into the directory:

Input the command: cd /ysdisk/support/tmp

企业微信截图_16890542016660[1].png

2) Download the program to your PBX:

Method a.

Input the command below:

wget http://update-ys2015-alicloud.oss-cn-hongkong.aliyuncs.com/YeastarSupport/mysqlrepairer

企业微信截图_16890539569700[1].png

Method b.

If you meet the issue like below, it may due to the unstable Network or other reasons:

  • You could click this link to download the program and move it to PBX by FTP mothod:

http://update-ys2015-alicloud.oss-cn-hongkong.aliyuncs.com/YeastarSupport/mysqlrepairer

Notice: The file should be drag to the path that in the red frame. 

Step 3: Execute script

1) Input the command: vi /ysdisk/support/rc_app.sh

企业微信截图_16890546847466[1].png

2) After that, press 'i' into the mode of edit.

Press the arrow key arbitrarily, input the content below the

#!/bin/sh
#this script will be execd before syscore boot command

sleep 10
chmod 777 /ysdisk/support/tmp/mysqlrepairer
/ysdisk/support/tmp/mysqlrepairer 1

企业微信截图_16910435239917.png

3) Press the 'Esc' button, input the command:  :wq

企业微信截图_16910435625955.png

6) Press the 'Enter' button.

Step 4: Reboot your PBX and check your CDR if repair successful

 

 

 

 

 

 

 

 

 

 

Have more questions? Submit a request

1 Comments

  • 0
    Avatar

    Hi Guys

    I've tried the SSH route but get Failed: Connection Refused when using the wget command.

     

Please sign in to leave a comment.