Skip to content
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

[Packaging][Other] Downloading arrrow dependencies fails with 403 error on debian #35292

Closed
Infinical opened this issue Apr 23, 2023 · 15 comments · Fixed by #36836
Closed

[Packaging][Other] Downloading arrrow dependencies fails with 403 error on debian #35292

Infinical opened this issue Apr 23, 2023 · 15 comments · Fixed by #36836

Comments

@Infinical
Copy link

Infinical commented Apr 23, 2023

Describe the bug, including details regarding any error messages, version, and platform.

While installing arrow dependencies in a docker container it fails with 403 error when downloading the dependencies

#8 222.2 Err:7 https://apache.jfrog.io/artifactory/arrow/ubuntu jammy/main amd64 libarrow-glib1100 amd64 11.0.0-1
#8 222.2   403  Forbidden [IP: 52.92.243.129 443]
#8 222.2 Err:15 https://apache.jfrog.io/artifactory/arrow/ubuntu jammy/main amd64 libparquet1100 amd64 11.0.0-1
#8 222.2   403  Forbidden [IP: 52.92.243.129 443]
#8 222.2 Err:26 https://apache.jfrog.io/artifactory/arrow/ubuntu jammy/main amd64 libarrow-dev amd64 11.0.0-1
#8 222.2   403  Forbidden [IP: 52.92.243.129 443]
#8 222.2 Err:43 https://apache.jfrog.io/artifactory/arrow/ubuntu jammy/main amd64 libparquet-dev amd64 11.0.0-1
#8 222.2   403  Forbidden [IP: 52.92.243.129 443]
#8 222.4 Fetched 126 MB in 3min 25s (613 kB/s)

Component(s)

Packaging, Other

@kou
Copy link
Member

kou commented Apr 23, 2023

Could you share a Dockerfile that reproduces this problem?

@Infinical
Copy link
Author

@kou

FROM ubuntu:22.04


RUN apt-get update && apt install -y -V  wget lsb-release


RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
  && apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb > /dev/null 2>&1

RUN apt-get -y update \
    && apt-get -y install --no-install-recommends libarrow-glib-dev libparquet-glib-dev libarrow-dev libparquet-dev libgirepository1.0-dev libglib2.0 libglib2.0-dev

@raulcd
Copy link
Member

raulcd commented Apr 24, 2023

Hi @Infinical ! I was having some issues yesterday morning with artifactory returning 403 for some requests. It seems to be solved now. Could you give it a try?
I think it was apache.jfrog.io having a temporary issue.

@raulcd raulcd changed the title Downloading arrrow dependencies fails with 403 error on debian [Packaging][Other] Downloading arrrow dependencies fails with 403 error on debian Apr 24, 2023
@Thingus
Copy link

Thingus commented May 2, 2023

Hi @raulcd
Letting you know that this has been an intermediate issue for me today and last week on a similar situation, with the following (snipped) dockerfile:

FROM postgres:12.11@sha256:8bff0179347982a6c083e1ed69cf4b65f12b8ae76e61f63b238c8c1ba4714c86
...snip...
RUN apt-get update \
     && apt install -y -V ca-certificates lsb-release wget
RUN  wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
         && apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
         && apt update \
         && apt install -y -V libarrow-dev libparquet-dev \

The second RUN failed with 403 forbidden, so I tried running it from bash in the cached container; apt install libarrow-dev failed with the same error the first time, but happily ran on a retry.

@agoncharuk
Copy link

Hi, I am consistently getting this error when installing Arrow in an ubuntu:22.04 container (the IP in the error is 52.218.235.67). Are there any known workarounds?
Should we file an infra ticket with Apache?

@raulcd
Copy link
Member

raulcd commented May 8, 2023

Thanks. I haven't been able to reproduce on my end. I've opened the following ticket on INFRA:
https://issues.apache.org/jira/browse/INFRA-24569
Please let them know any more details there! Thanks!

@ronocod
Copy link

ronocod commented May 10, 2023

We were seeing this a lot, and I think it's because the signed URLs used to download files from S3 are only valid for 30 seconds. The failures we saw were all on occasions that the download part of apt install took over 30 seconds. We updated our code to rerun apt install if it fails which mitigates the problem for now.

@kou
Copy link
Member

kou commented Jun 6, 2023

https://issues.apache.org/jira/browse/INFRA-24569?focusedCommentId=17728543&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17728543

The timeout was updated on Monday. Have you had any further reports? If we don't hear back in a couple days I'll close this. If reports continue to come in let us know and we can have JFrog increase the timeout further.

I close this.

If this problem is still happen, please report it here.

@kou kou closed this as completed Jun 6, 2023
@joemccall86
Copy link

We are still seeing this issue exactly as reported. Here is our relevant script that we use to set up our CI:

  sudo apt update
  sudo apt install -y -V ca-certificates lsb-release wget
  if [ $(lsb_release --codename --short) = "stretch" ]; then
    sudo tee /etc/apt/sources.list.d/backports.list <<APT_LINE
deb http://deb.debian.org/debian $(lsb_release --codename --short)-backports main
APT_LINE
  fi
  pushd /tmp
  wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb
  sudo apt install -y -V ./apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb
  popd

This doesn't happen every time.

@kou
Copy link
Member

kou commented Jun 16, 2023

@kou kou reopened this Jun 16, 2023
Thingus added a commit to Flowminder/FlowKit that referenced this issue Jun 16, 2023
kou added a commit to kou/arrow that referenced this issue Jul 24, 2023
This is just a workaround. We should not close apacheGH-35292 by this.
@raulcd raulcd modified the milestones: 13.0.0, 14.0.0 Jul 24, 2023
raulcd pushed a commit that referenced this issue Jul 25, 2023
### Rationale for this change

Timeout is still happen on my local environment.

### What changes are included in this PR?

Retry `apt install`.

This is just a workaround. We should not close GH-35292 by this.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: #35292

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@raulcd raulcd reopened this Jul 25, 2023
@raulcd
Copy link
Member

raulcd commented Jul 25, 2023

A minor note, even though I clicked no to keep the issue opened it was closed when merging the related PR. This was due to the Closes XXX on the PR:

Would you like to update the associated issue? (y/n): n
Traceback (most recent call last):
  File "/home/raulcd/code/arrow/dev/merge_arrow_pr.py", line 781, in <module>
    cli()
  File "/home/raulcd/code/arrow/dev/merge_arrow_pr.py", line 768, in cli
    cmd.continue_maybe("Would you like to update the associated issue?")
  File "/home/raulcd/code/arrow/dev/merge_arrow_pr.py", line 476, in continue_maybe
    self.fail("Okay, exiting")
  File "/home/raulcd/code/arrow/dev/merge_arrow_pr.py", line 462, in fail
    raise Exception(msg)
Exception: Okay, exiting

@agoncharuk
Copy link

The issue indeed seems to be related to a timeout associated with a token for S3 downloads. As a workaround, we explicitly install some of the largest dependencies of the Arrow package before installing the Arrow itself.

@kou
Copy link
Member

kou commented Jul 25, 2023

@raulcd Ah, sorry. You're right.

@agoncharuk Thanks for sharing your opinion. Could you comment information you have to https://issues.apache.org/jira/browse/INFRA-24569 instead of here? I think that we need to work together with INFRA to solve this.

R-JunmingChen pushed a commit to R-JunmingChen/arrow that referenced this issue Aug 20, 2023
### Rationale for this change

Timeout is still happen on my local environment.

### What changes are included in this PR?

Retry `apt install`.

This is just a workaround. We should not close apacheGH-35292 by this.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#35292

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@kou
Copy link
Member

kou commented Aug 24, 2023

I close this.
We need to do #37350 to fix this.

@kou kou closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
loicalleyne pushed a commit to loicalleyne/arrow that referenced this issue Nov 13, 2023
### Rationale for this change

Timeout is still happen on my local environment.

### What changes are included in this PR?

Retry `apt install`.

This is just a workaround. We should not close apacheGH-35292 by this.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#35292

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@SumitAgrawal03071989
Copy link

SumitAgrawal03071989 commented May 19, 2024

I see this problem still happening

the command I am using
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb

the error message

E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/ --- blah blah --- 403 Forbidden [IP: 52.92.212.233 443]

greenape pushed a commit to Flowminder/FlowKit that referenced this issue Jun 27, 2024
greenape pushed a commit to Flowminder/FlowKit that referenced this issue Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants