Page 1 of 1
OpenVPN 2.5.4 bug with status command
Posted: Wed Oct 06, 2021 6:52 am
by joks
Hello, in my server config under Windows 2019 i have always this line:
status "C:\\Program Files\\OpenVPN\\log\\status.log"
after update from version 2.5.3 to yesterday version 2.5.4 when i restart openvpn service i have this error in logs:
options error: --status fails with 'C:\Program Files\OpenVPN\\log\status.log' Unknown error (errno=183)
i notice when i go into C:\Program Files\OpenVPN\ and delete "log" folder and create it again and start openvpn service it`s run fine for first time, but when i restart service after few minutes still i have Unknown error (errno=183) so the only way for now is disable in server config "status" command and now after restart openvpn service it works.
Re: OpenVPN 2.5.4 bug with status command
Posted: Wed Oct 06, 2021 7:46 pm
by TinCanTech
You need to escape those backslashes, as shown in the manual.
Re: OpenVPN 2.5.4 bug with status command
Posted: Thu Oct 07, 2021 1:35 pm
by joks
already tried it and other solutions like
status "C:\Program Files\OpenVPN\log\status.log"
status C:\Program Files\OpenVPN\log\status.log
status log
status status.log
status status.log 20
the service always starts the first time, but after it is restarted service manual, it does not get up anymore and indicates an unknown error.
I only have installations for windows so I don't know if it's the same error for linux after service restart
Re: OpenVPN 2.5.4 bug with status command
Posted: Thu Oct 07, 2021 10:53 pm
by TinCanTech
There is an example in the manual, which shows how to do it correctly.
Re: OpenVPN 2.5.4 bug with status command
Posted: Sat Oct 09, 2021 5:52 am
by joks
i have like in manual!!!
status openvpn-status.log
log openvpn.log
verb 4
it was works in previous releases and suddenly after the update stopped working
edit:
fixed by downgrade to 2.5.3 version maybe in future it will be fixed
probably this change ruins everything
https://github.com/OpenVPN/openvpn/comm ... 355bb10074
Re: OpenVPN 2.5.4 bug with status command
Posted: Sat Oct 09, 2021 11:17 am
by TinCanTech
joks wrote: ↑Sat Oct 09, 2021 5:52 am
i have like in manual!!!
No you do not.
joks wrote: ↑Sat Oct 09, 2021 5:52 am
probably this change ruins everything
Unlikely.
Re: OpenVPN 2.5.4 bug with status command
Posted: Sat Oct 09, 2021 7:14 pm
by joks
in the official and in the example server configuration attached with windows installer is write:
https://openvpn.net/community-resources/how-to/
Status File
status openvpn-status.log
which will output a list of current client connections to the file openvpn-status.log once per minute.
so if you say that i have wrong command correct the manual and example config file
Re: OpenVPN 2.5.4 bug with status command
Posted: Tue Oct 12, 2021 12:08 am
by cs
check log file attribute
If it is read only uncheck read-only attribute
On Thursday evening I have installed upgrade OpenVPN to ver 2.5.4, downloaded here:
https://openvpn.net/community-downloads/, => Windows 64-bit MSI installer
Previously my ver was 2.5.3
Installation on PCs was fine. But on server side (Windows server) there is probably a bug: Openvpon service makes file openvpn-status.log, located in folder (…OpenVPN\config-auto) read-only (attribute)
This feature makes OpenVPN not working
The solution, found over a couple of hours finding, was to make this attribute readable (uncheck this option)
Upgrade was performed on two servers, and this behavior took place twice
So we suspect it is a bug
Re: OpenVPN 2.5.4 bug with status command
Posted: Tue Oct 12, 2021 10:33 am
by joks
thx
cs now my openvpn server its working again after restart
and the moderator kept telling me the wrong configuration file even though I wrote everything step by step

Re: OpenVPN 2.5.4 bug with status command
Posted: Tue Oct 12, 2021 1:58 pm
by TinCanTech
Openvpn installer does not create or touch the file in question.
Re: OpenVPN 2.5.4 bug with status command
Posted: Fri Oct 15, 2021 7:24 am
by PLT
Hi,
I would like to confirm that indeed after upgrade to 2.5.4 on server the server run only once, and it did not want to run again without any conclusive message as to why. After removing openvpn-status.log file the server run again. Then it did not want to restart. Turned out the reason is that forementioned file is created with "read-only" attribute.
Also please be advised that in my case simply removing the "read-only" attribute allows the server to start/re-start once but then upon initialization the file is re-created and again it has read-only attribute.
This is definitely an issue and it has been introduced in 2.5.4 as I have just tested 2.5.3 and it does not exhibit such behaviour and it works fine. The openvpn-status.log is created without "read-only" in 2.5.3
Re: OpenVPN 2.5.4 bug with status command
Posted: Fri Oct 15, 2021 12:51 pm
by joks
Re: OpenVPN 2.5.4 bug with status command
Posted: Fri Oct 15, 2021 2:02 pm
by TinCanTech
I concur.
The real problem is not the installation but when openvpn is started, then the status file is created as readonly.
Re: OpenVPN 2.5.4 bug with status command
Posted: Mon Oct 18, 2021 6:53 pm
by cs
Yes, we have to change read only status of status log every time server is restarted
Re: OpenVPN 2.5.4 bug with status command
Posted: Mon Oct 18, 2021 7:30 pm
by TinCanTech
A solution is being prepared.
Re: OpenVPN 2.5.4 bug with status command
Posted: Tue Oct 19, 2021 10:51 am
by joks
for now i create a .bat script that is run with windows log on (windows scheduler) and remove read-only
@echo off
attrib -r "C:\Program Files\OpenVPN\log\*.*" /s
now after windows update or other reboot openvpn will start
Re: OpenVPN 2.5.4 bug with status command
Posted: Thu Oct 21, 2021 8:09 pm
by cs
joks wrote: ↑Tue Oct 19, 2021 10:51 am
for now i create a .bat script that is run with windows log on (windows scheduler) and remove read-only
@echo off
attrib -r "C:\Program Files\OpenVPN\log\*.*" /s
now after windows update or other reboot openvpn will start
Thanks joks, written as a bat, shortcut placed run -> shell:startup, every time server is restarted your bat attr “read only” makes off
Re: OpenVPN 2.5.4 bug with status command
Posted: Thu Oct 21, 2021 8:19 pm
by TinCanTech
Re: OpenVPN 2.5.4 bug with status command
Posted: Thu Oct 21, 2021 8:32 pm
by cs
TinCanTech
Simply download the installer again and reinstall ?
Re: OpenVPN 2.5.4 bug with status command
Posted: Mon Nov 13, 2023 8:16 pm
by joks
Hello, after i update to latest OpenVPN 2.6.7 this bug which I reported 2 years ago it appears again (in previews version 2.6.6 and 2.6.5 it was fine).
Under my Windows 2019 64x bit server i have in server config file added:
status "C:\\Program Files\\OpenVPN\\log\\openvpn-status.log"
and then openvpn service start openvpn-status.log have read-only attribute :/ and openvpn doesn't work (service is running but network adapter is disconected).
when i unchecked read-only attribute on file openvpn-status.log then it works about 1 day and the attributes are set again :/
i dont know what is changed in latest version but under Windows the bug came back