FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Sat Jan 31, 2015 6:41 am

Hello,
I was backing up my old server recordings via FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp, it was transferring but it stopped at 690 mb, when i look at the drive (df- h), the used drive is 92gb, I was expecting it will transfer everything continuosly. The server is not in use, can you explain 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 --GSM what is the schedule of transfer.

Thank you.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Sat Jan 31, 2015 7:06 am

It is transferring every 3 minutes, then why it stopped, whrere can i find the logs if it has errors?

I am using windows server for my FTP server.

Any one?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Mon Feb 02, 2015 6:53 am

check the mail for root, just type
mail
when logged in as root

or just try to run the script manually from the command line
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM

it will probably give you some information.

also check the log of the ftp server on your windows server
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Mon Feb 09, 2015 4:35 pm

Tried windows7 FTP server same issue, it stopped on 1000 files. This is my 3rd windows ftp server. All stopped at exactly 1000 files. This is running on local network.

Anyone?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Tue Feb 10, 2015 5:50 am

in AST_CRON_audio_3_ftp.pl there is a variable for that
$file_limit = 1000;

it is limited because the script is made to be run every third minute during the day
without the limit it would be possible that cron start the script before the previous run was finished.

so just edit your crontab (crontab -e) and make the script run every third minute as it does by default:
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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 7:03 am

Thank you, but I never touched 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, how can i set it to transfer everything one time?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Tue Feb 10, 2015 7:12 am

yes you need to uncomment that line to make it active in crontab

if you look at the options for the script you might find something useful: AST_CRON_audio_3_ftp.pl --help

[--transfer-limit=XXX] = number of files to transfer before exiting

use that flag when you run the script
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby okli » Tue Feb 10, 2015 7:40 am

In addition, I'd schedule that script to run after hours, so it can transfer everything in one go, without causing any load during working hours.

http://www.adminschoice.com/crontab-quick-reference
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 9:05 am

The server is not in use so it is good to go. Just to make it clear I need to comment out "$file_limit = 1000;"?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Tue Feb 10, 2015 9:09 am

No.

this line:
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

is usually commented out (if I'm not wrong)



you do not need to edit AST_CRON_audio_3_ftp.pl
because I saw this flag:
[--transfer-limit=XXX] = number of files to transfer before exiting
just after I saw the variable.



Use this command:
AST_CRON_audio_3_ftp.pl --transfer-limit=9999
to be able to ftp 9999 files instead of the default 1000
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 9:39 am

Thank you so much! Will try it....
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 9:58 am

when I turned on the server it starts transferring the recording, so I waited. It stops again, 1000 files, then I ran /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --transfer-limit=9999 but nothing happened. am i doing this correctly?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Tue Feb 10, 2015 10:01 am

maybe you use --MP3 flag or something too?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 10:47 am

what i did was i put it on the cronjobs, 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 --GSM --transfer-limit=9999, still nothing, I removed the flag --transfer-limit=9999 then i ran this because I saw your reply /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999, still nothing. the files are not getting updated. still 1000files on folder properties.

When I looked at htop the job is running.

What seems to be my issue?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Tue Feb 10, 2015 12:09 pm

Any other approach? Sorry not so good on scripts.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby DomeDan » Wed Feb 11, 2015 4:21 am

there is a list limit option too, didnt think it would be the list of the remote directory, but i guess it is.
run this command:
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999 --list-limit=9999
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: FTP using /usr/share/astguiclient/AST_CRON_audio_3_ftp

Postby richardroi » Wed Feb 11, 2015 3:16 pm

i temporary disabled 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 --GSM, and ran this /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM --transfer-limit=9999 --list-limit=9999 manually, nothing wrong with that right?

Thank you so munch...seems to be working.
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended
richardroi
 
Posts: 373
Joined: Mon Mar 21, 2011 7:20 pm


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 46 guests