Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2.0
-
Component/s: None
-
Labels:None
-
Environment:CentOS 6 - Fresh Install
Just installed via instructions at http://wiki.freeswitch.org/wiki/Installation_Guide#CentOS
Running in VMware 5 esxi virtual machine
-
Platform:Linux x86_64/gcc
-
Uname:Linux 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
-
CPU Info:
-
FreeSWITCH GIT Revision:NA
-
Reproduced with GIT HEAD?:NA
Description
After fresh install of CentOS 6 and following installation instructions at http://wiki.freeswitch.org/wiki/Installation_Guide#CentOS
I installed by the commands:
rpm -Uvh http://files.freeswitch.org/yum/freeswitch-release-1-0.noarch.rpm
yum install freeswitch-config-vanilla
--
It started as root, but not as the freeswitch user. Upon starting freeswitch as the user freeswitch the following errors occured:
2012-05-09 15:51:35.150104 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
2012-05-09 15:51:35.150133 [ERR] switch_core_sqldb.c:695 SQL ERR [attempt to write a readonly database]
2012-05-09 15:51:35.249263 [CRIT] switch_core_sqldb.c:1076 SQL thread unable to commit transaction, records lost!
2012-05-09 15:51:35.250388 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
2012-05-09 15:51:35.250438 [ERR] switch_core_sqldb.c:695 SQL ERR [attempt to write a readonly database]
2012-05-09 15:51:35.350761 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
------------------------------
I fixed this by running:
chown -R freeswitch:daemon /var/lib/freeswitch/
I installed by the commands:
rpm -Uvh http://files.freeswitch.org/yum/freeswitch-release-1-0.noarch.rpm
yum install freeswitch-config-vanilla
--
It started as root, but not as the freeswitch user. Upon starting freeswitch as the user freeswitch the following errors occured:
2012-05-09 15:51:35.150104 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
2012-05-09 15:51:35.150133 [ERR] switch_core_sqldb.c:695 SQL ERR [attempt to write a readonly database]
2012-05-09 15:51:35.249263 [CRIT] switch_core_sqldb.c:1076 SQL thread unable to commit transaction, records lost!
2012-05-09 15:51:35.250388 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
2012-05-09 15:51:35.250438 [ERR] switch_core_sqldb.c:695 SQL ERR [attempt to write a readonly database]
2012-05-09 15:51:35.350761 [ERR] switch_core_sqldb.c:481 SQL ERR [attempt to write a readonly database]
insert into complete values (0,'hash', 'insert', '', '', '', '', '', '', '', '', 'freeswitch-test.rokacom.roka.sec')
------------------------------
I fixed this by running:
chown -R freeswitch:daemon /var/lib/freeswitch/
update freeswitch.spec file to account for /var/lib/freeswitch to get proper perms