Bug 2930

Summary: printer installer, hp1220 bad installation
Product: Mageia Reporter: episteme promeneur <epistemepromeneur>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, doktor5000, scsijon
Version: 1   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: printer packet list 1
printer packet list 2
printer packet list 3
start service
cfprt.log

Description episteme promeneur 2011-10-04 11:46:59 CEST
How reproducible:
always

Steps to Reproduce:

i switch on my printer-scanner hp 1220
then
a window popups asking for me if i want to setup a printer
then
i answer yes
then
many packets about printing are installed
then
a window popups asking for me if i want to setup a hp 1220
then
i answer yes
then
many packets are installed about hp printing and scanning (xsane)
then
dialog disappears
and
that's all

then
i go to the mcc printer manager
then
no printer is installed !
then
i click on "add a printer" button
then
the printer is not detected

then
i launch the hp tool printer manager
then
no printer is installed !
then
i add a printer using the assistant
then
the tool installs the printer

then
i go to the mcc printer manager
then
i see the hp_1220 is there

i can't say it is an automatical installation

with mandriva 2008.1 no pb
since mandriva 2009.1 till 2011.0 there is this unsolved pb
Comment 1 Manuel Hiebel 2011-10-04 20:16:12 CEST
"then
i add a printer using the assistant"

wich one ?

can you attach the output of: 'grep hal_lpadmin /var/log/{messages,syslog}'

just after plug the printer (at least for usb ones).

Source RPM: (none) => system-config-printer

Comment 2 episteme promeneur 2011-10-04 20:35:32 CEST
(In reply to comment #1)
> "then
> i add a printer using the assistant"
> 
> wich one ?

the one of the hp tool

> 
> can you attach the output of: 'grep hal_lpadmin /var/log/{messages,syslog}'
> 
> just after plug the printer (at least for usb ones).

yes it is a usb one

[root@localhost ~]# grep hal_lpadmin /var/log/{messages,syslog}
[root@localhost ~]#
Comment 3 Manuel Hiebel 2011-10-08 12:51:19 CEST
doktor, maybe you can look at this 

(we need to update our triage_guide :) )

CC: (none) => doktor5000
Source RPM: system-config-printer => (none)

Comment 4 episteme promeneur 2011-10-08 13:08:22 CEST
remember this is an old pb since mandriva 2009.0 when mandriva switch to fedora printer manager "system-config-printer"

mageia inherits this problem
Comment 5 Florian Hubold 2011-10-09 11:16:34 CEST
What should i look here? I've got no way to reproduce this, as i haven't got an HP printer or to be exact no printer at all. Maybe we shouldn't update our triage guide but write some documentation for some standard procedures for the users.

I've also noticed that there are some differences whether a printer gets setup by system-config-printer vs. setup by CUPS (or vs. setup by hplip manager for HP printers). But i'm no printing guru, and if i can't reproduce, i don't know where the problem is, sorry.

At the very least i'd need the /etc/cups/printers.conf after the first step that is described above and after the second where it is working and what hplip manager changes in between to get it working.

Status: NEW => ASSIGNED
Assignee: bugsquad => doktor5000

Comment 6 episteme promeneur 2011-10-09 12:12:54 CEST
i think of a simple hypothesis :

the script for installing the printer does not ask for "hp device manager" to setup the printer or the command in the script for asking the "hp device manager" has the wrong syntax.

this is the only thing i manualy did for having a working printer.
Comment 7 Florian Hubold 2011-10-09 18:04:25 CEST
Actually the hp device manager should not be needed for setting up your printer, it should equally work via system-config-printer or CUPS web frontend, which it does for other users with HP printers.

Don't know what the difference to your installation is, i need context for that.
Comment 8 episteme promeneur 2011-12-15 13:52:50 CET
(In reply to comment #7)
> Actually the hp device manager should not be needed for setting up your
> printer, it should equally work via system-config-printer or CUPS web frontend,
> which it does for other users with HP printers.
> 
> Don't know what the difference to your installation is, i need context for
> that.

hplip must be installed.
printer driver is not sufficient.

hplip installs :
- cups printer
- utilities as scanning, faxing etc.
- a tool for maintenance, troubleshooting
- you can get printer status, ink cartridge status

when you use system-config-printer then system-config-printer installs hplip
Comment 9 Florian Hubold 2011-12-15 14:13:30 CET
I know what hplip is for and that sytem-config-printer installs hplip and cups, how does that help here? Where did i write something about printer driver?

Why does the installation work for other users directly from system-config-printer? Also i've not heard of this as a general problem from Mandriva 2009 - 2011, are there other bugreports on Mandrivas bugzilla for this problem? Please also look again at the last paragraph of comment#5, maybe you could also run system-config-printer in debug mode (--debug) from a terminal on a fresh installation for the initial printer setup to see why it doesn't install the printer automatically for you in the process.

FWIW, how is the printer connected to your box? usb, parallel ... ?
Comment 10 D Morgan 2011-12-18 13:50:47 CET
there was a missing require in udev that *could* trigger this bug.

can you test with an updated cauldron ?

CC: (none) => dmorganec

Comment 11 Florian Hubold 2011-12-18 14:29:07 CET
(In reply to comment #10)
> there was a missing require in udev that *could* trigger this bug.
> 
> can you test with an updated cauldron ?

Was reported against mga1, likely not the problem here.
Comment 12 D Morgan 2011-12-18 20:53:58 CET
(In reply to comment #11)
> (In reply to comment #10)
> > there was a missing require in udev that *could* trigger this bug.
> > 
> > can you test with an updated cauldron ?
> 
> Was reported against mga1, likely not the problem here.

you are right :D
Comment 13 D Morgan 2011-12-18 20:57:09 CET
can you do :

tail -f /var/log/messages  and plug the printer and then paste the output
Comment 14 episteme promeneur 2012-01-24 15:45:39 CET
mageia 2 alpha3

i plug the printer
then

[root@localhost ~]# grep hal_lpadmin /var/log/{messages,syslog}
[root@localhost ~]#

system does not asks for me if i want to setup the printer

at this step there is no /etc/cups/printers

/etc/cups/ contains only a file gestoraster.convs and no folder


then

i launch system-config-printer --debug  > cfprt.log in a user konsole

then

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
Gtk-Message: Failed to load module "canberra-gtk-module"
+<NewPrinterGUI object at 0x1460140 (newprinter+NewPrinterGUI at 0x15da8a0)>
+<PrinterPropertiesDialog object at 0x1464410 (printerproperties+PrinterPropertiesDialog at 0x16b4560)>
Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/bin/gurpmi line 29.

then
 a window asks for me if i want to install task-printing and task-printing hp
then
i ask "install"
then

Gtk-Message **: Failed to load module "canberra-gtk-module" at /usr/sbin/gurpmi2 line 70.

then
 system asks for me if awnat to install 89 packets
see the captures of the list of packets
then
i answer "ok"
then

    $MIRRORLIST: media/core/release/cups-1.5.0-2.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/z42tool-0.4.3-12.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/portreserve-0.0.5-1.mga2.x86_64.rpm        
    $MIRRORLIST: media/core/release/cups-drivers-lbp660-0.3.1-5.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/cups-common-1.5.0-2.mga2.x86_64.rpm        
    $MIRRORLIST: media/core/release/drv_z42-0.4.3-12.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/lib64openslp1-1.2.1-11.mga1.x86_64.rpm     
    $MIRRORLIST: media/core/release/printer-testpages-2006-7.mga1.noarch.rpm   
portreserve.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig portreserve on
Warning: unit files do not carry install information. No operation executed.
ln -s '/lib/systemd/system/cups.service' '/etc/systemd/system/printer.target.wants/cups.service'
ln -s '/lib/systemd/system/cups.socket' '/etc/systemd/system/sockets.target.wants/cups.socket'
ln -s '/lib/systemd/system/cups.path' '/etc/systemd/system/multi-user.target.wants/cups.path'
    $MIRRORLIST: media/core/release/cups-drivers-magicolor5430dl-1.8.1-12.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64gnet-2.0_0-2.0.8-6.mga1.x86_64.rpm    
    $MIRRORLIST: media/core/release/cups-drivers-magicolor2430dl-1.6.1-12.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/cups-drivers-pegg-0.23-9.mga1.x86_64.rpm   
    $MIRRORLIST: media/core/release/cups-drivers-splix-2.0.0-4.mga1.x86_64.rpm 
    $MIRRORLIST: media/core/release/cups-drivers-magicolor5440dl-1.2.1-12.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64gsnmp0-0.3.0-4.mga1.x86_64.rpm        
    $MIRRORLIST: media/core/release/scli-0.4.0-2.mga1.x86_64.rpm      
    $MIRRORLIST: media/core/release/cups-drivers-lxx74-0.8.4.2-9.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64lesstif2-0.95.2-3.mga1.x86_64.rpm     
    $MIRRORLIST: media/core/release/mtink-1.0.16-6.mga2.x86_64.rpm             
    $MIRRORLIST: media/core/release/cups-drivers-2008-4.mga1.x86_64.rpm        
    $MIRRORLIST: media/core/release/lib64xp6-1.0.1-1.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/lesstif-0.95.2-3.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/cups-drivers-capt-0.1-10.mga1.x86_64.rpm   
    $MIRRORLIST: media/core/release/foomatic-db-engine-4.0.8-1.mga2.x86_64.rpm 
mtinkd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig mtinkd on
Warning: unit files do not carry install information. No operation executed.
    $MIRRORLIST: media/core/release/ml85p-0.2.0-9.mga1.x86_64.rpm              
    $MIRRORLIST: media/core/release/cups-drivers-foo2kyo-0.1.0a-10.mga1.x86_64.rpm
    $MIRRORLIST: media/core/release/pbmtozjs-0-11.mga1.x86_64.rpm              
    $MIRRORLIST: media/core/release/netcat-traditional-1.10-35.mga1.x86_64.rpm 
    $MIRRORLIST: media/core/release/printer-tools-2008-8.mga1.x86_64.rpm       
    $MIRRORLIST: media/core/release/oki4linux-2.1gst-12.mga1.x86_64.rpm        
    $MIRRORLIST: media/core/release/x125-0.2.3-8.mga1.x86_64.rpm               
    $MIRRORLIST: media/core/release/cups-drivers-ptouch-1.3-4.mga1.x86_64.rpm  
oki4daemon.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig oki4daemon on
Warning: unit files do not carry install information. No operation executed.
    $MIRRORLIST: media/core/release/foomatic-db-4.0-2.20101202.2.mga1.noarch.rpm
   $MIRRORLIST: media/core/release/mscompress-0.3-12.mga1.x86_64.rpm          
    $MIRRORLIST: media/core/release/pbm2l2030-1.4-10.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/c2070-0.99-10.mga1.x86_64.rpm              
    $MIRRORLIST: media/core/release/cups-drivers-m2300w-0.51-10.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/cups-drivers-lz11-1.2-9.mga1.x86_64.rpm    
    $MIRRORLIST: media/core/release/stylewriter-0.9.9-10.mga1.x86_64.rpm       
    $MIRRORLIST: media/core/release/pnm2ppa-1.12-9.mga1.x86_64.rpm             
    $MIRRORLIST: media/core/release/cups-drivers-foo2zjs-0.0-0.20111227.1.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/pbm2lwxl-0-9.mga1.x86_64.rpm               
    $MIRRORLIST: media/core/release/ppmtomd-1.5-10.mga1.x86_64.rpm             
    $MIRRORLIST: media/core/release/min12xxw-0.0.9-12.mga2.x86_64.rpm          
    $MIRRORLIST: media/core/release/lm1100-1.0.2a-14.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/pentaxpj-1.0.0-10.mga1.x86_64.rpm          
    $MIRRORLIST: media/core/release/lib64netpbm10-10.47.29-3.mga2.x86_64.rpm   
    $MIRRORLIST: media/core/release/lcms-1.19-6.mga2.x86_64.rpm                
    $MIRRORLIST: media/core/release/cjet-0.8.9-10.mga1.x86_64.rpm              
    $MIRRORLIST: media/core/release/c2050-0.4-10.mga1.x86_64.rpm               
    $MIRRORLIST: media/core/release/lexmark7000linux-990516-10.mga1.x86_64.rpm 
    $MIRRORLIST: media/core/release/groff-perl-1.21-2.mga2.x86_64.rpm          
    $MIRRORLIST: media/core/release/ppmtocpva-1.0-12.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/epsoneplijs-0.4.1-5.mga1.x86_64.rpm        
    $MIRRORLIST: media/core/release/printer-filters-2008-4.mga1.x86_64.rpm     
    $MIRRORLIST: media/core/release/lexmark2070-0.6-11.mga1.x86_64.rpm         
    $MIRRORLIST: media/core/release/lxcontrol-1.3-12.mga1.x86_64.rpm           
    $MIRRORLIST: media/core/release/poster-0-0.20060221.7.mga1.x86_64.rpm      
    $MIRRORLIST: media/core/release/python-reportlab-2.5-5.mga1.x86_64.rpm     
    $MIRRORLIST: media/core/release/task-printing-server-2011-1.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/printer-utils-2008-4.mga1.x86_64.rpm       
    $MIRRORLIST: media/core/release/python-imaging-1.1.7-5.mga2.x86_64.rpm     
    $MIRRORLIST: media/core/release/postscript-ppds-2006-8.mga1.noarch.rpm     
    $MIRRORLIST: media/core/release/a2ps-4.14-11.mga1.x86_64.rpm            
  $MIRRORLIST: media/core/release/gutenprint-common-5.2.7-3.mga2.x86_64.rpm  
    $MIRRORLIST: media/core/release/lib64gutenprint2-5.2.7-3.mga2.x86_64.rpm   
    $MIRRORLIST: media/core/release/gutenprint-ijs-5.2.7-3.mga2.x86_64.rpm     
    $MIRRORLIST: media/core/release/gutenprint-cups-5.2.7-3.mga2.x86_64.rpm    
    $MIRRORLIST: media/core/release/task-printing-okidata-2011-1.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/gutenprint-foomatic-5.2.7-3.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/lib64ijs1-0.35-84.mga2.x86_64.rpm          
    $MIRRORLIST: media/core/release/hplip-hpijs-3.11.12-1.mga2.x86_64.rpm      
    $MIRRORLIST: media/core/release/gutenprint-escputil-5.2.7-3.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/python-sip-4.13.1-1.mga2.x86_64.rpm        
    $MIRRORLIST: media/core/release/hplip-hpijs-ppds-3.11.12-1.mga2.x86_64.rpm 
    $MIRRORLIST: media/core/release/lib64sane-hpaio1-3.11.12-1.mga2.x86_64.rpm 
    $MIRRORLIST: media/core/release/task-printing-lexmark-2011-1.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/task-printing-hp-2011-1.mga2.x86_64.rpm    
    $MIRRORLIST: media/core/release/net-snmp-mibs-5.7.1-1.mga2.x86_64.rpm      
    $MIRRORLIST: media/core/release/hplip-3.11.12-1.mga2.x86_64.rpm            
    $MIRRORLIST: media/core/release/lib64gutenprintui2_1-5.2.7-3.mga2.x86_64.rpm
    $MIRRORLIST: media/core/release/hplip-gui-3.11.12-1.mga2.x86_64.rpm        
    $MIRRORLIST: media/core/release/task-printing-misc-2011-1.mga2.x86_64.rpm  
    $MIRRORLIST: media/core/release/python-qt4-core-4.9-2.mga2.x86_64.rpm      
    $MIRRORLIST: media/core/release/task-printing-canon-2011-1.mga2.x86_64.rpm 
    $MIRRORLIST: media/core/release/task-printing-2011-1.mga2.x86_64.rpm       
    $MIRRORLIST: media/core/release/task-printing-epson-2011-1.mga2.x86_64.rpm 
    $MIRRORLIST: media/core/release/python-qt4-gui-4.9-2.mga2.x86_64.rpm  
$MIRRORLIST: media/core/release/gutenprint-gimp2-5.2.7-3.mga2.x86_64.rpm   

then
the installation seems stopped
i see a new wndows appears saying
"printing service not available. start the service on this computer or connect to another server"

the button "start service" is in grey
"connect" button is not in grey

see the capture start-service

then
 i don't know what to do
then
i close this window
then

DESTROY: <PrinterPropertiesDialog object at 0x1464410 (printerproperties+PrinterPropertiesDialog at 0x16b4560)>
DESTROY: <NewPrinterGUI object at 0x1460140 (newprinter+NewPrinterGUI at 0x15da8a0)>

and that's all
 the installation seems terminated

see cfprt.log for another messages


at this step

/etc/cups/ contains

- folders interfaces, ppd, ssl 

all are empty

- files
[root@localhost cups]# ls
command.types       gstoraster.convs  lxx74.types     snmp.conf
cupsd.conf          interfaces/       ppd/            ssl/
cupsd.conf.default  lxx74.convs       pstotiff.convs
[root@localhost cups]# 

hp tools are installed
but also

- an epson printer manager !
- an epson "mtinkd" daemon !
- a winprinter oki4w "oki4daemon" daemon !

if i launch hp printer manager
then
no printer is installed
it asks for me if i want to install a printer

if i launch drakprinter
then
it says "there are no printers configured yet"
it does not see any printer
Comment 15 episteme promeneur 2012-01-24 15:47:02 CET
Created attachment 1418 [details]
printer packet list 1
Comment 16 episteme promeneur 2012-01-24 15:47:32 CET
Created attachment 1419 [details]
printer packet list 2
Comment 17 episteme promeneur 2012-01-24 15:48:02 CET
Created attachment 1420 [details]
printer packet list 3
Comment 18 episteme promeneur 2012-01-24 15:48:36 CET
Created attachment 1421 [details]
start service
Comment 19 episteme promeneur 2012-01-24 15:49:02 CET
Created attachment 1422 [details]
cfprt.log
Comment 20 Florian Hubold 2012-01-24 16:03:16 CET
Doesn't really help, the original report was against Mageia 1, now you redo this against cauldron, which is currently a moving target, and printing may or may not work as it's supposed to be. But i'll try to look into it.
Comment 21 episteme promeneur 2012-01-24 17:51:48 CET
i restarted mageia 2
then
now both hp printer manager and drakprinter see the printer

if i ask to drakprinter to setup theprinter
then
it searches the driver
then
it supplies a window where i must choose myself the driver !
in this window "epson (recommanded) is selected by default !

then
i select "HP"
then
it supplies a window where i must choose the driver
in this windows model "910" and driver "HP 910 ...(recommanded)" is selected by default !
then
i select hp1220
then
an icon appears in drakprinter

a print test works well

if i launch hp printer manager
then
the printer is in the list of printers
but communication with printer fails
and all the tools (print, scan etc.) are not supplied

if i launch xsan
then
it does not see any scanner
Comment 22 Florian Hubold 2012-01-26 14:43:29 CET
You also forgot one of the most important sources of information, quoting:

(In reply to comment #13)
> can you do :
> 
> tail -f /var/log/messages  and plug the printer and then paste the output
Comment 23 episteme promeneur 2012-01-26 15:34:38 CET
[root@localhost ~]# tail -f /var/log/messages
Jan 26 15:30:00 localhost kernel: usb 1-3: new full-speed USB device number 12 using ohci_hcd
Jan 26 15:30:20 localhost kernel: usb 1-3: device not accepting address 12, error -110
Jan 26 15:30:20 localhost kernel: usb 1-3: new full-speed USB device number 13 using ohci_hcd
Jan 26 15:30:41 localhost kernel: usb 1-3: device not accepting address 13, error -110
Jan 26 15:30:41 localhost kernel: usb 1-3: new full-speed USB device number 14 using ohci_hcd
Jan 26 15:30:52 localhost kernel: usb 1-3: device not accepting address 14, error -110
Jan 26 15:30:52 localhost kernel: usb 1-3: new full-speed USB device number 15 using ohci_hcd
Jan 26 15:31:02 localhost kernel: usb 1-3: device not accepting address 15, error -110
Jan 26 15:31:02 localhost kernel: hub 1-0:1.0: unable to enumerate USB device on port 3

addendum : i tried to use lsusb in a root console then
[root@localhost ~]# lsusb
-bash: lsusb : commande introuvable (unfound command)
[root@localhost ~]#
Comment 24 jon scsi 2012-02-28 13:15:52 CET
ah, folks? A comment or two, if I may!
Warning, i'm just starting with mageia, i'm more use to the way puppy and suse run.

Which hp1220 are you dealing with? One with the jetdirect interface module installed or one without?

You will need to know as they use different hp drivers, even if you are plugging into via the main USB port in anycase.

There are also (I found last year) a number of different hplip driversets and they can be, in some cases need to be, parallel installed as not all have driversets for the 'older' or 'uncommon' configurations. Don't ask me who decides which is which or what stays in or goes out.

I did have one (with jetdirect) and eventually decided to get rid of it, just too much hastle. Sold it to someone with one already installed and received a a3 printer in exchange, good bargan as far as I was concerned!

CC: (none) => scsijon

Comment 25 Florian Hubold 2012-08-12 16:10:57 CEST
Resolving as printing works for reporter per comment#21, and many hplip / system-config-printer problems were fixed in between, issue has not resurfaced.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 26 episteme promeneur 2012-08-12 20:43:47 CEST
i confirm there is no more pb

moreover the driver is the good one. my hp 1220 got the poscript extension + a memory extension
and the installer installs the postscript driver thus i can set the memory extension.

but printing does not work

i launch a little text file (1 page) printing
then
printer blinks during several minutes
then
stops blinking
and
that's all, no printed page