SurfSense icon indicating copy to clipboard operation
SurfSense copied to clipboard

Files refusing to upload around 34 MB

Open zono50 opened this issue 4 months ago • 2 comments

The UI states that the cap size for a file is 50MB, but there have been about 3 or 4 different pdf files that have halted my uploading to my space. I keep getting these errors over and over again -

WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value

and then it just halts the upload. I have to go in, delete the book, and then reupload my files. Each time i have checked this happening, my file size was around 34 MB. Not sure if it's relevant or not, but figure i would include it.

zono50 avatar Aug 19 '25 18:08 zono50

working on this @MODSetter

codeBunny2022 avatar Nov 01 '25 10:11 codeBunny2022

The UI states that the cap size for a file is 50MB, but there have been about 3 or 4 different pdf files that have halted my uploading to my space. I keep getting these errors over and over again -

WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value backend-1 | WARNING:pdfminer.pdfinterp:Cannot set gray non-stroke color because /'P0' is an invalid float value

and then it just halts the upload. I have to go in, delete the book, and then reupload my files. Each time i have checked this happening, my file size was around 34 MB. Not sure if it's relevant or not, but figure i would include it.

these are essentially not file size issue, there is although a certain limit on number of pages which could be causing this , initially it was 500, we can increase that

Connect to database

docker exec -it surfsense-db-1 psql -U postgres -d surfsense

Update your test user's page limit (replace with your user ID)

UPDATE "user" SET pages_limit = 10000 WHERE email = '[email protected]';

Or update all users

UPDATE "user" SET pages_limit = 10000;

BUT THE ERROR THAT WE SEE HERE --> is coming from docling internal pdf parsing , they actually arent errors but can halt the process so we have to suppress them

codeBunny2022 avatar Nov 01 '25 12:11 codeBunny2022