Failure Sending Webcam Images by FTP

    • OMV 3.x
    • Resolved
    • Failure Sending Webcam Images by FTP

      Running OVM 3.0.59 on Raspberry Pi 3. Have NAS setup and FTP on. Goal is to send webcam images via FTP through local network but having no luck getting to work. Using 5 webcams. Brands are D-Link and Microsevin and I have 3 separate models. All units fail to FTP when testing the FTP settings from the webcam's interface. Error always = "Test failed" and no files appear in Shared folder on NAS.

      What does work is connecting to OVM FTP through local web browser and standalone FTP app on my iMac. The app uploads files and they successfully appear in Shared folder on NAS.

      What also works is my original setup of all 5 webcams sending images by FTP to the FTP server running on my iMac. To work, Passive Mode is necessary to be selected on each webcam, otherwise if off, a file will be written with 0k size.

      But I now want it off my iMac and handled by OVM.

      I have tried toggling on/off all the OMV FTP settings including Passive FTP and opening ports 49152-65534 in router and nothing works to get the webcams to FTP to OMV. Tried default port 21 and alternate 2121. FTP from browser and app always consistently works regardless of all the setting changes.

      I read in another post (FTP Share for Webcam) a user had problems with webcams not liking the Welcome Message. The Welcome Message field is blank. User modified the welcome.msg Template with some code but I don't know how to do that to see if I am having the same problem.

      I have looked at the OMV FTP logs and don't see any major errors. I'm not even sure it's showing that level of detail of all the communication between the webcams and FTP server.

      Source Code

      1. Jan 10 21:12:36 raspberrypi proftpd[14421]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - FTP session opened.
      2. Jan 10 21:12:36 raspberrypi proftpd[14421]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
      3. Jan 10 21:12:36 raspberrypi proftpd[14421]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: allowed connection from ::ffff:192.168.1.100
      4. Jan 10 21:12:36 raspberrypi proftpd[14421]: pam_unix(proftpd:account): account ipcam has password changed in future
      5. Jan 10 21:12:36 raspberrypi proftpd[14421]: pam_unix(proftpd:session): session opened for user ipcam by (uid=0)
      6. Jan 10 21:12:36 raspberrypi proftpd[14421]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - USER ipcam: Login successful.
      7. Jan 10 21:12:46 raspberrypi proftpd[14436]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - FTP session opened.
      8. Jan 10 21:12:46 raspberrypi proftpd[14436]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
      9. Jan 10 21:12:46 raspberrypi proftpd[14436]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: allowed connection from ::ffff:192.168.1.100
      10. Jan 10 21:12:46 raspberrypi proftpd[14436]: pam_unix(proftpd:account): account ipcam has password changed in future
      11. Jan 10 21:12:46 raspberrypi proftpd[14436]: pam_unix(proftpd:session): session opened for user ipcam by (uid=0)
      12. Jan 10 21:12:46 raspberrypi proftpd[14436]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - USER ipcam: Login successful.
      13. Jan 10 21:12:46 raspberrypi proftpd[14442]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - FTP session opened.
      14. Jan 10 21:12:46 raspberrypi proftpd[14442]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
      15. Jan 10 21:12:46 raspberrypi proftpd[14442]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - mod_wrap/1.2.4: allowed connection from ::ffff:192.168.1.100
      16. Jan 10 21:12:46 raspberrypi proftpd[14442]: pam_unix(proftpd:account): account ipcam has password changed in future
      17. Jan 10 21:12:46 raspberrypi proftpd[14442]: pam_unix(proftpd:session): session opened for user ipcam by (uid=0)
      18. Jan 10 21:12:46 raspberrypi proftpd[14442]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - USER ipcam: Login successful.
      19. Jan 10 21:12:50 raspberrypi proftpd[14442]: pam_unix(proftpd:session): session closed for user ipcam
      20. Jan 10 21:12:50 raspberrypi proftpd[14436]: pam_unix(proftpd:session): session closed for user ipcam
      21. Jan 10 21:12:50 raspberrypi proftpd[14442]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - FTP session closed.
      22. Jan 10 21:12:50 raspberrypi proftpd[14436]: 127.0.1.1 (192.168.1.100[192.168.1.100]) - FTP session closed.
      23. Jan 10 21:13:06 raspberrypi proftpd[14462]: 127.0.1.1 (192.168.1.75[192.168.1.75]) - FTP session opened.
      24. Jan 10 21:13:06 raspberrypi proftpd[14462]: 127.0.1.1 (192.168.1.75[192.168.1.75]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
      25. Jan 10 21:13:06 raspberrypi proftpd[14462]: 127.0.1.1 (192.168.1.75[192.168.1.75]) - mod_wrap/1.2.4: allowed connection from ::ffff:192.168.1.75
      26. Jan 10 21:13:06 raspberrypi proftpd[14462]: pam_unix(proftpd:account): account ipcam has password changed in future
      27. Jan 10 21:13:06 raspberrypi proftpd[14462]: pam_unix(proftpd:session): session opened for user ipcam by (uid=0)
      28. Jan 10 21:13:06 raspberrypi proftpd[14462]: 127.0.1.1 (192.168.1.75[192.168.1.75]) - USER ipcam: Login successful.
      29. Jan 10 21:13:06 raspberrypi proftpd[14462]: pam_unix(proftpd:session): session closed for user ipcam
      30. Jan 10 21:13:06 raspberrypi proftpd[14462]: 127.0.1.1 (192.168.1.75[192.168.1.75]) - FTP session closed.
      Display All

      The session times of 21:12 show my FTP app at .100 logging in successfully and I was able to upload a file.

      The session times of 21:13 show my webcam at .75 logging in successfully but then the session closing immediately.

      When it comes to coding and terminal commands I am a complete novice. I do know how to use Terminal on the Mac by following step-by-step directions if needed or by other methods from within OMV if given detailed direction.

      I would be most grateful for any advice on how to further troubleshoot the situation. Thx.
    • subzero79 wrote:

      I ask again does the webcam has an option to configure in which folder of the ftp server to write on ? Or you just specify the server ?
      Those ss don't help
      Hey there, running omv 3.0.65 on bananapipro my wanscam it isn't able to upload nothing. Yes, options in the cam menu doesn't allow for a specify folder, I can just indicate the server that's it! What and where else should I look?...
    • HAZArD wrote:

      What and where else should I look?..
      Not much you can do the landing root folder is not writable by any user, is just a virtual chroot. It points directly to /srv/ftp, of course if you go there you see nothing. You can run chmod 777 /srv/ftp maybe the camera will write to it, but then all contents will be stored in that folder and not in /media
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server