[+] Pure-ftpd-mysql 451-Error during write to file

Discussion in 'General' started by Ruthwen, May 18, 2021.

  1. Ruthwen

    Ruthwen New Member

    Hi everyone,
    I have problem with WRITE (read is ok, i can also enter the directories and list files) to FTP server on ISPCP instance (Debian Buster)
    Connection log:
    Code:
    Status:    Resolving address of b3.mydomain.pl
    Status:    Connecting to xx.xx.xx.221:21...
    Status:    Connection established, waiting for welcome message...
    Status:    Initializing TLS...
    Status:    Verifying certificate...
    Status:    TLS connection established.
    Status:    Logged in
    Status:    Retrieving directory listing...
    Status:    Directory listing of "/" successful
    Status:    Retrieving directory listing of "/web"...
    Status:    Directory listing of "/web" successful
    Status:    Retrieving directory listing of "/web/wp-content"...
    Status:    Directory listing of "/web/wp-content" successful
    Status:    Resolving address of b3.mydomain.pl
    Status:    Connecting to xx.xx.xx.221:21...
    Status:    Connection established, waiting for welcome message...
    Status:    Initializing TLS...
    Status:    Verifying certificate...
    Status:    TLS connection established.
    Status:    Logged in
    Status:    Starting upload of /home/lukasz/z góry.png
    Command:    CWD /web/wp-content
    Response:    250 OK. Current directory is /web/wp-content
    Command:    PWD
    Response:    257 "/web/wp-content" is your current location
    Command:    TYPE A
    Response:    200 TYPE is now ASCII
    Command:    PASV
    Response:    227 Entering Passive Mode (xx,xx,xx,221,136,93)
    Command:    STOR z góry.png
    Response:    150 Accepted data connection
    Response:    451-Error during write to file
    Response:    451 Transfer aborted
    Error:    File transfer failed
    Status:    Starting upload of /home/lukasz/z góry.png
    Status:    Retrieving directory listing of "/web/wp-content"...
    Status:    Skipping upload of /home/lukasz/z góry.png
    Status:    File transfer successful, transferred 1,469 bytes in 1 second
    Log of this transfer is here:
    Code:
    yy.yy.yy.yy - user_user [18/May/2021:10:37:49 +0200] "PUT /var/www/clients/client1/web7/web/wp-content/z%20g%C3%B3ry.png" 200 0
    And here:
    Code:
    May 18 10:37:47 b3 pure-ftpd: ([email protected]) [INFO] New connection from yy.yy.yy.yy
    May 18 10:37:47 b3 pure-ftpd: ([email protected]) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
    May 18 10:37:47 b3 pure-ftpd: ([email protected]) [INFO] user_user is now logged in
    May 18 10:37:49 b3 pure-ftpd: ([email protected]) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
    May 18 10:37:49 b3 pure-ftpd: ([email protected]) [NOTICE] /var/www/clients/client1/web7//web/wp-content/z góry.png uploaded  (0 bytes, 0.00KB/sec)
    May 18 10:37:49 b3 pure-ftpd: ([email protected]) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
    Firewall is disabled.
    Configuration is out of the box after installing ispconfig:
    Code:
    ChrootEveryone               yes
    BrokenClientsCompatibility   no
    MaxClientsNumber             50
    Daemonize                    yes
    MaxClientsPerIP              8
    VerboseLog                   no
    DisplayDotFiles              yes
    AnonymousOnly                no
    NoAnonymous                  no
    SyslogFacility               ftp
    DontResolve                  yes
    MaxIdleTime                  15
    LimitRecursion               10000 8
    AnonymousCanCreateDirs       no
    MaxLoad                      4
    AntiWarez                    yes
    Umask                        133:022
    MinUID                       100
    AllowUserFXP                 no
    AllowAnonymousFXP            no
    ProhibitDotFilesWrite        no
    ProhibitDotFilesRead         no
    AutoRename                   no
    AnonymousCantUpload          no
    MaxDiskUsage                   99
    CustomerProof                yes
    Files rights in directory are good: web7:client1

    I don't have any idea why...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Ruthwen

    Ruthwen New Member

  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Maybe the FTP user has reached it's quota?
     
    Ruthwen likes this.
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    really grasping/guessing for ideas, perhaps the characters in the filename are not allowed (by your filesystem or by ftpd)? maybe that AntiWarez comes into play? (no idea what it does offhand) I'd sure expect more info to be logged if the server is refusing the file; but in the absence of logging info, try attaching to the ftp daemon with strace once you are connected (before uploading), then see what happens at the syscall level with the failed upload.
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    And may be try resync ftp service?
     
  7. Ruthwen

    Ruthwen New Member

    Yes, I am stupid...
     
    ahrasis likes this.

Share This Page