Closed ihaid closed 6 months ago
Does this happen reliably? Can you share a restricted access grant for a test file that this is happening for?
Yes I can share in DM because it is prod It happens quite often
hi @jtolio,
I have same issue. When mem cache full, uplink stops downloading.
most likely this is timeout problem on the uplink side
Appears (finally) fixed by https://review.dev.storj.io/c/storj/uplink/+/12743
@jtolio Let’s try to merge it to include in the nearest release and then I will close it
And we need to add some tests to it
I'm having a similar problem on Windows. Hopefully this fix lands soon as I'm consistently getting stuck trying to download ~8gb on this Windows box. I'm not using the uplink executable, just this simple chunk of code with v1.22.2:
src, err := storj.DownloadObject(context.Background(), xglauncher.StorjBucketName, key, nil)
if err != nil {
return err
}
defer src.Close()
n, err := io.Copy(dst, src)
if err != nil {
return err
}
I'm not sure if this is the same issue, but my resource monitor is showing 15 idle open TCP connections during the download with large variety of ips. This has worked flawlessly for me on my Linux box (same network).
I'll investigate adding my own retry / download resume code to compensate. That being said, this kind of problem makes me really nervous to use Storj in production.
Something else may be happening, as our fix has been deployed for some time now. If you are using the library, it may be because we haven't tagged a new Uplink library release. If you're doing development, could you see if things work if you do go get storj.io/uplink@main
to get the latest commit?
Sure, let me grab storj.io/uplink@main
to see if that improves things.
Confirmed that we haven't tagged a new release with the fix yet. I'll get that going.
Great. Doing a simple go get storj.io/uplink@main
isn't playing nice with go modules:
go get go get storj.io/uplink@main
go: downloading storj.io/uplink v1.12.3-0.20240507000622-d7c4c594337f
go: malformed module path "get": missing dot in first path element
Perhaps I'm missing a secret handshake. Once the new tag drops, I'll upgrade and give it a go.
go get go get storj.io/uplink@main
You have an extra go get
in the command.
Copypasta FTL.
Alrighty, one download succeeded with the new code. I'll do some more tests and let you know if it breaks again. Thanks!
storj.io/uplink@v1.13.0 released. Since the changes in v1.13.0 fixed all the known reproductions of this ticket, I'm going to close it. @snichols feel free to reopen if you find this happening again, and sorry for the tardy Uplink version release!
When downloading files Uplink freezing on the beginning of download.