[sane-devel] scanbd problem with dbus permission ?
stout
stout at meoz.fr
Mon Feb 25 20:32:23 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Something strange happened :
2 months ago,I managed to get scanbd to work perfectly with my epson
V500 scanner, built my own script, ..., was very proud of myself...
... until today, where after 2 months of not using it, I tried to use
a button, and it did not work !!
I must have changed something, during those 2 months, but I really
don't know what...
So, the scanner is plugged in a Debian 6,
the debug log shows these errors :
scanbd: start dbus thread
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.8" is not allowed to own the
service "de.kmux.scanbd.server" due to security policies in the
configuration
and later :
scanbd: polling device Perfection V500
scanbd: epson-vphoto-backend: communication error: read length:0
(expected:1)
(the full log is pasted afterwards)
I tried to modify the user/group in scanbd.conf (trying lp, saned,
scanner, root..) with no change.
The UDEV rule for the scanner seems to make it belong to the "scanner"
group :
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0130", MODE="0664",
GROUP="scanner", ENV{libsane_matched}="yes"
Don't hesitate to ask me for more informations if needed...
Thanks for your help !
best regards
stout
here is the full log :
scanbd -f
scanbd: debug on: level: 7
scanbd: dropping privs to uid saned
scanbd: dropping privs to gid scanner
scanbd: group scanner has member:
scanbd: saned
scanbd: root
scanbd: lp
scanbd: drop privileges to gid: 113
scanbd: Running as effective gid 113
scanbd: drop privileges to uid: 109
scanbd: Running as effective uid 109
scanbd: dbus_init
scanbd: dbus match type='signal',interface='org.freedesktop.Hal.Manager'
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/meta.so
scanbd: meta-backend: init
scanbd: libusbi: initializing...
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/hp3500.so
scanbd: meta-backend: attaching backend: HP3500 USB
scanbd: hp3500-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/snapscan.so
scanbd: meta-backend: attaching backend: Snapscan USB
scanbd: snapscan-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/niash.so
scanbd: meta-backend: attaching backend: Niash USB
scanbd: niash-backend: init
scanbd: Loading /usr/local/lib/scanbd/scanbuttond/backends/epson_vphoto.so
scanbd: meta-backend: attaching backend: Epson VX00 Photo USB
scanbd: epson-vphoto-backend: init
scanbd: meta-backend: attached scanner "Epson Perfection V500"
scanbd: Scanning for local-only devices
scanbd: found device: Perfection V500 Epson epkowa:interpreter:001:004
scanbd: start_scbtn_threads
scanbd: start the threads (1)
scanbd: Starting poll thread for Perfection V500
scanbd: Thread started for device Perfection V500
scanbd: scbtn_poll
scanbd: start dbus thread
scanbd: Not Primary Owner (-1)
scanbd: Name Error (Connection ":1.8" is not allowed to own the
service "de.kmux.scanbd.server" due to security policies in the
configuration file)
scanbd: found 4 options for device Perfection V500
scanbd: sane_find_matching_options
scanbd: no matching actions in section (null)
scanbd: sane_find_matching_functions
scanbd: scanbuttond backends can't use function definitions
scanbd: found 1 local device sections
scanbd: checking device section V500 with filter: (.*V500.*)
scanbd: found 4 local action for device Perfection V500 [V500]
scanbd: sane_find_matching_options
scanbd: found 4 actions in section V500
scanbd: checking action scan with filter: ^web.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: installing action scan (0) for Perfection V500, option[0]: web
as: myV500.script
scanbd: multiple actions allowed
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[3] send for device Perfection V500
scanbd: checking action email with filter: ^copy.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: installing action email (1) for Perfection V500, option[2]:
copy as: myV500.script
scanbd: multiple actions allowed
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[3] send for device Perfection V500
scanbd: checking action copy with filter: ^email.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: installing action copy (2) for Perfection V500, option[1]:
email as: myV500.script
scanbd: multiple actions allowed
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[3] send for device Perfection V500
scanbd: checking action pdf with filter: ^send.*
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[0] web for device Perfection V500
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[1] email for device Perfection V500
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[2] copy for device Perfection V500
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: found active option[3] send for device Perfection V500
scanbd: installing action pdf (3) for Perfection V500, option[3]: send
as: myV500.script
scanbd: multiple actions allowed
scanbd: sane_find_matching_functions
scanbd: no matching functions in section V500
scanbd: timeout: 500 ms
scanbd: Start the polling for device Perfection V500
scanbd: polling thread for Perfection V500 cancellation point
scanbd: polling device Perfection V500
scanbd: epson-vphoto-backend: communication error: read length:0
(expected:1)
scanbd: button 0
scanbd: option: 1
scanbd: scanbtnd_button_name (1)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: checking option web number 1 (0) for device Perfection V500
scanbd: option: 3
scanbd: scanbtnd_button_name (3)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: checking option copy number 3 (1) for device Perfection V500
scanbd: option: 2
scanbd: scanbtnd_button_name (2)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: checking option email number 2 (2) for device Perfection V500
scanbd: option: 4
scanbd: scanbtnd_button_name (4)
scanbd: scanbtnd_button_name, backend: Epson VX00 Photo USB
scanbd: checking option send number 4 (3) for device Perfection V500
scanbd: polling thread for Perfection V500 cancellation point
scanbd: polling device Perfection V500
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRK8pWAAoJEA5REoC5M0sorHwH/0uqxQwXnN3YlFh9QYZ/BStz
9rpYo9/UESB16vXts/tRn6kFcD/D3KS4+k2Bk7AakNLt0vbOc+CLMGHvgF9F6WEV
Go4rmOKrpJh8+yWzQ35wZTczmWM+1V4r/IPukaahMkzcDtnwQ2+p70x7YbvqGz1s
jV8q6CXyETAJC3CyLtozDaujDX5F2ru6mmQezWlJYk5H7pMM4MWZ1nRNfoTHbzqv
Ur35xE6lAiyLDsmHZrX0nv2/Gh/vJbuK95i85lJB+vAWKctYkAoWjsWt7Gto68uJ
TFRHo/bng0/ZvYmnTd4H5wBva3nlRFqJbjRA6ZuVQydOrCxnHYz0VMfY7O0Wwig=
=VCEF
-----END PGP SIGNATURE-----
More information about the sane-devel
mailing list