{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/serving/issues/912","repository_url":"https://api.github.com/repos/tensorflow/serving","labels_url":"https://api.github.com/repos/tensorflow/serving/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/serving/issues/912/comments","events_url":"https://api.github.com/repos/tensorflow/serving/issues/912/events","html_url":"https://github.com/tensorflow/serving/issues/912","id":329483583,"node_id":"MDU6SXNzdWUzMjk0ODM1ODM=","number":912,"title":"Tensorflow Serving Bazel Build \"Couldn't bind to port 0\"","user":{"login":"mshahriarinia","id":3130093,"node_id":"MDQ6VXNlcjMxMzAwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3130093?v=4","gravatar_id":"","url":"https://api.github.com/users/mshahriarinia","html_url":"https://github.com/mshahriarinia","followers_url":"https://api.github.com/users/mshahriarinia/followers","following_url":"https://api.github.com/users/mshahriarinia/following{/other_user}","gists_url":"https://api.github.com/users/mshahriarinia/gists{/gist_id}","starred_url":"https://api.github.com/users/mshahriarinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshahriarinia/subscriptions","organizations_url":"https://api.github.com/users/mshahriarinia/orgs","repos_url":"https://api.github.com/users/mshahriarinia/repos","events_url":"https://api.github.com/users/mshahriarinia/events{/privacy}","received_events_url":"https://api.github.com/users/mshahriarinia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T14:30:05Z","updated_at":"2018-06-05T14:30:05Z","closed_at":null,"author_association":"NONE","body":"On setting up Tensorflow serving Docker container, following issue #906:\r\n\r\n[DockerFile](https://github.com/tensorflow/serving/blob/master/tensorflow_serving/tools/docker/Dockerfile.devel) modified to \r\n- `ENV BAZEL_VERSION 0.5.4` to `ENV BAZEL_VERSION 0.10.0`\r\n- Add  `automake` and `libtool` dependencies\r\n\r\nFollow the build steps:\r\n\r\n```\r\n$ cd ~\r\n$ git clone --recurse-submodules https://github.com/tensorflow/serving\r\n$ cd serving && git clone --recursive https://github.com/tensorflow/tensorflow.git\r\n$ cd tensorflow\r\n$  ./configure\r\n$ cd ..\r\n$ bazel test tensorflow_serving/...\r\n```\r\n\r\n\r\nThe process finishes by  \"Executed 2 out of 71 tests: 69 tests pass and 2 fail locally.\"\r\n\r\n```\r\nFAIL: //tensorflow_serving/util/net_http/server/internal:evhttp_request_test (see /root/.cache/bazel/_bazel_root/01a289b7faaf5ec651fb0e4e35f862a1/execroot/tf_serving/bazel-out/k8-fastbuild/testlogs/tensorflow_serving/util/net_http/server/internal/evhttp_request_test/test.log)\r\nFAIL: //tensorflow_serving/util/net_http/server/internal:evhttp_server_test (see /root/.cache/bazel/_bazel_root/01a289b7faaf5ec651fb0e4e35f862a1/execroot/tf_serving/bazel-out/k8-fastbuild/testlogs/tensorflow_serving/util/net_http/server/internal/evhttp_server_test/test.log)\r\n```\r\n\r\nThe two logs show:\r\n```\r\nroot@5647334d48f9:~/serving# cat /root/.cache/bazel/_bazel_root/01a289b7faaf5ec651fb0e4e35f862a1/execroot/tf_serving/bazel-out/k8-fastbuild/testlogs/tensorflow_serving/util/net_http/server/internal/evhttp_request_test/test.log\r\nexec ${PAGER:-/usr/bin/less} \"$0\" || exit 1\r\n-----------------------------------------------------------------------------\r\nRunning main() from test_main.cc\r\n[==========] Running 5 tests from 1 test case.\r\n[----------] Global test environment set-up.\r\n[----------] 5 tests from EvHTTPRequestTest\r\n[ RUN      ] EvHTTPRequestTest.SimpleGETNotFound\r\n[warn] getaddrinfo: address family for nodename not supported\r\n[evhttp_server.cc : 217] RAW: Couldn't bind to port 0\r\nAborted\r\n```\r\n\r\nand \r\n\r\n```\r\nroot@5647334d48f9:~/serving# cat /root/.cache/bazel/_bazel_root/01a289b7faaf5ec651fb0e4e35f862a1/execroot/tf_serving/bazel-out/k8-fastbuild/testlogs/tensorflow_serving/util/net_http/server/internal/evhttp_server_test/test.log\r\nexec ${PAGER:-/usr/bin/less} \"$0\" || exit 1\r\n-----------------------------------------------------------------------------\r\nRunning main() from test_main.cc\r\n[==========] Running 6 tests from 1 test case.\r\n[----------] Global test environment set-up.\r\n[----------] 6 tests from EvHTTPServerTest\r\n[ RUN      ] EvHTTPServerTest.AcceptingTerminating\r\n[warn] getaddrinfo: address family for nodename not supported\r\n[evhttp_server.cc : 217] RAW: Couldn't bind to port 0\r\nAborted\r\n```\r\n\r\nI made sure the container can ping outside websites and get replies\r\n\r\n```\r\napt-get update\r\napt-get install iputils-ping\r\nping www.google.com\r\n```\r\n\r\nApparently `Couldn't bind to port 0` is due to some ipv6 vs ipv4 issue. CC @netfs\r\n\r\n"}}
{"actor":{"display_login":"mshahriarinia"}}