QueueMetrics forum
QueueMetrics => QueueMetrics installation => Topic started by: torontob on July 29, 2011, 05:47:57
-
Hello,
I installed QM latest 1.7.1.0 using Espresso for PiaF but I am seeing a few troubles.
1- When trying to do:
service queuemetrics restart
The service doesn't seem to be able to stop but it moves on once I press CTRL+C and then everything is good. This is what I see:
root@pbx:~ $ service queuemetrics restart
Stopping QueueMetrics: Using CATALINA_BASE: /usr/local/queuemetrics/tomcat
Using CATALINA_HOME: /usr/local/queuemetrics/tomcat
Using CATALINA_TMPDIR: /usr/local/queuemetrics/tomcat/temp
Using JAVA_HOME: /usr/local/queuemetrics/java
[b]Pressing CTRL+C at this time since it gets stuck here for ever.[/b]
Starting QueueMetrics: Using CATALINA_BASE: /usr/local/queuemetrics/tomcat
Using CATALINA_HOME: /usr/local/queuemetrics/tomcat
Using CATALINA_TMPDIR: /usr/local/queuemetrics/tomcat/temp
Using JAVA_HOME: /usr/local/queuemetrics/java
2- Something is wrong with Qloader with Espresso, today Asterisk was going crazy with repeated messages that queue_log file is too big and I seen thousands of /var/log/asterisk/full.2342, full.2333, full.2829 etc....files in the /var/log/asterisk/folder. I am not sure what caused this but qloader should have been installed by Espresso and should have had all configured fine. What should I do to check everything is fine?
Here is the file sizes:
-rw-rw---- 1 asterisk asterisk 139753 Jul 29 00:41 qloaderd.log
-rw-rw-r-- 1 asterisk asterisk 71279 Jul 24 03:48 qloaderd.log.1
-rw-rw---- 1 asterisk asterisk 5631846 Jul 29 00:42 queue_log
-rw-rw---- 1 asterisk asterisk 3604690 Jul 24 04:02 queue_log.1
-rw-rw-r-- 1 asterisk asterisk 12608 Jul 17 04:02 queue_log.2
Thanks
-
Hello,
Anything to this?
-
Sometimes Tomcat stops responding, so it does not do a graceful stop. What the script does is basically to tell Tomcat to save everything and exit. If it does not oblige, kill -9 is your friend.
The file Asterisk is complaining about is likely the /var/log/asterisk/full file, that is not used or set by QM but by your distro.
-
It's not sometimes. It's always. I suggest you run Espresson install on Piaf and then try the command "service queuemetrics restart".
It's a bug in your install script.
-
Which version of PIAF?
-
Piaf 1.7.5.5 and Asterisk 1.6.2.19 (now it probably installs Asterisk 1.6.2.20 since new version came out)
-
For the moment you can do something like:
kill -9 `ps fax | grep /usr/local/queuemetrics | grep bin/java | cut -d ' ' -f 1`; /etc/init.d/queuemetrics start
This will stop and restart QM (do a copy-and-paste of the line above)
-
Yes, that's what I have been using. I wanted to report it so you can create a bug as you see it's an issue.
-
One question: are you running this in a VM or on bare metal?
-
bare metal.
-
Problem still persists. Please test you install script and release a working one.
-
try to use kill -9 to kill the queuemetrics process,and do a start
-
Please read the whole thread carefully.
Killing with -9 was already suggested. This is NOT proper though. If there is a problem with the Espresso install then it should be fixed rather than work-around with "kill -9". Don't you agree? If you don't agree then you might as well add "kill -9" to the Queuemetrics restart script :D
-
You should update your installation to Tomcat6; see http://forum.queuemetrics.com/index.php?topic=1349.0
-
Don't dare to do that on a production system. I will await you fix the issue in a next release.
-
You choose.
-
FYI, this is fixed with the current release of Espresso.