My provisioning script's stopped working with FATAL: Errno::EADDRNOTAVAIL: Cannot assign requested address -...












0














Here is the script content:



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


And I can't see any process occupied the port 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


Also telnet localhost 8889 can't connect:



user@ubuntu12:~/my_src/workstation$ telnet localhost 8889
Trying 192.168.2.4...


What else to check? How to fix? Why me? ...So many questions with no answers.










share|improve this question



























    0














    Here is the script content:



    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


    And I can't see any process occupied the port 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


    Also telnet localhost 8889 can't connect:



    user@ubuntu12:~/my_src/workstation$ telnet localhost 8889
    Trying 192.168.2.4...


    What else to check? How to fix? Why me? ...So many questions with no answers.










    share|improve this question

























      0












      0








      0







      Here is the script content:



      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


      And I can't see any process occupied the port 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


      Also telnet localhost 8889 can't connect:



      user@ubuntu12:~/my_src/workstation$ telnet localhost 8889
      Trying 192.168.2.4...


      What else to check? How to fix? Why me? ...So many questions with no answers.










      share|improve this question













      Here is the script content:



      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


      And I can't see any process occupied the port 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


      Also telnet localhost 8889 can't connect:



      user@ubuntu12:~/my_src/workstation$ telnet localhost 8889
      Trying 192.168.2.4...


      What else to check? How to fix? Why me? ...So many questions with no answers.







      chef






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 20 at 9:47









      zuba

      1,02322045




      1,02322045



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1103317%2fmy-provisioning-scripts-stopped-working-with-fatal-errnoeaddrnotavail-canno%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1103317%2fmy-provisioning-scripts-stopped-working-with-fatal-errnoeaddrnotavail-canno%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b