ovpn-admin icon indicating copy to clipboard operation
ovpn-admin copied to clipboard

Limit online users on list?

Open aetbx opened this issue 3 years ago • 7 comments

Hello, I have a problem with the number of online users, there are only 12 randomly displayed online. When I add another new one, the list changes, but it always shows that there is only 12 online (green color). In openvpn-status.log all users are connected. Any ideas?

aetbx avatar Dec 27 '21 20:12 aetbx

i just checked in one of our cluster and can see 19 online users

pashcovich avatar Jan 14 '22 12:01 pashcovich

According to the logs, clients who parse incorrectly (12 clients) in the GUI display correctly, while the rest are not in the logs and there is no information about the connection in the GUI (in openvpn-status.log they are connected)

Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Thu Jan 13 09:35:14 2022" as "2006-01-02 15:04:05": cannot parse "Thu Jan 13 09:35:14 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Tue Jan 11 18:10:30 2022" as "2006-01-02 15:04:05": cannot parse "Tue Jan 11 18:10:30 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Fri Jan 14 16:58:33 2022" as "2006-01-02 15:04:05": cannot parse "Fri Jan 14 16:58:33 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Sun Jan 9 14:47:41 2022" as "2006-01-02 15:04:05": cannot parse "Sun Jan 9 14:47:41 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Mon Jan 17 09:25:01 2022" as "2006-01-02 15:04:05": cannot parse "Mon Jan 17 09:25:01 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Fri Jan 7 08:03:53 2022" as "2006-01-02 15:04:05": cannot parse "Fri Jan 7 08:03:53 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Thu Jan 13 15:31:05 2022" as "2006-01-02 15:04:05": cannot parse "Thu Jan 13 15:31:05 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Wed Dec 8 01:33:41 2021" as "2006-01-02 15:04:05": cannot parse "Wed Dec 8 01:33:41 2021" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Fri Dec 17 10:24:36 2021" as "2006-01-02 15:04:05": cannot parse "Fri Dec 17 10:24:36 2021" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Mon Jan 17 11:48:12 2022" as "2006-01-02 15:04:05": cannot parse "Mon Jan 17 11:48:12 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Thu Jan 13 13:32:05 2022" as "2006-01-02 15:04:05": cannot parse "Thu Jan 13 13:32:05 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 parsing time "Wed Jan 12 10:59:29 2022" as "2006-01-02 15:04:05": cannot parse "Wed Jan 12 10:59:29 2022" as "2006" Jan 17 12:52:08 openvpn ovpn-admin[29359]: 2022/01/17 12:52:08 openssl x509 -in /etc/openvpn/easyrsa/pki/ca.crt -noout -enddate | awk -F "=" {'print $2'}

aetbx avatar Jan 17 '22 11:01 aetbx

@aetbx which locale do you use? can you please provide output of locale command?

pashcovich avatar Jan 20 '22 15:01 pashcovich

@aetbx which locale do you use? can you please provide output of locale command?

root@openvpn:~# locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=

aetbx avatar Jan 20 '22 15:01 aetbx

@aetbx sorry for the late response which version of the openvpn server are you using?

pashcovich avatar Mar 11 '22 09:03 pashcovich

@aetbx sorry for the late response which version of the openvpn server are you using?

Im using 2.4.7-1+deb10u1. I compiled source with different time formatting but still only shows 12/13 users online. Ofc errors have disappeared, so that's not the problem.

aetbx avatar Mar 11 '22 10:03 aetbx

i think this is related to https://github.com/flant/ovpn-admin/issues/114

eatrisno avatar Apr 21 '22 09:04 eatrisno