SOLVED SQL ERR in new installation

Status
Not open for further replies.

Saif

New Member
Jun 11, 2017
19
1
3
40
Hi all i just having below issue with my newly installed FusionPBX on debian 8, but fusionpbx is working. Dose anyone have any idea what this issue for? and how can i resolve this?

I get below error continuously in my log viwer:

2018-05-21 18:15:45.010706 [ERR] switch_core_sqldb.c:1197 SQL ERR: [select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name,network_ip, network_port,0,sip_realm from sip_registrations where expires > 0 and expires <= 1526904945] database disk image is malformed
2018-05-21 18:16:15.050705 [ERR] switch_core_sqldb.c:1197 SQL ERR: [select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name,network_ip, network_port,0,sip_realm from sip_registrations where expires > 0 and expires <= 1526904975] database disk image is malformed
2018-05-21 18:16:45.090713 [ERR] switch_core_sqldb.c:1197 SQL ERR: [select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name,network_ip, network_port,0,sip_realm from sip_registrations where expires > 0 and expires <= 1526905005] database disk image is malformed
2018-05-21 18:17:15.130705 [ERR] switch_core_sqldb.c:1197 SQL ERR: [select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name,network_ip, network_port,0,sip_realm from sip_registrations where expires > 0 and expires <= 1526905035] database disk image is malformed
2018-05-21 18:17:45.170705 [ERR] switch_core_sqldb.c:1197 SQL ERR: [select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name,network_ip, network_port,0,sip_realm from sip_registrations where expires > 0 and expires <= 1526905065] database disk image is malformed
 
Are you using the default sqlite or postgres for internal db? How was this installed?

Check the permissions of /var/lib/freeswitch/db folder. If that looks ok you can delete everything in there and restart freeswitch. It will recreate all the sqlite db files if the folder permission is ok.
 
Last edited:
  • Like
Reactions: Saif
Hi Smn,

Thanks for your reply. i did install with regular FusionPBX installation script. After your guideline i did as you said and that works. Thanks again. :D
 
Status
Not open for further replies.