I
I
IliaBrz2018-08-18 01:06:43
linux
IliaBrz, 2018-08-18 01:06:43

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

4 answer(s)
T
TyzhSysAdmin, 2018-08-18
@POS_troi

vsftpd -olisten=NO /etc/vsftpd/vsftpd.conf
Or delete the config and reinstall the package.

J
jcmvbkbc, 2018-08-18
@jcmvbkbc

Began to configure /etc/vsftpd.conf . Something went wrong...
How to fix VSFTPD?

Go back to the moment when something went wrong and undo the last action.
Or read the vsftpd logs looking for what it didn't like about vsftpd.conf.

S
Saboteur, 2018-08-18
@saboteur_kiev

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.

A
Anton P., 2019-10-23
@mrswylet

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 vsftpdand reinstall it. It helped me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question