Basically I’m trying to implement the example in the ftpupload documentation for a camera trigger. After some back and forth with the Reolink camera technical support, it came to light their FTP output does not support TLS, but does support SSL 3.0. I verified this by ticking that box on my windows FTP set-up and the camera was able to connect and send images and video when motion was triggered. However, my OH 2.4 is on the Rpi3 and I have struggled to find the files that the ftpupload binding uses. Below is the log of a typical failed login attempt (many have been tried with different ID’s and passwords).
2019-09-02 17:50:15.116 [INFO ] [server.listener.nio.FtpLoggingFilter] - RECEIVED: USER openhab
2019-09-02 17:50:15.126 [DEBUG] [g.apache.ftpserver.command.impl.USER] - Currently 0 out of 10 anonymous users logged in
2019-09-02 17:50:15.130 [DEBUG] [g.apache.ftpserver.command.impl.USER] - Currently 0 out of 10 users logged in
2019-09-02 17:50:15.139 [INFO ] [server.listener.nio.FtpLoggingFilter] - SENT: 331 User name okay, need password for openhab.2019-09-02 17:50:15.144 [INFO ] [server.listener.nio.FtpLoggingFilter] - RECEIVED: PASS *****
2019-09-02 17:50:15.147 [DEBUG] [g.apache.ftpserver.command.impl.PASS] - Currently 0 out of 10 users logged in
2019-09-02 17:50:15.158 [WARN ] [g.apache.ftpserver.command.impl.PASS] - User failed to log in
2019-09-02 17:50:15.162 [DEBUG] [g.apache.ftpserver.command.impl.PASS] - Waiting for 500 milliseconds due to login failure
2019-09-02 17:50:15.665 [WARN ] [g.apache.ftpserver.command.impl.PASS] - Login failure - openhab
2019-09-02 17:50:15.673 [DEBUG] [g.apache.ftpserver.impl.FtpIoSession] - Statistics login decreased due to user logout
2019-09-02 17:50:15.676 [INFO ] [server.listener.nio.FtpLoggingFilter] - SENT: 530 Authentication > failed.2019-09-02 17:50:15.678 [INFO ] [server.listener.nio.FtpLoggingFilter] - CLOSED
2019-09-02 17:50:15.681 [DEBUG] [che.ftpserver.impl.DefaultFtpHandler] - Closing session
2019-09-02 17:50:15.692 [DEBUG] [che.ftpserver.impl.DefaultFtpHandler] - Statistics login and connection count decreased due to session close
2019-09-02 17:50:15.694 [DEBUG] [che.ftpserver.impl.DefaultFtpHandler] - Session closed
To help me understand the Apache FTP server better, I downloaded and installed it as a standalone application on the RPI. In the simplified mode with no SSL and unencrypted passwords (another possible issue if the Apache Karaf is doing double duty as both the shell and FTP configuration), the camera was able to connect to the Rpi. However, I need to connect to the OH integrated Apache FTP server to use activity on the channels in rules, etc.
Since someone might ask, I have already used the IPcamera binding to get images and animated GIFs when my z-wave motion detectors are triggered. I would like to have the camera motion as a back-up trigger.
Any ideas would be appreciated