Page 1 of 1

Failed to start saned.service: Unit saned.service is masked.

Posted: Mon Nov 07, 2016 3:18 pm
by ^rooker
[PROBLEM]
Setting up a Raspberry Pi on Raspbian Jessie to act as a local network scanner server.
Following a tutorial by user "pi3g", I installed "xinetd" and "sane-utils".

Trying to start the "saned" service:

Code: Select all

$ service saned start
Returned the following error:
Failed to start saned.service: Unit saned.service is masked.
Running "sane-find-scanner" gives the following errors:
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x04b8, product=0x0898) at libusb:001:013
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
I had the EPSON device connected through a USB-hub. Just to be sure that that wasn't the problem, I re-connected it directly: Didn't solve the problem.


[SOLUTION]
For some (yet unknown) reason, SANE can't automatically find out that the backend supporting this printer/scanner is "epson2".


Therefore, I added a line with "usb <vendor_id> <device_id>" to "/etc/sane.d/epson2.conf".
Here's what the edited file looks like:
scsi EPSON
# for the GT-6500:
#scsi "EPSON SC"

# Parallel port
#pio 0x278
#pio 0x378
#pio 0x3BC

# USB
usb
usb 0x04b8 0x0898

# For libusb support for unknown scanners use the following command
# usb <product ID> <device ID>
# e.g.:
# usb 0x4b8 0x110

# Network
#
# net 192.168.1.123
net autodiscovery
Now "scanimage -L" returns:
device `epson2:libusb:001:016' is a Epson PID 0898 flatbed scanner
Looks better :D