file storage on remote FTP Server / useage of the mask editor

1,989 views
Skip to first unread message

HWL

unread,
Jan 28, 2018, 6:29:32 AM1/28/18
to motioneye
Hi all,

I have installed MotionEyeOS succesfully on a RasPi2. Everything is working fine. Just 2 questions:

- I assume when setting up the mask and edit by hand, all the black squares are ignored? (and the 'grey' ones are being watched)


- I seem not to be able to setup the upload location for the filestorage: I  have a local NAS with ftp server installed. When trying to reach it via a ftp client, it works fine 'ftp://<IP>' then enter username / password works. However: I am not succesfull while using MotionEyeOS. My settings:

advanced settings are 'ON'
in the tab  File Storage:
Upload media files / pictures / movies are all enabled (ON)
upload service is 'FTP Server'  selected from the dropdown menu
entered an IP address: '192.168.1.xxx'
Server Port: 21 (can't be blank! and has been tested to work)
location: '/Surveillance/'
include subfolders 'ON'
username and password are filled and have been tested.
call a web hook and run a command are 'OFF'

help is needed! How to debug or what is wrong???

Regards, HWL


HWL

unread,
Jan 28, 2018, 12:31:40 PM1/28/18
to motioneye
Found in the meantime my answer to the mask setup. It is working as described below.

Please, some help with the FTP issue, anyone?

Op zondag 28 januari 2018 12:29:32 UTC+1 schreef HWL:

Calin Crisan

unread,
Jan 28, 2018, 1:56:25 PM1/28/18
to motioneye
Does your motionEye create media files locally? Are you able to see your pictures and/or movies locally, on your motionEye disk/sd card?

HWL

unread,
Jan 28, 2018, 2:03:56 PM1/28/18
to motioneye
Yes, MotionEye is recording without any issues on the SD card. I can see and download / watch the files, thumbnails are present, ..)



Op zondag 28 januari 2018 19:56:25 UTC+1 schreef Calin Crisan:

Calin Crisan

unread,
Jan 28, 2018, 2:31:09 PM1/28/18
to HWL, motioneye
In that case, I recommend enabling debugging (in Expert Settings) and inspecting the motioneye.log file. 

--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/f5f206ba-1f82-4d8e-8938-292bf63b8ad9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

HWL

unread,
Jan 29, 2018, 12:39:32 PM1/29/18
to motioneye

Hi Calin,

Thx for your reaction. I enabled the debugging level and triggered some motion to record a video.

In the motioneye.log logging file, following is logged.

2018-01-29 18:17:23: [motioneye] DEBUG: loading upload services state from "/data/etc/uploadservices.json"...
2018-01-29 18:17:23: [motioneye] DEBUG: loaded upload service "ftp" for camera with id "1"
2018-01-29 18:17:23: [motioneye] DEBUG: ftp: uploading file "/data/output/Zijkant_huis/20180129/18/20180129-181620-60.mkv" to ftp
2018-01-29 18:17:23: [motioneye] DEBUG: ftp: size of "/data/output/Zijkant_huis/20180129/18/20180129-181620-60.mkv" is 18.098MB
2018-01-29 18:17:23: [motioneye] DEBUG: ftp: mime type of "/data/output/Zijkant_huis/20180129/18/20180129-181620-60.mkv" is "video/x-matroska"
2018-01-29 18:17:23: [motioneye] DEBUG: ftp: creating connection to <username>@192.168.1.xxx:21
2018-01-29 18:17:23: [motioneye] DEBUG: ftp: ensuring path /Surveillance/20180129/18
2018-01-29 18:17:23: [motioneye] ERROR: failed to upload file "/data/output/Zijkant_huis/20180129/18/20180129-181620-60.mkv" with service ftp: 550 Surveillance: File exists
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 875, in upload_media_file
File "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 98, in upload_file
File "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 650, in upload_data
File "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 703, in _make_dirs
File "usr/lib/python2.7/ftplib.py", line 589, in mkd
File "usr/lib/python2.7/ftplib.py", line 251, in sendcmd
File "usr/lib/python2.7/ftplib.py", line 226, in getresp
error_perm: 550 Surveillance: File exists

I can assure you that the mkv does not exist.

Furthermore I tried sftp from the MotionEyeOS raspberry (ssh into RPi, then started sftp towards the NAS):

sftp -P 2222 @192.168.1.xxx
Password:
Connected to 192.168.1.xxx.
sftp> pwd
Remote working directory: /
sftp> ls
Foscam Home Surveillance TVRecording
sftp> cd Surveillance
sftp> ls
Voordeur Zijkant_huis logging_ftp.txt
sftp> mkdir test
sftp> ls
Voordeur Zijkant_huis logging_ftp.txt test

As you can see, I can create a directory (also a file if needed) with the same username/password (therefor: rights have been set properly).

Just a thought (didn't look at the Python files): are you trying to create the directory structure in 1 mkdir statement?

There is also an entry made in the issues list. Which one would you like to keep?

Best regards.



Op zondag 28 januari 2018 20:31:09 UTC+1 schreef Calin Crisan:
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages