FTP service stops working correctly after a couple of hours, no error message in logs

  • I had some issues with my older setup using OMV 3.x (the last 3 version - 3.19? I don't recall) and have now installed a fresh up-to-date OMV 4.1.23-1.
    One issue that I had previously was regarding the FTP service and unfortunately I have the exact same issue again:
    I have configured FTP to work implicitly with SSL / TLS on port 990 and everything is working absolutely fine. Until some time later that day (I haven't figured out how long the time span is, a couple of hours at least) the FTP service obviously stops working or runs into some kind of eror state. There is no error given in the FTP log, the service itself runs, users are able to log in but then no folders can be displayed and the connection times out.
    If I then log into OMV and restart the FTP service (by setting the FTP to disable, apply and re-enable and apply) everything will be working fine right away. I have already thought about running a service-restart-script every few hours or so since that seems to solve the problem, but I'd love to hear your suggestions.
    Especially since I experienced the error on the 3 version and now have the same on an entirely fresh install as well.


    Here's the log of FileZilla when trying to connect:


    after trying repeatedly it gives me the message I have exceeded my maximum number of connections, so it seems the old connections aren't terminated. Here's the same log the same log scrolled down a little



    and here's the log a few minutes later after disabling / re-enabling the FTP service (the same log again, a little further down):



    Here's all of the logs of the FTP service of OMV of the same time - saying pretty much nothing in my opinion:



    Any help would be greatly appreciated! I just can't figure it out...

    2 Mal editiert, zuletzt von KOENICH () aus folgendem Grund: edit of screenshots

  • As I said, I'd like to restart the FTP service by a script once a day or so, just as a work around.
    ...but how do I actually do that? :P
    I'd like to use scheduled jobs of OMV, but I'm not sure what the actual command is I would need.



    ---
    edit
    OK that wasn't that hard.
    The command is just "service proftpd restart" and it works. I have set that up that as a daily task, I wonder if that's sufficient to keep FTP more or less working.


  • ---
    edit
    OK that wasn't that hard.
    The command is just "service proftpd restart" and it works. I have set that up that as a daily task, I wonder if that's sufficient to keep FTP more or less working.

    Maybe someone will come across this thread and find this solution and it won't work.
    I found out later, that for some unknown reason, this command works perfectly well when entered manually (using shell) or running the scheduled job manually.
    But when the job ran at the predefined time, it gave me this error: mesg: ttyname failed: Inappropriate ioctl for device (only found out because I had the output sent to me via email)
    I couldn't figure out how to avoid this error and have found another workaround, which actually does work.
    I created a very simple script containing the same command:


    Bash
    #!/bin/sh
    service proftpd restart

    I saved it in a new folder I created and now run this script every night at 3am - now it really works perfectly fine:


    Maybe it'll help someone in the future, who knows?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!