Author Topic: Queuemetrics doesn't restart using the RESTART service - help please  (Read 14451 times)

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
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
« Last Edit: July 29, 2011, 06:42:44 by torontob »

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Hello,

Anything to this?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
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.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
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.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Which version of PIAF?

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
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)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
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)

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
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.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
One question: are you running this in a VM or on bare metal?

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
bare metal.

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Queuemetrics doesn't restart using the RESTART service - help please
« Reply #10 on: September 14, 2011, 00:40:10 »
Problem still persists. Please test you install script and release a working one.

coolname

  • Full Member
  • ***
  • Posts: 163
  • Karma: 0
    • View Profile
Re: Queuemetrics doesn't restart using the RESTART service - help please
« Reply #11 on: September 14, 2011, 11:22:31 »
try to use  kill -9 to kill the queuemetrics process,and do a start

torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Queuemetrics doesn't restart using the RESTART service - help please
« Reply #12 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

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Queuemetrics doesn't restart using the RESTART service - help please
« Reply #13 on: September 16, 2011, 10:42:15 »
You should update your installation to Tomcat6; see http://forum.queuemetrics.com/index.php?topic=1349.0


torontob

  • Full Member
  • ***
  • Posts: 155
  • Karma: 0
    • View Profile
Re: Queuemetrics doesn't restart using the RESTART service - help please
« Reply #14 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.