Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353092 - media-gfx/sane-backends-1.0.21-r1: scanning over network fails
Summary: media-gfx/sane-backends-1.0.21-r1: scanning over network fails
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 19:38 UTC by Joerg Schaible
Modified: 2012-01-19 12:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sane-backends-1.0.19.log (sane-backends-1.0.19.log,168.29 KB, text/plain)
2011-02-05 14:17 UTC, Joerg Schaible
Details
sane-backends-1.0.21-r1.log (sane-backends-1.0.21-r1.log,7.00 KB, text/plain)
2011-02-05 14:18 UTC, Joerg Schaible
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2011-01-28 19:38:06 UTC
After upgrading sane-backends from 1.0.19-r2 to 1.0.12-r1 on client and server, the scanning over network fails.

Entries in the server's log:
==================== %< ===================
Jan 28 20:17:23 bobbel xinetd[12064]: EXIT: sane-port status=0 pid=12076 duration=44(sec)
Jan 28 20:17:27 bobbel xinetd[12064]: START: sane-port pid=12083 from=192.168.13.27
Jan 28 20:17:27 bobbel saned[12083]: saned from sane-backends 1.0.21 ready
Jan 28 20:17:27 bobbel saned[12083]: check_host: access by remote host: 192.168.13.27
Jan 28 20:17:27 bobbel saned[12083]: init: access granted to saned-user@192.168.13.27
Jan 28 20:17:27 bobbel saned[12083]: http.c 344: invalid http_status=0
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=5
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=136
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=5
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=1995
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2055
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2048
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=2054
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=156
Jan 28 20:17:27 bobbel saned[12083]: http.c 348: dumping len=7
Jan 28 20:17:27 bobbel saned[12083]: http.c 188: timeout reading data sec_timeout=1
Jan 28 20:17:27 bobbel saned[12083]: bb_soap.c 490: unable to get_scanner_elements: uri=hp:/usb/HP_Color_LaserJet_CM1015?serial=00CNDY73LG6R
Jan 28 20:17:29 bobbel saned[12083]: process_request: bad status 22
Jan 28 20:17:29 bobbel saned[12083]: saned exiting
==================== %< ===================

It is necessary to downgrade on client and server. AMD64 on client (Core i7) and server (Core i2) with same kernel version.

udev rules have been reread started after each emerge (client and server) and xinit.d newly started (server).

Reproducible: Always

Steps to Reproduce:
1. Emerge new versions on client and server
2. Reread udev rules
3. Restart xinet.d on server
4. Start kscanlite on client
5. Scan over network device


Actual Results:  
Scan is aborted on client and server contains entries above

Expected Results:  
Scan should be performed without errors.

Downgrade to 1.0.19-r2 helps.

Printer/Scanner/Copier Model: HP_Color_LaserJet_CM1015 (USB)

Server:
==================== %< =======================
$ emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Pentium-R-_Dual-Core_CPU_E6500_@_2.93GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 28 Jan 2011 13:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -Os -pipe -fno-default-inline"
DISTDIR="/var/db/portage/distfiles/bobbel"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/mirror/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
PKGDIR="/var/db/portage/packages/core2duo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/var/db/portage/tree/central"
PORTDIR_OVERLAY="/var/db/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl alsa amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cups cxx dbus dri fam fortran gdbm gpm iconv icu jpeg jpeg2k logrotate mmx modules mudflap multilib ncurses nls nptl nptlonly pam pcre perl png pppd python readline samba session sse sse2 ssl ssse3 sysfs syslog tcpd tiff unicode usb vim-syntax xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="net hp hpljm1005 hs2p" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
==================== %< =======================
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2011-02-01 09:25:26 UTC
Could you maybe shut down xinetd, run "saned -d128" and attach the output of another scan attempt? Thank you!
Comment 2 Joerg Schaible 2011-02-05 14:17:57 UTC
Created attachment 261581 [details]
sane-backends-1.0.19.log

Protocol for 1.0.19 (working)
Comment 3 Joerg Schaible 2011-02-05 14:18:47 UTC
Created attachment 261584 [details]
sane-backends-1.0.21-r1.log

Protocol for 1.0.21-r1 (non-working)
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2011-09-21 19:18:27 UTC
Is this still a problem with .22-r1?
Comment 5 Joerg Schaible 2011-09-21 23:26:47 UTC
Actually I cannot say. Meanwhile I changed hardware and I have now a Brother DCP-90190CN, i.e. I do no longer need the hplip backend (with proprietary drivers). The sane-backend-1.0.21-r1 for this Printer/Copier/Scanner and scanning over network works flawlessly.
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2011-10-05 17:00:49 UTC
Looks like this was hplip related, cc-ing hplip maintainers.
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2012-01-18 19:53:27 UTC
Ping! Does anyone who cares for hplip read this?
Comment 8 Daniel Pielmeier gentoo-dev 2012-01-18 20:10:30 UTC
(In reply to comment #7)
> Ping! Does anyone who cares for hplip read this?

Unfortunately I can not help here as I do not own the hardware to scan over the network.

Plus, do you really think hplip is at fault when a downgrade of sane-backends to version 1.0.19-r2 fixes it.
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2012-01-19 12:15:53 UTC
Sure, it looks unlikely - but if you have a look at the strace logs, you'll see that sane does almost the same stuff in both cases, it's the backend that aborts the scan attempt as far as I interpret it. To me it looks like it is a bug of the backend triggered by slightly different behavior of sane.
No idea how to track this down - given no hardware is available. I'll close this as CANTFIX.