Answer the question
In order to leave comments, you need to log in
How to fix VSFTPD?
Installed VSFTPD on the server. Connected via FTP client - everything worked.
Began to configure /etc/vsftpd.conf . Something went wrong and the client is throwing the error "ECONNREFUSED - Connection refused by the server".
Here is the status:
[email protected]:~ $ sudo sudo service vsftpd status
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-08-18 01:00:41 MSK; 7s ago
Process: 7066 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
Process: 7063 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
Main PID: 7066 (code=exited, status=2)
Aug 18 01:00:41 raspberrypi systemd[1]: Starting vsftpd FTP server...
Aug 18 01:00:41 raspberrypi systemd[1]: Started vsftpd FTP server.
Aug 18 01:00:41 raspberrypi systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 18 01:00:41 raspberrypi systemd[1]: vsftpd.service: Unit entered failed state.
Aug 18 01:00:41 raspberrypi systemd[1]: vsftpd.service: Failed with result 'exit-code'.
Answer the question
In order to leave comments, you need to log in
vsftpd -olisten=NO /etc/vsftpd/vsftpd.conf
Or delete the config and reinstall the package.
Began to configure /etc/vsftpd.conf . Something went wrong...
How to fix VSFTPD?
You have an error
vsftpd.service in the log: Main process exited, code=exited, status=2/INVALIDARGUMENT
Somewhere in the options an error/typo crept in.
Restore the config from a backup (do you make backups before editing?)
Or dig into the config, look for an error there.
If suddenly someone came here from a search and the following things did not help him:
* Restoring configurations from backup;
* removal and new installation,
Then try to completely remove the package with the command sudo apt-get --purge remove vsftpd
and reinstall it. It helped me.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question