[Nix-dev] ZeroTier-One service

stewart mackenzie setori88 at gmail.com
Wed Jun 24 09:41:04 CEST 2015


$ sudo strace -efile zerotier-one -d
execve("/home/stewart/.nix-profile/bin/zerotier-one", ["zerotier-one",
"-d"], [/* 26 vars */]) = 0
access("/etc/ld-nix.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/run/opengl-driver/lib/tls/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/run/opengl-driver/lib/tls/x86_64", 0x7ffe2fe590a0) = -1 ENOENT
(No such file or directory)
open("/run/opengl-driver/lib/tls/libstdc++.so.6", O_RDONLY|O_CLOEXEC)
= -1 ENOENT (No such file or directory)
stat("/run/opengl-driver/lib/tls", 0x7ffe2fe590a0) = -1 ENOENT (No
such file or directory)
open("/run/opengl-driver/lib/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/run/opengl-driver/lib/x86_64", 0x7ffe2fe590a0) = -1 ENOENT (No
such file or directory)
open("/run/opengl-driver/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
stat("/run/opengl-driver/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/run/opengl-driver-32/lib/tls/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/run/opengl-driver-32/lib/tls/x86_64", 0x7ffe2fe590a0) = -1
ENOENT (No such file or directory)
open("/run/opengl-driver-32/lib/tls/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/run/opengl-driver-32/lib/tls", 0x7ffe2fe590a0) = -1 ENOENT (No
such file or directory)
open("/run/opengl-driver-32/lib/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/run/opengl-driver-32/lib/x86_64", 0x7ffe2fe590a0) = -1 ENOENT
(No such file or directory)
open("/run/opengl-driver-32/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
stat("/run/opengl-driver-32/lib", 0x7ffe2fe590a0) = -1 ENOENT (No such
file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/tls/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/tls/x86_64",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/tls/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/tls",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/x86_64",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib",
{st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/tls/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/tls/x86_64",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/tls/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/tls",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/x86_64/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/x86_64",
0x7ffe2fe590a0) = -1 ENOENT (No such file or directory)
open("/nix/store/cpv8pyc772cx0spzz76sa6dvsf6555dh-gcc-4.8.4/lib/libstdc++.so.6",
O_RDONLY|O_CLOEXEC) = 3
open("/run/opengl-driver/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/libm.so.6",
O_RDONLY|O_CLOEXEC) = 3
open("/run/opengl-driver/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/libgcc_s.so.1",
O_RDONLY|O_CLOEXEC) = 3
open("/run/opengl-driver/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/libpthread.so.0",
O_RDONLY|O_CLOEXEC) = 3
open("/run/opengl-driver/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
open("/nix/store/i0l0jjkk82wsqz9z5yhg35iy78bjq684-glibc-2.21/lib/libc.so.6",
O_RDONLY|O_CLOEXEC) = 3
+++ exited with 0 +++
zerotier-one: unable to bind to port: 9993/UDP, 0/TCP (0 == disabled)
zerotier-one: unexpected exception: unable to bind to port


Does this help?

Also here is the zerotierone/default.nix package:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/zerotierone/default.nix

On Wed, Jun 24, 2015 at 1:29 PM, Domen Kožar <domen at dev.si> wrote:
> My guess: zerotier-one calls a binary that's not available to the script


More information about the nix-dev mailing list