After updating ProFTPd it fails to start

ericosman

Verified User
Joined
Nov 25, 2019
Messages
617
Location
Weert
Hi,

After updating ProFTPd i got this error:
  • make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/locale'
  • cd lib/libltdl/ && make install
  • make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • make install-am
  • make[2]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • make[3]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • test -z "/usr/lib" || /bin/mkdir -p "/usr/lib"
  • test -z "/usr/include" || /bin/mkdir -p "/usr/include"
  • test -z "" || /bin/mkdir -p ""
  • make[3]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • make[2]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.7b/lib/libltdl'
  • Enabling proftpd in systemd...
  • Done proftpd.
  • Restarting ProFTPd.
  • Job for proftpd.service failed because the control process exited with error code. See "systemctl status proftpd.service" and "journalctl -xe" for details.

But when i do that i get:
[root@srv1 ~]# systemctl status proftpd.service" and "journalctl -xe
systemctl: invalid option -- 'x'
[root@srv1 ~]#

Any idea?

I run CentOS7
 
You can run one command:
systemctl status proftpd.service
or:
journalctl -xe
not both in same time
 
Wow... i feel stupid :ROFLMAO:

[root@srv1 ~]# systemctl status proftpd.service
* proftpd.service - ProFTPD FTP Server
Loaded: loaded (/etc/systemd/system/proftpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-07-19 15:37:06 CEST; 53s ag o
Process: 23016 ExecStart=/usr/sbin/proftpd $PROFTPD_OPTIONS (code=exited, stat us=1/FAILURE)
Process: 23013 ExecStartPre=/usr/bin/mkdir -p /var/run/proftpd (code=exited, s tatus=0/SUCCESS)
Main PID: 23036 (code=exited, status=0/SUCCESS)

Jul 19 15:37:06 srv1 systemd[1]: Starting ProFTPD FTP Server...
Jul 19 15:37:06 srv1 proftpd[23016]: 2021-07-19 15:37:06,689 srv1.xxxxxx...EC
Jul 19 15:37:06 srv1 proftpd[23016]: 2021-07-19 15:37:06,690 srv1.xxxxxx...f'
Jul 19 15:37:06 srv1 systemd[1]: proftpd.service: control process exited, c...=1
Jul 19 15:37:06 srv1 systemd[1]: Failed to start ProFTPD FTP Server.
Jul 19 15:37:06 srv1 systemd[1]: Unit proftpd.service entered failed state.
Jul 19 15:37:06 srv1 systemd[1]: proftpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@srv1 ~]# journalctl -xe
Jul 19 15:38:03 srv1 sshd[23175]: Received disconnect from 14.63.213.72 port 428
Jul 19 15:38:03 srv1 sshd[23175]: Disconnected from 14.63.213.72 port 42855 [pre
Jul 19 15:38:03 srv1 named[2447]: client @0x7f4a001bcb20 194.31.1.77#80 (pizzase
Jul 19 15:38:03 srv1 named[2447]: client @0x7f4a00157080 75.71.149.246#53 (pizza
Jul 19 15:38:06 srv1 systemd[1]: Starting ProFTPD FTP Server...
-- Subject: Unit proftpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proftpd.service has begun starting up.
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,976 srv1.xxxxx.or
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,977 srv1.xxxxx.or
Jul 19 15:38:06 srv1 systemd[1]: proftpd.service: control process exited, code=e
Jul 19 15:38:06 srv1 systemd[1]: Failed to start ProFTPD FTP Server.
-- Subject: Unit proftpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proftpd.service has failed.
--
-- The result is failed.
Jul 19 15:38:06 srv1 systemd[1]: Unit proftpd.service entered failed state.
Jul 19 15:38:06 srv1 systemd[1]: proftpd.service failed.
lines 1820-1842/1842 (END)
Jul 19 15:38:03 srv1 sshd[23175]: Received disconnect from 14.63.213.72 port 42855:11: Bye Bye [preauth]
Jul 19 15:38:03 srv1 sshd[23175]: Disconnected from 14.63.213.72 port 42855 [preauth]
Jul 19 15:38:03 srv1 named[2447]: client @0x7f4a001bcb20 194.31.1.77#80 (pizzaseo.com): query (cache) 'pizzaseo.com/RRSIG/IN' denied
Jul 19 15:38:03 srv1 named[2447]: client @0x7f4a00157080 75.71.149.246#53 (pizzaseo.com): query (cache) 'pizzaseo.com/RRSIG/IN' denied
Jul 19 15:38:06 srv1 systemd[1]: Starting ProFTPD FTP Server...
-- Subject: Unit proftpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proftpd.service has begun starting up.
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,976 srv1.xxxxx.org proftpd[23245]: mod_tls/2.9: certificate '/etc/exim.cert': expected RSA certificate, found EC
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,977 srv1.xxxxx.org proftpd[23245]: fatal: unknown configuration directive 'IdentLookups' on line 75 of '/etc/proftpd.conf'
Jul 19 15:38:06 srv1 systemd[1]: proftpd.service: control process exited, code=exited status=1
Jul 19 15:38:06 srv1 systemd[1]: Failed to start ProFTPD FTP Server.
-- Subject: Unit proftpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit proftpd.service has failed.
--
-- The result is failed.
Jul 19 15:38:06 srv1 systemd[1]: Unit proftpd.service entered failed state.
Jul 19 15:38:06 srv1 systemd[1]: proftpd.service failed.
~
 
Here are your error lines:

Code:
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,976 srv1.xxxxx.org proftpd[23245]: mod_tls/2.9: certificate '/etc/exim.cert': expected RSA certificate, found EC
Jul 19 15:38:06 srv1 proftpd[23245]: 2021-07-19 15:38:06,977 srv1.xxxxx.org proftpd[23245]: fatal: unknown configuration directive 'IdentLookups' on line 75 of '/etc/proftpd.conf'

So, it seems like you need to replace your certificate and the configuration of /etc/proftpd.conf has a line that is broken
 
For everyone looking for solutions: I've commented the line which says 'IdentLookups', for me it was line 74.

Umask 022 DisplayLogin welcome.msg DisplayChdir readme AllowOverwrite yes # IdentLookups off ExtendedLog /var/log/proftpd/access.log WRITE,READ write ExtendedLog /var/log/proftpd/auth.log AUTH auth

The ProFTPd service was starting without any problems after that. Good luck
 
Back
Top