Closed dmgeurts closed 2 years ago
Setting the following in /etc/voipmonitor.conf appears to allow the service to not exit when started:
mysqlcompress_type = compression="zlib"
However, I am now left troubleshooting other issues like, and many others. The external database resides on a Galera cluster:
Feb 2 22:12:40 vmon02 voipmonitor[1325292]: query error in [CREATE TABLE IF NOT EXISTS `cdr_ua` (#011#011#011`id` int unsigned NOT NULL AUTO_INCREMENT,#011#011#011`ua` varchar(512
) DEFAULT NULL,#011#011PRIMARY KEY (`id`),#011#011UNIQUE KEY `ua` (`ua`)#011) ENGINE=InnoDB DEFAULT CHARSET=latin1...]: 1911 - Unknown option 'compression' Feb 2 22:12:40 vmon02 voipmonitor[1325292]: query error in [CREATE TABLE IF NOT EXISTS `cdr` (#011#011#011`ID` bigint unsigned NOT NULL AUTO_INCREMENT,#011#011#011`calldate` datet
ime NOT NULL,#011#011#011`callend` datetime NOT NULL,#011#011#011`duration` mediumint unsigned DEFAULT NULL,#011#011#011`conne...]: 1911 - Unknown option 'compression'
Feb 2 22:12:40 vmon02 voipmonitor[1325292]: query error in [show columns from cdr like 'sipcallerip']: 1146 - Table 'ipn_voipmonitor.cdr' doesn't exist Feb 2 22:12:40 vmon02 voipmonitor[1325292]: fetch row error in function mysql_use_result: 1146 - Table 'ipn_voipmonitor.cdr' doesn't exist
And then, one reads the comments in voipmonitor.conf properly and I find that the following line is the thing to use with mariadb 10.5 and voipmonitor stops throwing errors:
mysqlcompress_type = PAGE_COMPRESSED=1
I'm looking at running voipmonitor with an external database. How do I get past the following errors? It seems voipmonitor expects root-level access to the MySQL database which isn't compliant with our security standards.
The MySQL server already has these values set, so voipmonitor doesn't need to:
The simple (insecure) answer would be to grant global super privileges to the MySQL user, but this is insecure as it would give access to more than what is required for normal operation, and the values that voipmonitor tries to set are already present. Why does voipmonitor not check if the values are already set, I fail to see the point?