Hard drive getting filled up quickly

majamer
Posts: 171
Member Since:
2007-08-29

Hello,

Although all voicemail messages are deleted as soon as they are heard, the hard drive reached full capacity on the latest trixbox CE 2.6.0.7 and now I get the error "cannot write to file cache/sessionsFile.txt". Any idea about what's causing this increased HD usage and how to delete unnecessary files?

--

Thank you in advance,
Martha Amer



ethans
Posts: 519
Member Since:
2007-01-16
You are going to have to

You are going to have to find out what directories are using all the disk space. Look into the du and df commands.



majamer
Posts: 171
Member Since:
2007-08-29
# du 68 . #

# du
68 .
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 18549588 17592280 0 100% /
/dev/hda1 101086 6893 88974 8% /boot
tmpfs 256752 0 256752 0% /dev/shm

--

Thank you in advance,
Martha Amer



ethans
Posts: 519
Member Since:
2007-01-16
du -h --max-depth=1 / Find

du -h --max-depth=1 /

Find the directory that is consuming all the space then cd to it then

du -h to find out what in that directory is using all the space



majamer
Posts: 171
Member Since:
2007-08-29
Thanks for your help. The

Thanks for your help. The asterisk log folder has plenty of files:
15922676 ./log/asterisk

Which files can I delete and which ones I should definitely never touch?

Thanks!

--

Thank you in advance,
Martha Amer



ethans
Posts: 519
Member Since:
2007-01-16
Go through and delete all

Go through and delete all the full.5-full.xx files (keep full and full.1, .2, .3, .4). Your logger is messed up, and needs to be fixed:

nano /etc/logrotate.d/asterisk

/var/log/asterisk/*log {
missingok
rotate 5
weekly
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}

/var/log/asterisk/full {
missingok
rotate 5
daily
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}

/var/log/asterisk/cdr-csv/*csv {
missingok
rotate 5
monthly
create 0640 asterisk asterisk
}

/var/log/atftp.log {
missingok
rotate 5
monthly
create 0640 nobody nobody
}



kerryg
Posts: 6793
Member Since:
2006-05-31
If the Asterisk files are

If the Asterisk files are large, you may have asterisk running in debug mode.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



majamer
Posts: 171
Member Since:
2007-08-29
they are large, how do I

they are large, how do I turn off the debug mode?

--

Thank you in advance,
Martha Amer



majamer
Posts: 171
Member Since:
2007-08-29
I think that someone is

I think that someone is trying to blow up my trixbox because when I log in to asterisk CLI I see plenty of lines:

**[WOOMERA]** Receive Message: {default} [localhost]/42420]
The box is behind a firewall but port 42420 was forwarded to trixbox.

--

Thank you in advance,
Martha Amer



tjthorson
Posts: 107
Member Since:
2007-01-15
I have the same problem

I have a 2.6.0.7 box filling up 15-20MB a day in the asterisk log files. All with the same line:

logger.c: **[WOOMERA]** Receive Message: {default} [localhost/

Mine is completely on the inside network and was brought up on the network a few hours ago (it had been running 3 days before being plugged in).

What is this and how do i shut it down????

--

Todd J Thorson
IT Manager
todd@toddware.com



majamer
Posts: 171
Member Since:
2007-08-29
I've notieced that this is

I've notieced that this is related to the Sangoma card. The new Wanpipe drivers are causing this. Never happened with the previous trixbox builds but the 2.6.0.7 is incompatible with the previous Sangoma drivers. I'm posting this as a new thread in the Sangoma forum.

--

Thank you in advance,
Martha Amer



tjthorson
Posts: 107
Member Since:
2007-01-15
For the archives - this was

For the archives - this was the fix:

I found a post from Marc @ Sangoma - applied it to one of my boxes and it works... Im going to do the others now - but wanted to post up for you... I only use A200 and A101PRI cards - I dont have any BRIs so this worked for me.

Hi,

This is because our beta drivers have chan_woomera in them which our BRI card uses. Since there is no BRI card configured in the system you are seeing these messages. So all you have to do is configure Asterisk not to load chan_woomera. To do this follow the steps below.

1) NANO /etc/asterisk/modules.conf"
2) Add the line "noload => chan_woomera.so" in this file
3) Then save and quit
4) Restart Asterisk

Marc
Sangoma Technologies

--

Todd J Thorson
IT Manager
todd@toddware.com



mdonato
Posts: 113
Member Since:
2006-05-31
debug mode off?

how do we turn debug mode off, and how do we tell if it is on?

thanks!



tjthorson
Posts: 107
Member Since:
2007-01-15
If you have the "woomera"

If you have the "woomera" messages filling up your asterisk logs - see the above post... That will fix it.

--

Todd J Thorson
IT Manager
todd@toddware.com



James5mith
Posts: 22
Member Since:
2009-03-24
Just wanted to say thank you

Just wanted to say thank you for archiving this fix for the error.

I've got a new trixbox that was spitting these messages constantly.

--

Trying Trixbox after fighting with Asterisk and a PRI configuration for the last 6 months.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.