Hi all,
I updated from 5.33.2 to 5.35.1 and that went fine. Then I ran mattermost extract-documents-content
as suggested and at the end it spewed the below. It looks like a crash and backtrace I guess?
Anyone else see this? What does it mean exactly?
{"level":"warn","ts":1621736812.116505,"caller":"docextractor/combine.go:35","msg":"unable to extract file content","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"level":"info","ts":1621736812.1348782,"caller":"app/server.go:911","msg":"Stopping Server..."}
{"level":"info","ts":1621736812.1354005,"caller":"app/web_hub.go:103","msg":"stopping websocket hub connections"}
{"level":"info","ts":1621736812.1388233,"caller":"app/server.go:997","msg":"Server stopped"}
panic: loading {11 0}: found {10 0}
goroutine 1 [running]:
github.com/ledongthuc/pdf.(*Reader).resolve(0xc00689db00, 0x0, 0x2822080, 0xc000e75a90, 0xc006a254d8, 0x0, 0x1000, 0xc001877680)
github.com/ledongthuc/pdf@v0.0.0-20200323191019-23c5852adbd2/read.go:768 +0xdd6
github.com/ledongthuc/pdf.Value.Key(0xc00689db00, 0x0, 0x279e280, 0xc005ae12c0, 0x2b09a7b, 0x4, 0x0, 0x0, 0xc006a25440, 0x26758c0)
github.com/ledongthuc/pdf@v0.0.0-20200323191019-23c5852adbd2/read.go:671 +0x9e
github.com/ledongthuc/pdf.(*Reader).NumPage(0xc00689db00, 0x1946c0f)
github.com/ledongthuc/pdf@v0.0.0-20200323191019-23c5852adbd2/page.go:59 +0x69
github.com/ledongthuc/pdf.(*Reader).GetPlainText(0xc00689db00, 0xc005d12048, 0x13a7110, 0x0, 0xc00689db00)
github.com/ledongthuc/pdf@v0.0.0-20200323191019-23c5852adbd2/page.go:64 +0x45
github.com/mattermost/mattermost-server/v5/services/docextractor.(*pdfExtractor).Extract(0x4393048, 0xc004685360, 0x15, 0x2f9bde0, 0xc005d12038, 0x0, 0x0, 0x0, 0x0)
github.com/mattermost/mattermost-server/v5/services/docextractor/pdf.go:46 +0x35f
github.com/mattermost/mattermost-server/v5/services/docextractor.(*combineExtractor).Extract(0xc001eec680, 0xc004685360, 0x15, 0x2f9bde0, 0xc005d12038, 0xc006a61d80, 0x2, 0x4, 0x2f9bde0)
github.com/mattermost/mattermost-server/v5/services/docextractor/combine.go:33 +0x142
github.com/mattermost/mattermost-server/v5/services/docextractor.ExtractWithExtraExtractors(0xc004685360, 0x15, 0x2f9bde0, 0xc005d12038, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc001877b60, ...)
github.com/mattermost/mattermost-server/v5/services/docextractor/docextractor.go:43 +0x2d4
github.com/mattermost/mattermost-server/v5/services/docextractor.Extract(...)
github.com/mattermost/mattermost-server/v5/services/docextractor/docextractor.go:19
github.com/mattermost/mattermost-server/v5/app.(*App).ExtractContentFromFileInfo(0xc0000b0a20, 0xc004698500, 0x0, 0x0)
github.com/mattermost/mattermost-server/v5/app/file.go:1394 +0x1f0
github.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.extractContentCmdF(0x43182a0, 0x4393048, 0x0, 0x0, 0x0, 0x0)
github.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/extract_content.go:82 +0x3c5
github.com/spf13/cobra.(*Command).execute(0x43182a0, 0x4393048, 0x0, 0x0, 0x43182a0, 0x4393048)
github.com/spf13/cobra@v1.1.3/command.go:852 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0x431e6a0, 0x0, 0xffffffff, 0xc000102058)
github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.1.3/command.go:897
github.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.Run(...)
github.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/root.go:14
main.main()
github.com/mattermost/mattermost-server/v5/cmd/mattermost/main.go:31 +0x86