How to fix the openvpn service Error opening configuration file on Windows 10
I experience a frustrating behaviour of openVPN used as a Windows 10 service:
it doesn't start, and when you look at the log it tells:
Options error: In [CMD-LINE]:1: Error opening configuration file: C:Program FilesOpenVPNconfigxxx.ovpn
Use --help for more information.
But the openvpn GUI works with the same configuration file!
Unfortunately, the --help doesn't help.
What can I do to at least have more diagnostic details?
Thanks
Alexandre
windows-10 openvpn services
add a comment |
I experience a frustrating behaviour of openVPN used as a Windows 10 service:
it doesn't start, and when you look at the log it tells:
Options error: In [CMD-LINE]:1: Error opening configuration file: C:Program FilesOpenVPNconfigxxx.ovpn
Use --help for more information.
But the openvpn GUI works with the same configuration file!
Unfortunately, the --help doesn't help.
What can I do to at least have more diagnostic details?
Thanks
Alexandre
windows-10 openvpn services
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
Thanks Montonero. It is hard to decipher. I can see thatbitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.
– Alex
Jan 25 at 10:49
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regardingbitdefender
. I can only suppose thatbitdefender
is restricting the access to theC:Program FilesOpenVPNconfig
directory.
– Alex
Jan 28 at 10:26
add a comment |
I experience a frustrating behaviour of openVPN used as a Windows 10 service:
it doesn't start, and when you look at the log it tells:
Options error: In [CMD-LINE]:1: Error opening configuration file: C:Program FilesOpenVPNconfigxxx.ovpn
Use --help for more information.
But the openvpn GUI works with the same configuration file!
Unfortunately, the --help doesn't help.
What can I do to at least have more diagnostic details?
Thanks
Alexandre
windows-10 openvpn services
I experience a frustrating behaviour of openVPN used as a Windows 10 service:
it doesn't start, and when you look at the log it tells:
Options error: In [CMD-LINE]:1: Error opening configuration file: C:Program FilesOpenVPNconfigxxx.ovpn
Use --help for more information.
But the openvpn GUI works with the same configuration file!
Unfortunately, the --help doesn't help.
What can I do to at least have more diagnostic details?
Thanks
Alexandre
windows-10 openvpn services
windows-10 openvpn services
asked Jan 25 at 9:29
AlexAlex
86
86
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
Thanks Montonero. It is hard to decipher. I can see thatbitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.
– Alex
Jan 25 at 10:49
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regardingbitdefender
. I can only suppose thatbitdefender
is restricting the access to theC:Program FilesOpenVPNconfig
directory.
– Alex
Jan 28 at 10:26
add a comment |
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
Thanks Montonero. It is hard to decipher. I can see thatbitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.
– Alex
Jan 25 at 10:49
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regardingbitdefender
. I can only suppose thatbitdefender
is restricting the access to theC:Program FilesOpenVPNconfig
directory.
– Alex
Jan 28 at 10:26
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
Thanks Montonero. It is hard to decipher. I can see that
bitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.– Alex
Jan 25 at 10:49
Thanks Montonero. It is hard to decipher. I can see that
bitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.– Alex
Jan 25 at 10:49
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regarding
bitdefender
. I can only suppose that bitdefender
is restricting the access to the C:Program FilesOpenVPNconfig
directory.– Alex
Jan 28 at 10:26
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regarding
bitdefender
. I can only suppose that bitdefender
is restricting the access to the C:Program FilesOpenVPNconfig
directory.– Alex
Jan 28 at 10:26
add a comment |
1 Answer
1
active
oldest
votes
What is the command line the service uses to launch OpenVPN?
If it looks something like this:
openvpn C:Program FilesOpenVPNconfigxxx.ovpn
OpenVPN (usually) needs to be launched in the directory where all of its authentication files are (unless you specified an absolute path to them; like C:Program FilesOpenVPNta.key
) Try adding --cd C:Program FilesOpenVPN
to the command line, so that it looks more like this:
openvpn --cd C:Program FilesOpenVPN --config C:Program FilesOpenVPNconfigxxx.ovpn
If that doesn't help, try adding --verb 11
to the command line and showing us the output of that.
EDIT
The OpenVPN page on Running OpenVPN as a Windows Service shows that the C:Program FilesOpenVPNbinopenvpnserv2.exe
is a service wrapper that launches the main OpenVPN executable. I have two suggestions:
1:
Use regedit
to show us the settings the wrapper is using (the page mentioned above has information on the registry values), and modify them appropriately.
2:
Write your own batch script that launches OpenVPN and set that as the executable launched by the service. I would prefer the former of these two, as it is the least invasive.
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.
– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398270%2fhow-to-fix-the-openvpn-service-error-opening-configuration-file-on-windows-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
What is the command line the service uses to launch OpenVPN?
If it looks something like this:
openvpn C:Program FilesOpenVPNconfigxxx.ovpn
OpenVPN (usually) needs to be launched in the directory where all of its authentication files are (unless you specified an absolute path to them; like C:Program FilesOpenVPNta.key
) Try adding --cd C:Program FilesOpenVPN
to the command line, so that it looks more like this:
openvpn --cd C:Program FilesOpenVPN --config C:Program FilesOpenVPNconfigxxx.ovpn
If that doesn't help, try adding --verb 11
to the command line and showing us the output of that.
EDIT
The OpenVPN page on Running OpenVPN as a Windows Service shows that the C:Program FilesOpenVPNbinopenvpnserv2.exe
is a service wrapper that launches the main OpenVPN executable. I have two suggestions:
1:
Use regedit
to show us the settings the wrapper is using (the page mentioned above has information on the registry values), and modify them appropriately.
2:
Write your own batch script that launches OpenVPN and set that as the executable launched by the service. I would prefer the former of these two, as it is the least invasive.
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.
– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
add a comment |
What is the command line the service uses to launch OpenVPN?
If it looks something like this:
openvpn C:Program FilesOpenVPNconfigxxx.ovpn
OpenVPN (usually) needs to be launched in the directory where all of its authentication files are (unless you specified an absolute path to them; like C:Program FilesOpenVPNta.key
) Try adding --cd C:Program FilesOpenVPN
to the command line, so that it looks more like this:
openvpn --cd C:Program FilesOpenVPN --config C:Program FilesOpenVPNconfigxxx.ovpn
If that doesn't help, try adding --verb 11
to the command line and showing us the output of that.
EDIT
The OpenVPN page on Running OpenVPN as a Windows Service shows that the C:Program FilesOpenVPNbinopenvpnserv2.exe
is a service wrapper that launches the main OpenVPN executable. I have two suggestions:
1:
Use regedit
to show us the settings the wrapper is using (the page mentioned above has information on the registry values), and modify them appropriately.
2:
Write your own batch script that launches OpenVPN and set that as the executable launched by the service. I would prefer the former of these two, as it is the least invasive.
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.
– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
add a comment |
What is the command line the service uses to launch OpenVPN?
If it looks something like this:
openvpn C:Program FilesOpenVPNconfigxxx.ovpn
OpenVPN (usually) needs to be launched in the directory where all of its authentication files are (unless you specified an absolute path to them; like C:Program FilesOpenVPNta.key
) Try adding --cd C:Program FilesOpenVPN
to the command line, so that it looks more like this:
openvpn --cd C:Program FilesOpenVPN --config C:Program FilesOpenVPNconfigxxx.ovpn
If that doesn't help, try adding --verb 11
to the command line and showing us the output of that.
EDIT
The OpenVPN page on Running OpenVPN as a Windows Service shows that the C:Program FilesOpenVPNbinopenvpnserv2.exe
is a service wrapper that launches the main OpenVPN executable. I have two suggestions:
1:
Use regedit
to show us the settings the wrapper is using (the page mentioned above has information on the registry values), and modify them appropriately.
2:
Write your own batch script that launches OpenVPN and set that as the executable launched by the service. I would prefer the former of these two, as it is the least invasive.
What is the command line the service uses to launch OpenVPN?
If it looks something like this:
openvpn C:Program FilesOpenVPNconfigxxx.ovpn
OpenVPN (usually) needs to be launched in the directory where all of its authentication files are (unless you specified an absolute path to them; like C:Program FilesOpenVPNta.key
) Try adding --cd C:Program FilesOpenVPN
to the command line, so that it looks more like this:
openvpn --cd C:Program FilesOpenVPN --config C:Program FilesOpenVPNconfigxxx.ovpn
If that doesn't help, try adding --verb 11
to the command line and showing us the output of that.
EDIT
The OpenVPN page on Running OpenVPN as a Windows Service shows that the C:Program FilesOpenVPNbinopenvpnserv2.exe
is a service wrapper that launches the main OpenVPN executable. I have two suggestions:
1:
Use regedit
to show us the settings the wrapper is using (the page mentioned above has information on the registry values), and modify them appropriately.
2:
Write your own batch script that launches OpenVPN and set that as the executable launched by the service. I would prefer the former of these two, as it is the least invasive.
edited Jan 30 at 21:43
answered Jan 28 at 18:15
ShadowcoderShadowcoder
1068
1068
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.
– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
add a comment |
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.
– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at
"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.– Alex
Jan 30 at 7:40
Thanks Shadowcoder But there is no command line. It is launched as a service whose main executable is located at
"C:Program FilesOpenVPNbinopenvpnserv2.exe"
. I suppose that the problem is related to some rights, but couldn't find out which.– Alex
Jan 30 at 7:40
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
Looks like you might have to go poking around in the registry or reconfigure the service to launch OpenVPN without the service wrapper. Read my edits above
– Shadowcoder
Jan 30 at 21:33
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398270%2fhow-to-fix-the-openvpn-service-error-opening-configuration-file-on-windows-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You could try Process Monitor to check why OpenVPN service can't open the file.
– montonero
Jan 25 at 9:35
Thanks Montonero. It is hard to decipher. I can see that
bitdefender
is sometimes involved, but I cannot determine whether it is generating a conflict.– Alex
Jan 25 at 10:49
You'll need to include only OpenVPN service process in a procmon's filter. That will make things much easier.
– montonero
Jan 25 at 11:01
I did initially, but unfortunatelly, it does not give me a better hint that the previous one regarding
bitdefender
. I can only suppose thatbitdefender
is restricting the access to theC:Program FilesOpenVPNconfig
directory.– Alex
Jan 28 at 10:26