cschlosser / drone-ftps

Deploy to FTPS server from Drone CI build
https://hub.docker.com/r/cschlosser/drone-ftps/
Apache License 2.0
20 stars 16 forks source link

Fatal error: max-retries exceeded on secure connection #32

Open nixoso opened 3 months ago

nixoso commented 3 months ago

I have the problem that when uploading ONLY via Secure-Connection it always comes to the error message: Fatal error: max-retries exceeded.

The upload seems to be finished (was slow but still) but then the error message appears.

Here is the debug log:

---- Resolving host address...
---- IPv6 is not supported or configured
---- 1 address found: 172.122.135.100
---- Connecting to ftp.no-soft.de (172.122.135.100) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 3 of 50 allowed.
<--- 220-Local time is now 15:40. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  UTF8
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  MFMT
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  PRET
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  TVFS
<---  ESTA
<---  PASV
<---  EPSV
<---  ESTP
<--- 211 End.
---> AUTH TLS
<--- 234 AUTH TLS OK.
---> OPTS UTF8 ON
Certificate depth: 2; subject: /C=US/O=Internet Security Research Group/CN=ISRG Root X1; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 1; subject: /C=US/O=Let's Encrypt/CN=R3; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 0; subject: /CN=server.cpprotect6.de; issuer: /C=US/O=Let's Encrypt/CN=R3
WARNING: Certificate verification: hostname checking disabled
<--- 504 Unknown command
---> USER ********
<--- 331 User ******** OK. Password required
---> PASS ********
<--- 230 OK. Current restricted directory is /
---> OPTS UTF8 ON
<--- 504 Unknown command
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> PWD
<--- 257 "/" is your current location
---> PBSZ 0
<--- 200 PBSZ=0
---> PROT P
<--- 200 Data protection level set to "private"
---- CWD path to be sent is `/public_html/downloads'
---> CWD /public_html/downloads
<--- 250 OK. Current directory is /public_html/downloads
---> PRET MLSD 
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,131,82)
---- Connecting data socket to (172.122.135.100) port 33618
---- Data connection established
---> MLSD
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Got EOF on data connection
---- Closing data socket
<--- 226 7 matches total
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE A
<--- 200 TYPE is now ASCII
---> PRET MLSD 
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,122,173)
---- Connecting data socket to (172.122.135.100) port 31405
---- Data connection established
---> MLSD
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Got EOF on data connection
---- Closing data socket
<--- 226 3 matches total
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---> DELE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 250 Deleted de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
---- CWD path to be sent is `/'
---> CWD /
<--- 250 OK. Current directory is /
---> RMD public_html/downloads/MySoftware
<--- 250 The directory was successfully removed
---> MKD /public_html
<--- 550 Can't create directory: File exists
---> MKD /public_html/downloads
<--- 550 Can't create directory: File exists
---> MKD public_html/downloads/MySoftware
<--- 257 "public_html/downloads/MySoftware" : The directory was successfully created
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE A
<--- 200 TYPE is now ASCII
---> PRET MLSD 
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,123,252)
---- Connecting data socket to (172.122.135.100) port 31740
---- Data connection established
---> MLSD
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Got EOF on data connection
---- Closing data socket
<--- 226 2 matches total
---> TYPE I
<--- 200 TYPE is now 8-bit binary
Transferring file `de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip'
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,126,251)
---- Connecting data socket to (172.122.135.100) port 32507
---- Data connection established
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Error during read from data connection
<--- 451-Transfer aborted
<--- 451 6.379 seconds (measured here), 10.92 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 73023488
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
copy: put rolled back to 73023488, seeking get accordingly
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,133,218)
---- Connecting data socket to (172.122.135.100) port 34266
---- Data connection established
---> REST 73023488
<--- 350 Restarting at 73023488
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
**** SSL_write: protocol is shutdown
---- Closing data socket
---- Closing control socket
---- Connecting to ftp.no-soft.de (172.122.135.100) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 3 of 50 allowed.
<--- 220-Local time is now 15:41. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  UTF8
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  MFMT
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  PRET
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  TVFS
<---  ESTA
<---  PASV
<---  EPSV
<---  ESTP
<--- 211 End.
---> AUTH TLS
<--- 234 AUTH TLS OK.
---> OPTS UTF8 ON
Certificate depth: 2; subject: /C=US/O=Internet Security Research Group/CN=ISRG Root X1; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 1; subject: /C=US/O=Let's Encrypt/CN=R3; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 0; subject: /CN=server.cpprotect6.de; issuer: /C=US/O=Let's Encrypt/CN=R3
WARNING: Certificate verification: hostname checking disabled
<--- 504 Unknown command
---> USER ********
<--- 331 User ******** OK. Password required
---> PASS ********
<--- 230 OK. Current restricted directory is /
---> OPTS UTF8 ON
<--- 504 Unknown command
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> PBSZ 0
<--- 200 PBSZ=0
---> PROT P
<--- 200 Data protection level set to "private"
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 73089024
copy: put rolled back to 73285632, seeking get accordingly
copy: put rolled back to 73089024, seeking get accordingly
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,117,246)
---- Connecting data socket to (172.122.135.100) port 30198
---- Data connection established
---> REST 73089024
<--- 350 Restarting at 73089024
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Error during read from data connection
<--- 451-Transfer aborted
<--- 451 0.119 seconds (measured here), 10.41 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 74383360
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
copy: put rolled back to 74383360, seeking get accordingly
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,119,44)
---- Connecting data socket to (172.122.135.100) port 30508
---- Data connection established
---> REST 74383360
<--- 350 Restarting at 74383360
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
**** SSL_write: protocol is shutdown
---- Closing data socket
---- Closing control socket
---- Connecting to ftp.no-soft.de (172.122.135.100) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 3 of 50 allowed.
<--- 220-Local time is now 15:41. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  UTF8
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  MFMT
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  PRET
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  TVFS
<---  ESTA
<---  PASV
<---  EPSV
<---  ESTP
<--- 211 End.
---> AUTH TLS
<--- 234 AUTH TLS OK.
---> OPTS UTF8 ON
Certificate depth: 2; subject: /C=US/O=Internet Security Research Group/CN=ISRG Root X1; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 1; subject: /C=US/O=Let's Encrypt/CN=R3; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 0; subject: /CN=server.cpprotect6.de; issuer: /C=US/O=Let's Encrypt/CN=R3
WARNING: Certificate verification: hostname checking disabled
<--- 504 Unknown command
---> USER ********
<--- 331 User ******** OK. Password required
---> PASS ********
<--- 230 OK. Current restricted directory is /
---> OPTS UTF8 ON
<--- 504 Unknown command
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> PBSZ 0
<--- 200 PBSZ=0
---> PROT P
<--- 200 Data protection level set to "private"
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 74465280
copy: put rolled back to 74645504, seeking get accordingly
copy: put rolled back to 74465280, seeking get accordingly
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,134,81)
---- Connecting data socket to (172.122.135.100) port 34385
---- Data connection established
---> REST 74465280
<--- 350 Restarting at 74465280
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Error during read from data connection
<--- 451-Transfer aborted
<--- 451 0.071 seconds (measured here), 10.11 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75218944
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
copy: put rolled back to 75218944, seeking get accordingly
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,135,66)
---- Connecting data socket to (172.122.135.100) port 34626
---- Data connection established
---> REST 75218944
<--- 350 Restarting at 75218944
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
**** SSL_write: protocol is shutdown
---- Closing data socket
---- Closing control socket
---- Connecting to ftp.no-soft.de (172.122.135.100) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 4 of 50 allowed.
<--- 220-Local time is now 15:41. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  UTF8
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  MFMT
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  PRET
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  TVFS
<---  ESTA
<---  PASV
<---  EPSV
<---  ESTP
<--- 211 End.
---> AUTH TLS
<--- 234 AUTH TLS OK.
---> OPTS UTF8 ON
Certificate depth: 2; subject: /C=US/O=Internet Security Research Group/CN=ISRG Root X1; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 1; subject: /C=US/O=Let's Encrypt/CN=R3; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 0; subject: /CN=server.cpprotect6.de; issuer: /C=US/O=Let's Encrypt/CN=R3
WARNING: Certificate verification: hostname checking disabled
<--- 504 Unknown command
---> USER ********
<--- 331 User ******** OK. Password required
---> PASS ********
<--- 230 OK. Current restricted directory is /
---> OPTS UTF8 ON
<--- 504 Unknown command
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> PBSZ 0
<--- 200 PBSZ=0
---> PROT P
<--- 200 Data protection level set to "private"
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75284480
copy: put rolled back to 75481088, seeking get accordingly
copy: put rolled back to 75284480, seeking get accordingly
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,130,122)
---- Connecting data socket to (172.122.135.100) port 33505
---- Data connection established
---> REST 75284480
<--- 350 Restarting at 75284480
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Transfer aborted
<--- 451 0.058 seconds (measured here), 6.46 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75677696
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
copy: put rolled back to 75677696, seeking get accordingly
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,136,118)
---- Connecting data socket to (172.122.135.100) port 34934
---- Data connection established
---> REST 75677696
<--- 350 Restarting at 75677696
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
**** SSL_write: protocol is shutdown
---- Closing data socket
---- Closing control socket
---- Connecting to ftp.no-soft.de (172.122.135.100) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 3 of 50 allowed.
<--- 220-Local time is now 15:41. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  UTF8
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  MFMT
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  PRET
<---  AUTH TLS
<---  PBSZ
<---  PROT
<---  TVFS
<---  ESTA
<---  PASV
<---  EPSV
<---  ESTP
<--- 211 End.
---> AUTH TLS
<--- 234 AUTH TLS OK.
---> OPTS UTF8 ON
Certificate depth: 2; subject: /C=US/O=Internet Security Research Group/CN=ISRG Root X1; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 1; subject: /C=US/O=Let's Encrypt/CN=R3; issuer: /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Certificate depth: 0; subject: /CN=server.cpprotect6.de; issuer: /C=US/O=Let's Encrypt/CN=R3
WARNING: Certificate verification: hostname checking disabled
<--- 504 Unknown command
---> USER ********
<--- 331 User ******** OK. Password required
---> PASS ********
<--- 230 OK. Current restricted directory is /
---> OPTS UTF8 ON
<--- 504 Unknown command
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> PBSZ 0
<--- 200 PBSZ=0
---> PROT P
<--- 200 Data protection level set to "private"
---- CWD path to be sent is `/public_html/downloads/MySoftware'
---> CWD /public_html/downloads/MySoftware
<--- 250 OK. Current directory is /public_html/downloads/MySoftware
---> TYPE I
<--- 200 TYPE is now 8-bit binary
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75759616
copy: put rolled back to 75939840, seeking get accordingly
copy: put rolled back to 75759616, seeking get accordingly
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,121,47)
---- Connecting data socket to (172.122.135.100) port 31023
---- Data connection established
---> REST 75759616
<--- 350 Restarting at 75759616
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Error during read from data connection
<--- 451-Transfer aborted
<--- 451 0.023 seconds (measured here), 4.05 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75857920
---> PRET STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
copy: put rolled back to 75857920, seeking get accordingly
<--- 200 Ready to proceed
---> PASV
<--- 227 Entering Passive Mode (172,122,135,100,124,138)
---- Connecting data socket to (172.122.135.100) port 31882
---- Data connection established
---> REST 75857920
<--- 350 Restarting at 75857920
---> STOR de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 150 Accepted data connection
WARNING: Certificate verification: hostname checking disabled
---- Closing data socket
<--- 451-Error during read from data connection
<--- 451-Transfer aborted
<--- 451 0.016 seconds (measured here), 4.91 Mbytes per second
---> SIZE de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip
<--- 213 75939840
mirror: de.nosoft.e4.MySoftware.product-win32.win32.x86_64.zip: Fatal error: max-retries exceeded
---> QUIT
<--- 221-Goodbye. You uploaded 176 and downloaded 0 kbytes.
<--- 221 Logout.
---- Closing control socket

With Unsecure-Upload there are no problems, the upload is done in a few seconds. Do I need to configure anything special - does anyone have any ideas?