8000 Unable to download https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh · Issue #205 · symfony-cli/symfony-cli · GitHub
[go: up one dir, main page]

Skip to content

Unable to download https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh #205

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

Closed
Ceslav opened this issue Oct 31, 2022 · 18 comments
Closed

Comments

@Ceslav
Copy link
Ceslav commented Oct 31, 2022

I'm trying to install symfony cli on Ubuntu, but https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh returns 402 status code

@naderman
Copy link
Err https://dl.cloudsmith.io/public/symfony/stable/deb/ubuntu focal InRelease                                                          
  402  Payment Required [IP: 18.64.79.121 443]

Looks like the cloudsmith account was disabled for non-payment?

@shyim
Copy link
Contributor
shyim commented Oct 31, 2022

For OSS you get only 200 GB Bandwidth at Cloudsmith. Maybe that is already over?

@fabpot
Copy link
Contributor
fabpot commented Oct 31, 2022

Unfortunately, we went over the OSS bandwidth this month (the growth has been very important durant the last 4 months). I'm working with Cloudsmith to figure out a long-term solution. Hopefully, we will be back very soon.

@tucksaun
Copy link
Member

@fabpot do you believe most of the bandwidth usage could be related to Dockerfiles built over and over again?

If that is the case, maybe we can deliver a simple Docker image published on Docker Hub that one can use to COPY from instead of using the package manager?

@curry684
Copy link

It would make more sense to provide a separate installer script for all scripted access, including CI and Dockerfiles. The current scripts always install through package manager, which is awesome to automatically get updates on developer machines, but which is practically useless in CI/Docker scenarios. I only need/use the script because there is no permalink to the latest release on Github, if there was something like https://download.symfony.com/symfony-cli/debian/latest.deb with a redirect to the latest package I could just script that instead.

@tucksaun
Copy link
Member

@curry684 there's already one script (that should support most Linux distros) available at https://get.symfony.com/cli/installer

One can also directly downloads the latest binary at the permalink https://github.com/symfony-cli/symfony-cli/releases/latest/download/symfony-cli_<platform>.tar.gz (replacing <platform> with the appropriate platform you are running on).

But both approaches in Docker have issues with caching, that's why I'm suggesting releasing a Docker image which looks like a more idiomatic way in that specific case.

@fabpot
Copy link
Contributor
fabpot commented Oct 31, 2022

I think it makes sense @tucksaun. CIs/bots/... in general are a big pain for bandwidth. That's why we stopped having a security checker server. It was 90% of bots doing stupid things and nobody cares about the output anyway. So depressing.

@tucksaun
Copy link
Member

IIRC GoReleaser supports Dockerfile so this should be fairly easy to install (and I should have some time soon to take care of it if you need to) but Docker Hub is now based on paid subscriptions as well so you would have to apply for a free OSS plan.

Or we could use GitHub packages which should be free for public packages

@shyim
Copy link
Contributor
shyim commented Oct 31, 2022

.goreleaser.yml

dockers:
  - image_templates:
      - "ghcr.io/symfony-cli/symfony-cli:{{ .Tag }}"
      - "ghcr.io/symfony-cli/symfony-cli:v{{ .Major }}"
      - "ghcr.io/symfony-cli/symfony-cli:v{{ .Major }}.{{ .Minor }}"
      - "ghcr.io/symfony-cli/symfony-cli:latest"

Dockerfile

FROM scratch
COPY symfony-cli /usr/local/bin/

( So we could add alpine/debian if we still want)

it should work then 🤔 . Should I create a PR?

@fabpot
Copy link
Contributor
fabpot commented Oct 31, 2022

I would use GitHub packages to have everything in one place :)
If you can work on it @tucksaun, that would be awesome.

@fabpot
Copy link
Contributor
fabpot commented Oct 31, 2022

Or @shyim :)

@curry684
Copy link

there's already one script (that should support most Linux distros) available at https://get.symfony.com/cli/installer

It would be a good idea to have that documented at https://symfony.com/download 😉

@shyim shyim mentioned this issue Oct 31, 2022
@tucksaun
Copy link
Member

@curry684 nice idea. We will need to kindly ask @javiereguiluz or @fabpot :)
But I think it would be nice to do a single change and wait for the Docker image to be ready

@jadeops
Copy link
jadeops commented Oct 31, 2022

Any chance of a selfupdate param like composer? This way we won't have to configure rpm/deb repo and can just use the standalone binary.

@fabpot
Copy link
Contributor
fabpot commented Nov 1, 2022

@curry684 Added the installer option on the https://symfony.com/download page.

image

@fabpot
Copy link
Contributor
fabpot commented Nov 1, 2022

The Cloudsmith issue is now resolved.

@fabpot fabpot closed this as completed Nov 1, 2022
@fabpot
Copy link
Contributor
fabpot commented Nov 1, 2022

The Cloudsmith issue is now resolved.

@fabpot fabpot closed this as completed Nov 1, 2022
@tucksaun
Copy link
Member
tucksaun commented Nov 3, 2022

@jadeops regarding auto-updates: we used to have this in v3 and v4

But this is not as easy to do in Go as it is in PHP and there were tons of small edge cases that were not easy to tackle.
Support for auto-updates has been dropped in v5 and the CLI is now mostly released via package managers so I don't see the need for support auto-updates anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants
0