-
Notifications
You must be signed in to change notification settings - Fork 846
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
Stack does not retry effectively when S3 is being flaky. #3510
Comments
Retry failed but running the command manually (not in make) succeeded. |
Hi,
Click to view terminal output
|
Hi,
|
@leptonyu Is that with stack-1.6.1 or some other version? |
It doesn't look like my case is related to a flaky connection, but I'll keep it here:
Sanity check using curl:
|
Hmm, very strange! I wonder what the difference in behavior between |
@mgsloan it is version 1.6.1 |
Strange, that a simple retry worked…
|
[root@localhost ~]# stack setup Warning: Retry number 0 after a total delay of 0 us it working,but slowly |
After I add
Running I'm using stack 1.6.3 x86_64. |
[root@localhost postgrest]# stack build --install-ghc --copy-bins --local-bin-path /usr/local/bin
|
@SandWind I might be missing something, but that doesn't look related to a S3 download failure or retrys or anything. I'd start a new issue if it's as unrelated as it looks. |
Just encountered this issue while trying to
|
I get the same errors. with resolver 10.3, I get error on a package and it stops.
|
Got exactly the same problem and error as AntouanK, can not use stack for anything right now. |
@AntouanK @Quantumplation How did you install Stack, and did this installation work before? |
It is pretty consistent with v1.6.3 for me, though v1.5.1 works fine and the issue doesn't happen with it. So I'm using 1.5.1 since end of December. |
@borsboom I used arch's repositories ( pacman ).
|
@AntouanK Can you try downloading the binary from https://github.com/commercialhaskell/stack/releases/download/v1.6.3/stack-1.6.3-linux-x86_64-static.tar.gz and see if that one works any better? |
@borsboom that binary works, yes. |
New issue for this specific problem: #3848 |
Hi, This might be related since I am asked to comment in this thread by the output messages produced. I am new to Haskell and I am trying to build wire-server from this repo: wire-server. After cloning the repo I run the following command:
When building, it was getting to
After which time it would sit there indefinitely. I discovered that this was because the package index server was taking a really long time to respond or download it, and fixed it by creating the following config.yaml file as taken from this comment config.yaml:
This helped to progress past the "Updating indexes" stall, and I now receive the following issue:
Does anyone have any suggestions as to how to proceed? |
@onslauth Looks like I made a typo in that comment (I don't use the mirrors myself, yet). I edited it. The clue was that your error output has
Note the missing |
Just bumped into this problem for
Meanwhile
EDIT:
# stack.yaml
resolver: lts-11.0
extra-deps:
- servant-auth-token-0.5.3.0
- servant-auth-token-acid-0.5.3.1
- servant-auth-token-api-0.5.2.0
- acid-state-0.14.3
nix:
add-gc-roots: true
enable: true
pure: true
packages: [zlib] |
W10...
|
same problem with 1.7.1
|
The only thing that works is the binary that @borsboom posted here : #3510 (comment) |
@wowofbob @wpoosanguansit @huw Would you try running @sol, are you on 1.7.1 too? |
Yes. |
got many of these while installing haskell-ide-engine with default makefile
|
The master branch now includes some major breaking changes to package caches. There should be a new release very soon which will include the fix (but not break your caches). |
Just as a PSA, since I don't see anything about China in here...
|
Looks fixed to me! |
In terminall try to build Duckling project get this problems, operation system (Ubuntu 18.04.1 LTS) :
stack --version
|
adam@adam:~/Python/duckling/3-pro/duckling$ stack build regex-pcre-0.94.4: configure -- While building package regex-pcre-0.94.4 using:
|
I also ran into this issue on MacOS with stack 1.9.1. The files that stack wanted to download were downloadable via Chrome. The The next day still same problem without Docker. So now is the question: when will this happen again and how do I "solve" this issue then. |
@SalAlba That looks like you need to install the relevant system library (that contains @rikvdkleij It could be a cache issue — it would be helpful to see |
@dbaynard Thanks for your reply! When it happens again I will post the verbose output. |
when I execute the command:"stack build hlint",it turn out a line error like this:
so I think if it is important to feeback this error?
I retry it twice and finally finish it,I wonder it's because my network not well or some else thing?
so I just push this issues,hope be help。 |
@BearJean Would you please post the output of |
sorry I forget about it..
and my OS is Windows10 and it;s version is 1809 and ,what I installed is HaskellPlatform-8.4.3-full-x86_64-setup |
@BearJean Thanks. The changes to fix this issue have been released in stack 1.9.1 — I recommend that you download that. |
I'm using
Error:
|
Also @BearJean you may want to take a look at #4376 |
@codygman And to be clear, it worked the next time you tried it? |
@dbaynard No, it has failed 4 times in a row so far. |
@codygman Thanks for your reply — if it hasn't succeeded then the connection is not flaky, and there is some other problem. I haven't seen that certificate error before — it looks like the issue is unlikely to be stack. |
brick-0.45: configure Warning: Retry number 0 after a total delay of 0 us stack --version |
Stack version:
It happened when running user@DESKTOP:~/code/hs% stack ghci
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Warning: Retry number 0 after a total delay of 0 us
If you see this warning and stack fails to download,
but running the command again solves the problem,
please report here:
https://github.com/commercialhaskell/stack/issues/3510
Make sure to paste the output of 'stack --version'
Warning: Retry number 1 after a total delay of 100000 us
If you see this warning and stack fails to download,
but running the command again solves the problem,
please report here:
https://github.com/commercialhaskell/stack/issues/3510
Make sure to paste the output of 'stack --version'
Warning: Retry number 2 after a total delay of 300000 us
If you see this warning and stack fails to download,
but running the command again solves the problem,
please report here:
https://github.com/commercialhaskell/stack/issues/3510
Make sure to paste the output of 'stack --version'
Warning: Retry number 3 after a total delay of 700000 us
If you see this warning and stack fails to download,
but running the command again solves the problem,
please report here:
https://github.com/commercialhaskell/stack/issues/3510
Make sure to paste the output of 'stack --version'
ghc-8.6.5: 145.86 MiB / 215.78 MiB ( 67.60%) downloaded... |
Stack version: I have tried changing mirrors in ~/.stack/config.yaml but i keep getting ConnectionTimeOuts from
and
Apparently the issue is working with windows through WSL 2. It turnsout WSL 2 is connected through some virtual interface that is possibly blocked by Amazon S3. By reverting back to WSL 1 the issue is gone. |
Thanks for your note @orpheusgame - #5063 relates to the WSL 2 problem you mention and AFAIK we don't have a firm idea of what's going on yet. |
Hi, I am new to haskell and some error occurred when running Error Output:
Stack version:
Platform: Windows 10 64bit setup-info: "http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml"
urls:
latest-snapshot: http://mirrors.tuna.tsinghua.edu.cn/stackage/snapshots.json
package-indices:
- download-prefix: http://mirrors.tuna.tsinghua.edu.cn/hackage/
hackage-security:
keyids:
- 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d
- 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42
- 280b10153a522681163658cb49f632cde3f38d768b736ddbc901d99a1a772833
- 2a96b1889dc221c17296fcc2bb34b908ca9734376f0f361660200935916ef201
- 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3
- 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921
- 772e9f4c7db33d251d5c6e357199c819e569d130857dc225549b40845ff0890d
- aa315286e6ad281ad61182235533c41e806e5a787e0b6d1e7eef3f09d137d2e9
- fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0
key-threshold: 3 # number of keys required
# ignore expiration date, see https://github.com/commercialhaskell/stack/pull/4614
ignore-expiry: no Hope this will help! |
We're noticing the issue too:
We're noticing that stack is unable to download GHC:
But for some reason, the download starts to proceed after a few retries. |
I have seen this issue too in stack version 1.9.3, Git revision 40cf7b3 (6211 commits) x86_64 hpack-0.31.1:
shortly after which the process got stuck. Just before I terminated the process, it looked like this for over an hour: What I didI ran a Dockerfile with the following contents:
Running it again solved the problem |
This an issue that will help us to evaluate how good
stack
's retrying strategy is when it comes to flaky connections.The text was updated successfully, but these errors were encountered: