All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by yasserin » Mon Sep 01, 2008 3:56 pm
Hi, Im using Asterisk 1.2.27, vicidial 2.0.4.1 rc4, sometime I get this error:
ERROR[4599]: cdr_csv.c:237 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Read-only file system
Asterisk stop working and I had to reboot the system to initiate calls again, what do What you blelieve could be the problem
Also my asterisk log get full of this message
format_wav.c:247 update_header: Unable to find our position
I believe this problem is cause when asterisk convert the audio file to send it to my ftp server.
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by mflorell » Mon Sep 01, 2008 8:16 pm
Interesting issues, have you checked the size of the Master.csv file?
as for your other issue, are you using the 'm' flag to mix audio after recording?
What is your peak loadavg on your server?
-
mflorell
- Site Admin
-
- Posts: 18406
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by yasserin » Tue Sep 02, 2008 2:48 pm
The size of the file is 624K, what do you mean with using the m flag????, on the monitor command????
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by mflorell » Tue Sep 02, 2008 7:02 pm
what is the output of 'df -k' on your system?
can you give us more info on your system?
-
mflorell
- Site Admin
-
- Posts: 18406
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by yasserin » Tue Sep 02, 2008 7:09 pm
Heres de output from df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdd1 151391588 21981012 121596160 16% /
/dev/hda1 101086 11370 84497 12% /boot
tmpfs 1557772 0 1557772 0% /dev/shm
/dev/ram0 15856 15856 0 100% /var/spool/asteriskmonitor
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by gardo » Wed Sep 03, 2008 4:52 pm
Looks like your RAMdrive is full. Try increasing the size of your RAMdrive and have a script that automatically moves the recordings to a different location. The built-in recordings scripts of VICI are great. Try using them.
-
gardo
-
- Posts: 1926
- Joined: Fri Sep 15, 2006 10:24 am
- Location: Manila, 1004
-
by yasserin » Wed Sep 03, 2008 4:58 pm
sorry about my ignorance.. how can I increase these RAMdrive??? using disk partition manager???, or maybe I can use other location to mount the spool folder, if it is so, can you please explain me how to do that???, becuase I only see that it has 16M, this was the default size of the vicidialNow 1.1 gave me
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by jojo1031 » Thu Sep 04, 2008 6:19 am
edit /boot/grub/grub.conf and add ramdisk_size=500000 at the end of kernel /boot/vmlinuz-VERSION ro root=LABEL=/
500000 = 500MB
title CentOS (2.6.18-53.1.19.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-53.1.19.el5 ro root=LABEL=/ ramdisk_size=500000
initrd /boot/initrd-2.6.18-53.1.19.el5.img
-
jojo1031
-
- Posts: 47
- Joined: Sat Jan 26, 2008 4:23 pm
by yasserin » Thu Sep 04, 2008 4:49 pm
Thanks for your reply, Do you think that 500 Mb should be enough to that folder /var/spool/asterisk, I had a HP Proliant ML150 with a Quad Core Xeon and 3Gb o RAM, we had it for a standalone vicidial server for about 30 Agents, every call is recorded an run the script to delete the ORIG records for every two Days
What do you think of this, should I mount this folder on the tmpfs partition or what can you tell me about this
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by mflorell » Thu Sep 04, 2008 7:16 pm
I would recommend tmpfs, but you should use at least 1GB for your RAM disk if you would be recording all calls for 30 agents.
-
mflorell
- Site Admin
-
- Posts: 18406
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by yasserin » Thu Sep 04, 2008 7:28 pm
I tried what you told me to add at grub.conf, but now linux cant boot in, it gives me an error switchroot:mount failed 'Kernel PAnic'
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by yasserin » Sat Sep 06, 2008 2:47 pm
I tried to resize the ramdisk by appending this entry in your /boot/grub/menu.1st:
ramdisk_size=1024000
but the linux kernels freeze when I boot up, I had to erase it so Linux could boot normally, maybe thats not the way to do it.
Id had two questions, How I can change the 16 Mb of the RamDisk, cause the method you told me didnt work, I dont know maybe I Did something wrong.
The another one is I want to change from ramdisk to tmpfs I only had to change on the rc.local the /dev/ram0 to /dev/shm.
As I told you Im using Vicidial Now 1.1, and default kernel Ram was uncomment it. heres the rc.local texta that I was asking if I had to change
### uncomment If kernel RAM drive is enabled
mke2fs -m 0 /dev/ram0
mount /dev/ram0 /var/spool/asterisk/monitor
mkdir /var/spool/asterisk/monitor/DONE
mkdir /var/spool/asterisk/monitor/ORIG
-
yasserin
-
- Posts: 42
- Joined: Fri Jan 25, 2008 11:20 am
by mflorell » Sat Sep 06, 2008 7:50 pm
I have not set up a RAM drive on VICIDIALnow myself, you might want to post on that forum about it.
-
mflorell
- Site Admin
-
- Posts: 18406
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by gardo » Sun Sep 07, 2008 10:08 am
Setting up of RAMdrives on any Linux distros are almost the same specially when using Grub. Look for this line in /boot/grub/grub.conf:
kernel /vmlinuz-2.6.18-53.1.21.el5.vnow ro root=LABEL=/
and append "ramdisk_size=1024000" if you have more than 1 gig of RAM. It should look like this:
kernel /vmlinuz-2.6.18-53.1.21.el5.vnow ro root=LABEL=/ ramdisk_size=1024000
I would recommend commenting them out if you can't increase your RAMdrive size.
### uncomment If kernel RAM drive is enabled
#mke2fs -m 0 /dev/ram0
#mount /dev/ram0 /var/spool/asterisk/monitor
#mkdir /var/spool/asterisk/monitor/DONE
#mkdir /var/spool/asterisk/monitor/ORIG
-
gardo
-
- Posts: 1926
- Joined: Fri Sep 15, 2006 10:24 am
- Location: Manila, 1004
-
Return to Support
Who is online
Users browsing this forum: Bing [Bot], paolo and 440 guests