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

Could not build, something is wrong with download URL #52

Open
TheCelavi opened this issue Jun 22, 2020 · 5 comments
Open

Could not build, something is wrong with download URL #52

TheCelavi opened this issue Jun 22, 2020 · 5 comments

Comments

@TheCelavi
Copy link

Output which I get is this one:

ERROR: Service 'bitbucket' failed to build: The command '/bin/sh -c mkdir -p ${BITBUCKET_BACKUP_CLIENT_HOME} && wget -O /tmp/bitbucket-backup-distribution.zip https://marketplace.atlassian.com/download/plugins/com.atlassian.stash.backup.client/version/${BITBUCKET_BACKUP_CLIENT_VERSION} && unzip -d ${BITBUCKET_BACKUP_CLIENT_HOME} /tmp/bitbucket-backup-distribution.zip && mv /opt/backupclient/$(ls /opt/backupclient/) /opt/backupclient/bitbucket-backup-client && chown -R bitbucket:bitbucket ${BITBUCKET_BACKUP_CLIENT_HOME}' returned a non-zero code: 8

What is correct value for BITBUCKET_BACKUP_CLIENT_VERSION?

Thanks!

@TheCelavi
Copy link
Author

Yeah, I am getting this:

Resolving d34y9yt11qeow3.cloudfront.net (d34y9yt11qeow3.cloudfront.net)... 13.226.156.179, 13.226.156.153, 13.226.156.229, ...
Connecting to d34y9yt11qeow3.cloudfront.net (d34y9yt11qeow3.cloudfront.net)|13.226.156.179|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-06-22 15:38:13 ERROR 403: Forbidden.

@CatDTran
Copy link

+1
I'm getting the same error. I tried manually download using wget command in the terminal, it was able to download with no problem, so this means the url is not broken. It has to be something else

@blacklabelops
Copy link
Member

Atlassian has changed the download url. The version of the program is still the same.

The new download URL should be:

https://marketplace.atlassian.com/download/apps/1211500/version/${BITBUCKET_BACKUP_CLIENT_VERSION}

@david-drinn
Copy link

david-drinn commented Oct 27, 2020

I had a similar issue with wget, but I don't remember the exact error message. In case it does help, the fix for me was to tell wget to expect UTF-8. This was an issue due to the number of redirects, and eventually I guess one of the redirect URLs fails to convert from ASCII to UTF-8, or vice versa, not sure.

david-drinn@80e40e8

Add --local-encoding=utf-8 to the wget command in the following RUN step of the Dockerfile.

RUN mkdir -p ${BITBUCKET_BACKUP_CLIENT_HOME} && \
    wget -O /tmp/bitbucket-backup-distribution.zip \
      --local-encoding=utf-8 \
      https://marketplace.atlassian.com/download/plugins/com.atlassian.stash.backup.client/version/${BITBUCKET_BACKUP_CLIENT_VERSION} && \
    unzip -d ${BITBUCKET_BACKUP_CLIENT_HOME} /tmp/bitbucket-backup-distribution.zip && \
    mv /opt/backupclient/$(ls /opt/backupclient/) /opt/backupclient/bitbucket-backup-client && \

@lvbaocheng
Copy link

+1
I'm getting the same error. I tried manually download using wget command in the terminal, it was able to download with no problem, so what should be done?

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

No branches or pull requests

5 participants