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

download from backup appends to file from previous attempt #1552

Closed
starius opened this issue Oct 24, 2016 · 5 comments
Closed

download from backup appends to file from previous attempt #1552

starius opened this issue Oct 24, 2016 · 5 comments

Comments

@starius
Copy link
Member

starius commented Oct 24, 2016

See #1524 (comment)

I reproduced this issue locally.

First URL http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz is very slow at the moment and can not output whole file until timeout (30 seconds). wget tries 3 times (option -t 3 of wget) and fails them all, after it tries to download from backup server: http://s3.amazonaws.com/mxe-pkg/bzip2%2D1%2E0%2E6%2Etar%2Egz The file is downloaded in few seconds, but checksum fails.

Correct file bzip2-1.0.6.tar.gz has size 782025 bytes, but the file got has size 924991 bytes. Checked both files with tail and head, I see that they have equal prefix and suffix. Probably, subsequent download attempts append to old file instead of overwriting it.

@DemonRx
Copy link

DemonRx commented Oct 24, 2016

Is it downloading it to the /tmp directory? what if I manually download the correct file and place it in the tmp folder?

@starius
Copy link
Member Author

starius commented Oct 24, 2016

Packages are downloaded to pkg/ directory.
You can download the file manually and put there - it should work.

@DemonRx
Copy link

DemonRx commented Oct 24, 2016

bzip2-1.0.6.tar.gz Failed - Network error
http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz

I tried downloading manually in chrome... it failed lol, will the one from amazon server work?

I downloaded the amazon file, it's the same size.

@starius
Copy link
Member Author

starius commented Oct 24, 2016

will the one from amazon server work?

It works here.

@DemonRx
Copy link

DemonRx commented Oct 24, 2016

Worked here too, just passed it during compile :) Thank you

I'll let you know if anything else comes up.

starius added a commit to LuaAndC/mxe that referenced this issue Dec 4, 2016
starius added a commit to LuaAndC/mxe that referenced this issue Dec 5, 2016
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

2 participants