Skip to content

SeasonPacks crashing and looping #105

@JustAll123

Description

@JustAll123

When I have a folder, and in that folder, I have multiple files, it gets recognized as one upload. That works fine for processing each file, but after a few files, I get this error, and the upload aborts. It then gets queued again after some time because of the folder watch.

github.com/sourcegraph/conc.(*WaitGroup).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:32 +0x4d
created by github.com/sourcegraph/conc.(*WaitGroup).Go in goroutine 1086
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:30 +0x73
goroutine 2640 [IO wait]:
internal/poll.runtime_pollWait(0x7d466eb475b8, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0xc000194d00?, 0xc00045a800?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc000194d00, {0xc00045a800, 0x1800, 0x1800})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x27a
net.(*netFD).Read(0xc000194d00, {0xc00045a800?, 0xc00081c8f8?, 0xc000e89140?})
	/usr/local/go/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00006e138, {0xc00045a800?, 0x7d466f081740?, 0x7d46b5bcda78?})
	/usr/local/go/src/net/net.go:194 +0x45
crypto/tls.(*atLeastReader).Read(0xc000358d20, {0xc00045a800?, 0xc0005e1dc0?, 0x200000003?})
	/usr/local/go/src/crypto/tls/conn.go:809 +0x3b
bytes.(*Buffer).ReadFrom(0xc000134d38, {0xd43a20, 0xc000358d20})
	/usr/local/go/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000134a88, {0xd43ce0, 0xc00006e138}, 0x43ad94?)
	/usr/local/go/src/crypto/tls/conn.go:831 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000134a88, 0x0)
	/usr/local/go/src/crypto/tls/conn.go:629 +0x3cf
crypto/tls.(*Conn).readRecord(...)
	/usr/local/go/src/crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc000134a88, {0xc000826000, 0x1000, 0x0?})
	/usr/local/go/src/crypto/tls/conn.go:1385 +0x145
bufio.(*Reader).fill(0xc00081a660)
	/usr/local/go/src/bufio/bufio.go:113 +0x103
bufio.(*Reader).ReadSlice(0xc00081a660, 0xa)
	/usr/local/go/src/bufio/bufio.go:380 +0x29
bufio.(*Reader).ReadLine(0xc00081a660)
	/usr/local/go/src/bufio/bufio.go:409 +0x25
net/textproto.(*Reader).readLineSlice(0xc0003015f0, 0xffffffffffffffff)
	/usr/local/go/src/net/textproto/reader.go:64 +0xa5
net/textproto.(*Reader).ReadLine(...)
	/usr/local/go/src/net/textproto/reader.go:44
net/textproto.(*Reader).readCodeLine(0x7d466eca5840?, 0xf0)
	/usr/local/go/src/net/textproto/reader.go:208 +0x25
net/textproto.(*Reader).ReadCodeLine(...)
	/usr/local/go/src/net/textproto/reader.go:253
github.com/javi11/nntppool/v2/pkg/nntpcli.(*connection).Post(0xc0004380f0, {0xd42ca0, 0xc0001e08a0})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/pkg/nntpcli/connection.go:358 +0x48e
github.com/javi11/nntppool/v2.(*connectionPool).Post.func1()
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:789 +0x17e
github.com/avast/retry-go/v4.Do.func1()
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x13
github.com/avast/retry-go/v4.DoWithData[...](0xc000e89b28?, {0xc000e89c78, 0x6, 0x30})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0x675
github.com/avast/retry-go/v4.Do(0x88e00000?, {0xc000e89c78?, 0x8080802f44187168?, 0xb7a419?})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x3e
github.com/javi11/nntppool/v2.(*connectionPool).Post(0xc00030ac60, {0xd48018, 0xc0002ee780}, {0xd42ca0, 0xc0001e08a0})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:772 +0x2ec
github.com/javi11/postie/internal/poster.(*poster).postArticleWithBody(0xc0002ac500, {0xd48018, 0xc0002ee780}, 0xc00079ca50, {0xc00e3ce000, 0x500000, 0x500000})
	/app/internal/poster/poster.go:865 +0x11b
github.com/javi11/postie/internal/poster.(*poster).postLoop.func2({0xd48018, 0xc0002ee780})
	/app/internal/poster/poster.go:365 +0x148
github.com/sourcegraph/conc/pool.(*ContextPool).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/context_pool.go:38 +0x6c
github.com/sourcegraph/conc/pool.(*ContextPool).Go.(*ErrorPool).Go.func2()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/error_pool.go:30 +0x23
github.com/sourcegraph/conc/pool.(*Pool).worker(0x500000?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/pool.go:154 +0x69
github.com/sourcegraph/conc/panics.(*Catcher).Try(0xc00035e470?, 0xc000867fd0?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/panics/panics.go:23 +0x42
github.com/sourcegraph/conc.(*WaitGroup).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:32 +0x4d
created by github.com/sourcegraph/conc.(*WaitGroup).Go in goroutine 1086
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:30 +0x73
goroutine 2646 [IO wait]:
internal/poll.runtime_pollWait(0x7d466eb47270, 0x77)
	/usr/local/go/src/runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0xc000e8e200?, 0xc0046300c6?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitWrite(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:93
internal/poll.(*FD).Write(0xc000e8e200, {0xc00462f900, 0x1016, 0x1300})
	/usr/local/go/src/internal/poll/fd_unix.go:397 +0x2ff
net.(*netFD).Write(0xc000e8e200, {0xc00462f900?, 0x5e5077?, 0x1300?})
	/usr/local/go/src/net/fd_posix.go:96 +0x25
net.(*conn).Write(0xc0055da070, {0xc00462f900?, 0x482725?, 0x0?})
	/usr/local/go/src/net/net.go:206 +0x45
crypto/tls.(*Conn).write(0xc000202388, {0xc00462f900?, 0x5?, 0x1300?})
	/usr/local/go/src/crypto/tls/conn.go:948 +0x109
crypto/tls.(*Conn).writeRecordLocked(0xc000202388, 0x17, {0xc000823000, 0x1000, 0x1000})
	/usr/local/go/src/crypto/tls/conn.go:1029 +0x67d
crypto/tls.(*Conn).Write(0xc0004b1578?, {0xc000823000, 0x1000, 0x1000})
	/usr/local/go/src/crypto/tls/conn.go:1248 +0x37e
bufio.(*Writer).Flush(0xc000529600)
	/usr/local/go/src/bufio/bufio.go:643 +0x55
bufio.(*Writer).WriteByte(0xc000529600, 0x2a)
	/usr/local/go/src/bufio/bufio.go:706 +0x35
net/textproto.(*dotWriter).Write(0xc0030ef330, {0xc0065fc000, 0x52894e, 0x200000000000000?})
	/usr/local/go/src/net/textproto/writer.go:95 +0x145
bytes.(*Buffer).WriteTo(0xc00047a000, {0x7d466eca5840?, 0xc0030ef330?})
	/usr/local/go/src/bytes/buffer.go:261 +0x7b
io.copyBuffer({0x7d466eca5840, 0xc0030ef330}, {0xd42ca0, 0xc00047a000}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:411 +0x9d
io.Copy(...)
	/usr/local/go/src/io/io.go:388
github.com/javi11/nntppool/v2/pkg/nntpcli.(*connection).Post(0xc000438140, {0xd42ca0, 0xc00047a000})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/pkg/nntpcli/connection.go:349 +0x305
github.com/javi11/nntppool/v2.(*connectionPool).Post.func1()
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:789 +0x17e
github.com/avast/retry-go/v4.Do.func1()
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x13
github.com/avast/retry-go/v4.DoWithData[...](0xc0004b1b28?, {0xc0004b1c78, 0x6, 0x30})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0x675
github.com/avast/retry-go/v4.Do(0x8bb00000?, {0xc0004b1c78?, 0x808080692050324b?, 0xb7a419?})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x3e
github.com/javi11/nntppool/v2.(*connectionPool).Post(0xc00030ac60, {0xd48018, 0xc0002ee780}, {0xd42ca0, 0xc00047a000})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:772 +0x2ec
github.com/javi11/postie/internal/poster.(*poster).postArticleWithBody(0xc0002ac500, {0xd48018, 0xc0002ee780}, 0xc00079d2c0, {0xc02f9ca000, 0x500000, 0x500000})
	/app/internal/poster/poster.go:865 +0x11b
github.com/javi11/postie/internal/poster.(*poster).postLoop.func2({0xd48018, 0xc0002ee780})
	/app/internal/poster/poster.go:365 +0x148
github.com/sourcegraph/conc/pool.(*ContextPool).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/context_pool.go:38 +0x6c
github.com/sourcegraph/conc/pool.(*ContextPool).Go.(*ErrorPool).Go.func2()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/error_pool.go:30 +0x23
github.com/sourcegraph/conc/pool.(*Pool).worker(0x500000?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/pool.go:154 +0x69
github.com/sourcegraph/conc/panics.(*Catcher).Try(0xc018184dd0?, 0xc0002f7fd0?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/panics/panics.go:23 +0x42
github.com/sourcegraph/conc.(*WaitGroup).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:32 +0x4d
created by github.com/sourcegraph/conc.(*WaitGroup).Go in goroutine 1086
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:30 +0x73
goroutine 2599 [IO wait]:
internal/poll.runtime_pollWait(0x7d46b5a302d0, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0xc0001fa100?, 0xc000f86000?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc0001fa100, {0xc000f86000, 0x1800, 0x1800})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x27a
net.(*netFD).Read(0xc0001fa100, {0xc000f86000?, 0xc000443378?, 0xc000467140?})
	/usr/local/go/src/net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00006e000, {0xc000f86000?, 0x7d466ee9e5d8?, 0x7d46b5bcd108?})
	/usr/local/go/src/net/net.go:194 +0x45
crypto/tls.(*atLeastReader).Read(0xc00062acc0, {0xc000f86000?, 0xc0007b16c0?, 0x200000003?})
	/usr/local/go/src/crypto/tls/conn.go:809 +0x3b
bytes.(*Buffer).ReadFrom(0xc0001349b8, {0xd43a20, 0xc00062acc0})
	/usr/local/go/src/bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc000134708, {0xd43ce0, 0xc00006e000}, 0x43ad94?)
	/usr/local/go/src/crypto/tls/conn.go:831 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc000134708, 0x0)
	/usr/local/go/src/crypto/tls/conn.go:629 +0x3cf
crypto/tls.(*Conn).readRecord(...)
	/usr/local/go/src/crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc000134708, {0xc000fc3000, 0x1000, 0x0?})
	/usr/local/go/src/crypto/tls/conn.go:1385 +0x145
bufio.(*Reader).fill(0xc000111200)
	/usr/local/go/src/bufio/bufio.go:113 +0x103
bufio.(*Reader).ReadSlice(0xc000111200, 0xa)
	/usr/local/go/src/bufio/bufio.go:380 +0x29
bufio.(*Reader).ReadLine(0xc000111200)
	/usr/local/go/src/bufio/bufio.go:409 +0x25
net/textproto.(*Reader).readLineSlice(0xc000300090, 0xffffffffffffffff)
	/usr/local/go/src/net/textproto/reader.go:64 +0xa5
net/textproto.(*Reader).ReadLine(...)
	/usr/local/go/src/net/textproto/reader.go:44
net/textproto.(*Reader).readCodeLine(0x7d466eca5840?, 0xf0)
	/usr/local/go/src/net/textproto/reader.go:208 +0x25
net/textproto.(*Reader).ReadCodeLine(...)
	/usr/local/go/src/net/textproto/reader.go:253
github.com/javi11/nntppool/v2/pkg/nntpcli.(*connection).Post(0xc00076e230, {0xd42ca0, 0xc00047b890})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/pkg/nntpcli/connection.go:358 +0x48e
github.com/javi11/nntppool/v2.(*connectionPool).Post.func1()
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:789 +0x17e
github.com/avast/retry-go/v4.Do.func1()
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:116 +0x13
github.com/avast/retry-go/v4.DoWithData[...](0xc000467b28?, {0xc000467c78, 0x6, 0x30})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:180 +0x675
github.com/avast/retry-go/v4.Do(0x89800000?, {0xc000467c78?, 0x8080807c494a070b?, 0xb7a419?})
	/go/pkg/mod/github.com/avast/retry-go/[email protected]/retry.go:119 +0x3e
github.com/javi11/nntppool/v2.(*connectionPool).Post(0xc00030ac60, {0xd48018, 0xc0002ee780}, {0xd42ca0, 0xc00047b890})
	/go/pkg/mod/github.com/javi11/nntppool/[email protected]/connection_pool.go:772 +0x2ec
github.com/javi11/postie/internal/poster.(*poster).postArticleWithBody(0xc0002ac500, {0xd48018, 0xc0002ee780}, 0xc00079cc30, {0xc00d990000, 0x500000, 0x500000})
	/app/internal/poster/poster.go:865 +0x11b
github.com/javi11/postie/internal/poster.(*poster).postLoop.func2({0xd48018, 0xc0002ee780})
	/app/internal/poster/poster.go:365 +0x148
github.com/sourcegraph/conc/pool.(*ContextPool).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/context_pool.go:38 +0x6c
github.com/sourcegraph/conc/pool.(*ContextPool).Go.(*ErrorPool).Go.func2()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/error_pool.go:30 +0x23
github.com/sourcegraph/conc/pool.(*Pool).worker(0x4822cf?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/pool/pool.go:154 +0x69
github.com/sourcegraph/conc/panics.(*Catcher).Try(0x0?, 0xc0006dbfd0?)
	/go/pkg/mod/github.com/sourcegraph/[email protected]/panics/panics.go:23 +0x42
github.com/sourcegraph/conc.(*WaitGroup).Go.func1()
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:32 +0x4d
created by github.com/sourcegraph/conc.(*WaitGroup).Go in goroutine 1086
	/go/pkg/mod/github.com/sourcegraph/[email protected]/waitgroup.go:30 +0x73

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions