Reolink Camera Cannot Connect to TrueNAS FTP
Description
Steps to Reproduce
Create an FTP user in TrueNAS and assign a password and a dataset for the home directory where the FTP files will be stored.
Set up and start the TrueNAS FTP Server (for my tests, it didn't matter whether TLS was enabled or not). Enable "Always chroot" and "Allow Local User Login"
In the Reolink Camera, navigate to Surveillance -> FTP ->FTP Settings and configure the IP, FTP port settings and username/password (as per TrueNAS). Ensure "Anonymous" is NOT checked.
Click Save, then click Test. You will receive an error 451.
Change the FTP server in TrueNAS to Anonymous, and in Reolink settings, change to Anonymous and everything works!
Expected Result
I should be able to set the FTP settings in Reolink and TrueNAS FTP to login as a local user rather than the Anonymous user.
Actual Result
I can only successfully connect my Reolink camera to TrueNAS via FTP via the Anonymous user.
Environment
OS Version:TrueNAS-SCALE-24.10.0.2
Product:TRUENAS-MINI-3.0-XL+
Model:Intel(R) Atom(TM) CPU C3758 @ 2.20GHz
Memory:63 GiB
Hardware Health
No issues or errors resulting in TrueNAS failures
Error Message (if applicable)
451: Login Failed. Please check: If username or password is correct ...
Attachments
4
- 04 Dec 2024, 05:27 PM
- 24 Nov 2024, 02:24 AM
- 24 Nov 2024, 02:21 AM
- 24 Nov 2024, 02:18 AM
Activity
Show:
Bug Clerk December 6, 2024 at 9:34 PM
This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.
Bug Clerk December 6, 2024 at 9:23 PM
24.10.2 PR: https://github.com/truenas/middleware/pull/15150
Bug Clerk December 6, 2024 at 7:49 PM
Coogie December 6, 2024 at 6:05 PMEdited
Hi Mark,
Thanks for guiding me through the process and working with me on the issue. It’s always good to find a resolution 🙂
Mark Grimes December 6, 2024 at 3:25 PM
I’ll fix the default FTP banner for the next release/update.
Thanks for all your help!
Complete
Pinned fields
Click on the next to a field label to start pinning.
Assignee
Reporter
Coogie
CoogieImpact
Medium
Affects versions
Components
Priority
Created November 22, 2024 at 9:15 PM
Updated December 6, 2024 at 9:34 PM
Resolved December 6, 2024 at 9:34 PM
My Reolink cameras were using FTP to store videos and photos on a TrueNAS dataset without any issues until upgrading to 24.10.0.2. However, after upgrading to TrueNAS 24.10.0.2, I started receiving a 451 error (indicating an invalid username or password) which resulted in nothing be stored on the TrueNAS server (Note that this FTP user was created with the correctly assigned home directory).
To validate this was a TrueNAS FTP issue, I created an FTP user on my Synology NAS with the same username and password as my TrueNAS FTP user, and that was successful.
I took a tcpdump of the Synology and TruesNAS FTP connection tests, but there didn’t seem to be anything of relevance. Let me know if there are some other tests I can perform.
To temporarily workaround this issue, I have switched to an anonymous FTP user, which does work but I am NOT happy about.