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
zerotierone doesn't create dev zt0 on debian 8 with OpenVPN-Server installed. #699
Comments
Does /dev/net/tun exist? |
Of course it exists on both machines: sudo ifconfig tap0 Link encap:Ethernet HWaddr ee:05:76:13:a5:8b tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00 venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00 venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00 As stated: OpenVPN works fine with 2 profiles, 1 for tun, 1 for tap. The interface zt0 just doesn't get created by the installer. It must habe something to do with openvpn because a nearly identical other machine with no openvpn installed does not have that issue. |
And as mentioned in the other threads, apparmor or selinux is not installed/used as far as I can see: |
This really kind of makes no sense. The kernel tap device driver supports thousands of devices and there isn't any restriction about which processes can open them. Can you try shutting down the service and then running /usr/sbin/zerotier-one manually (via sudo) and telling us if it prints anything? |
Hi! sudo /etc/init.d/zerotier-one stop Apr 02 03:41:52 vXXXXX.1blu.de systemd[1]: Started ZeroTier One. (I "Xed" the exact hostname, this forum is public.) Then the command: Can I provide anything else to help? It is definitely an issue with an already installed OpenVPN. |
Is SELinux enabled? Maybe there's a rule or permission problem. |
Hi! |
I really don't know then... we use it alongside other things and I have never seen this issue. Linux has no limit on the number of tun/tap devices. Can you shut down the ZeroTier service and try running it manually with "sudo /usr/sbin/zerotier-one"? See what it outputs and if there are any meaningful error messages. |
sudo service zerotier-one stop Apr 23 23:45:24 v65274.1blu.de systemd[1]: Started ZeroTier One. sudo /usr/sbin/zerotier-one I know it's a strange error. I can manually create tun/tap interfaces with the help of ip: Now the thread is marked as "cantreproduce". I wonder if you installed OpenVPN prior to zerotier-one and also configured to use a TAP and a TUN device (see my 2nd post)? Now I am just guessing. Can the error be related to venet0-00 network devices instead of eth0-devices? However it's a bit frustrating answer the same questions over and over again with the same result. I know it ist an Open Source project and the support here is voluntarily, but I slowly get the impression that after asking the top 5 standard issues you are out of ideas and the threads' gonna die somehow. So, can it have something to do with venet-0 devices on a virtual server, maybe in the routine on how tun/tap devices are created? It is possible via the "ip" command or with "openvpn -mktun". Is there a way to increase verbosity level for logs??? |
1 similar comment
sudo service zerotier-one stop Apr 23 23:45:24 v65274.1blu.de systemd[1]: Started ZeroTier One. sudo /usr/sbin/zerotier-one I know it's a strange error. I can manually create tun/tap interfaces with the help of ip: Now the thread is marked as "cantreproduce". I wonder if you installed OpenVPN prior to zerotier-one and also configured to use a TAP and a TUN device (see my 2nd post)? Now I am just guessing. Can the error be related to venet0-00 network devices instead of eth0-devices? However it's a bit frustrating answer the same questions over and over again with the same result. I know it ist an Open Source project and the support here is voluntarily, but I slowly get the impression that after asking the top 5 standard issues you are out of ideas and the threads' gonna die somehow. So, can it have something to do with venet-0 devices on a virtual server, maybe in the routine on how tun/tap devices are created? It is possible via the "ip" command or with "openvpn -mktun". Is there a way to increase verbosity level for logs??? |
Issue still persisting in 1.2.8 |
Same issue here … |
So i'm not sure if this will help but i was experiencing the same problem, i did an strace of the zerotier process.
So i checked the permission of /dev/net/tun
Now setting the permission to 0666 fixed the "No such file or directory" error for me. https://www.kernel.org/doc/Documentation/networking/tuntap.txt
|
Thanks @s-frostick! Setting the permissions to 0666 fixed the issue for me as well |
why is the user "1" ? |
@laduke the user is root the number you are referencing is the number of hard links to the file. https://www.debian.org/doc/manuals/debian-reference/ch01.en.html#_links |
Oops, off by one. (group is 413) |
Hi! ZT working: ZT not working: The file permissions are obivously the same. However, I noticed on the machine where the issue persists, I can't "ls -la /dev/net/tun" as a normal user, on the other machine I can. Still no zt0 interface is created: strace behaves similar at the system with the issue: Well, it seems like a permission issue, but chmod 666 or even chmod 777 on /dev/net/tun doesn't change it... |
FYI I found this issue via google after following the directions for getting started with docker in the knowledgebase article here. |
Is anyone still experiencing this issues as of |
I just encountered this on v1.2.12 |
Hello! This thread is closed. After further investigation I tried possible solutions to a bit different issues with ZT in linux. Apparently the issue was a "rights issue"; adding the -U option as described down below fixed it. `/lib/systemd/system/zerotier-one.service: [Unit] [Service] [Install] |
(on an openvz VPS) I've also had to |
Just a quick note if you google and find this issue: Don't forget to try rebooting I have all settings correct (permission, etc.) but still encounter this problem, but it works after rebooting the machine. |
Please don't 777 the
|
Both of these also helped me with a node on OpenVz |
FWIW only 777 worked for me. I am logging in as root. |
quetsch commentedMar 23, 2018
•
edited
Hi!
I open up a new issue because 2 other threads with similiar issues were closed without a solution:
https://github.com/zerotier/ZeroTierOne/issues/497
https://github.com/zerotier/ZeroTierOne/issues/448
There is definitely an issue with creation of a zt0 interface on Debian 8 with openvpn server installed. The error message in /var/log/syslog is as follows:
zerotier-one[378]: ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory.
I installed zerotier-one freshly on two machines, a local LAN server and on a virtual server, both running debian 8 (uname -r):
LAN-Server: 3.16.0-5-amd64
vServer: 3.16.0
The vServer is configured as openvpn server with both a tun and a tap interface. However, joining my private network works on both machines, no traffic to the vServer however (PORT_ERROR)
sudo zerotier-cli listnetworks
200 listnetworks
200 listnetworks a09acf02333f90c3 Quetsch c2:26:be:0f:c7:29 PORT_ERROR PRIVATE fc93:a55f:c1b6:813c:c5e6:0000:0000:0001/40,10.100.79.1/24
Any help would be appreciated.
BTW: No change when I shut down openvpn and the tun/tap interfaces go down before installation. Seems like an issue in coexisting with openvpn.
PS: a similar issue was reported on centos7 here, thread closed. If I can provide any more information, I am glad to help.
The text was updated successfully, but these errors were encountered: