Closed algsupport closed 8 months ago
Can you test the latest commit from the main branch? It already includes a recent commit that addresses the issue: https://github.com/tus/tusd/commit/7f7d9b029dba8489b460f2bbd9a23ce4881e6a71
Hello, Thank you for your quick response. Since I don't have much GO experience, is it possible to create a pre-release so I can download it?
In the end I found a way to compile the code from the main branch and it seems to be working.
Glad you found a way. I also released v2.2.2 now, which includes the fix: https://github.com/tus/tusd/releases/tag/v2.2.2
I revisited this project and after downloading the latest release, I am now getting this error: (My own previously compiled binary works without any issues.)
Same server different binaries.
./tusd -upload-dir=./data -port 9091
runtime: epollcreate failed with 38
fatal error: runtime: netpollinit failed
goroutine 1 [running, locked to thread]:
runtime.throw({0x8df5a37, 0x1b})
runtime/panic.go:1077 +0x4d fp=0xa120cb0 sp=0xa120c9c pc=0x808752d
runtime.netpollinit()
runtime/netpoll_epoll.go:28 +0x20b fp=0xa120cfc sp=0xa120cb0 pc=0x8082f0b
runtime.netpollGenericInit()
runtime/netpoll.go:216 +0x56 fp=0xa120d08 sp=0xa120cfc pc=0x8082376
internal/poll.runtime_pollServerInit()
runtime/netpoll.go:208 +0x17 fp=0xa120d0c sp=0xa120d08 pc=0x80b9aa7
sync.(*Once).doSlow(0x96d3cb0, 0x8e2ecf8)
sync/once.go:74 +0xb3 fp=0xa120d34 sp=0xa120d0c pc=0x80c8b23
sync.(*Once).Do(0x96d3cb0, 0x8e2ecf8)
sync/once.go:65 +0x3f fp=0xa120d40 sp=0xa120d34 pc=0x80c8a5f
internal/poll.(*pollDesc).init(0xa12a0d8, 0xa12a0c0)
internal/poll/fd_poll_runtime.go:39 +0x31 fp=0xa120d50 sp=0xa120d40 pc=0x812eb81
internal/poll.(*FD).Init(0xa12a0c0, {0x8dda7a8, 0x4}, 0x1)
internal/poll/fd_unix.go:65 +0x4c fp=0xa120d64 sp=0xa120d50 pc=0x812f7bc
os.newFile(0x3, {0xa040048, 0x11}, 0x1)
os/file_unix.go:233 +0x14d fp=0xa120d88 sp=0xa120d64 pc=0x813c26d
os.openFileNolog({0xa040048, 0x11}, 0x0, 0x0)
os/file_unix.go:301 +0x187 fp=0xa120db8 sp=0xa120d88 pc=0x813c477
os.OpenFile({0xa040048, 0x11}, 0x0, 0x0)
os/file.go:334 +0x51 fp=0xa120dd8 sp=0xa120db8 pc=0x813a8f1
os.Open(...)
os/file.go:314
google.golang.org/protobuf/internal/detrand.binaryHash()
google.golang.org/protobuf@v1.31.0/internal/detrand/rand.go:46 +0x6f fp=0xa120e6c sp=0xa120dd8 pc=0x84a025f
google.golang.org/protobuf/internal/detrand.init()
google.golang.org/protobuf@v1.31.0/internal/detrand/rand.go:38 +0x1a fp=0xa120e78 sp=0xa120e6c pc=0x84a058a
runtime.doInit1(0x9656e20)
runtime/proc.go:6740 +0xd6 fp=0xa120fa4 sp=0xa120e78 pc=0x8098076
runtime.doInit(...)
runtime/proc.go:6707
runtime.main()
runtime/proc.go:249 +0x3b8 fp=0xa120ff0 sp=0xa120fa4 pc=0x808a3f8
runtime.goexit()
runtime/asm_386.s:1363 +0x1 fp=0xa120ff4 sp=0xa120ff0 pc=0x80be5f1
goroutine 2 [force gc (idle)]:
runtime.gopark(0x8e2eb74, 0x96beec0, 0x11, 0x14, 0x1)
runtime/proc.go:398 +0x10c fp=0xa052fdc sp=0xa052fc8 pc=0x808a7ec
runtime.goparkunlock(...)
runtime/proc.go:404
runtime.forcegchelper()
runtime/proc.go:322 +0xd3 fp=0xa052ff0 sp=0xa052fdc pc=0x808a613
runtime.goexit()
runtime/asm_386.s:1363 +0x1 fp=0xa052ff4 sp=0xa052ff0 pc=0x80be5f1
created by runtime.init.5 in goroutine 1
runtime/proc.go:310 +0x23
goroutine 17 [GC sweep wait]:
runtime.gopark(0x8e2eb74, 0x96bfca0, 0xc, 0x14, 0x1)
runtime/proc.go:398 +0x10c fp=0xa04e7cc sp=0xa04e7b8 pc=0x808a7ec
runtime.goparkunlock(...)
runtime/proc.go:404
runtime.bgsweep(0xa08c000)
runtime/mgcsweep.go:280 +0x9b fp=0xa04e7e8 sp=0xa04e7cc pc=0x80729eb
runtime.gcenable.func1()
runtime/mgc.go:200 +0x27 fp=0xa04e7f0 sp=0xa04e7e8 pc=0x8064867
runtime.goexit()
runtime/asm_386.s:1363 +0x1 fp=0xa04e7f4 sp=0xa04e7f0 pc=0x80be5f1
created by runtime.gcenable in goroutine 1
runtime/mgc.go:200 +0x77
goroutine 18 [GC scavenge wait]:
runtime.gopark(0x8e2eb74, 0x96c01c0, 0xd, 0x14, 0x2)
runtime/proc.go:398 +0x10c fp=0xa04efb8 sp=0xa04efa4 pc=0x808a7ec
runtime.goparkunlock(...)
runtime/proc.go:404
runtime.(*scavengerState).park(0x96c01c0)
runtime/mgcscavenge.go:425 +0x60 fp=0xa04efcc sp=0xa04efb8 pc=0x806fd70
runtime.bgscavenge(0xa08c000)
runtime/mgcscavenge.go:653 +0x4b fp=0xa04efe8 sp=0xa04efcc pc=0x80703eb
runtime.gcenable.func2()
runtime/mgc.go:201 +0x27 fp=0xa04eff0 sp=0xa04efe8 pc=0x8064827
runtime.goexit()
runtime/asm_386.s:1363 +0x1 fp=0xa04eff4 sp=0xa04eff0 pc=0x80be5f1
created by runtime.gcenable in goroutine 1
runtime/mgc.go:201 +0xb7
goroutine 3 [finalizer wait]:
runtime.gopark(0x8e2ea10, 0x96d3850, 0x10, 0x14, 0x1)
runtime/proc.go:398 +0x10c fp=0xa052798 sp=0xa052784 pc=0x808a7ec
runtime.runfinq()
runtime/mfinal.go:193 +0xfc fp=0xa0527f0 sp=0xa052798 pc=0x806395c
runtime.goexit()
runtime/asm_386.s:1363 +0x1 fp=0xa0527f4 sp=0xa0527f0 pc=0x80be5f1
created by runtime.createfing in goroutine 1
runtime/mfinal.go:163 +0x60
You can ignore my previous message. The specific server has a kernel version that is not supported by golang. I also tried with the nodejs implementation but wasn't able to make it work.
Describe the bug I have downloaded the latest linux 386 server release and ran it on a debian 5 32bit version. I used the python client implementation example to try to upload a file.
While testing I got the below error:
Setup details Please provide following details, if applicable to your situation: