FTP連線失敗需要重啟

FTP連線失敗需要重啟

我家裡有一台 WDMyCloud 伺服器,並啟用了 FTP。我有一個每日腳本在遠端伺服器上運行,透過 WinSCP 使用 FTP 來備份我的檔案(更改)。

我發現它可以工作幾週,然後停止工作,遠端服務顯示:

reconnecttime   120
confirm         off  
Connecting to MY_IP ... 
Connection failed.  
Timeout detected. (control connection)  
Connection failed. 
No session.

如果我連接到我的家庭伺服器並重新啟動它,它會再次工作,持續幾週。

我不知道如何解決這個問題,而不需要每次都重新啟動,這是不需要的。

運行netstat -s(如果此資訊有幫助):

Ip:
    322829131 total packets received
    0 forwarded
    0 incoming packets discarded
    322829030 incoming packets delivered
    167026857 requests sent out
    96 reassemblies required
    48 packets reassembled ok
Icmp:
    2350 ICMP messages received
    17 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 1301
        timeout in transit: 1047
        echo replies: 2
    96 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 94
        echo request: 2
IcmpMsg:
        InType0: 2
        InType3: 1301
        InType11: 1047
        OutType3: 94
        OutType8: 2
Tcp:
    67589 active connections openings
    159886 passive connection openings
    63 failed connection attempts
    293 connection resets received
    1 connections established
    321065805 segments received
    166107987 segments send out
    1979 segments retransmited
    24 bad segments received.
    2912 resets sent
    InCsumErrors: 8
Udp:
    2442227 packets received
    53 packets to unknown port received.
    0 packet receive errors
    2047207 packets sent
    0 receive buffer errors
    0 send buffer errors
UdpLite:
TcpExt:
    50 resets received for embryonic SYN_RECV sockets
    172118 TCP sockets finished time wait in fast timer
    24199 delayed acks sent
    89 delayed acks further delayed because of locked socket
    Quick ack mode was activated 91042 times
    1 SYNs to LISTEN sockets dropped
    313414566 packet headers predicted
    726641 acknowledgments not containing data payload received
    2497736 predicted acknowledgments
    114 times recovered from packet loss by selective acknowledgements
    1 bad SACK blocks received
    18 congestion windows recovered without slow start by DSACK
    29 congestion windows recovered without slow start after partial ack
    TCPLostRetransmit: 37
    2 timeouts after SACK recovery
    1143 fast retransmits
    28 forward retransmits
    26 retransmits in slow start
    644 other TCP timeouts
    TCPLossProbes: 15900
    TCPLossProbeRecovery: 9699
    2 SACK retransmits failed
    117192 DSACKs sent for old packets
    805 DSACKs sent for out of order packets
    9358 DSACKs received
    1 DSACKs for out of order packets received
    935 connections reset due to unexpected data
    136 connections reset due to early user close
    10 connections aborted due to timeout
    TCPSACKDiscard: 1914
    TCPDSACKIgnoredNoUndo: 8347
    TCPSpuriousRTOs: 3
    TCPSackShifted: 2583
    TCPSackMerged: 910
    TCPSackShiftFallback: 392
    TCPDeferAcceptDrop: 842
    TCPRetransFail: 2
    TCPRcvCoalesce: 11249748
    TCPOFOQueue: 2822356
    TCPOFOMerge: 794
    TCPChallengeACK: 22
    TCPSYNChallenge: 17
    TCPSpuriousRtxHostQueues: 2
IpExt:
    InMcastPkts: 654357
    OutMcastPkts: 296216
    InBcastPkts: 47928
    OutBcastPkts: 9356
    InOctets: -1
    OutOctets: -1
    InMcastOctets: 192358861
    OutMcastOctets: 111838969
    InBcastOctets: 7136455
    OutBcastOctets: 1110318

相關內容