To clarify a bit further, the ftp client used by reolink apparently breaks if the FTP login banner contains a newline character. I know I shouldn’t be surprised at bugs in that particular space, but
Jon Postel, rolling in his grave. If only we could harvest the energy from his spinning.
To clarify: this is a rather egregious bug in reolink software and should be reported to the vendor.
Oh I wasn’t disagreeing. They should be liberal in what they accept. If a newline trips them it’s hard not to be worried about the software in other ways.
Userauth banner?
DisplayLogin
in proftpd.conf file.
Wow, never could have guessed.
As a workaround, I’ve put in an init script that removes the MOTD banner until the update hits:
sed -i 's/\/etc\/proftpd\/proftpd.motd/off/g' /etc/proftpd/proftpd.conf
Reolink cams now authenticate successfully. Thanks so much.
Why not this instead?
echo “Welcome to TrueNAS FTP Server” > /etc/proftpd/proftpd.motd
Worked for me!
Has anyone reported this to Reolink?
Yes, I did. They acknowledged it and reported it to “Senior Engineering”.
I tried this but still have problems with the cameras. Any other ideas you can think to try? I see the “Welcome to TrueNAS FTP” message when logging in via FileZilla for example, so I know that the banner has been updated.
So there are really really no new lines in the message?
Did you restart your cameras? Some of my Cams needed a reboot because the ftp client was broken beyond repair.
If this does not help you could try to reset the config and start from scratch.
I was on an old version of the Reolink client. It’s working now on iOS v4.51.1. However, my macOS app is still not working (v8.17.8). That’s ok for now, my FTP settings are working and my videos are recording again.
@davidramiro can you explain how to do it step by step?
Reolink gave up. Just got a reply from their team
vi /etc/proftpd/proftpd.motd
Edit the file to only contain one line
Alternatively:
echo -n "Hello there" > /etc/proftpd/proftpd.motd
This just writes “Hello there” to the file causing the “problems” overwriting what was already there. So no harm done
If you still need help, let me know. It really sucks that reolink is letting us down.
Just FYI this bug should already be fixed in latest 24.10 release.
Thanks! I’ll do that. In the meantime I edited the .conf and deleted the path to .motd and replaced it with „off”. Don’t know when and how but the recordings started showing on the ftp location. Even though I keep getting the error message in the Reolink app.
Will do what you wrote as well.
24.10.2
January 28, 2025
Notable Changes
- Clean up FTP banner to prevent Reolink camera failures (NAS-132701).
@AndrStnz one more question. Do I have to repeat this every time I restart ftp service or will it stay for good?
BTW solution works, reolink uploads to my TrueNas ftp
Reboots and restarts of the service should be fine, an update will possibly break this, but as @jayrod shared it should be fixed in the next update
You mean the current update. 24.10.2. Above link is for the release notes.