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

cmd/go: cannot get modules, ‘file too large’ error on module cache #52471

Closed
matiaspascansky96 opened this issue Apr 21, 2022 · 5 comments
Closed
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@matiaspascansky96
Copy link

Go version: 1.17.8

Does this issue reproduce with the latest release?

Yes, tried it with version 1.18.1

What operating system and processor architecture are you using (go env)?

Macbook m1 Big Sur 11.5.2

What did you do?

I am trying to build and "go get" in a project with aws (github.com/aws/aws-sdk-go@v1.43.6) and go genproto (google.golang.org/genproto@v0.0.0-20220222213610-43724f9ea8cf) dependencies

What did you expect to see?

Success and build compilation.

What did you see instead?

google.golang.org/genproto@v0.0.0-20220222213610-43724f9ea8cf: write /Users/matias.pascansky/go/pkg/mod/cache/download/google.golang.org/genproto/@v/v0.0.0-20220222213610-43724f9ea8cf.zip834934505.tmp: file too large

github.com/aws/aws-sdk-go@v1.43.6: write /Users/matias.pascansky/go/pkg/mod/cache/download/github.com/aws/aws-sdk-go/@v/v1.43.6.zip1268850339.tmp: file too large

@matiaspascansky96 matiaspascansky96 changed the title google.golang.org/genproto cmd/go: cannot get modules, ‘file too large’ error on module cache Apr 21, 2022
@seankhliao
Copy link
Member

what's the output of ulimit -a?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Apr 22, 2022
@matiaspascansky96
Copy link
Author

what's the output of ulimit -a?

-t: cpu time (seconds) unlimited
-f: file size (blocks) 24000
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8176
-c: core file size (blocks) 0
-v: address space (kbytes) unlimited
-l: locked-in-memory size (kbytes) unlimited
-u: processes 2666
-n: file descriptors 20000

@matiaspascansky96
Copy link
Author

what's the output of ulimit -a?

-t: cpu time (seconds) unlimited -f: file size (blocks) 24000 -d: data seg size (kbytes) unlimited -s: stack size (kbytes) 8176 -c: core file size (blocks) 0 -v: address space (kbytes) unlimited -l: locked-in-memory size (kbytes) unlimited -u: processes 2666 -n: file descriptors 20000

still same error

@ianlancetaylor
Copy link
Contributor

24000 blocks means that you can only create a file up to 24,576,000 bytes in size.

Try setting the ulimit to unlimited and see how large the generated file is.

@matiaspascansky96
Copy link
Author

24000 blocks means that you can only create a file up to 24,576,000 bytes in size.

Try setting the ulimit to unlimited and see how large the generated file is.

Worked! TY!

@golang golang locked and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants