Hi.
Version Mattermost: 7.4.0
Database Schema version: 93
Database: postgres
From time to time our Mattermost server stop to send any attachments.
About once a month.
To resolve this situation I usually restart the server.
systemctl restart mattermost.service
During the server fails, I’d seen the log messages (/opt/mattermost/logs) :
{"timestamp":"2023-01-10 10:01:56.498 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
Full log during fails
{"timestamp":"2023-01-10 09:39:55.413 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 09:44:01.949 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"5tpd9wp977d9dfu6i7hfwieema"}
{"timestamp":"2023-01-10 09:54:01.987 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"e1h4ofmyab837m9uk7jbrz537a"}
{"timestamp":"2023-01-10 10:01:56.498 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 10:04:02.048 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"3df7734hyf8yipz9h1rw9fjr4y"}
{"timestamp":"2023-01-10 10:14:02.105 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"16dhdgab4pfmumns17xy9h4u6c"}
{"timestamp":"2023-01-10 10:24:02.208 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"ommhj1dgapymbexj9nnisbxw4w"}
{"timestamp":"2023-01-10 10:34:02.272 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"gkq97byfdjr75dhd7chn1r6inh"}
{"timestamp":"2023-01-10 10:34:02.554 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ProductNotices","job_id":"7ty8a538o7ne8kdypoe5wc113a"}
{"timestamp":"2023-01-10 10:38:12.443 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 10:44:02.331 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"mmh9xys8a3do3mgcypzwggzmer"}
{"timestamp":"2023-01-10 10:54:02.391 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"ycjjdwbfpifguj9ys5arq9m95c"}
{"timestamp":"2023-01-10 11:03:39.324 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:03:39.339 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:04:02.483 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"d8p3pipep3ye9npxc9es55mgkw"}
{"timestamp":"2023-01-10 11:04:16.574 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:12:37.131 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:14:02.562 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"f5p78efi5fbp9849dwopyd8aja"}
{"timestamp":"2023-01-10 11:24:02.615 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"xgy45ahz3bgutny5i1e9kbk8br"}
{"timestamp":"2023-01-10 11:34:02.732 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"3p8m7x7dei8kunzd7hy61xmjsh"}
{"timestamp":"2023-01-10 11:34:02.993 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ProductNotices","job_id":"aqefe5n15jyu5cgef8dpxanj3h"}
{"timestamp":"2023-01-10 11:35:36.455 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:40:27.961 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:44:02.827 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"qf3az39xbpfj9ym3hmd6z56p5r"}
{"timestamp":"2023-01-10 11:46:04.385 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:51:36.175 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:54:02.853 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"xnab1pgumf8ktqka7ictgui57e"}
{"timestamp":"2023-01-10 11:54:32.927 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"exec: \"pdftotext\": executable file not found in $PATH"}
{"timestamp":"2023-01-10 11:56:23.694 +03:00","level":"warn","msg":"unable to extract file content","caller":"docextractor/combine.go:35","error":"error unzipping data: zip: not a valid zip file"}
{"timestamp":"2023-01-10 12:04:02.931 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"6ysdggwkxtr7xbke4jk8ru1y8o"}
{"timestamp":"2023-01-10 12:14:02.959 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"og74461p87yejkb4ferzssynoo"}
{"timestamp":"2023-01-10 12:24:03.029 +03:00","level":"info","msg":"SimpleWorker: Job is complete","caller":"jobs/base_workers.go:88","worker":"ExpiryNotify","job_id":"a7s4n54aiffqupqpdqxi6k7afh"}
{"timestamp":"2023-01-10 12:34:11.049 +03:00","level":"info","msg":"Server is initializing...","caller":"app/server.go:272","go_version":"go1.18.1"}
{"timestamp":"2023-01-10 12:34:11.065 +03:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:230","database":"master"}
{"timestamp":"2023-01-10 12:34:11.106 +03:00","level":"error","msg":"Failed to ping DB","caller":"sqlstore/store.go:240","error":"pq: the database system is starting up","retrying in seconds":10}
{"timestamp":"2023-01-10 12:34:21.107 +03:00","level":"info","msg":"Pinging SQL","caller":"sqlstore/store.go:230","database":"master"}
{"timestamp":"2023-01-10 12:34:22.201 +03:00","level":"info","msg":"Starting websocket hubs","caller":"app/web_hub.go:93","number_of_hubs":32}
{"timestamp":"2023-01-10 12:34:22.203 +03:00","level":"info","msg":"Loaded system translations","caller":"i18n/i18n.go:93","for locale":"en","from locale":"/opt/mattermost/i18n/en.json"}
{"timestamp":"2023-01-10 12:34:22.320 +03:00","level":"info","msg":"Current version is 7.4.0 (7.4.0/Wed Oct 12 19:36:20 UTC 2022/8cb6718a9bcc45186f62baed2304248d3cabaa50/none)","caller":"app/server.go:583","current_version":"7.4.0","build_number":"7.4.0","build_date":"Wed Oct 12 19:36:20 UTC 2022","build_hash":"8cb6718a9bcc45186f62baed2304248d3cabaa50","build_hash_enterprise":"none"}
{"timestamp":"2023-01-10 12:34:22.320 +03:00","level":"info","msg":"Team Edition Build","caller":"app/server.go:594","enterprise_build":false}
{"timestamp":"2023-01-10 12:34:22.321 +03:00","level":"info","msg":"Printing current working","caller":"app/server.go:598","directory":"/opt/mattermost"}
{"timestamp":"2023-01-10 12:34:22.321 +03:00","level":"info","msg":"Loaded config","caller":"app/server.go:599","source":"file:///opt/mattermost/config/config.json"}
{"timestamp":"2023-01-10 12:34:22.585 +03:00","level":"info","msg":"Starting workers","caller":"jobs/workers.go:48"}
{"timestamp":"2023-01-10 12:34:22.641 +03:00","level":"info","msg":"Starting schedulers.","caller":"jobs/schedulers.go:47"}
{"timestamp":"2023-01-10 12:34:22.660 +03:00","level":"error","msg":"License key from https://mattermost.com required to unlock enterprise features.","caller":"app/license.go:152","error":"resource: License id: "}
{"timestamp":"2023-01-10 12:34:24.464 +03:00","level":"info","msg":"Starting up plugins","caller":"app/plugin.go:212"}
{"timestamp":"2023-01-10 12:34:24.473 +03:00","level":"info","msg":"Syncing plugins from the file store","caller":"app/plugin.go:286"}
{"timestamp":"2023-01-10 12:34:30.237 +03:00","level":"info","msg":"Ensuring Feedbackbot exists","caller":"app/plugin_api.go:971","plugin_id":"com.mattermost.nps"}
{"timestamp":"2023-01-10 12:34:32.188 +03:00","level":"info","msg":"activated","caller":"app/plugin_api.go:971","plugin_id":"com.mattermost.apps"}
{"timestamp":"2023-01-10 12:34:33.754 +03:00","level":"info","msg":"got public IP address","caller":"app/plugin_api.go:971","plugin_id":"com.mattermost.calls","origin":"main.(*logger).Info log.go:84","addr":"94.26.245.20"}
What I need to do, to debug the problem ?
P.S.: I was find similar issues , but they was resolved
https://forum.mattermost.com/t/running-mattermost-extract-documents-content-after-going-to-5-35-gave-errors/11717/6
https://mattermost.atlassian.net/browse/MM-35990