serving: serving/tensorflow does not exist

Dear All,

I am attempting to create a tensorflow server in accordance with the instructions. The docker build command works, as does the docker run command after it. However, when I attempt to cd into serving/tensorflow it tells me file does not exist. Indeed ‘ls’ command reveals that the serving directory contains a tensorflow_server directory but no tensorflow directory. I looked at the repository on github and yes indeed the cloning was done correctly – the repository does/did not contain(s) a tensorflow directory.

What is going on? Help needed.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?:

None

Environment info: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial

Some reproducible code: Cloned the repo with no apparent problem:

:~$ git clone --recursive https://github.com/tensorflow/serving
Cloning into 'serving'...
Checking connectivity... done.

Performed docker build command, with no apparent problem:

~/serving$ docker build --pull -t $USER/tensorflow-serving-devel -f
 tensorflow_serving/tools/docker/Dockerfile.devel .
Sending build context to Docker daemon  6.178MB
Step 1/9 : FROM ubuntu:16.04 ...
Step 6/9 : ENV BAZEL_VERSION 0.5.4 ...
Successfully built 
Successfully tagged ../tensorflow-serving-devel:latest

Performed docker run command, with no apparent problem:

~/serving$ docker run --name=tensorflow_container -it $USER/tensorflow-serving-devel
root@26f2fg3e417:/#
`` `

Cloned repo from within docker container with no apparent problem:
```root@26f2fg3e417:/# git clone --recursive https://github.com/tensorflow/serving
Cloning into 'serving'...
remote: Counting objects: 6130, done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 6130 (delta 85), reused 103 (delta 59), pack-reused 5977
Receiving objects: 100% (6130/6130), 2.38 MiB | 0 bytes/s, done.
Resolving deltas: 100% (4358/4358), done.
Checking connectivity... done.

Attempt to cd into serving/tensorflow was problematic!:

:/# cd serving/tensorflow
bash: root@26f2fg3e417:/#: No such file or directory

-ls output:

root@...:/# ls
bazel  boot  etc   lib    media  opt   root  sbin     srv  tmp  var
bin    dev   home  lib64  mnt    proc  run   serving  sys  usr

cd serving, then ls:

/serving# ls
AUTHORS          LICENSE    RELEASE.md  tensorflow_serving
CONTRIBUTING.md  README.md  WORKSPACE   tools

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 12
  • Comments: 24 (2 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve been looking into what could be the problem. It seems that there was a new release on Jan 29th 2018 based on tf 1.5.0, and that repository has a different structure – the /tensorflow submodule was removed. Unfortunately, the documentation and tutorials for Tensorflow Serving are now all stale and need to be updated. Please kindly address this issue. Thanks.

Thanks, @ZeroEffort using the bazel version 0.11.1 (https://github.com/tensorflow/serving/blob/fcfefeb1a321f955efce20bba2c9ba97fdbcc601/tensorflow_serving/tools/docker/Dockerfile.devel#L37) also worked here.

The bazel build -c opt tensorflow_serving/... worked without need to clone https://github.com/tensorflow/tensorflow.git or the ./configure

you can try manually clone it:

cd /serving && git clone --recursive https://github.com/tensorflow/tensorflow.git

not sure if that helps but it solves my problem 😃

Thanks @eduohe ! 😄

@eduohe Thanks! It really works for my project!!

It works fine for me on docker when installing tensorflow manually using git clone --recursive https://github.com/tensorflow/tensorflow.git and then installed Bazel following the instructions here https://github.com/tensorflow/tensorflow/issues/18450 (just make sure you installed Bazel version 0.11.1 and not 0.12.0 !! )

Hope it helps you 😃

Linking this thread with the commit that made this change. https://github.com/tensorflow/serving/commit/2c450d295765fe5f1871ecc2db65c4ffa9ca8c73