logo       

Re: 2.0-beta6: "Error: cannot open" with log-append: msg#00494

network.openvpn.user

Subject: Re: 2.0-beta6: "Error: cannot open" with log-append

On Sun, 27 Jun 2004, Mathias Sundman wrote:

When I start openvpn as a service on WinXP I get the following in my log-file:

Sun Jun 27 22:34:37 2004 Error: cannot open --log file: c:\program files\openvpn\log\ljustero.log: The process cannot access the file because it is being used by another process. (errno=32)
Sun Jun 27 22:34:37 2004 Exiting


If I start openvpn by right-clicking the same config-file, it works as it should, and I get the logging in the file I've specified with log-append.

If I remove the "log-append" parameter from my config openvpn works fine also as a service, but then the log is not appended, which is what I want.

And, no, there is no other openvpn process running.

Here's my config:

remote xxxx
dev tap
dev-node tap-ljustero
port 5000
secret d:/vpn/ljustero/key.mathias
ifconfig 10.0.5.228 255.255.0.0
ifconfig-nowarn
verb 3
mute 20
ping 10
ping-restart 30
resolv-retry infinite
float
mssfix 1400
log-append "c:\\program files\\openvpn\\log\\ljustero.log"
comp-lzo

Ahh, found the problem.

OpenVPN seems to open the default file, in this case
"C:\program files\openvpn\log\ljustero.log", regardless of what file is specified on "log-append", and then when "log-append" tries to open the same file, it is already open.

I can say this because if I specify another file with log-append, it works, but ljustero.log is still created, when openvpn is started as a service.

Regards Mathias

--
_____________________________________________________________
Mathias Sundman (^) ASCII Ribbon Campaign
NILINGS AB X NO HTML/RTF in e-mail
Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise