FTP could not connect to server

parthdp

Verified User
Joined
Apr 23, 2020
Messages
16
Whenever I try to connect ftp via filezilla i'm getting this error



Status: Connecting to IP...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response: 220-You are user number 3 of 50 allowed.
Response: 220-Local time is now 02:59. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: AUTH TLS
Error: Could not connect to server
Status: Waiting to retry...
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
403
Location
UA
I'm using hostname as FTP host, and using LetsEncrypt for hostname, it installs SSL cert + ca_root
 

parthdp

Verified User
Joined
Apr 23, 2020
Messages
16
ok... It's working as plain ftp connection. But now I'm facing another problem

Whenever I try to upload file bigger than 1 Gb. It's giving a 413 Error Even after i changed my upload max limit to 10 gb from DA admin setting and php.ini setting
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,287
Location
Maastricht
FTP uploads has nothing to do with php upload sizes.
The 413 error is a connection issue.

What if you try with another FTP client?
Do you have all needed ports open in the firewall incoming as well as outgoing, being 20,21 and 35000:35999 tcp?
 

parthdp

Verified User
Joined
Apr 23, 2020
Messages
16
I have cloud storage website. So all uploading works from website with laravel framework
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,287
Location
Maastricht
So all uploading works from website with laravel framework
You stated a question here about a problem with Filezilla and pure-ftpd in your initial post. That has nothing to do with website uploading via some framework. That's pure ftp-client <-> ftp server connection.

So you're confusing things right now with this comment and are not answering my questions intended to help you.
 

parthdp

Verified User
Joined
Apr 23, 2020
Messages
16
sorry for that.... But my ftp client works fine as plain ftp, All the ports you mentioned above are open and ftp from server working fine.

but my question is that - I have made All changes to php.ini and upload max size from directadmin and changed the file size limit to 10gb but whenever I try to upload file bigger than 1gb it's giving me an error of 413 - request entity is too large
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
1,306
Location
Murfreesboro
Ok so we are talking about PHP limits, yes?
if yes check
post_max_size: Recommended values are 50M or as large as the maximum file you will be uploading
upload_max_filesize: Recommended values are 50M or as large as the maximum file you will be uploading
memory_limit: Recommended values are at least 256M or as large as the maximum file you will be uploading

Note: if you're uploading extremely large files (more 500MB each), then you might need to also tweak the following settings:

max_input_time in php.ini
max_execution_time in php.ini

Dont forget to put them in the correct file and to restart web servers and php fpm if using.
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
1,306
Location
Murfreesboro
ok... It's working as plain ftp connection. But now I'm facing another problem

Whenever I try to upload file bigger than 1 Gb. It's giving a 413 Error Even after i changed my upload max limit to 10 gb from DA admin setting and php.ini setting
This was the confusion that began BTW. It would be best to start another post on a different subject.
 
Top