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

sccache error with gh actions cache on windows since 0.5.1 #1789

Closed
messense opened this issue Jun 4, 2023 · 14 comments
Closed

sccache error with gh actions cache on windows since 0.5.1 #1789

messense opened this issue Jun 4, 2023 · 14 comments

Comments

@messense
Copy link
Contributor

messense commented Jun 4, 2023

sccache: error: failed to execute compile
sccache: caused by: Failed to send data to or receive data from server
sccache: caused by: Failed to read response header
sccache: caused by: An existing connection was forcibly closed by the remote host. (os error 10054)
sccache: error: failed to execute compile
sccache: caused by: Failed to send data to or receive data from server
sccache: caused by: Failed to read response header
sccache: caused by: An existing connection was forcibly closed by the remote host. (os error 10054)
error: could not compile `memchr` (lib)

Works fine with 0.5.0, broken on 0.5.1 and 0.5.2.

@messense
Copy link
Contributor Author

messense commented Jun 4, 2023

Might be related to the opendal version bump in #1779, cc @Xuanwo

@alex
Copy link
Contributor

alex commented Jun 4, 2023

I'm seeing this, but only intermittently, it doesn't happen on all builds.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

Let me take a look.

@Xuanwo

This comment was marked as off-topic.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

After reviewing the changes between v0.34.0 and v0.36.0, I did not find any related modifications. However, I am still investigating.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

Questions:

  • Does it only happen on windows?
  • Does it only happen on ghac? Is s3 and azblob service affected?

Some progress: https://discord.com/channels/1081052318650339399/1081052319342407715/1114820330066813041 (join in via link)

@sylvestre
Copy link
Collaborator

For me, it is only Windows. I haven't tried with other than ghac

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

I found a strange behavior:

�[0m�[38;5;8m[�[0m2023-06-04T09:04:51Z �[0m�[34mDEBUG�[0m opendal::services�[0m�[38;5;8m]�[0m service=ghac operation=read path=2/3/e/23ebe938a116256142bac808d0e240dcdbda53b5d81474223aaf05dab7205be5 range=0- -> started
�[0m�[38;5;8m[�[0m2023-06-04T09:04:51Z �[0m�[34mDEBUG�[0m reqwest::connect�[0m�[38;5;8m]�[0m starting new connection: https://artifactcache.actions.githubusercontent.com/
�[0m�[38;5;8m[�[0m2023-06-04T09:04:51Z �[0m�[34mDEBUG�[0m hyper::client::connect::http�[0m�[38;5;8m]�[0m connecting to 13.107.42.16:443
�[0m�[38;5;8m[�[0m2023-06-04T09:05:51Z �[0m�[34mDEBUG�[0m sccache::compiler::compiler�[0m�[38;5;8m]�[0m [cfg_if]: Cache timed out 0.000 s
�[0m�[38;5;8m[�[0m2023-06-04T09:05:51Z �[0m�[34mDEBUG�[0m sccache::compiler::compiler�[0m�[38;5;8m]�[0m [cfg_if]: Compiling locally
�[0m�[38;5;8m[�[0m2023-06-04T09:05:51Z �[0m�[34mDEBUG�[0m sccache::compiler::compiler�[0m�[38;5;8m]�[0m [autocfg]: Cache timed out 0.000 s

There is a 60s spent on connecting to ghac which triggered the timeout.

@sylvestre
Copy link
Collaborator

oh, maybe some rate limiting ?
(default timeout of 60 seconds is probably a bit too long but this is a different issue)

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

oh, maybe some rate limiting ?

However, it cannot explain why version 0.5.0 is functional. I am currently investigating this matter.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

Thanks to @sylvestre for the 0.5.3 release.

@messense Can you take it a try?

@messense
Copy link
Contributor Author

messense commented Jun 4, 2023

0.5.3 works for me now.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 4, 2023

I'll keep this issue open until apache/opendal#2412 fixed.

@Xuanwo
Copy link
Collaborator

Xuanwo commented Jun 5, 2023

apache/opendal#2412 has been fixed, I will release opendal 0.37 and bump sccache after that.

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

4 participants