Page 1 of 1
WinSCP does not respond when accessing MP3 folder
Posted:
Tue May 05, 2015 3:41 am
by WisemanK
Hi,
Disk space is full and as a result unable to connect to vicidial server to make calls. I log in through putty and checked to find the disk space is full.
I would like to download the recordings onto another pc/server for storage rather than delete the calls, i have logged in using WinSCP and gone to /var/spool/asterisk/monitorDONE/MP3 and soon as i click on mp3 it fails to open the folder.
Any Assistance will be highly appreciated.
Re: WinSCP does not respond when accessing MP3 folder
Posted:
Tue May 05, 2015 12:14 pm
by bobchaos
When you disk is loaded 100%, you`ll have a hard time doing anything at all because most apps need to write something, log files, temporary files, access files, etc... Try making some space using plain old rm -f, once there`s a few MBs free I bet WinSCP will be more cooperative.
*Edit*
This process could easily be automated by using the archiving scripts supplied with Vicidial. I`d advise you setup an archiving FTP server, and then cook up a little cron job to delete old recordings on that server. You could, of course have that job running on the dialing server itself, but why tempt the devil? I'd rather find out i`m out of recording space because I can`t find a recording in the archives than because my production system died on me :/
Re: WinSCP does not respond when accessing MP3 folder
Posted:
Tue Jun 02, 2015 2:05 pm
by paolo
The data is probably too large for you to be able to access the mp3 folder through winscp
I would suggest running a script to delete old recordings
/usr/bin/find /var/spool/asterisk/monitorDONE/MP3 -maxdepth 2 -type f -mtime +70 -print | xargs rm -f
that command would delete recordings 70 days from today
Re: WinSCP does not respond when accessing MP3 folder
Posted:
Sun Jul 12, 2015 10:23 pm
by williamconley
1) Delete logs to make a small amount of space on the HD. Also delete the "ORIG" recordings folder content if your files are in MP3.
2) Activate the Vicidial FTP function for client audio recordings to push these files to another server
VERIFY that the files being moved are both accessible and linked to the proper location in the leads/agents recording pages by moving a SINGLE file first (with a manual run of the script set to move only one file) and verifying those links download a valid file from the FTP server before activating the full script.
3) Immediately delete all the files in the FTP folder (which is where they are moved after being sent to the FTP server, so you no longer need the local copies)
Re: WinSCP does not respond when accessing MP3 folder
Posted:
Sun Jul 19, 2015 1:09 am
by boybawang
delete the log files first
rm -rf /var/log/astguiclient/*
then delete the apache2 logs or httpd logs
rm -rf /var/log/apache2/access.log; rm -rf /var/log/apache2/error.log; touch -f /var/log/apache2/access.log; touch -f /var/log/apache2/error.log
then delete ORIG folder
rm -rf /var/spool/asterisk/monitorDONE/ORIG
Re: WinSCP does not respond when accessing MP3 folder
Posted:
Thu Jul 23, 2015 11:42 pm
by williamconley
And then recreate any folders you deleted! with the same attributes! LOL