-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan returns "Scan complete" but only empty files #20
Comments
Did you install al dependencies? Please add more information about your environment to make debugging your problem easier. |
Yes all dependencies are present Im running nginx with php7.2-fpm postgresql for database. Is there anywhere where i can view the log specific to scanner. Nothing shows up in the error log because its not considered an error.
|
www-data has print and scan permissions Connection is over handled with ipp Scanning via terminal under www-data returns scans
Scanner is Brother MFC-9130CW
Also |
Okay, but can you execute the following commands:
Also, the segmentation fault might be related to this problem: https://www.linuxquestions.org/questions/slackware-14/xsane-and-scanimage-segfaulting-4175550933/ |
|
The problem is that the Brother scanner backend for SANE obviously uses different terminology for the "mode" setting (in this case "24bit Color" instead of "color"). This will probably be fixed with https://github.com/e-alfred/nextcloud-scanner/tree/vuejs-rework by @Biont, I hope he can work on this again. |
Thank you for your help, its greatly appreciated. |
I see these in the logfiles: ( same result: 0 sized image files, running by hand does work though). probably due to this: scanimage & pnmtojepg are both in /usr/bin which in the path. |
Having a weird issue at the moment with Scanner 1.8.0 and Nextcloud 18.0.4. When I'm trying to scan from the web interface it creates an empty file, but running
from the command line works as expected. Also when triggering the scan from the web interface the /tmp/img files does not get created. According to the php-fqm log the command is triggered.
Edit Fixed the issue by setting |
There is another way to fix the issue without the need of |
If anyone else is still having problems, look up the udev rules in the Arch Linux wiki; that applies to all distros, not just Arch (I'm using Debian myself). |
For me, so i guess the issue is the same with the mode flag that is not understood by my samsung scanner. no problem with sudo since the scanner is recognized from the network (not usb) automatically. |
Is there any update on this? I have the same issue, and cannot get it resolved. |
Í am using dedicated Brother Scanner, ADS-3000N and connected thru' network. Based on you guys chatter around, so I modified in here, change accordingly to what @didnt1able share about brother help command into this one, Now its working from WebUI of Nextcloud, so, I need learn the code so maybe just a suggestion, you need a scanner BRAND Model database, since its model the scan command line to execute are different. |
Doing
sudo -u www-data scanimage >test.jpeg
returns a good scan for the webserver user. When scanning in nextcloud it just drops empty filesnextcloud version 17.0.1.1
![jQpkd75BEg](https://user-images.githubusercontent.com/44665561/68750495-f5e3c100-05cd-11ea-8dbc-63e1afc9732e.gif)
The text was updated successfully, but these errors were encountered: