-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package recently broken on ubuntu 16.04 ? #819
Comments
Hi! Same issue here with Ubuntu LTS 16.04, the
|
From how I understood several AskUbuntu and Stackoverflow threads, you have to enable the newest gcc version, by adding a certain repository to your apt-get package sources. apt-get install -y software-properties-common # if not already installed
add-apt-repository ppa:ubuntu-toolchain-r/test -y And then do the following commands (until it works, I had to do a dist-upgrade, but it could work earlier if I understood it correctly)
Note that I usually don't use Ubuntu/apt-get and only did this to fix my docker. Credits to https://askubuntu.com/a/582910 |
Seems like we would need to update https://www.tensorflow.org/serving/setup#installing_using_apt-get |
Seeing the same. Here's a Travis build that uses the model server with error logs: |
I had the same problem, and it worked perfectly when I used the ubuntu:18.04 docker image instead of 16.04. |
As @sbadia mentioned above, pulling the packages directly seemed to work. Here is an updated dockerfile that worked for me. FROM ubuntu:16.04
# Install general packages
RUN apt-get update && apt-get install -y \
curl \
libcurl3-dev \
unzip \
wget \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Previous Installation of tensorflow-model-server (BROKEN RECENTLY)
#RUN echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | tee /etc/apt/sources.list.d/tensorflow-serving.list \
# && curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add - \
# && apt-get update && apt-get install tensorflow-model-server
# New installation of tensorflow-model-server
RUN TEMP_DEB="$(mktemp)" \
&& wget -O "$TEMP_DEB" 'http://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-1.5.0/t/tensorflow-model-server/tensorflow-model-server_1.5.0_all.deb' \
&& dpkg -i "$TEMP_DEB" \
&& rm -f "$TEMP_DEB"
# Download the trained model for serving
RUN wget SOME_HOSTED_URL/model-export.zip -O model_export.zip \
&& unzip model_export.zip -d model-export \
&& mv model-export/ /tmp \
&& rm model_export.zip
EXPOSE 9000
# Serve the model when the container starts
ENTRYPOINT ["tensorflow_model_server"]
CMD ["--port=9000", "--model_name=model", "--model_base_path=/tmp/model-export"] |
@dcyoung Does this update work on GPU enabled models? |
@strategywise Whenever I create docker container intended for GPU support, I have them build tensorflow serving from source. I haven't tested the package in that scenario. |
While the solution suggested by @KillPinguin (thx!) above works fine (on ubuntu 16.04), it suffices to just update libstdc++6, as suggested by the actual error:
|
Hi @KillPinguin, Thank you for the suggestion. I solve the same issue with update/upgrade command.
System Information:
|
The latest docker images have all the instructions needed to build on Ubuntu 16.04. Closing this issue. |
Hello,
On an ubuntu 16.04, when I install the latest tensorflow serving package, it does not start with:
Idem when I really try to serve models.
My system is up to date.
It was working perfectly before an apt update + upgrade this week end (~03/17, not sure of exact date).
Current package state:
Do you have any clue ? Is it an issue with the package or do I need another dependency ?
Best,
The text was updated successfully, but these errors were encountered: