-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
I found some solution for my problem : First, I noticed than the file scanbd_dbus.conf wasn't in the system.d folder, so I added it. The error changed : no more dbus connection error but endless "Iteration on dbus call" in the log... It seems that if I start scanbd right after inetd, this error shows. Bur if I start inetd, then do a "scanimage -L" or another use of the scanner via sane, then start scanbd, it works like a charm ! So I modify the udev rule so that when the scanner is turned on, it launches inetd, then imagescan -L, then scanbd : # Epson Perfection V500 Photo ENV{ID_VENDOR_ID}=="04b8", ENV{ID_MODEL_ID}=="0130", ACTION=="add", RUN+="/usr/sbin/service inetutils-inetd start", RUN+="/usr/bin/scanimage -L", RUN+="/usr/sbin/service scanbd start" ENV{ID_VENDOR_ID}=="04b8", ENV{ID_MODEL_ID}=="0130", ACTION=="remove", RUN+="/usr/sbin/service scanbd stop", RUN+="/usr/sbin/service inetutils-inetd stop" I don't know if it is a configuration problem or a bug... Best regard stout On 25/02/2013 21:32, stout wrote: > 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/ iQEcBAEBAgAGBQJRLI0TAAoJEA5REoC5M0so4NgIAIOpIswdR4OZNeFWpdobCV1v iGCKianh2g7OJoekoMr2vEXMYnc9ysMBcrTCoANjUZVEub1Gg+REJ0ltDjiLYa0L dyyPCQTcvbXKTS/lWjhvfJS3m4n8VWnaQbqYx6BuOHWGBxnx79VWuz62W1WqQxjD eUem2eaYvLxmCxiDVGK9de1jByv0jbu+wC1lZPjdKcQx27mnGZ2Ng7DJGnCtQvvl bbhECSfFFAUJKTaaLPskkXzUiO0hEjiFfpAKRgIkyqA4/AQ/+ge3ZVuZR5P97V4F qn7M/3jKMzJCMmTNOhS7PJO6EFw8KCRbhJj0YeiG3OlF2s/Ie1+Skhn7wdV3rh0= =4bY6 -----END PGP SIGNATURE-----