Page 1 of 1

Reinstall Proftpd

Posted: Thu 27. Feb 2025, 13:33
by boka003
Hello,

My FTP is offline and it makes me have problems during the upgrade from Ubuntu 22.04 to Ubuntu 24.04.

How I can reinstall FTP?

Code: Select all

root@servint:~# sudo proftpd --configtest
Checking syntax of configuration file
2025-02-27 13:00:14,519 servint.pozdrav.int proftpd[10728]: mod_dso/0.5: unable to load 'mod_tls.c'; check to see if '/usr/lib/proftpd/mod_tls.la' exists
2025-02-27 13:00:14,519 servint.pozdrav.int proftpd[10728]: fatal: LoadModule: error loading module 'mod_tls.c': No such file or directory on line 16 of '/etc/proftpd/modules.conf'
2025-02-27 13:00:14,519 servint.pozdrav.int proftpd[10728]: warning: unable to include '/etc/proftpd/modules.conf': Operation not permitted
2025-02-27 13:00:14,521 servint.pozdrav.int proftpd[10728]: fatal: LoadModule: error loading module 'mod_quotatab_file.so': Invalid argument on line 8 of '/etc/proftpd/proftpd.conf'
root@servint:~# sudo systemctl restart proftpd
sudo systemctl status proftpd
Job for proftpd.service failed because the control process exited with error code.
See "systemctl status proftpd.service" and "journalctl -xeu proftpd.service" for details.
× proftpd.service - ProFTPD FTP Server
     Loaded: loaded (/lib/systemd/system/proftpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2025-02-27 13:00:19 CET; 14ms ago
    Process: 10733 ExecStartPre=/usr/sbin/proftpd --configtest -c $CONFIG_FILE (code=exited, status=1/FAILURE)
        CPU: 11ms

Feb 27 13:00:19 servint.pozdrav.int systemd[1]: Starting ProFTPD FTP Server...
Feb 27 13:00:19 servint.pozdrav.int proftpd[10733]: Checking syntax of configuration file
Feb 27 13:00:19 servint.pozdrav.int proftpd[10733]: 2025-02-27 13:00:19,372 servint.pozdrav.int proftpd[10733]: mod_dso/0.5: un>
Feb 27 13:00:19 servint.pozdrav.int proftpd[10733]: 2025-02-27 13:00:19,373 servint.pozdrav.int proftpd[10733]: fatal: LoadModu>
Feb 27 13:00:19 servint.pozdrav.int proftpd[10733]: 2025-02-27 13:00:19,373 servint.pozdrav.int proftpd[10733]: warning: unable>
Feb 27 13:00:19 servint.pozdrav.int proftpd[10733]: 2025-02-27 13:00:19,374 servint.pozdrav.int proftpd[10733]: fatal: LoadModu>
Feb 27 13:00:19 servint.pozdrav.int systemd[1]: proftpd.service: Control process exited, code=exited, status=1/FAILURE
Feb 27 13:00:19 servint.pozdrav.int systemd[1]: proftpd.service: Failed with result 'exit-code'.
Feb 27 13:00:19 servint.pozdrav.int systemd[1]: Failed to start ProFTPD FTP Server.
lines 1-15/15 (END)

Re: Reinstall Proftpd

Posted: Thu 27. Feb 2025, 13:35
by Florian
Hello,

please provide the output of

Code: Select all

dpkg --list | grep proftpd

Re: Reinstall Proftpd

Posted: Thu 27. Feb 2025, 14:23
by boka003

Code: Select all


admin01@servint:~$ dpkg --list | grep proftpd
rc  proftpd-basic                              1.3.6c-2                                                             amd64        Versatile, virtual-hosting FTP daemon - binaries
iF  proftpd-core                               1.3.7c+dfsg-1ubuntu0.1                                               amd64        Versatile, virtual-hosting FTP daemon - binaries
ii  proftpd-doc                                1.3.7c+dfsg-1ubuntu0.1                                               all          Versatile, virtual-hosting FTP daemon - documentation
iU  proftpd-mod-mysql                          1.3.7c+dfsg-1ubuntu0.1                                               amd64        Versatile, virtual-hosting FTP daemon - MySQL module
admin01@servint:~$


Re: Reinstall Proftpd

Posted: Thu 27. Feb 2025, 15:46
by Florian
Hallo,

on Ubuntu 24 the output should look like:

Code: Select all

dpkg --list | grep proftpd
ii  proftpd-core                         1.3.8.b+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - binaries
ii  proftpd-doc                          1.3.8.b+dfsg-1ubuntu0.1                       all          Versatile, virtual-hosting FTP daemon - documentation
ii  proftpd-mod-crypto                   1.3.8.b+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - TLS/SSL/SFTP modules
ii  proftpd-mod-mysql                    1.3.8.b+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - MySQL module
So save /etc/proftpd folder, remove all proftpd packages (do not purge), install the 4 proftpd packes shown above, check the config

Re: Reinstall Proftpd

Posted: Fri 28. Feb 2025, 12:46
by boka003
I am at Ubuntu 22.04

It should be same?

Re: Reinstall Proftpd

Posted: Fri 28. Feb 2025, 13:17
by Florian
Hallo,

at what state is your server? You said you made an upgrade

Re: Reinstall Proftpd

Posted: Fri 28. Feb 2025, 15:41
by boka003
Yes,

I have made the upgrade from Ubuntu 20 to Ubuntu 22.

But i was unable to update from Ubuntu 22 to Ubuntu 24 (Update is canceled because of FTP error)

Now I am at Ubuntu 22


Regards

Re: Reinstall Proftpd

Posted: Fri 28. Feb 2025, 15:43
by Florian
This is the package list at Ubuntu 22

Code: Select all

dpkg --list | grep proftp
ii  proftpd-basic                          1.3.7c+dfsg-1ubuntu0.1                       all          Transitional dummy package for ProFTPD
ii  proftpd-core                           1.3.7c+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - binaries
ii  proftpd-doc                            1.3.7c+dfsg-1ubuntu0.1                       all          Versatile, virtual-hosting FTP daemon - documentation
ii  proftpd-mod-crypto                     1.3.7c+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - TLS/SSL/SFTP modules
ii  proftpd-mod-mysql                      1.3.7c+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - MySQL module
ii  proftpd-mod-wrap                       1.3.7c+dfsg-1ubuntu0.1                       amd64        Versatile, virtual-hosting FTP daemon - tcpwrapper module