FTP Backup Errors

All installation and configuration problems and questions

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

FTP Backup Errors

Postby tim33 » Sun May 14, 2017 10:07 am

Web based GUI:
VERSION: 2.12-560a
BUILD: 160617-1427

Command line info:
ViciBox v.7.0.3-160505

I have had my dialer running for almost a year however I am only now looking at getting recordings handled by Vicidial. I have run the FTP backup script. I am getting hundreds of lines of the errors below going to /var/mail/root. When I check the files they have been uploaded and they are valid files, I have listened to them off the remote server so not sure why I'm getting these errors?

mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170309-160606_0244214858-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170313-170400_0269273383-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170313-170400_0269273383-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170322-160721_0299816595-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170322-160721_0299816595-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20161228-185926_0287124793-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20161228-185926_0287124793-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170320-172446_0394848993-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170320-172446_0394848993-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170309-180223_0260771258-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170309-180223_0260771258-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170111-155547_0421056456-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170111-155547_0421056456-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170308-143803_0249532625-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170325-140449_0296648654-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170206-160031_0450977860-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170104-110020_0424736108-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170324-110122_0408179399-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170308-131100_0242291723-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170308-131100_0242291723-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170120-135035_0247841274-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170119-145426_0405339782-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20161228-182627_0421840009-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20161228-182627_0421840009-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20161028-183358_0458252556-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20161028-183358_0458252556-all.mp3’: No such file or directory
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20161125-173914_0267236265-all.mp3’: No such file or directory
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20161114-120358_0451267894-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am

Re: FTP Backup Errors

Postby mflorell » Sun May 14, 2017 11:02 am

There could be a few reasons for those messages, but it's a lot easier to figure out if you run the FTP recording script with the --debugX flag.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: FTP Backup Errors

Postby tim33 » Mon May 15, 2017 9:05 am

Hi Matt, thanks for your reply. This is my output with: 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 --debugX

From root@linux.local Mon May 15 23:38:06 2017
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To: root@linux.local
Received: by linux.local (Postfix, from userid 0)
id BD643DE4259; Mon, 15 May 2017 23:38:06 +1000 (AEST)
From: "(Cron Daemon)" <root@linux.local>
To: root@linux.local
Subject: Cron <root@vicidial> /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --debugX
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=22>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <XDG_SEAT=seat0>
X-Cron-Env: <XDG_VTNR=1>
X-Cron-Env: <LANG=POSIX>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20170515133806.BD643DE4259@linux.local>
Date: Mon, 15 May 2017 23:38:06 +1000 (AEST)

----- DEBUG -----

----- SUPER DEBUG -----

MP3 audio files
DONE... EXITING

From root@linux.local Mon May 15 23:38:07 2017
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To: root@linux.local
Received: by linux.local (Postfix, from userid 0)
id 156FBDE4259; Mon, 15 May 2017 23:38:07 +1000 (AEST)
From: "(Cron Daemon)" <root@linux.local>
To: root@linux.local
Subject: Cron <root@vicidial> /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --debugX
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=246478>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20170515133807.156FBDE4259@linux.local>
Date: Mon, 15 May 2017 23:38:07 +1000 (AEST)

----- DEBUG -----

----- SUPER DEBUG -----

MP3 audio files
DONE... EXITING

From root@linux.local Mon May 15 23:40:07 2017
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To: root@linux.local
Received: by linux.local (Postfix, from userid 0)
id 2AF8DDE426C; Mon, 15 May 2017 23:40:07 +1000 (AEST)
From: "(Cron Daemon)" <root@linux.local>
To: root@linux.local
Subject: Cron <root@vicidial> /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=22>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <XDG_SEAT=seat0>
X-Cron-Env: <XDG_VTNR=1>
X-Cron-Env: <LANG=POSIX>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20170515134007.2AF8DDE426C@linux.local>
Date: Mon, 15 May 2017 23:40:06 +1000 (AEST)

Could not find "/var/spool/asterisk/monitorDONE/20170515-233639_mymobile-all.wav".
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/20170515-233639_mymobile-all.wav’: No such file or directory

From root@linux.local Mon May 15 23:41:11 2017
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To: root@linux.local
Received: by linux.local (Postfix, from userid 0)
id D6115DE4274; Mon, 15 May 2017 23:41:11 +1000 (AEST)
From: "(Cron Daemon)" <root@linux.local>
To: root@linux.local
Subject: Cron <root@vicidial> /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --debugX
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=246502>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20170515134111.D6115DE4274@linux.local>
Date: Mon, 15 May 2017 23:41:06 +1000 (AEST)

|select recording_id,start_time from recording_log where filename='20170515-233639_mymobile' order by recording_id desc LIMIT 1;|
Net::FTP>>> Net::FTP(2.77)
Net::FTP>>> Exporter(5.68)
Net::FTP>>> Net::Cmd(2.29)
Net::FTP>>> IO::Socket::INET(1.33)
Net::FTP>>> IO::Socket(1.36)
Net::FTP>>> IO::Handle(1.34)
Net::FTP=GLOB(0x19094c0)<<< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Net::FTP=GLOB(0x19094c0)<<< 220-You are user number 3 of 50 allowed.
Net::FTP=GLOB(0x19094c0)<<< 220-Local time is now 23:41. Server port: 21.
Net::FTP=GLOB(0x19094c0)<<< 220-This is a private system - No anonymous login
Net::FTP=GLOB(0x19094c0)<<< 220-IPv6 connections are also welcome on this server.
Net::FTP=GLOB(0x19094c0)<<< 220 You will be disconnected after 15 minutes of inactivity.
Net::FTP=GLOB(0x19094c0)>>> USER myusername
Net::FTP=GLOB(0x19094c0)<<< 331 User myusername OK. Password required
Net::FTP=GLOB(0x19094c0)>>> PASS ....
Net::FTP=GLOB(0x19094c0)<<< 230 OK. Current restricted directory is /
Net::FTP=GLOB(0x19094c0)>>> CWD recordings
Net::FTP=GLOB(0x19094c0)<<< 250 OK. Current directory is /recordings
Net::FTP=GLOB(0x19094c0)>>> MKD 2017-05-15
Net::FTP=GLOB(0x19094c0)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0x19094c0)>>> CWD 2017-05-15
Net::FTP=GLOB(0x19094c0)<<< 250 OK. Current directory is /recordings/2017-05-15
Net::FTP=GLOB(0x19094c0)>>> TYPE I
Net::FTP=GLOB(0x19094c0)<<< 200 TYPE is now 8-bit binary
Net::FTP=GLOB(0x19094c0)>>> ALLO 57024
Net::FTP=GLOB(0x19094c0)<<< 200 A L'HUILE
Net::FTP=GLOB(0x19094c0)>>> PASV
Net::FTP=GLOB(0x19094c0)<<< 227 Entering Passive Mode (103,9,171,248,230,42)
Net::FTP=GLOB(0x19094c0)>>> STOR 20170515-233639_mymobile-all.mp3
Net::FTP=GLOB(0x19094c0)<<< 150 Accepted data connection
Net::FTP=GLOB(0x19094c0)<<< 226-File successfully transferred
Net::FTP=GLOB(0x19094c0)<<< 226 0.060 seconds (measured here), 0.90 Mbytes per second
Net::FTP=GLOB(0x19094c0)>>> QUIT
Net::FTP=GLOB(0x19094c0)<<< 221-Goodbye. You uploaded 56 and downloaded 0 kbytes.
Net::FTP=GLOB(0x19094c0)<<< 221 Logout.

|UPDATE recording_log set location='http://mydomain.com.au/recordings/2017-05-15/20170515-233639_mymobile-all.mp3' where recording_id='13384';|

----- DEBUG -----

----- SUPER DEBUG -----

MP3 audio files
/var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3 57024
/var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3 57024

|13384|2017-05-15|20170515-233639_mymobile-all.mp3| ||
Transfered 1 files
DONE... EXITING

From root@linux.local Mon May 15 23:41:12 2017
Return-Path: <root@linux.local>
X-Original-To: root
Delivered-To: root@linux.local
Received: by linux.local (Postfix, from userid 0)
id 7EE42DE425E; Mon, 15 May 2017 23:41:12 +1000 (AEST)
From: "(Cron Daemon)" <root@linux.local>
To: root@linux.local
Subject: Cron <root@vicidial> /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --debugX
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=22>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <XDG_SEAT=seat0>
X-Cron-Env: <XDG_VTNR=1>
X-Cron-Env: <LANG=POSIX>
X-Cron-Env: <LC_CTYPE=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20170515134112.7EE42DE425E@linux.local>
Date: Mon, 15 May 2017 23:41:07 +1000 (AEST)

|select recording_id,start_time from recording_log where filename='20170515-233639_mymobile' order by recording_id desc LIMIT 1;|
Net::FTP>>> Net::FTP(2.77)
Net::FTP>>> Exporter(5.68)
Net::FTP>>> Net::Cmd(2.29)
Net::FTP>>> IO::Socket::INET(1.33)
Net::FTP>>> IO::Socket(1.36)
Net::FTP>>> IO::Handle(1.34)
Net::FTP=GLOB(0x131a960)<<< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Net::FTP=GLOB(0x131a960)<<< 220-You are user number 3 of 50 allowed.
Net::FTP=GLOB(0x131a960)<<< 220-Local time is now 23:41. Server port: 21.
Net::FTP=GLOB(0x131a960)<<< 220-This is a private system - No anonymous login
Net::FTP=GLOB(0x131a960)<<< 220-IPv6 connections are also welcome on this server.
Net::FTP=GLOB(0x131a960)<<< 220 You will be disconnected after 15 minutes of inactivity.
Net::FTP=GLOB(0x131a960)>>> USER myusername
Net::FTP=GLOB(0x131a960)<<< 331 User myusername OK. Password required
Net::FTP=GLOB(0x131a960)>>> PASS ....
Net::FTP=GLOB(0x131a960)<<< 230 OK. Current restricted directory is /
Net::FTP=GLOB(0x131a960)>>> CWD recordings
Net::FTP=GLOB(0x131a960)<<< 250 OK. Current directory is /recordings
Net::FTP=GLOB(0x131a960)>>> MKD 2017-05-15
Net::FTP=GLOB(0x131a960)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0x131a960)>>> CWD 2017-05-15
Net::FTP=GLOB(0x131a960)<<< 250 OK. Current directory is /recordings/2017-05-15
Net::FTP=GLOB(0x131a960)>>> TYPE I
Net::FTP=GLOB(0x131a960)<<< 200 TYPE is now 8-bit binary
Cannot open Local file /var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3: No such file or directory
at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 506.
Net::FTP=GLOB(0x131a960)>>> QUIT
Net::FTP=GLOB(0x131a960)<<< 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
Net::FTP=GLOB(0x131a960)<<< 221 Logout.

|UPDATE recording_log set location='http://mydomain.com.au/recordings/2017-05-15/20170515-233639_mymobile-all.mp3' where recording_id='13384';|

----- DEBUG -----

----- SUPER DEBUG -----

MP3 audio files
/var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3 57024
/var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3 57024

|13384|2017-05-15|20170515-233639_mymobile-all.mp3| ||
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/MP3/20170515-233639_mymobile-all.mp3’: No such file or directory
Transfered 1 files
DONE... EXITING

You have new mail in /var/mail/root
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am

Re: FTP Backup Errors

Postby tim33 » Mon May 15, 2017 9:14 am

vicidial:/var/spool/asterisk/monitorDONE # ls
FTP FTP2 GPG GSM GSW MP3 OGG ORIG

From my output:
Could not find "/var/spool/asterisk/monitorDONE/20170515-233639_mymobile-all.wav".
mv: cannot stat ‘/var/spool/asterisk/monitorDONE/20170515-233639_mymobile-all.wav’: No such file or directory

Where does this invalid directory path come from? Why does everything still seem to be working ok?
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am

Re: FTP Backup Errors

Postby tim33 » Tue May 16, 2017 6:02 am

Ok so I can see now that it is not an invalid directory path, that the wav files do indeed go into the monitorDONE directory rather than a subdirectory.
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am

Re: FTP Backup Errors

Postby mflorell » Tue May 16, 2017 7:58 am

Try running with the "--run-check" flag. If you have a backlog you might have multiple instances of the script running.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: FTP Backup Errors

Postby tim33 » Thu May 18, 2017 9:48 am

Thanks, I'm not sure what you mean by "backlog"?

With the"--run-check" flag I get more than one line of:

I am not alone! Another /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl is running! Exiting...

I still got:

mv: cannot stat ‘/var/spool/asterisk/monitorDONE/20170519-003303_mymobile-all.wav’: No such file or directory

but did not get:

Could not find "/var/spool/asterisk/monitorDONE/20170515-233639_mymobile-all.wav".
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am

Re: FTP Backup Errors

Postby tim33 » Thu May 18, 2017 10:27 am

Thanks for your help. Now I know to only login via SSH and to not have another shell open! My problem disappeared after rebooting the server.
tim33
 
Posts: 60
Joined: Thu Jul 07, 2016 1:15 am


Return to Support

Who is online

Users browsing this forum: W3C [Validator] and 55 guests