我利ProFTP架的FTP服務,被利用來寫一個自動上傳資料的程式。
結果居然報錯,說是:
Append/Restart not permitted, try again
拜請Google大神搜尋解決之道!
結果是一套SmartFTP軟體的使用文件中找到線索。
提示是 AllowStoreRestart 功能被關閉!
Append/Restart not permitted, try again
ProblemYou may receive the following error message from the FTP server when trying to transfer a file:
Append/Restart not permitted, try again
Cause
The FTP server denies clients to restart/resume an interrupted transfer.
Solution
Enable restarts/resumes of uploads and downloads on the server side. You may need to contact the server administrator or the web hosting company to request this change.
Special Case: proftpd
By default proftpd denies clients to restart/resume interrupted uploads (AllowStoreRestart). But it allows clients to restart/resume interrupted downloads (AllowRetrieveRestart). This causes the REST command to appear in the FEAT reply and SmartFTP assumes that restart is supported. Thus SmartFTP tries to restart the transfer and fails because the FTP server doesn't allow it.
References
+======================================================================+
再找到官方文件,常見問題!
http://www.proftpd.org/docs/faq/linked/faq-ch4.html嗯,問題和解決方法,似乎有比較明確了。
著手理解細的 proftpd.conf 設定吧!
對了!
別用上面提到的 SmartFTP,那要錢的~
用FileZilla-Client就好。