IP2M-851E deleting files on remote FTP

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

IP2M-851E deleting files on remote FTP

Post by doel13 »

I have four IP2M-851E installed with the latest firmware (dated 27-apr-2018). They are configured with motion detect to take snapshots and send them to my FTP server. Lately I notice some of the IPCs stopped taking the snapshots but I notice on my FTP server log that they are busy deleting files and directories. WHY ???

I do not have any setup to delete files (or old files). Below some example from my FTP server log.

(008021) 9/21/2018 0:00:15 AM - momocambt2 (36.84.229.198)> DELE /AMC031E1_3B189F/2018-09-19/14hour/jpg/14.15.17[M][0@0][0].jpg
(008021) 9/21/2018 0:00:15 AM - momocambt2 (36.84.229.198)> 250 File deleted successfully

(008030) 9/21/2018 0:00:16 AM - momocambt2 (36.84.229.198)> DELE /AMC031E1_3B189F/2018-09-19/14hour/jpg/14.15.26[M][0@0][0].jpg
(008030) 9/21/2018 0:00:16 AM - momocambt2 (36.84.229.198)> 250 File deleted successfully


I changed the ftp login id to not have del access, but they keep trying and trying and still not taking any snapshots even after restarting the IPCs.

It is a major problem for me as I needed those files and snapshots. Please help.
IP2M-851E with remote FTP for snapshots.
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

Re: IP2M-851E deleting files on remote FTP

Post by doel13 »

While checking the FTP log I also notice the IPCs doing this a lot for some reason:

(012010) 9/21/2018 1:02:34 AM - (not logged in) (36.84.229.198)> USER momocambt2
(012010) 9/21/2018 1:02:34 AM - (not logged in) (36.84.229.198)> 331 Password required for momocambt2
(012009) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 250 CWD successful. "/AMC031E1_3B189F" is current directory.
(012010) 9/21/2018 1:02:34 AM - (not logged in) (36.84.229.198)> PASS **********
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 230 Logged on
(012009) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> CWD /
(012009) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 250 CWD successful. "/" is current directory.
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> PWD
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 257 "/" is current directory.
(012009) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> CWD /AMC031E1_3B189F
(012009) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 250 CWD successful. "/AMC031E1_3B189F" is current directory.
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> TYPE I
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 200 Type set to I
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> CWD /
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 250 CWD successful. "/" is current directory.
(012008) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> QUIT
(012008) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 221 Goodbye
(012008) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> disconnected.
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> CWD /AMC031E1_3B189F/2000-01-01/01hour
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 250 CWD successful. "/AMC031E1_3B189F/2000-01-01/01hour" is current directory.
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> PASV
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 227 Entering Passive Mode (182,19,174,226,198,136)
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> list
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 150 Opening data channel for directory listing of "/AMC031E1_3B189F/2000-01-01/01hour"
(012010) 9/21/2018 1:02:34 AM - momocambt2 (36.84.229.198)> 226 Successfully transferred "/AMC031E1_3B189F/2000-01-01/01hour"

It seems wasting it's time getting list of files under that directory. Again, WHY ???
Does it have internal date wrong or unable to get current date and just defaulted to 2000-01-01 ?
IP2M-851E with remote FTP for snapshots.
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: IP2M-851E deleting files on remote FTP

Post by jack7 »

I don't use FTP, but it sounds like your camera thinks that the FTP storage is full, so it stops sending photos and starts deleting files to make room for new ones. You could check your camera Setup-Storage-Record Control-Disk Full setting Overwrite/Stop and see if it applies. While in Setup, you could go to Information-Log and see what is there in the time period of interest.
Your second post: Maybe the camera is getting file lists to find files to delete. There has been a problem in the past with the 2000-01-01 date. Here's one thread.
https://amcrest.com/forum/viewtopic.php ... +01#p16307
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

Re: IP2M-851E deleting files on remote FTP

Post by doel13 »

Ah ok. The IPC must've thought the disk was full even though there is plenty of space (more than 20 TB of it). My thought is the internet connection was over saturated and it could not connect to remote FTP. The logic assumed disk was full somehow. Anyway, the disk full option was set to Overwrite so I changed it to Stop. It seems to help. Thanks for the tip.

As for the 2001-01-01, I turned on NTP and use pool.ntp.org port 123. It is working so far. I'm curious how it'd handle power outage. We'll see.
IP2M-851E with remote FTP for snapshots.
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: IP2M-851E deleting files on remote FTP

Post by jack7 »

Good to hear it's working better. If you want to see when you get disk full events in the camera, you could try this. Go to the Live screen page upper right and click Alarm, Disk Full, Save. Check the log there later.
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

Re: IP2M-851E deleting files on remote FTP

Post by doel13 »

I have Disk Full checked since the beginning but never get the alarm. I only get the alarms for Disk Error and No Disk.
IP2M-851E with remote FTP for snapshots.
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

Re: IP2M-851E deleting files on remote FTP

Post by doel13 »

Looks like I spoke too soon. Now it's doing it again, Or at least attempting to delete some files from 5 days ago. But getting 550 CWD Failed, message: "Directory not found" on the FTP log. Because the file/directory were already deleted when I wasn't looking. I think there is something wrong with the FTP logic and needs to be addressed.
IP2M-851E with remote FTP for snapshots.
doel13
Posts: 17
Joined: Fri Sep 07, 2018 10:02 pm

Re: IP2M-851E deleting files on remote FTP

Post by doel13 »

At least this time it is still taking snapshots as configured and put them on the remote FTP server. So it seems there is runaway process that delete files and directories for some reasons.
IP2M-851E with remote FTP for snapshots.
Post Reply