Мой сценарий инициализации перестал работать с FATAL: Errno::EADDRNOTAVAIL: Невозможно назначить запрошенный адрес - bind(2) для 192.168.2.4:8889
Вот содержание скрипта:
user@ubuntu12:~/my_src/workstation$ cat bin/run
#!/bin/bash
if [ -z "$1" ]
then
sudo -E chef-client -z -j config/node.json -c config/solo.rb
else
sudo -E chef-client -z -j config/node.json -c config/solo.rb -o "recipe[main::$1]"
fi
И я не вижу, чтобы какой-либо процесс занял порт 8889
user@ubuntu12:~/my_src/workstation$ netstat -pl
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:http *:* LISTEN -
tcp 0 0 127.0.1.1:domain *:* LISTEN -
tcp 0 0 ip6-localhost:ipp *:* LISTEN -
tcp6 0 0 [::]:http [::]:* LISTEN -
udp 0 0 *:ipp *:* -
udp 0 0 *:25588 *:* -
udp 0 0 *:mdns *:* -
udp 0 0 *:60684 *:* -
udp 0 0 127.0.1.1:domain *:* -
udp 0 0 *:bootpc *:* -
udp6 0 0 [::]:mdns [::]:* -
udp6 0 0 [::]:35965 [::]:* -
udp6 0 0 [::]:32421 [::]:* -
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 14464 2076/dbus-daemon @/tmp/dbus-94M9sYg1Ge
unix 2 [ ACC ] STREAM LISTENING 9040 - /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 14697 2173/gnome-session /tmp/.ICE-unix/2173
unix 2 [ ACC ] STREAM LISTENING 13530 - /run/user/1000/keyring-nvjhas/control
unix 2 [ ACC ] STREAM LISTENING 13630 - /run/user/1000/keyring-nvjhas/pkcs11
unix 2 [ ACC ] STREAM LISTENING 13634 - /run/user/1000/keyring-nvjhas/gpg
unix 2 [ ACC ] STREAM LISTENING 14696 2173/gnome-session @/tmp/.ICE-unix/2173
unix 2 [ ACC ] STREAM LISTENING 13635 - /run/user/1000/keyring-nvjhas/ssh
unix 2 [ ACC ] STREAM LISTENING 15465 2264/pulseaudio /run/user/1000/pulse/native
unix 2 [ ACC ] STREAM LISTENING 8472 - /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 9039 - @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 10460 - /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 10604 - /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 10637 - /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 13663 2100/ibus-daemon @/tmp/dbus-oTbaVfSC
unix 2 [ ACC ] STREAM LISTENING 15686 2488/gvfsd-trash @/dbus-vfs-daemon/socket-2dPetJOa
unix 2 [ ACC ] STREAM LISTENING 13266 2137/dbus-daemon @/tmp/dbus-JHusZzyxNH
unix 2 [ ACC ] STREAM LISTENING 8235 - @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 10977 - /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 15681 2488/gvfsd-trash @/dbus-vfs-daemon/socket-WfUKMwA2
unix 2 [ ACC ] STREAM LISTENING 12178 - /var/run/docker.sock
unix 2 [ ACC ] STREAM LISTENING 9967 - /var/run/docker/containerd/docker-containerd-debug.sock
unix 2 [ ACC ] STREAM LISTENING 9968 - /var/run/docker/containerd/docker-containerd.sock
unix 2 [ ACC ] STREAM LISTENING 12844 - /var/run/docker/metrics.sock
unix 2 [ ACC ] STREAM LISTENING 10050 - /run/docker/libnetwork/ca5daab9a1c80bc608a9e3c44b748199d6a36e07ab9e10aa9d7021587e2c46f9.sock
unix 2 [ ACC ] STREAM LISTENING 15689 2488/gvfsd-trash @/dbus-vfs-daemon/socket-XfBjl8zF
unix 2 [ ACC ] STREAM LISTENING 13180 1965/init @/com/ubuntu/upstart-session/1000/1965
unix 2 [ ACC ] SEQPACKET LISTENING 10371 - /run/udev/control
Также telnet localhost 8889 не может подключиться:
user@ubuntu12:~/my_src/workstation$ telnet localhost 8889
Trying 192.168.2.4...
Что еще проверить? Как исправить? Почему я? ... так много вопросов без ответов.