proftpd strange result

Discussion in 'Installation/Configuration' started by Crusader, Jul 10, 2007.

  1. Crusader

    Crusader New Member

    Hi,

    I have successfully installed ISPConfig on an Intranet server. All working fine except proftpd or something else, but the problem relates to FTP.

    When I log into an account (ftp) and upload a file e.g. index.html, the file uploads, but for some reason a character (<) is inserted as the first character in the file.

    e.g.

    index.html:
    Code:
    <html>
    <head>
    <title>Test Page</title>
    </head>
    <body>
    <h1>test page</h1>
    </body>
    </html>
    when uploaded it turns into: -

    Code:
    <<html>
    <head>
    <title>Test Page</title>
    </head>
    <body>
    <h1>test page</h1>
    </body>
    </html>
    notice that <html> has turned into <<html>!!!

    I have checked the proftpd config and all seems correct???

    Please help.

    Crusader
     
  2. Crusader

    Crusader New Member

    Additional Info

    I have also noticed that the problem only occurs when you upload the first time. When you upload the same file again, the upload works correctly.

    Ok, so I am getting round the problem by uploading files and checking the file size, but when I am uploading many files this becomes a problem as I have to check the file sizes on every file.

    Any ideas?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Which FTP client do you use to upload the files? Do you upload them in ascii or binary mode?
     
  4. Crusader

    Crusader New Member

    Leech FTP

    Hi,

    Thanks for the response. I use Leechftp, but the problem occurs using any ftp client. The problem doesn't occur when ftping to any other server? Wierd.

    Another point to add is that the first character is getting duplicated, so if the first char in the file being transferred is ! then it becomes !! when uploaded.

    Thanks,
    Crusader
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in your logs?
    Have you tried both active and passive transfers in your FTP client? And did you try ASCII and binary mode?
     
  6. Crusader

    Crusader New Member

    Pulling my hair out

    Hi,

    Results from changing ftp mode and other stuff: -

    Binary mode the error occurs, e.g. you get the extra char, but when you upload again (binary mode), you get success and the file uploads fine?

    ASCII mode the file uploads, but become unreadable.

    No errors in the xfer logs, or the system logs for proftpd whatsoever, all looks fine, even to the point where I manually monitored the logs between a failed upload and successful upload and didn't see any difference?!? crazy.

    And, no difference between active and passive :(

    This is making me think that there's a network problem? or maybe a filesystem problem? or am I going insane?

    Thanks,
    Crusader
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Hm, that's the first time I hear of such a problem... And I don't know a solution. :(
     

Share This Page