• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Xinetd Failed and No Ftp Access for All Server

Jordi Juan Pérez

New Pleskian
Hi!
I'm new in this forum. My name is Jordi. I'm catalan. Hello to everybody!

I have a problem with one of my VPS servers. Since yesterday, I have no access to FTP on all of my domains.
I have the message on Filezilla: "Falló intento de conexión con "ECONNREFUSED - Conexión rechazada por el servidor""

I probe to restart Xinetd via SSH. But I get this error message:
xinetd.service failed because a timeout was exceeded

systemctl status xinetd.service get this:

"ct 03 09:55:06 vl53969 systemd[1]: xinetd.service start operation timed out. Terminating.
oct 03 09:55:06 vl53969 xinetd[16383]: unexpected signal: 18 (Continued) in signal pipe
oct 03 09:55:06 vl53969 systemd[1]: Failed to start Xinetd A Powerful Replacement For Inetd.
oct 03 09:55:06 vl53969 systemd[1]: Unit xinetd.service entered failed state.
oct 03 09:55:06 vl53969 systemd[1]: xinetd.service failed."

I try this solution on the forum, but with no results.
 
Having same issue . I attempted multiple fixes (including package re-installs for proftp+xinetd+deps) but nothing has worked yet. In addition, systemd seems to be related.
screenshot:
image.png

This is on a VZ container:
bash-4.2# plesk version
Product version: Plesk Onyx 17.8.11 Update #69
Update date: 2019/10/05 23:38
Build date: 2019/09/25 00:44
OS version: CentOS 7.7.1908


@IgorG @Peter Debik - any ideas?
> i can post additional info needed
 

Attachments

  • 2019-10-05-v4b0bprvpt.png
    2019-10-05-v4b0bprvpt.png
    230.7 KB · Views: 6
(post above continued - the following was an attempted removal and reinstall for proftp according to support docs - used plesk installer cli tool)


===> Configuring ProFTPD server
Done!
Job for xinetd.service failed because a timeout was exceeded. See "systemctl status xinetd.service" and "journalctl -xe" for details.
===> Configuring ProFTPD server
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Group 'psaftp' already exists

Checking for the user 'psaftp'...
User 'psaftp' already exists

Checking for the group 'psaserv'...
Group 'psaserv' already exists

Checking for the group 'psaserv'...
Trying to add supplementary group 'psaserv' for user 'psaftp'... already there
Checking that /bin/false registered as login shell...
/bin/false already registered as a login shell

Trying to add header to file /etc/xinetd.d/ftp_psa... completed successfully
Checking for ftp home directory for 'clients' group...
@psacln
'@psacln' is already in the /etc/ftpchroot

Done!
Trying to configure passive ports range for ProFTPD... done
failed
Trying to start service xinetd... failed
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing echo
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing tcpmux
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing time
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing time
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = ftp
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service ftp failed to start and is deactivated.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = poppassd
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service poppassd failed to start and is deactivated.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Started working: 0 available services

WARNING!
Some problems are found during start service xinetd(see log file: /var/log/plesk/install/plesk-whc-installation.log)

Continue...

===> Configuring ProFTPD server
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Group 'psaftp' already exists

Checking for the user 'psaftp'...
User 'psaftp' already exists

Checking for the group 'psaserv'...
Group 'psaserv' already exists

Checking for the group 'psaserv'...
Trying to add supplementary group 'psaserv' for user 'psaftp'... already there
Checking that /bin/false registered as login shell...
/bin/false already registered as a login shell

Trying to add header to file /etc/xinetd.d/ftp_psa... completed successfully
Checking for ftp home directory for 'clients' group...
@psacln
'@psacln' is already in the /etc/ftpchroot

Done!
Trying to configure passive ports range for ProFTPD... done
failed
Trying to start service xinetd... failed
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing echo
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing tcpmux
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing time
Oct 05 23:37:05 redacted.hostname xinetd[28267]: removing time
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = ftp
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service ftp failed to start and is deactivated.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = poppassd
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service poppassd failed to start and is deactivated.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Started working: 0 available services

WARNING!
Some problems are found during start service xinetd(see log file: /var/log/plesk/install/plesk-whc-installation.log)

Continue...

After end of upgrade for 'proftpd' (stage 'files') following actions are registered as failed: 20170918123000-start_or_reload_superserver.

WARNING!
Some problems are found during configure ProFTPD server(see log file: /var/log/plesk/install/plesk-whc-installation.log)


*nothing unusual in /var/log/plesk/install/plesk-whc-installation.log aside from the following:

bash-4.2# grep which /var/log/plesk/install/plesk-whc-installation.log |tail -2
which: no sash in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin)
which: no unrar in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin)


And the following fails for stop/start psa:

bash-4.2# /etc/init.d/psa stopall && /etc/init.d/psa startall
Stopping apache service... done
Stopping drweb service... unused
Stopping spamfilter service... already stopped
Stopping mailer service... done
Stopping named service... done
Stopping mysql service... done
Stopping sw_cp_server service... done
Stopping sw_engine service... done
resource(s) deleted
Starting sw_engine service... done
Starting sw_cp_server service... done
Starting mysql service... already started
Starting named service... done
Starting mailer service... done
Starting spamfilter service... failed
Starting drweb service... unused
Starting apache service... done
Starting xinetd service... failed

Thanks in advance for any help/suggestions!:)
 
Last edited:
hello.look in your report.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = ftp
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service ftp failed to start and is deactivated.
Oct 05 23:37:05 redacted.hostname xinetd[28267]: bind failed (Address already in use (errno = 98)). service = poppassd
Oct 05 23:37:05 redacted.hostname xinetd[28267]: Service poppassd failed to start and is deactivated.
this is the cause i think..
another service already listen to port 21 or 20 on your ip..
duplicate ftp server instance?

try
netstat --tcp --udp --listening --program
on my server i get for ftp service listening
tcp6 0 0 [::]:ftp [::]:* LISTEN 7343/xinetd

or
netstat -npl
tcp6 0 0 :::21 :::* LISTEN 7343/xinetd
 
Last edited:
I have a similar phenomenon.
Please tell me if there is a solution

CT-999-bash-4.2# systemctl status xinetd.service
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2020-08-17 16:45:07 JST; 1 day 4h ago
 
I tried to output information.
Please let me know if you notice.


CT-999-bash-4.2#
CT-999-bash-4.2# netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:12768 0.0.0.0:* LISTEN 19226/psa-pc-remote
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 442/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 442/dovecot
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 5934/smtpd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 442/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 5927/.spamassassin
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 442/dovecot
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 8305/httpd
tcp 0 0 0.0.0.0:8880 0.0.0.0:* LISTEN 494/sw-cp-server: m
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 5639/smtpd
tcp 0 0 xxx.xxx.xxx.198:53 0.0.0.0:* LISTEN 548/named
tcp 0 0 xxx.xxx.xxx.197:53 0.0.0.0:* LISTEN 548/named
tcp 0 0 xxx.xxx.xxx.196:53 0.0.0.0:* LISTEN 548/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 548/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 443/sshd
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 996/drwebd.real
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 5881/smtpd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 548/named
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 8305/httpd
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 494/sw-cp-server: m
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 442/dovecot
tcp6 0 0 :::993 :::* LISTEN 442/dovecot
tcp6 0 0 :::995 :::* LISTEN 442/dovecot
tcp6 0 0 :::3306 :::* LISTEN 714/mysqld
tcp6 0 0 :::587 :::* LISTEN 5934/smtpd
tcp6 0 0 :::110 :::* LISTEN 442/dovecot
tcp6 0 0 :::143 :::* LISTEN 442/dovecot
tcp6 0 0 :::8880 :::* LISTEN 494/sw-cp-server: m
tcp6 0 0 :::465 :::* LISTEN 5639/smtpd
tcp6 0 0 :::53 :::* LISTEN 548/named
tcp6 0 0 :::22 :::* LISTEN 443/sshd
tcp6 0 0 :::25 :::* LISTEN 5881/smtpd
tcp6 0 0 :::8443 :::* LISTEN 494/sw-cp-server: m
tcp6 0 0 :::4190 :::* LISTEN 442/dovecot
CT-999-bash-4.2#
CT-999-bash-4.2#
 
Must be another problem, there's nothing that blocks a port xinetd wants.
Next step:
journalctl -x -u xinetd
 
Thank you for your reply.

I tried to output information.
Please let me know if you notice.

CT-999-bash-4.2# journalctl -x -u xinetd
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: removing poppassd
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: removing tcpmux
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: removing time
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: removing time
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Aug 12 13:42:07 vps101.xxxxxx.xx.jp xinetd[1103]: Started working: 1 available service
Aug 12 13:43:37 vps101.xxxxxx.xx.jp xinetd[1103]: unexpected signal: 18 (Continued) in signal pipe
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/chargen-dgram [file=/etc/xinetd.conf] [line=49]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/chargen-stream [file=/etc/xinetd.d/chargen-stream] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/daytime-dgram [file=/etc/xinetd.d/daytime-dgram] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/daytime-stream [file=/etc/xinetd.d/daytime-stream] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/discard-dgram [file=/etc/xinetd.d/discard-dgram] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/discard-stream [file=/etc/xinetd.d/discard-stream] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/echo-dgram [file=/etc/xinetd.d/echo-dgram] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/echo-stream [file=/etc/xinetd.d/echo-stream] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/ftp_psa [file=/etc/xinetd.d/ftp_psa] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/poppassd_psa [file=/etc/xinetd.d/poppassd_psa] [line=18]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/tcpmux-server [file=/etc/xinetd.d/tcpmux-server] [line=16]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/time-dgram [file=/etc/xinetd.d/time-dgram] [line=68]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Reading included configuration file: /etc/xinetd.d/time-stream [file=/etc/xinetd.d/time-stream] [line=67]
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing chargen
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing chargen
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing daytime
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing daytime
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing discard
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing discard
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing echo
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing echo
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing tcpmux
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing time
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: removing time
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Aug 17 15:38:29 vps101.xxxxxx.xx.jp xinetd[7108]: Started working: 2 available services
Aug 17 15:38:39 vps101.xxxxxx.xx.jp xinetd[7108]: START: ftp pid=7115 from=::ffff:xxx.xxx.xxx.103
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7115]: processing configuration directory '/etc/proftpd.d'
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7115]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session opened.
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7115]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session closed.
Aug 17 15:38:39 vps101.xxxxxx.xx.jp xinetd[7108]: EXIT: ftp status=0 pid=7115 duration=0(sec)
Aug 17 15:38:39 vps101.xxxxxx.xx.jp xinetd[7108]: START: ftp pid=7116 from=::ffff:xxx.xxx.xxx.103
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7116]: processing configuration directory '/etc/proftpd.d'
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7116]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session opened.
Aug 17 15:38:39 vps101.xxxxxx.xx.jp proftpd[7116]: pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
Aug 17 15:38:43 vps101.xxxxxx.xx.jp xinetd[7108]: START: ftp pid=7117 from=::ffff:xxx.xxx.xxx.103
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7117]: processing configuration directory '/etc/proftpd.d'
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7117]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session opened.
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7117]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session closed.
Aug 17 15:38:43 vps101.xxxxxx.xx.jp xinetd[7108]: EXIT: ftp status=0 pid=7117 duration=0(sec)
Aug 17 15:38:43 vps101.xxxxxx.xx.jp xinetd[7108]: START: ftp pid=7118 from=::ffff:xxx.xxx.xxx.103
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7118]: processing configuration directory '/etc/proftpd.d'
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7118]: 127.0.0.1 (xxx.xxx.xxx.103[xxx.xxx.xxx.103]) - FTP session opened.
Aug 17 15:38:43 vps101.xxxxxx.xx.jp proftpd[7118]: pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/chargen-dgram [file=/etc/xinetd.conf] [line=49]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/chargen-stream [file=/etc/xinetd.d/chargen-stream] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/daytime-dgram [file=/etc/xinetd.d/daytime-dgram] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/daytime-stream [file=/etc/xinetd.d/daytime-stream] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/discard-dgram [file=/etc/xinetd.d/discard-dgram] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/discard-stream [file=/etc/xinetd.d/discard-stream] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/echo-dgram [file=/etc/xinetd.d/echo-dgram] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/echo-stream [file=/etc/xinetd.d/echo-stream] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/ftp_psa [file=/etc/xinetd.d/ftp_psa] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/poppassd_psa [file=/etc/xinetd.d/poppassd_psa] [line=18]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/tcpmux-server [file=/etc/xinetd.d/tcpmux-server] [line=16]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/time-dgram [file=/etc/xinetd.d/time-dgram] [line=68]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Reading included configuration file: /etc/xinetd.d/time-stream [file=/etc/xinetd.d/time-stream] [line=67]
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing chargen
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing chargen
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing daytime
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing daytime
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing discard
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing discard
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing echo
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing echo
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing tcpmux
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing time
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: removing time
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Aug 17 16:43:37 vps101.xxxxxx.xx.jp xinetd[10391]: Started working: 2 available services

CT-999-bash-4.2#
CT-999-bash-4.2#
 
That's weird, there's no indication in the log that xinetd stopped working, but as it doesn't show up in netstat, it must have crashed silently.
Can you see any of xinetd or proftpd in `ps fauxwww`? What happens on `service xinetd restart`?
 
Thank you for your reply.

I tried to output information.
Please let me know if you notice.

You can make an ftp connection for about 1 minute before xinetd times out.
The display of xinetd in Plesk is n/a.


CT-999-bash-4.2#
CT-999-bash-4.2#
CT-999-bash-4.2# ps fauxwww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 194988 2984 ? Ss Aug11 2:05 /usr/lib/systemd/systemd --system --deserialize 22
root 2 0.0 0.0 0 0 ? S Aug11 0:00 [kthreadd/101]
root 3 0.0 0.0 0 0 ? S Aug11 0:01 \_ [khelper/101]
root 93 0.0 0.3 208040 14364 ? Ss Aug11 1:37 /usr/lib/systemd/systemd-journald
dbus 129 0.0 0.0 58088 1204 ? Ss Aug11 0:41 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root 132 0.0 0.0 26340 1100 ? Ss Aug11 0:14 /usr/lib/systemd/systemd-logind
root 140 0.0 0.0 6472 480 tty2 Ss+ Aug11 0:00 /sbin/agetty --noclear tty2 linux
root 141 0.0 0.0 110164 488 tty1 Ss+ Aug11 0:00 /sbin/agetty --noclear --keep-baud console 115200,38400,9600 vt220
root 142 0.0 0.0 126392 944 ? Ss Aug11 0:00 /usr/sbin/crond -n
root 190 0.0 0.0 74412 248 ? Ss Aug11 0:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2
root 191 0.0 0.0 74412 24 ? S Aug11 0:00 \_ /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2
root 442 0.0 0.0 11752 744 ? Ss Aug11 0:12 /usr/sbin/dovecot -F
dovecot 481 0.0 0.0 9572 840 ? S Aug11 0:07 \_ dovecot/anvil
root 482 0.0 0.0 9572 764 ? S Aug11 0:04 \_ dovecot/log
root 443 0.0 0.0 112880 1864 ? Ss Aug11 0:30 /usr/sbin/sshd -D
root 444 0.0 0.1 865160 4396 ? Ssl Aug11 3:31 /usr/sbin/rsyslogd -n
root 494 0.0 0.0 52052 704 ? Ss Aug11 0:00 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
sw-cp-s+ 495 0.0 0.0 52980 2996 ? S Aug11 0:06 \_ sw-cp-server: worker process
mysql 511 0.0 0.0 113372 500 ? Ss Aug11 0:00 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
mysql 714 0.7 6.1 1993304 256568 ? Sl Aug11 100:45 \_ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
named 548 0.0 1.6 324180 69752 ? Ssl Aug11 0:01 /usr/sbin/named -u named -t /var/named/chroot -c /etc/named.conf -u named -n 2
drweb 996 0.0 11.0 472876 464924 ? Ss Aug11 0:29 /opt/drweb/drwebd.real --foreground=yes
drweb 4944 0.0 11.0 472876 464848 ? S Aug20 0:00 \_ /opt/drweb/drwebd.real --foreground=yes
root 8141 0.0 0.0 43104 856 ? Ss Aug11 0:00 /usr/lib/systemd/systemd-udevd
postfix 19226 0.0 0.0 404748 812 ? Ssl Aug18 0:04 /usr/lib64/plesk-9.0/psa-pc-remote -p inet:[email protected] -t 7210 -P /run/psa-pc-remote.pid -u postfix -g popuser -n
root 20214 0.0 0.3 478208 15780 ? Ss Aug18 0:01 sw-engine-fpm: master process (/etc/sw-engine/sw-engine-fpm.conf)
root 8305 0.0 0.1 255112 7472 ? Ss Aug19 0:05 /usr/sbin/httpd -DFOREGROUND
apache 8306 0.0 0.1 253684 4632 ? S Aug19 0:00 \_ /usr/sbin/httpd -DFOREGROUND
apache 8307 0.0 0.1 254992 4708 ? S Aug19 0:05 \_ /usr/sbin/httpd -DFOREGROUND
ftp-ton+ 29776 6.7 1.0 415276 44208 ? S 00:52 0:01 | \_ /usr/bin/php-cgi -c /var/www/vhosts/system/tonamiholdings.co.jp/etc/php.ini
ftp-ton+ 29788 3.7 1.0 415092 43812 ? S 00:52 0:00 | \_ /usr/bin/php-cgi -c /var/www/vhosts/system/tonami.co.jp/etc/php.ini
ftp-ton+ 29791 8.2 1.3 427292 55996 ? S 00:52 0:00 | \_ /usr/bin/php-cgi -c /var/www/vhosts/system/tonami.co.jp/etc/php.ini
apache 8308 0.0 0.4 2239844 18636 ? Sl Aug19 1:31 \_ /usr/sbin/httpd -DFOREGROUND
apache 8309 0.0 0.4 2239844 20504 ? Sl Aug19 1:47 \_ /usr/sbin/httpd -DFOREGROUND
apache 8335 0.0 0.5 2239844 21756 ? Sl Aug19 2:04 \_ /usr/sbin/httpd -DFOREGROUND
apache 8399 0.1 0.5 2239844 22296 ? Sl Aug19 3:06 \_ /usr/sbin/httpd -DFOREGROUND
apache 20171 0.1 0.5 2239844 22940 ? Sl Aug19 2:34 \_ /usr/sbin/httpd -DFOREGROUND
apache 24617 0.0 0.3 2239844 16144 ? Sl Aug20 0:03 \_ /usr/sbin/httpd -DFOREGROUND
apache 24668 0.0 0.3 2237712 16092 ? Sl Aug20 0:02 \_ /usr/sbin/httpd -DFOREGROUND
apache 24669 0.0 0.3 2237712 15492 ? Sl Aug20 0:02 \_ /usr/sbin/httpd -DFOREGROUND
apache 24796 0.0 0.3 2239844 14080 ? Sl Aug20 0:02 \_ /usr/sbin/httpd -DFOREGROUND
root 25113 0.0 0.0 89660 1560 ? Ss Aug19 0:13 /usr/libexec/postfix/master -w
postfix 25115 0.0 0.0 90024 1776 ? S Aug19 0:06 \_ qmgr -l -t fifo -u
postfix 25120 0.0 0.0 89872 1824 ? S Aug19 0:01 \_ tlsmgr -l -t unix -u
postfix 25165 0.0 0.0 89856 1820 ? S Aug19 0:01 \_ anvil -l -t unix -u
postfix 23797 0.0 0.0 125032 4056 ? S Aug20 0:00 \_ smtpd -n smtps -t inet -u -o stress= -s 2 -o smtpd_tls_wrappermode=yes
postfix 24534 0.0 0.0 125160 4136 ? S Aug20 0:00 \_ smtpd -n smtps -t inet -u -o stress= -s 2 -o smtpd_tls_wrappermode=yes
postfix 29324 0.0 0.0 89764 3848 ? S 00:35 0:00 \_ pickup -l -t fifo -u
postfix 29601 0.0 0.1 125160 7552 ? S 00:45 0:00 \_ smtpd -n smtps -t inet -u -o stress= -s 2 -o smtpd_tls_wrappermode=yes
postfix 29689 0.0 0.1 125116 7624 ? S 00:49 0:00 \_ smtpd -n smtp -t inet -u -o stress= -s 2
postfix 29730 0.0 0.1 124944 6676 ? S 00:50 0:00 \_ smtpd -n submission -t inet -u -o stress= -s 2 -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
postfix 29794 0.0 0.0 32800 2856 ? S 00:52 0:00 \_ plesk_saslauthd -l -t unix -u status=5 listen=6 dbpath=/var/spool/postfix/plesk/passwd.db
root 29705 0.0 0.0 56196 1136 ? Ss 00:49 0:00 vzctl: pts/0
root 29706 0.0 0.0 116168 2692 pts/0 Ss 00:49 0:00 \_ -bash
root 29798 0.0 0.0 155568 1904 pts/0 R+ 00:53 0:00 \_ ps fauxwww
root 29786 5.0 1.8 293208 76896 ? Ss 00:52 0:00 /usr/bin/spamd --pidfile /var/run/spamd.pid --nouser-config --username=popuser --daemonize --helper-home-dir=/var/qmail --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --create-prefs --max-children=1
popuser 29787 0.0 1.7 293208 74096 ? S 00:52 0:00 \_ spamd child
CT-999-bash-4.2#
CT-999-bash-4.2#


CT-999-bash-4.2#
CT-999-bash-4.2# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
Job for xinetd.service failed because a timeout was exceeded. See "systemctl status xinetd.service" and "journalctl -xe" for details.
CT-999-bash-4.2#
CT-999-bash-4.2#

CT-999-bash-4.2#
CT-999-bash-4.2# systemctl status xinetd.service
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Fri 2020-08-21 00:56:36 JST; 1min 14s ago
Process: 29854 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)

Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing discard
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing discard
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing echo
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing echo
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing tcpmux
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing time
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: removing time
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.
Aug 21 00:55:06 vps101.xxxxxx.xx.jp xinetd[29855]: Started working: 2 available services
Aug 21 00:56:36 vps101.xxxxxx.xx.jp xinetd[29855]: unexpected signal: 18 (Continued) in signal pipe
CT-999-bash-4.2#
CT-999-bash-4.2#
 
Try this:

service xinetd start &
strace -p `cat /var/run/xinetd.pid`

This might produce a lot of output. Of interest is only the part at the end where it fails.
 
Thank you for your reply.

I tried to output information.
I'm sorry if the executed command is wrong


[root@vps999 /]#
[root@vps999 /]#
[root@vps999 /]# service xinetd start & strace -p `cat / var / run / xinetd.pid`
[1] 31759
cat: /: Is a directory
cat: var: Is a directory
cat: /: Is a directory
cat: run: Is a directory
cat: /: Is a directory
cat: xinetd.pid: No such file or directory
strace: option requires an argument -- 'p'
Try 'strace -h' for more information.
[root@vps999 /]# Redirecting to /bin/systemctl start xinetd.service
Job for xinetd.service failed because a timeout was exceeded. See "systemctl status xinetd.service" and "journalctl -xe" for details.

[1]+ Exit 1 service xinetd start
[root@vps999 /]#
[root@vps999 /]#
 
Thank you for your reply.

I tried to output information.
I'm sorry if the executed command is wrong


[root@vps999 ~]#
[root@vps999 ~]#
[root@vps999 ~]# service xinetd start & strace -p `cat /var/run/xinetd.pid`
[1] 8799
cat: /var/run/xinetd.pid: No such file or directory
strace: option requires an argument -- 'p'
Try 'strace -h' for more information.
[root@vps999 ~]# Redirecting to /bin/systemctl start xinetd.service
Job for xinetd.service failed because a timeout was exceeded. See "systemctl status xinetd.service" and "journalctl -xe" for details.

[1]+ Exit 1 service xinetd start
[root@vps999 ~]#
[root@vps999 ~]#

[root@vps999 run]#
[root@vps999 run]#
[root@vps999 run]# pwd
/var/run
[root@vps999 run]# ls -al
total 40
drwxr-xr-x 32 root root 920 Aug 24 13:09 .
dr-xr-xr-x 19 root root 4096 Aug 11 12:47 ..
drwxr-xr-x 2 root root 40 Aug 11 12:45 console
-rw-r--r-- 1 root root 4 Aug 11 12:45 crond.pid
---------- 1 root root 0 Aug 11 12:45 cron.reboot
drwx------ 2 root root 40 Aug 11 12:45 cryptsetup
drwxr-xr-x 2 root root 60 Aug 11 12:45 dbus
drwxr-xr-x 5 root root 640 Aug 11 13:34 dovecot
drwxr-xr-x 2 root root 40 Oct 30 2015 fail2ban
drwxr-xr-x 2 root root 40 Aug 11 12:45 faillock
drwx--x--- 3 root apache 120 Aug 23 04:11 httpd
drwxr-xr-x 8 root root 160 Aug 24 04:11 lock
drwxr-xr-x 2 root root 40 Aug 11 12:45 log
drwxrwsr-x 2 root mailman 40 Aug 11 12:45 mailman
drwxr-xr-x 2 mysql mysql 60 Aug 11 12:45 mariadb
drwxr-xr-x 3 apache apache 80 Aug 23 04:11 mod_fcgid
drwxr-xr-x 2 root root 40 Aug 11 12:45 mount
drwxr-xr-x 2 named named 40 Aug 11 12:45 named
drwxrwxr-x 2 root root 40 Aug 11 12:45 netreport
drwxr-xr-x 2 root root 40 Aug 11 12:45 net-snmp
drwxr-xr-x 2 root root 40 Aug 11 12:45 nscd
drwxr-xr-x 2 root root 40 Apr 1 13:11 php-fpm
drwxr-xr-x 2 root root 40 Aug 11 12:45 portreserve
drwxr-xr-x 2 postgres postgres 40 Aug 11 12:45 postgresql
-rw-r--r-- 1 root root 2528 Aug 17 15:51 proftpd.scoreboard
-rw-r--r-- 1 root root 0 Aug 11 13:05 proftpd.scoreboard.lck
drwx------ 2 rpc rpc 40 Aug 11 12:45 rpcbind
srw-rw-rw- 1 root root 0 Aug 11 12:45 rpcbind.sock
drwxr-xr-x 2 root root 40 Aug 11 12:45 samba
drwxr-xr-x 2 root root 100 Aug 11 12:45 saslauthd
drwxrwxr-x 2 root screen 40 Aug 11 12:45 screen
drwxr-xr-x 2 root root 40 Aug 11 12:45 sepermit
drwxr-xr-x 2 root root 40 Aug 11 12:45 setrans
-rw-r--r-- 1 root root 5 Aug 24 13:09 spamd.pid
-rw-r--r-- 1 root root 4 Aug 12 17:28 sshd.pid
drwx--x--x 3 root root 60 Aug 11 12:45 sudo
-rw-r--r-- 1 root root 4 Aug 11 12:45 sw-cp-server.pid
-rw-r--r-- 1 root root 5 Aug 18 20:10 sw-engine.pid
srw------- 1 sw-cp-server root 0 Aug 18 20:10 sw-engine.sock
-rw------- 1 root root 3 Aug 11 12:45 syslogd.pid
drwxr-xr-x 16 root root 420 Aug 19 12:18 systemd
drwxr-xr-x 4 root root 100 Aug 11 18:58 udev
drwxr-xr-x 3 root root 60 Aug 24 12:55 user
-rw-rw-r-- 1 root utmp 1536 Aug 11 12:47 utmp
-rw-r--r-- 1 root root 6 Aug 21 13:54 vpsd.pid
-rw------- 1 root root 0 Aug 11 12:45 xtables.lock
[root@vps999 run]#
[root@vps999 run]#
 
Okay, the strace is executed too fast before there even is a PID.
So, first run
service xinetd start &
then, after "Redirecting to /bin/systemctl start xinetd.service" but before "Job for xinetd.service failed [...]" shows up
strace -p `cat /var/run/xinetd.pid`
 
Thank you for your reply.

I tried running the commands separately
Please let me know if you notice.


CT-999-bash-4.2#
CT-999-bash-4.2#
CT-999-bash-4.2# service xinetd start
Redirecting to /bin/systemctl start xinetd.service
Job for xinetd.service failed because a timeout was exceeded. See "systemctl status xinetd.service" and "journalctl -xe" for details.
CT-999-bash-4.2#
CT-999-bash-4.2#



CT-999-bash-4.2#
CT-999-bash-4.2#
CT-999-bash-4.2# strace -p `cat /var/run/xinetd.pid`
strace: Process 26779 attached
restart_syscall(<... resuming interrupted read ...>) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1, si_uid=0} ---
--- SIGCONT {si_signo=SIGCONT, si_code=SI_USER, si_pid=1, si_uid=0} ---
rt_sigprocmask(SIG_UNBLOCK, [CONT], NULL, 8) = 0
write(4, "\22", 1) = 1
rt_sigreturn({mask=[TERM]}) = 0
write(4, "\17", 1) = 1
rt_sigreturn({mask=[]}) = -1 EINTR (Interrupted system call)
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 3, -1) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [2]) = 0
read(3, "\22", 1) = 1
futex(0x7fda1dd77c40, FUTEX_WAKE_PRIVATE, 2147483647) = 0
sendto(7, "<27>Aug 26 10:05:03 xinetd[26779"..., 83, MSG_NOSIGNAL, NULL, 0) = 83
read(3, "\17", 1) = 1
unlink("/var/run/xinetd.pid") = 0
sendto(7, "<28>Aug 26 10:05:03 xinetd[26779"..., 45, MSG_NOSIGNAL, NULL, 0) = 45
exit_group(0) = ?
+++ exited with 0 +++
CT-999-bash-4.2#
CT-999-bash-4.2#
 
systemd being "helpful" again.
Does that work:
strace /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid -inetd_compat
 
Back
Top