Description

On all Junos Evolved platforms, xinetd generates syslog messages "service ssh, accept: Invalid argument (errno = 22)" with high cpu usage for xinetd and systemd-journal processes. There will be a continuous flood of "service ssh, accept: Invalid argument (errno = 22)" logs in the messages.
 
The issue is not triggered by any specific events but maybe consistently observed each time the device boots up.

Symptoms

High CPU utlization observed for systemd-journal and xinetd processes:
 
root@test> show system processes extensive node re0
 
-------------------------------
 
node: re0
 
-------------------------------
 
top - 08:35:51 up  2:05,  3 users,  load average: 3.44, 3.25, 3.06
 
Threads: 2414 total,   3 running, 2411 sleeping,   0 stopped,   0 zombie
 
%Cpu(s):  8.3 us,  8.6 sy,  0.0 ni, 82.4 id,  0.0 wa,  0.2 hi,  0.5 si,  0.0 st
 
MiB Mem :  63679.6 total,  47168.6 free,   6461.2 used,  10049.8 buff/cache
 
MiB Swap:   4096.0 total,   3221.7 free,    874.2 used.  56418.0 avail Mem
 
 
 
  PID USER       TID PRI  NI     SIZE     RSS S     TIME %MEM %CPU COMMAND
 
 5457 root      5457  19   0  342520  213184 R 169-03:52:43  0.3 92.6 systemd-journal <<<
 
11541 root     11541  19   0   92004    6588 R 162-06:56:06  0.0 92.6 xinetd          <<<
 
16183 root     16183  19   0    24028   21644 R 00:21:17  0.0 16.4 python3
 
23500 root     23505  19   0    28380    4088 S 00:02:21  0.0 16.4 bcmctl{bcmctl}
 
 
Below syslogs will be observed repeatedly:
 
Apr  1 23:43:59  test-re0 xinetd[11541]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:43:59  test-re0 last message repeated 14 times
 
Apr  1 23:39:34  test-re1 xinetd[11382]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:39:34  test-re1 last message repeated 199 times
 
Apr  1 23:43:59  test-re0 xinetd[11541]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:43:59  test-re0 last message repeated 184 times
 
Apr  1 23:39:34  test-re1 xinetd[11382]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:39:34  test-re1 last message repeated 99 times
 
Apr  1 23:43:59  test-re0 xinetd[11541]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:43:59  test-re0 last message repeated 199 times
 
Apr  1 23:39:34  test-re1 xinetd[11382]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:39:34  test-re1 last message repeated 199 times
 
Apr  1 23:43:59  test-re0 xinetd[11541]: service ssh, accept: Invalid argument (errno = 22)
 
Apr  1 23:43:59  test-re0 last message repeated 199 times
 
Apr  1 23:39:34  test-re1 xinetd[11382]: service ssh, accept: Invalid argument (errno = 22)

Solution

The issue stems from the xinetd service requiring an upgrade to version 2.3.15.4 from 2.3.15.5
 
When the device boots, there is a clash between two services or 2 instances of the single service that tries to listen on the same port, i.e. port 22, causing the error "accept: Invalid argument (errno = 22)".

This issue is tracked via PR1767072. It is recommended to upgrade to a version which contains the fix of this PR to pick up the fix for this issue.

Modification History

2024-04-02 : Article Created
2024-04-04 : Updated Formatting

Related Information

https://prsearch.juniper.net/problemreport/PR1767072