QueueMetrics forum

QueueMetrics => QueueMetrics installation => Topic started by: torontob on July 29, 2011, 05:47:57

Title: Queuemetrics doesn't restart using the RESTART service - help please
Post 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:

Code: [Select]
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:
Code: [Select]
-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
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on August 02, 2011, 21:33:43
Hello,

Anything to this?
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on August 08, 2011, 11:48:23
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.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on August 08, 2011, 16:40:25
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.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on August 09, 2011, 10:04:10
Which version of PIAF?
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on August 09, 2011, 18:25:04
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)
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on August 10, 2011, 11:19:19
For the moment you can do something like:

Code: [Select]
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)
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on August 10, 2011, 19:57:29
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.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on August 11, 2011, 10:45:11
One question: are you running this in a VM or on bare metal?
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on August 12, 2011, 19:09:03
bare metal.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on September 14, 2011, 00:40:10
Problem still persists. Please test you install script and release a working one.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: coolname on September 14, 2011, 11:22:31
try to use  kill -9 to kill the queuemetrics process,and do a start
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on September 14, 2011, 19:22:52
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
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on September 16, 2011, 10:42:15
You should update your installation to Tomcat6; see http://forum.queuemetrics.com/index.php?topic=1349.0

Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: torontob on September 21, 2011, 21:49:57
Don't dare to do that on a production system. I will await you fix the issue in a next release.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on September 22, 2011, 10:17:33
You choose.
Title: Re: Queuemetrics doesn't restart using the RESTART service - help please
Post by: QueueMetrics on March 30, 2012, 17:55:25
FYI, this is fixed with the current release of Espresso.