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

Prebuilt binary - timeformat problem

Open wojnas opened this issue 3 years ago • 10 comments

Hi, we have problem with time format in prebuild binary. The GUI don't show all connected clients - in opvn managment inteface they are connected. We had upgrade binary to current version, but problem stil exist.

Here some logs: Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Sat Nov 27 20:21:32 2021" as "2006-01-02 15:04:05": cannot parse "Sat Nov 27 20:21:32 2021" as "2006" Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Fri Nov 26 14:43:22 2021" as "2006-01-02 15:04:05": cannot parse "Fri Nov 26 14:43:22 2021" as "2006" Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Fri Nov 26 14:43:22 2021" as "2006-01-02 15:04:05": cannot parse "Fri Nov 26 14:43:22 2021" as "2006" Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Fri Nov 26 23:55:03 2021" as "2006-01-02 15:04:05": cannot parse "Fri Nov 26 23:55:03 2021" as "2006" Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Mon Nov 29 20:38:10 2021" as "2006-01-02 15:04:05": cannot parse "Mon Nov 29 20:38:10 2021" as "2006" Nov 30 10:54:47 openvpn ovpn-admin[10649]: 2021/11/30 10:54:47 parsing time "Sun Nov 28 22:55:25 2021" as "2006-01-02 15:04:05": cannot parse "Sun Nov 28 22:55:25 2021" as "2006"

wojnas avatar Dec 01 '21 08:12 wojnas

Maybe we need to allow customizing time layout

pashcovich avatar Dec 01 '21 08:12 pashcovich

Hello,

I have the same problem. I get the same error message. My server :

Ubuntu 20.04 Time zone : Europe/Prague

reneseifert avatar Jan 02 '22 16:01 reneseifert

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

pashcovich avatar Jan 20 '22 15:01 pashcovich

Hey, 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= root@openvpn:~# y^C root@openvpn:~# timedatectl Local time: Thu 2022-01-20 16:30:47 CET Universal time: Thu 2022-01-20 15:30:47 UTC RTC time: Thu 2022-01-20 15:30:48 Time zone: Europe/Warsaw (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no

wojnas avatar Jan 20 '22 15:01 wojnas

Hi,

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=

timedatectl

Local time: Thu 2022-01-20 18:29:49 CET Universal time: Thu 2022-01-20 17:29:49 UTC RTC time: Thu 2022-01-20 17:29:50
Time zone: Europe/Prague (CET, +0100) System clock synchronized: yes
NTP service: n/a
RTC in local TZ: no

reneseifert avatar Jan 20 '22 17:01 reneseifert

I got this issue, too. Is there any workaround? @pashcovich

isdzulqor avatar Feb 16 '22 03:02 isdzulqor

@isdzulqor @reneseifert @wojnas are you using openvpn server version 2.4?

pashcovich avatar Apr 26 '22 14:04 pashcovich

yes - OpenVPN Version: OpenVPN 2.4.7

wojnas avatar Apr 26 '22 14:04 wojnas

I think we have already fixed this problem and the changes have been made to the master branch, but we are still preparing a new release @vitaliy-sn do you have any additional info about this problem?

pashcovich avatar Apr 26 '22 15:04 pashcovich

I have OpenVPN 2.4.7 too.

reneseifert avatar Apr 28 '22 10:04 reneseifert