tailscale: tailscaled fails to start
tailscaled fails to start
rc-service start debug output:
alpine:~# rc-service tailscale start -d
+ sourcex -e /etc/rc.conf
+ '[' -e '=' -e ]
+ shift
+ '[' -e /etc/rc.conf ]
+ . /etc/rc.conf
+ rc_sys=lxc
+ rc_tty_number=12
+ respawn_delay=2
+ respawn_max=5
+ respawn_period=1800
+ '[' -d /etc/rc.conf.d ]
+ _conf_d=/etc/init.d/../conf.d
+ _c=tailscale
+ '[' -n tailscale -a tailscale '!=' tailscale ]
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/tailscale.default
+ '[' -e '=' -e ]
+ shift
+ '[' -e /etc/init.d/../conf.d/tailscale.default ]
+ return 1
+ sourcex -e /etc/init.d/../conf.d/tailscale
+ '[' -e '=' -e ]
+ shift
+ '[' -e /etc/init.d/../conf.d/tailscale ]
+ . /etc/init.d/../conf.d/tailscale
+ unset _conf_d
+ RC_VRF_EXEC=
+ '[' -n ]
+ sourcex /lib/rc/sh/runit.sh
+ '[' /lib/rc/sh/runit.sh '=' -e ]
+ . /lib/rc/sh/runit.sh
+ sourcex /lib/rc/sh/s6.sh
+ '[' /lib/rc/sh/s6.sh '=' -e ]
+ . /lib/rc/sh/s6.sh
+ '[' -z ]
+ s6_service_path=/var/svc.d/tailscale
+ sourcex /lib/rc/sh/start-stop-daemon.sh
+ '[' /lib/rc/sh/start-stop-daemon.sh '=' -e ]
+ . /lib/rc/sh/start-stop-daemon.sh
+ sourcex /lib/rc/sh/supervise-daemon.sh
+ '[' /lib/rc/sh/supervise-daemon.sh '=' -e ]
+ . /lib/rc/sh/supervise-daemon.sh
+ extra_commands='healthcheck unhealthy '
+ sourcex /etc/init.d/tailscale
+ '[' /etc/init.d/tailscale '=' -e ]
+ . /etc/init.d/tailscale
+ TAILSCALED_LOGFILE=/var/log/tailscaled.log
+ TAILSCALED_PORT=41641
+ supervisor=supervise-daemon
+ name=tailscaled
+ command=/usr/sbin/tailscaled
+ command_args='--state=/var/lib/tailscale/tailscaled.state --port 41641 >>/var/log/tailscaled.log 2>&1'
+ output_log=/var/log/tailscaled.log
+ error_log=/var/log/tailscaled.log
+ pidfile=/run/tailscaled.pid
+ respawn_delay=5
+ respawn_max=0
+ yesno
+ '[' -z ]
+ return 1
+ '[' start '!=' status -a start '!=' describe ]
+ '[' -n ]
+ command -v cgroup_add_service
+ '[' cgroup_add_service '=' cgroup_add_service ]
+ grep -qs /sys/fs/cgroup /proc/1/mountinfo
+ '[' -d /sys/fs/cgroup -a '!' -w /sys/fs/cgroup ]
+ cgroup_add_service
+ '[' -w /sys/fs/cgroup/cgroup.controllers/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.events/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.freeze/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.kill/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.max.depth/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.max.descendants/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.procs/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.stat/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.subtree_control/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.threads/tasks ]
+ '[' -w /sys/fs/cgroup/cgroup.type/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.idle/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.max/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.max.burst/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.pressure/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.stat/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.uclamp.max/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.uclamp.min/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.weight/tasks ]
+ '[' -w /sys/fs/cgroup/cpu.weight.nice/tasks ]
+ '[' -w /sys/fs/cgroup/cpuset.cpus/tasks ]
+ '[' -w /sys/fs/cgroup/cpuset.cpus.effective/tasks ]
+ '[' -w /sys/fs/cgroup/cpuset.cpus.partition/tasks ]
+ '[' -w /sys/fs/cgroup/cpuset.mems/tasks ]
+ '[' -w /sys/fs/cgroup/cpuset.mems.effective/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.current/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.events/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.events.local/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.max/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.rsvd.current/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.1GB.rsvd.max/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.current/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.events/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.events.local/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.max/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.rsvd.current/tasks ]
+ '[' -w /sys/fs/cgroup/hugetlb.2MB.rsvd.max/tasks ]
+ '[' -w /sys/fs/cgroup/io.max/tasks ]
+ '[' -w /sys/fs/cgroup/io.pressure/tasks ]
+ '[' -w /sys/fs/cgroup/io.prio.class/tasks ]
+ '[' -w /sys/fs/cgroup/io.stat/tasks ]
+ '[' -w /sys/fs/cgroup/io.weight/tasks ]
+ '[' -w /sys/fs/cgroup/memory.current/tasks ]
+ '[' -w /sys/fs/cgroup/memory.events/tasks ]
+ '[' -w /sys/fs/cgroup/memory.events.local/tasks ]
+ '[' -w /sys/fs/cgroup/memory.high/tasks ]
+ '[' -w /sys/fs/cgroup/memory.low/tasks ]
+ '[' -w /sys/fs/cgroup/memory.max/tasks ]
+ '[' -w /sys/fs/cgroup/memory.min/tasks ]
+ '[' -w /sys/fs/cgroup/memory.numa_stat/tasks ]
+ '[' -w /sys/fs/cgroup/memory.oom.group/tasks ]
+ '[' -w /sys/fs/cgroup/memory.pressure/tasks ]
+ '[' -w /sys/fs/cgroup/memory.stat/tasks ]
+ '[' -w /sys/fs/cgroup/memory.swap.current/tasks ]
+ '[' -w /sys/fs/cgroup/memory.swap.events/tasks ]
+ '[' -w /sys/fs/cgroup/memory.swap.high/tasks ]
+ '[' -w /sys/fs/cgroup/memory.swap.max/tasks ]
+ '[' -w /sys/fs/cgroup/misc.current/tasks ]
+ '[' -w /sys/fs/cgroup/misc.max/tasks ]
+ '[' -w /sys/fs/cgroup/pids.current/tasks ]
+ '[' -w /sys/fs/cgroup/pids.events/tasks ]
+ '[' -w /sys/fs/cgroup/pids.max/tasks ]
+ '[' -w /sys/fs/cgroup/rdma.current/tasks ]
+ '[' -w /sys/fs/cgroup/rdma.max/tasks ]
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ]
+ command -v cgroup_set_limits
+ '[' cgroup_set_limits '=' cgroup_set_limits ]
+ cgroup_set_limits
+ local 'blkio='
+ '[' -n ]
+ local 'cpu='
+ '[' -n ]
+ local 'cpuacct='
+ '[' -n ]
+ local 'cpuset='
+ '[' -n ]
+ local 'devices='
+ '[' -n ]
+ local 'hugetlb='
+ '[' -n ]
+ local 'memory='
+ '[' -n ]
+ local 'net_cls='
+ '[' -n ]
+ local 'net_prio='
+ '[' -n ]
+ local 'pids='
+ '[' -n ]
+ return 0
+ command -v cgroup2_set_limits
+ '[' cgroup2_set_limits '=' cgroup2_set_limits ]
+ '[' start '=' start ]
+ cgroup2_set_limits
+ local cgroup_path
+ cgroup2_find_path
+ grep -qw cgroup2 /proc/filesystems
+ printf /sys/fs/cgroup/unified
+ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -z /sys/fs/cgroup/unified ]
+ mountinfo -q /sys/fs/cgroup/unified
+ return 0
+ break
+ read _d
+ eval 'printf '"'"'%s\n'"'"' '
+ printf '%s\n'
+ '[' -n ]
+ read _d
+ '[' 0 -ne 0 ]
+ unset _d
+ read _f
+ eval 'printf '"'"'%s\n'"'"' '
+ printf '%s\n'
+ '[' -n ]
+ read _f
+ '[' 0 -ne 0 ]
+ unset _f
+ '[' -n ]
+ '[' -n start ]
+ '[' start '=' depend ]
+ '[' describe '=' start ]
+ '[' start '=' start ]
+ command -v start
+ '[' start '=' start ]
+ yesno
+ '[' -z ]
+ return 1
+ '[' cgroup_cleanup '=' start ]
+ unset _cmd
+ verify_boot
+ '[' '!' -e /run/openrc/softlevel ]
+ return 0
+ command -v start_pre
+ '[' start_pre '=' start_pre ]
+ start_pre
+ checkpath -f -m 0644 -o root:root /var/log/tailscaled.log
+ start
+ default_start
+ local 'func=ssd_start'
+ func=supervise_start
+ supervise_start
+ '[' -z /usr/sbin/tailscaled ]
+ ebegin 'Starting tailscaled'
* Starting tailscaled ...+ eval supervise-daemon tailscale --start --stdout /var/log/tailscaled.log --stderr /var/log/tailscaled.log --pidfile /run/tailscaled.pid --respawn-delay 5 --respawn-max 0 --respawn-period 1800 /usr/sbin/tailscaled -- '--state=/var/lib/tailscale/tailscaled.state' --port 41641 '>>/var/log/tailscaled.log' '2>&1'
+ supervise-daemon tailscale --start --stdout /var/log/tailscaled.log --stderr /var/log/tailscaled.log --pidfile /run/tailscaled.pid --respawn-delay 5 --respawn-max 0 --respawn-period 1800 /usr/sbin/tailscaled -- '--state=/var/lib/tailscale/tailscaled.state' --port 41641
+ rc=0
+ '[' 0 '=' 0 ]
+ '[' -n ]
+ '[' -n /run/tailscaled.pid ]
+ service_set_value pidfile /run/tailscaled.pid
+ eend 0 'failed to start tailscaled'
[ ok ]
+ command -v start_post
+ '[' '=' start_post ]
+ command -v cgroup_cleanup
+ '[' cgroup_cleanup '=' cgroup_cleanup ]
+ '[' start '=' stop ]
+ command -v cgroup2_remove
+ '[' cgroup2_remove '=' cgroup2_remove ]
+ '[' start '=' stop ]
+ '[' -z /usr/sbin/tailscaled ]
+ shift
+ continue 2
+ '[' -n ]
+ exit 0
rc-status output:
alpine:~# rc-status
Runlevel: default
networking [ started ]
crond [ started ]
tailscale [ started 00:00:05 (178) ]
sshd [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
localmount [ started ]
Dynamic Runlevel: manual