-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expect: spawn id exp6 not open #1
Comments
I am not sure how amussey got this script working. I am using FreeBSD 10 instead of FreeNAS, so my issues might be resolved if I was using FreeNAS, but I thought I'd still comment. I've circumvented the exp6 error by doing pkg remove openvpn, compiling from source with the password_save option enabled and providing the password in a file via auth-user-pass filename + auth_nocache in openvpn.conf and removing the 'expect' bits with the username/password in the run.sh file. This however still does not enable openvpn under FreeBSD The core issue I am having is the inability to access the tun0 device to make the connection. If anyone is able to point me in the right direction, it would be very appreciated. I have attempted to set up devfs to expose tun to the jail, but have been thus far unsuccessful. Thanks. |
I have the exact same problem spawn id exp6 not open. |
I also have the exact same problem spawn id exp6 not open. Trying to install on FreeNAS 9.3 latest stable. removing the --daemon arg from the script makes no difference for me. |
Nothing new on this one? |
I'm having the same issue here. Is the author reading these posts? |
Hey guys, my sincere apologies for being unresponsive (had my github notifications poorly configured). I'm happy to try and help as much as possible. That being said, I'll preface this with: my knowledge of OpenVPN is extremely limited. I've only attempted to configure this using the stock Transmission jail on FreeNAS 9.3 and Private Internet Access (PIA) as the VPN provider. @zaqrat, @SpareHook, @MadMungo, @coolboiime: Which VPN provider are you guys using? @Asara: you're probably going in a better path; using the |
I tried PIA and didnt get it to work. |
I tried PureVPN and ProXPN with same results. |
Hey everyone, I promise I'm still looking into this - I have not had an opportunity to sit down with my FreeNAS machine to try and troubleshoot. I'll try to post back this weekend with an update. |
Script still does not work, and no uninstall target is provided. |
Hey everyone, thanks for your patience. This seems to be a problem with @Imburr: When I originally wrote this script, I designed it to be run specifically inside freshly spawned FreeNAS jails, which I consider to be fairly ephemeral. That may not be the right mindset, so if the ability to uninstall is a feature you could truly use, please submit it as a separate issue. |
I found that adding --auth-user-pass to the end of the command line fixed this for me:
It looks like openvpn did not know how I wanted to authenticate, so it just gave up. |
Hi all, has the fix proposed by InternetofAwesome worked for anyone? I've edited the run.sh.template files using vi to add --auth-user-pass but now I get the message: invalid command name "--auth-user-pass". I'm using a clean install of FreeNAS 9.3.1. Any advice greatly appreciated. |
@bigmascot: Unfortunately, according to the man pages, to use the |
Thanks for your reply @amussey, such a shame - I've just needed to completely rebuild my FreeNAS box due to a failure at the weekend and did so using the latest version. Prior to that your scripts worked splendidly! If anyone else has any updates or suggestions on this in the meantime please do post for us here. Many thanks. |
@amussey, one more question if I may; is there a way I can connect by typing in my username and password manually each time as needed? I'd be happy to use this as a workaround in the meantime. |
Just to close this off, I have it working without the addition of --auth-user-pass. I copied my key and cert over again and that fixed it. Can confirm that this is working with 9.3.1. |
@bigmascot, can you provide more details of how you got it working without --auth-user-pass? @amussey, the --auth-user-pass command takes an optional argument of a login/password file. In my case, it seems to force openvpn into interactive login when the optional argument is omitted. To your point, I did try to include a login/pass file to bypass the interactive login hack via expect, but got an error related to that feature not being compiled in, but this error only happens when you try to pass a login/pass file. |
transmissionvpn start is failing during the expect script. I'm receiving the error "expect: spawn id exp6 not open". After doing quite a bit of research I believe this is occurring because openvpn is closing stdin. If I remove the --daemon arg from the spawn command, the error goes away, and the script works when manually run from the shell. However, it fails to run correctly as a service.
Any assistance you can provide to help get past this issue?
Thanks!
The text was updated successfully, but these errors were encountered: