No space left on device

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

No space left on device

Postby Fares MEHENI » Fri Jul 10, 2020 11:25 am

Hi,
I have a Warning message in the CLI:

WARNING[8402][C-00002d33]: format_wav.c:445 wav_write: Bad write (128): No space left on device
WARNING[8402][C-00002d33]: file.c:259 ast_writestream: Translated frame write failed
WARNING[8402][C-00002d33]: channel.c:5478 ast_write: Failed to write data to channel monitor write stream

And wehen i check the space :

df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.9G 0 4.9G 0% /dev
tmpfs 4.9G 0 4.9G 0% /dev/shm
tmpfs 4.9G 361M 4.6G 8% /run
tmpfs 4.9G 0 4.9G 0% /sys/fs/cgroup
/dev/sda4 193G 12G 172G 7% /
tmpfs 6.0G 6.0G 0 100% /var/spool/asterisk/monitor
/dev/sda2 20M 1.1M 19M 6% /boot/efi
tmpfs 999M 0 999M 0% /run/user/0

I have tmpfs 6.0G 6.0G 0 100% /var/spool/asterisk/monitor ???

its normal ?

the Warning message is persistent and I lose a lot of recording.

vicibox 9.0.2.
Fares MEHENI
 
Posts: 41
Joined: Thu Oct 17, 2019 2:43 am

Re: No space left on device

Postby carpenox » Fri Jul 10, 2020 11:30 am

Delete some logs. There should be a line in crontab for it
2 x Intel Xeon X3450 at 2.66GHz | 16GB DDR4
ViciBox v9.0.3 | Version: 2.14-772a | BUILD: 201004-1045 | SVN Version: 3304 | DB Schema Version: 1608 | Asterisk 13.34.0
http://www.CyburityLLC.com -: 844-PC-SATA-2 - :- www.contactcentersRus.com
carpenox
 
Posts: 698
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: No space left on device

Postby Fares MEHENI » Mon Jul 13, 2020 4:57 am

Hi,

Here is part of my crontab :
Code: Select all
### remove and rotate old asterisk logs
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +30 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +7 -print | xargs rm -f
31 0 * * * /usr/bin/find /tmp -maxdepth 1 -type f -mtime +7 -print | xargs rm -f
32 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 1 -type f -mtime +1 -print | grep -v \.xz | xargs xz >/dev/null 2>&1

### recording mixing/compressing/ftping scripts
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --run-check
#0 1 * * * /usr/share/astguiclient/AST_CRON_audio_4_ftp2.pl --ftp-server=server.ip --ftp-login=user --ftp-pass=pass --ftp-directory=/ --ftp-persistent --ftp-validate --transfer-limit=100000 --list-limit=100000

### remove old recordings more than 7 days old, and delete originals after 1 day
#24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f

### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl

### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl

### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl

### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl

### Reboot nightly to manage asterisk issues and memory leaks - uncomment if issues arise
#30 6 * * * /sbin/reboot

### remove text to speech file more than 4 days old
#20 0 * * * /usr/bin/find /var/lib/asterisk/sounds/tts/ -maxdepth 2 -type f -mtime +4 -print | xargs rm -f

### Update agent records with the IP of the phone they are logging in on
#*/5 * * * * /usr/share/astguiclient/AST_phone_update.pl --agent-lookup

### Delete voicemail that is older then 60 days
#0 2 * * * /usr/local/bin/vmspool_manager.pl --active --age=60

### ViciBox integrated firewall, by default just load the VoIP Black list and reload it every 4 hours
### You can lock everyone out of your server if you set this wrong, so understand what you are doing!!!
##@reboot /usr/local/bin/VB-firewall.pl --voipbl --noblack --quiet
##0 */6 * * * /usr/local/bin/VB-firewall.pl --voipbl --noblack --flush --quiet

* * * * * /usr/local/bin/VB-firewall.pl --white --dynamic --quiet
@reboot /usr/local/bin/VB-firewall.pl --white --dynamic --quiet



I did not understand normally the recordings on / monitorDONE / ORIG will be deleted every day but I still have recordings which date from a week on the ORIG file.

and after restarting the server the space is freed on tmpfs / var / spool / asterisk / monitor
Code: Select all
df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.9G 0 4.9G 0% / dev
tmpfs 4.9G 0 4.9G 0% / dev / shm
tmpfs 4.9G 33M 4.9G 1% / run
tmpfs 4.9G 0 4.9G 0% / sys / fs / cgroup
/ dev / sda4 193G 12G 172G 7% /
[u][b]tmpfs 6.0G 14M 6.0G 1% / var / spool / asterisk / monitor[/b][/u]
/ dev / sda2 20M 1.1M 19M 6% / boot / efi
tmpfs 999M 0 999M 0% / run / user / 0

now I only have this message:
Code: Select all
[Jul 13 11:49:31] WARNING[15376][C-0000012e]: file.c:259 ast_writestream: Translated frame write failed
[Jul 13 11:49:31] WARNING[15376][C-0000012e]: channel.c:4335 __ast_read: Failed to write data to channel monitor read stream


I think that's the cause of the saturation of tmpfs / var / spool / asterisk / monitor
this message persists on the CLI I try everything I can't know where it comes from.
Fares MEHENI
 
Posts: 41
Joined: Thu Oct 17, 2019 2:43 am


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 19 guests