Not uploading
-
Hi,
Funny one this I upload via the portal and it just sits waiting but I think the file uploads according to the logs:[2022-01-12 20:44:51,898] [INFO] [paperless.consumer] Consuming Market_Guide_for_Vulnerability_Assessment_June_2021_746908_ndx.pdf [2022-01-12 20:44:51,901] [DEBUG] [paperless.consumer] Detected mime type: application/pdf [2022-01-12 20:44:51,919] [DEBUG] [paperless.consumer] Parser: RasterisedDocumentParser [2022-01-12 20:44:51,926] [DEBUG] [paperless.consumer] Parsing Market_Guide_for_Vulnerability_Assessment_June_2021_746908_ndx.pdf... [2022-01-12 20:44:56,499] [DEBUG] [paperless.parsing.tesseract] Extracted text from PDF file /tmp/paperless/paperless-upload-fe3_jgua [2022-01-12 20:44:56,643] [DEBUG] [paperless.parsing.tesseract] Calling OCRmyPDF with args: {'input_file': '/tmp/paperless/paperless-upload-fe3_jgua', 'output_file': '/tmp/paperless/paperless-643o7hty/archive.pdf', 'use_threads': True, 'jobs': 3, 'language': 'eng', 'output_type': 'pdfa', 'progress_bar': False, 'skip_text': True, 'clean': True, 'deskew': True, 'rotate_pages': True, 'rotate_pages_threshold': 12.0, 'sidecar': '/tmp/paperless/paperless-643o7hty/sidecar.txt'} [2022-01-12 20:45:04,715] [DEBUG] [paperless.parsing.tesseract] Incomplete sidecar file: discarding. [2022-01-12 20:45:06,761] [DEBUG] [paperless.parsing.tesseract] Extracted text from PDF file /tmp/paperless/paperless-643o7hty/archive.pdf [2022-01-12 20:45:06,762] [DEBUG] [paperless.consumer] Generating thumbnail for Market_Guide_for_Vulnerability_Assessment_June_2021_746908_ndx.pdf... [2022-01-12 20:45:06,775] [DEBUG] [paperless.parsing] Execute: convert -density 300 -scale 500x5000> -alpha remove -strip -auto-orient /tmp/paperless/paperless-643o7hty/archive.pdf[0] /tmp/paperless/paperless-643o7hty/convert.png [2022-01-12 20:45:08,387] [DEBUG] [paperless.parsing.tesseract] Execute: optipng -silent -o5 /tmp/paperless/paperless-643o7hty/convert.png -out /tmp/paperless/paperless-643o7hty/thumb_optipng.png [2022-01-12 20:45:14,943] [DEBUG] [paperless.classifier] Document classification model does not exist (yet), not performing automatic matching. [2022-01-12 20:45:14,957] [DEBUG] [paperless.consumer] Saving record to database [2022-01-12 20:45:15,170] [DEBUG] [paperless.consumer] Deleting file /tmp/paperless/paperless-upload-fe3_jgua [2022-01-12 20:45:15,173] [DEBUG] [paperless.parsing.tesseract] Deleting directory /tmp/paperless/paperless-643o7hty [2022-01-12 20:45:15,175] [INFO] [paperless.consumer] Document 2021-06-25 Market_Guide_for_Vulnerability_Assessment_June_2021_746908_ndx consumption finished
Anyone got any ideas?
-
@ultraviolet It says upload complete in the screenshot too - probably a UI bug, when you refresh the page does the document show up?
-
@ultraviolet same for me as well. Probably a bug as @murgero suggested. Refresh the page and your document will be there.
-
Glad it is not just me. Could it be something with nginx?
-
@ultraviolet looks to be more like a UI bug that needs to be reported upstream. Do you see any errors in the web browser console?
-
@ultraviolet I was confused about this initially but I learnt to ignore it.
Maybe a UI bug but not a functionality bug as it uploads fine..
I just navigate away to the inbox (or my tag "awaiting codes) after a bunch of uploads as a quick check that they have gone through. -
@timconsidine If I get some time tonight I was going to look at the nginx config but if anyone wants to have a crack at it feel free
-
@ultraviolet the app package does not use nginx in this case but gunicorn. Looks like maybe something is missing in that configuration.
-
@ultraviolet @girish indeed … and now?
-
@ultraviolet @imc67 can you try now?
-