google / fully-homomorphic-encryption

An FHE compiler for C++
Apache License 2.0
3.53k stars 256 forks source link

Install Error: Bazelisk cannot connect to GCS #4

Closed Hang-shao closed 3 years ago

Hang-shao commented 3 years ago

choose docker to intsall have this error: image

xendaya commented 3 years ago

choose docker to intsall have this error: image

Do you have this

...

ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ apt-get -y install gcc mono-mcs && \ rm -rf /var/lib/apt/lists/*

Hang-shao commented 3 years ago

thank you, I have a try it.发自我的荣耀手机-------- 原始邮件 --------发件人: umerov-javokhir @.>日期: 2021年6月17日周四 02:18收件人: google/fully-homomorphic-encryption @.>抄送: Pamhub @.>, Author @.>主 题: Re: [google/fully-homomorphic-encryption] install error (#4)

choose docker to intsall

have this error:

Do you have this

...

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update &&

apt-get -y install gcc mono-mcs &&

rm -rf /var/lib/apt/lists/*

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

greenjava1 commented 3 years ago

same error as all

Hang-shao commented 3 years ago

choose docker to intsall have this error: image

Do you have this

...

ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get -y install gcc mono-mcs && rm -rf /var/lib/apt/lists/*

Your method doesn't work.

dibakch commented 3 years ago

Thanks for reaching out! This might be related to an open issue on Bazelisk. Could you try adding a line with ENV BAZELISK_BASE_URL="https://github.com/bazelbuild/bazel/releases/download" in the Dockerfile before any bazelisk commands are used?

Hang-shao commented 3 years ago

Thanks for reaching out! This might be related to an open issue on Bazelisk. Could you try adding a line with ENV BAZELISK_BASE_URL="https://github.com/bazelbuild/bazel/releases/download" in the Dockerfile before any bazelisk commands are used?

Thank you, this problem is OK. But it appears a new problem, I am looking for method to solve it. image

dibakch commented 3 years ago

Sounds like a temporary failure on your network. Could you try again?

xendaya commented 3 years ago

For me, installation of this packages with docker container helped RUN apk update && apk add python3-dev \ gcc \ libc-dev

Antonio-demo commented 3 years ago

I have a question about the order(bazel run //transpiler/examples/hangman:hangman_client),the result can't display. 2021-06-20 15-32-47屏幕截图 Can you help me solve this question?

dibakch commented 3 years ago

@Antonio-demo This seems to be unrelated to this issue and more related to #7. Could you run gcc --version and g++ --version?

dibakch commented 3 years ago

@Hang-shao Did you give it another try to build the container? Does this workaround solve your problem?

martiny98 commented 3 years ago

Hello, for env bazelisk BASE URL=" https://github.com/bazelbuild/bazel/releases/download "Is this added to the front of the dockerfile file? A lot of attempts are still the original problems ![Uploading image.png…]()

greenjava1 commented 3 years ago

hello,ubuntu20.14 i try env BAZELISK_BASE_URL="https://github.com/bazelbuild/bazel/releases/download" but it doesn`t work~ help~

dibakch commented 3 years ago

Can you post the error message, @martiny98 @greenjava1?

martiny98 commented 3 years ago

微信图片_20210622143824 thank you!

dibakch commented 3 years ago

Thanks! Indeed, looks as if Bazelisk still tries to connect to GCS and fails. Could you replace your Dockerfile with the following and try again?

FROM debian:bullseye

# Install required packages.
RUN apt-get update && apt-get install -y \
    gcc \
    git \
    libtinfo5 \
    python \
    python3 \
    python3-pip \
    wget

# Install bazel
RUN wget -O bazel "https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-linux-x86_64" \
    && test "7bee349a626281fc8b8d04a7a0b0358492712377400ab12533aeb39c2eb2b901  bazel" = "$(sha256sum bazel)" \
    && chmod +x bazel \
    && mv bazel /bin/bazel

WORKDIR /usr/src/fhe/

COPY . .

# Build all targets.
RUN bazel build ...
Hang-shao commented 3 years ago

谢谢!事实上,看起来 Bazelisk 仍然尝试连接到 GCS 并且失败了。你能用Dockerfile下面的替换你的然后再试一次吗?

FROM debian:bullseye

# Install required packages.
RUN apt-get update && apt-get install -y \
  gcc \
  git \
  libtinfo5 \
  python \
  python3 \
  python3-pip \
  wget

# Install bazel
RUN wget -O bazel "https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-linux-x86_64" \
  && test "7bee349a626281fc8b8d04a7a0b0358492712377400ab12533aeb39c2eb2b901  bazel" = "$(sha256sum bazel)" \
  && chmod +x bazel \
  && mv bazel /bin/bazel

WORKDIR /usr/src/fhe/

COPY . .

# Build all targets.
RUN bazel build ...

I've tried, and the following error has occurred: image

Hang-shao commented 3 years ago

@Hang-shao您是否再次尝试构建容器?此解决方法是否解决了您的问题?

After I rebuilt the container, I added: ENV BAZELISK_BASE_URL="https://github.com/bazelbuild/bazel/releases/download" But there was a mistake. As follows: image

dibakch commented 3 years ago

Thanks!

It looks like the workaround with the ENV variable does not work as Bazelisk still tries to connect to the GCS bucket that you cannot connect to. Looks like the workaround with installing bazel results in another error where you have only a temporary network issue and it is only a connection to GitHub where your connection timed out. Could you try this again?