Hi,
I've used SFTP for camera recordings since Surveillance Center doesn't supports fully my FosCam cameras.
So, it worked without issue (except you know the storage management which must be done manually).
Few weeks ago I've discovered all the recorded events created a zero file. Contained nothing.
Camera restart, checking of the settings lead nowhere, then I've tested the user/password access from the camera side to the SFTP share and it cailed even with updated credentials.
Then I changed from SFTP to FTP and the result was the same. Zero files. Then started to enable functions above the standard settings in FTP Advanced tab, like SSL/TLS - nothing.
Then FXP which as a miracle worked. I'm not really familiar why and how and again why, but not all went back to normal.
And all of these were because of teh latest non-beta ADM.
No questions, just shared experiences.
Oh, and increased failes logon attempts in the log on SFTP service, which I disabled now as not in used anymore.
SFTP share created file size zero
- Norbyte
- Posts: 37
- youtube meble na wymiar Warszawa
- Joined: Fri Jul 21, 2017 8:18 pm
- Location: Hungary
- Nazar78
- Posts: 2085
- Joined: Wed Jul 17, 2019 10:21 pm
- Location: Singapore
- Contact:
Re: SFTP share created file size zero
Thanks for sharing. I'm not using the Surveillance Center either even it has support for my cams because I need few customizations with less resources. For me I wrote a simple ffmpeg script to RTSP capture, monitor (in case the cams goes down) and housekeep for a month. Used to run it on the NAS but I've moved it to my router since it's using very little CPU (2-5% each cam H.265 1520p) and because I don't want to keep the hdds awaked.
For storage management you could do something like this, snippet taken from a part of my script. You can convert it into a script then schedule in the cron to run every midnight.
The above means find and remove the files and/or folders that's path not named as the next day and last modified over 31 days or is empty. Replace "-delete>/dev/null 2>&1" with "-ls" when you're testing to prevent accidental removal of data.
For storage management you could do something like this, snippet taken from a part of my script. You can convert it into a script then schedule in the cron to run every midnight.
Code: Select all
CCTV=/foo/bar # Path to the media. Mine was auto created every 15 mins with /some-paths/Surveillance/cctv-ip/yyyy/mm/dd/cctv-yyyymmdd-hhmmss.mp4
ARCHIVE=31 # Number of days to keep
NEXT="`date --date="next day" +%Y/%m/%d`" # Path to the next day to exclude archiving. Mine the path is pre-created before the next day ../yyyy/mm/dd
echo -n "Archiving CCTV after $ARCHIVE days..."
find $CCTV/* ! -wholename "*$NEXT" -a \( -mtime +$ARCHIVE -o -empty \) -delete>/dev/null 2>&1
echo "OK!"
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps
When posting, consider checking the box "Notify me when a reply is posted" to get faster response
-
- Posts: 59
- Joined: Sun Jul 11, 2021 4:32 pm
Re: SFTP share created file size zero
Does sound like a bug. I suggest reporting it to Asustor via the support system.
I made it long as I lacked the time to make it short.
---
Help to self-help:
How to ask (good) questions in a forum
---
General information
Location: Denmark
OS: Ubuntu 20.04
NAS: Lockerstor 4 (AS6604T)
- Norbyte
- Posts: 37
- Joined: Fri Jul 21, 2017 8:18 pm
- Location: Hungary
Re: SFTP share created file size zero
Ticket posted (#43155), but I don't know will it has effect or not.ndl101 wrote:Does sound like a bug. I suggest reporting it to Asustor via the support system.