QueueMetrics > Running QueueMetrics

Rotated Logs Per SIGXFSZ (exceeded files limit)

<< < (2/3) > >>

wilsonchua:
Hi Marco,

thanks for looking into this. The past 2 days of activities were not in the mysql. The most recent calls are being added correctly into the mysql database.

I see a lot of queue_log.xxxx in the /var/log/asterisk directory, a partial list looks like this:
rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:38 queue_log.9964
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:38 queue_log.9965
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:43 queue_log.9966
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:43 queue_log.9967
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:44 queue_log.9968
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:44 queue_log.9969
-rw-rw-r--   1 asterisk asterisk        40 Jul 22 12:14 queue_log.997
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9970
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9971
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9972
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9973
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9974
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:45 queue_log.9975
-rw-rw-r--   1 asterisk asterisk        99 Jul 23 08:47 queue_log.9976
-rw-rw-r--   1 asterisk asterisk       113 Jul 23 08:47 queue_log.9977
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:50 queue_log.9978
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:50 queue_log.9979
-rw-rw-r--   1 asterisk asterisk        40 Jul 22 12:14 queue_log.998
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:51 queue_log.9980
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:51 queue_log.9981
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:51 queue_log.9982
-rw-rw-r--   1 asterisk asterisk       126 Jul 23 08:52 queue_log.9983
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:52 queue_log.9984
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:52 queue_log.9985
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:52 queue_log.9986
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:52 queue_log.9987
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:52 queue_log.9988
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:53 queue_log.9989
-rw-rw-r--   1 asterisk asterisk        40 Jul 22 12:14 queue_log.999
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:53 queue_log.9990
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:54 queue_log.9991
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:54 queue_log.9992
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:54 queue_log.9993
-rw-rw-r--   1 asterisk asterisk       155 Jul 23 08:55 queue_log.9994
-rw-rw-r--   1 asterisk asterisk        93 Jul 23 08:55 queue_log.9995
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:55 queue_log.9996
-rw-rw-r--   1 asterisk asterisk       155 Jul 23 08:56 queue_log.9997
-rw-rw-r--   1 asterisk asterisk       114 Jul 23 08:56 queue_log.9998
-rw-rw-r--   1 asterisk asterisk        40 Jul 23 08:57 queue_log.9999


Can  I just merge all the queue_log.xxx into the queue_log and restart qloaderd ?

If the above were possible, im planning to do this:

find . -name 'queue_log.*' | xargs cat >> queue_log

Will this approach work?

wilsonchua:
When I ran the queuePartialUpdater tool (found in /usr/local/qloader) against the file, it did not restore items that were greater than the current timestamp (aug 2, 2011), the missing data were for July 23 and July 24th, 2011...

Is there a workaround for this?

torontob:
Two days, I got exactly the same thing. Mine is a latest install with Espresso and using PBXinaFLASH. I have seen tons of /var/log/full.2343 and other full.xxxx files as well.

I am sure this is 100% caused by Queuemetrics install. It's probably that the yum repository doesn't configure the log rotate properly.

THIS IS A BUG. PLEASE FIX.

My issue went away with a restart for now.

QueueMetrics:

--- Quote from: torontob on August 02, 2011, 21:29:46 ---I am sure this is 100% caused by Queuemetrics install. It's probably that the yum repository doesn't configure the log rotate properly.

THIS IS A BUG. PLEASE FIX.

--- End quote ---

The handling of the full log is completely outside the scope of QM and left to the distro.

QueueMetrics:

--- Quote from: wilsonchua on August 02, 2011, 10:51:37 ---When I ran the queuePartialUpdater tool (found in /usr/local/qloader) against the file, it did not restore items that were greater than the current timestamp (aug 2, 2011), the missing data were for July 23 and July 24th, 2011...

Is there a workaround for this?

--- End quote ---

The QueueLogPartialUpdater is meant to overcome the "problem" the qloader has, that is that it only inserts NEWER lines.

Are you sure that you have lines in your file but they are not inserted in the DB? given your previous history, I would not be surprised if Asterisk just stopped writing to all files.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version