paperless-mobile icon indicating copy to clipboard operation
paperless-mobile copied to clipboard

[Bug]: Cannot upload Scans Error.

Open reacend opened this issue 11 months ago • 12 comments

What happened?

When I scan an Paper witht he app and upload it, i get this error.:

Screenshot_20240229_121928

Steps to reproduce

normal upload of pdf works only the scan app did not work Changed the upload to pdf no help.

Log output from the app

See Screenshot

Screenshots

No response

Paperless-ng*x Version

2.5.4

Paperless-Mobile Version

play store version

Device

samsung s22 ultra

Operating System Version

android 13

Device Locale

germand

Selected Locale

German

Additional Context

No response

reacend avatar Feb 29 '24 11:02 reacend

It sounds like there might be a permission error. Let's ensure that both the document and the user have full permissions. Try granting all permissions to the document for the user, and also granting all permissions to the user.

mrsumanbiswas avatar Feb 29 '24 11:02 mrsumanbiswas

Screenshot_20240229_172920_Kiwi Browser Screenshot_20240229_172936_Kiwi Browser

mrsumanbiswas avatar Feb 29 '24 12:02 mrsumanbiswas

The user of papermobile is superuser.

reacend avatar Feb 29 '24 12:02 reacend

Screenshot_20240229_174621

Please attempt to switch on/off the "Upload scans as PDF" option.

mrsumanbiswas avatar Feb 29 '24 12:02 mrsumanbiswas

already testet it no success. one time i get an upload of an image only.

reacend avatar Feb 29 '24 12:02 reacend

Mine is working fine.

mrsumanbiswas avatar Feb 29 '24 12:02 mrsumanbiswas

great xD

reacend avatar Feb 29 '24 13:02 reacend

still there the problem

Imagemagick was not probertly configured-

With this comment: https://github.com/paperless-ngx/paperless-ngx/issues/895#issuecomment-1471765429

reacend avatar Feb 29 '24 14:02 reacend

an 2 pages upload will work only in jpeg format it is not possible.

reacend avatar Feb 29 '24 15:02 reacend

push any fixes?

reacend avatar Mar 05 '24 16:03 reacend

Sorry for the late reply, I currently have hardly any time to work on the project or fix bugs. I'll look into this as soon as I have more spare time again.

astubenbord avatar Mar 12 '24 17:03 astubenbord

I have the same problem.

With the switch "Upload scans as PDF" on or off it is:

---BEGIN ERROR---
PathNotFoundException: Cannot open file, path = '/data/user/0/de.astubenbord.paperless_mobile/cache/scans/8fd9a790-37c4-1161-a471-adb3e84a1bd2.jpeg' (OS Error: No such file or directory, errno = 2)
---END ERROR---
---BEGIN STACKTRACE---
#0      _File.throwIfError (dart:io/file_impl.dart:675)
#1      _File.openSync (dart:io/file_impl.dart:490)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:574)
#3      _ScannerPageState._assembleFileBytes (package:paperless_mobile/features/document_scan/view/scanner_page.dart:400)
#4      _ScannerPageState._onPrepareDocumentUpload (package:paperless_mobile/features/document_scan/view/scanner_page.dart:254)
#5      _ScannerPageState._buildActions.<anonymous closure>.<anonymous closure> (package:paperless_mobile/features/document_scan/view/scanner_page.dart:163)
#6      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1183)
#7      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275)
#8      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:652)
#9      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:309)
#10     BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:279)
#11     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:167)
#12     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:492)
#13     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:468)
#14     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:439)
#15     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:413)
#16     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:376)
#17     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:323)
#18     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:292)
#19     _rootRunUnary (dart:async/zone.dart:1415)
#20     _CustomZone.runUnary (dart:async/zone.dart:1308)
#21     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#22     _invoke1 (dart:ui/hooks.dart:330)
#23     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:410)
#24     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

---END STACKTRACE---```

Android 8.1.0 Googlefree on Shift 6m

pappou99 avatar Sep 23 '24 15:09 pappou99