-
Notifications
You must be signed in to change notification settings - Fork 6
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
[email protected] file fails on Debian Stretch #5
Comments
This makes me wonder if the |
File
And
|
I believe the system cannot find [email protected] so I copied it to the default location for .service files: Now at least the first errors are gone "unknown lvalue ... in section..." so it seems we are getting closer.
When I check ctljournal, it says:
Note the /var/run/netns directory exists but it is empty... |
(I accidentally closed the issue) |
I wonder if this is because combining drop-in files with overriding the entire unit isn't supported or doesn't work too well. You shouldn't ever have to put .service files in /lib/systemd/system by hand, that's kinda bad What if you delete the drop-in config file netns.conf and leave [email protected] in /etc/systemd/system, but have it look like this instead
|
Ha thanks! That helped! But it seems the up script failed :( see the 2nd last line below. Not sure if we can fix that one..
|
|
I triple checked, /usr/local/bin/vpn-ns definitely exists, it contains the exact copy of your blog.
|
if i run
as my (non-root) user, i get exit code 2, so i wonder if it's a permissions issue. like in particular, if one of the Capabilities are missing from the service file. Try changing the
this will reset the list of allowed capabilities from the ones configured in /lib/systemd/system/[email protected] |
you'll have to do a |
You mean I should create /etc/systemd/system/[email protected]? Because until now, I have put [email protected] in /lib/systemd/system/. If I simply copy that version to /etc/systemd/system/ and only change but I am not sure if systemctl will actually look at the newly created file /etc/systemd/system/[email protected]. I did do:
|
Only the operating system should be managing .service files in /lib/systemd/system/. If it works it works I guess, but I wouldn't do that and it does look at it: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Unit%20File%20Load%20Path |
I'm not sure what to try next tho. Might be a good idea to get the environmental variables openvpn is passing to vpn-ns and then run vpn-ns in a shell with those environmental variables to see how it behaves (hopefully it will produce a helpful error message). that's how i originally wrote the script at least -- i just set up and route-up to run some script that ran |
I believe I made a mistake interpreting your blog. I actually tested all of the above on DietPi, which is also Debian Stretch based but not as "clean" Debian Stretch as OSMC is so I am going to start over on a clean OSMC system now and I want to make sure I make no mistakes understanding the steps from your blog. As you explained I should not manually change files in /lib/... BUT: re-reading your blog I believe I should not change any [email protected] file at all, I should only create the drop-in unit in If I end up with the same result I will do more trial and error to get the up script working. |
So that went really smooth (and makes more sense). Also on OSMC, openvpn is located in usr/bin just like in your blog (on DietPi it was usr/sbin). I only created the drop-in unit and followed the other steps. I still get the same error also the netns script you provide says
And I am getting errorcode 2 so the issue must be with the case above this part. my output now:
|
The issue with the script is probably due to no $PATH. I want to try to replace variables in the net-ns script and replace them for the absolute values. |
I never got this working, gave up a week later in January, but I would like to try again. Just wonder if more people have tried using your nsdo on Debian Stretch? |
Hi! I never spend much time figuring this out even though I believe it isn't that difficult with your blog article.
So tonight I tried again and it all made much more sense. I successfully build nsdo and performed the steps in your blog. I use a RPi3 running DietPi (based on Debian Stretch).
Unfortunately the [email protected] file is giving me troubles. This is what happens when I run
systemctl start openvpn@ns-vpn
(my vpn conf file is /etc/openvpn/ns-vpn.conf).
should I also edit the openvpn.service file? I did not touch that one. I hope you can help me figure out how to modify [email protected]. I have no clue how to troubleshoot this. I believe this is the only issue and nsdo should do the trick once openvpn is running.
The text was updated successfully, but these errors were encountered: