Bug 2738

Summary: System-Config-Printer don't works for network printer
Product: Mageia Reporter: Jacques Pronchery <jacques.pronchery>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, doktor5000
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: system-config-printer CVE:
Status comment:

Description Jacques Pronchery 2011-09-13 17:10:59 CEST
System-Config-Printer don't works to config network printer.
It recognizes my printer but it's impossible to continue
because the button "next" don't appear.
Cups is running.

here is the report of the debug.

Page 1 (Scheduler not running?):
{'cups_connection_failure': False}
Page 2 (Choose printer):
{'cups_dests_available': [('Cups-PDF', None)], 'cups_queue_listed': False}
Page 3 (Local or remote?):
{'printer_is_remote': True}
Page 4 (Remote address):
{'remote_server_ip_address': '192.168.1.123',
 'remote_server_name': 'usbstation'}
Page 5 (Check network server sanity):
{'remote_server_connect_ipp': True,
 'remote_server_cups': True,
 'remote_server_name_resolves': ['192.168.1.123',
                                 '192.168.1.123',
                                 '192.168.1.123'],
 'remote_server_smb': True,
 'remote_server_smb_shares': [<smbc.Dirent object "usbshare" (File share) at 0xac887728>,
                              <smbc.Dirent object "IPC$" (IPC share) at 0xac887758>,
                              <smbc.Dirent object "usbprinter2" (Printer share) at 0xac887518>,
                              <smbc.Dirent object "usbprinter1" (Printer share) at 0xac887740>,
                              <smbc.Dirent object "ADMIN$" (IPC share) at 0xac92e098>],
 'remote_server_try_connect': 'usbstation'}
Page 6 (Choose network printer):
{'remote_cups_dest': <cups.Dest usbprinter1 (default)>,
 'remote_cups_instance': None,
 'remote_cups_queue': 'usbprinter1',
 'remote_cups_queue_listed': True}
Page 7 (Queue not shared?):
{'remote_cups_queue_attributes': {'charset-configured': u'utf-8',
                                  'charset-supported': [u'us-ascii',
                                                        u'iso-8859-1',
                                                        u'iso-8859-2',
                                                        u'iso-8859-3',
                                                        u'iso-8859-4',
                                                        u'iso-8859-5',
                                                        u'iso-8859-6',
                                                        u'iso-8859-7',
                                                        u'iso-8859-8',
                                                        u'iso-8859-9',
                                                        u'iso-8859-10',
                                                        u'iso-8859-13',
                                                        u'iso-8859-14',
                                                        u'iso-8859-15',
                                                        u'utf-8',
                                                        u'windows-874',
                                                        u'windows-1250',
                                                        u'windows-1251',
                                                        u'windows-1252',
                                                        u'windows-1253',
                                                        u'windows-1254',
                                                        u'windows-1255',
                                                        u'windows-1256',
                                                        u'windows-1257',
                                                        u'windows-1258',
                                                        u'koi8-r',
                                                        u'koi8-u'],
                                  'compression-supported': [u'none'],
                                  'copies-default': 1,
                                  'copies-supported': (1, 100),
                                  'device-uri': u'usb:/dev/usb/lp0',
                                  'document-format-default': u'application/octet-stream',
                                  'document-format-supported': [u'application/octet-stream',
                                                                u'application/pdf',
                                                                u'application/postscript',
                                                                u'application/vnd.cups-command',
                                                                u'application/vnd.cups-form',
                                                                u'application/vnd.cups-postscript',
                                                                u'application/vnd.cups-raster',
                                                                u'application/vnd.cups-raw',
                                                                u'application/vnd.hp-hpgl',
                                                                u'application/x-cshell',
                                                                u'application/x-perl',
                                                                u'application/x-shell',
                                                                u'image/gif',
                                                                u'image/jpeg',
                                                                u'image/png',
                                                                u'image/tiff',
                                                                u'image/x-alias',
                                                                u'image/x-bitmap',
                                                                u'image/x-photocd',
                                                                u'image/x-portable-anymap',
                                                                u'image/x-portable-bitmap',
                                                                u'image/x-portable-graymap',
                                                                u'image/x-portable-pixmap',
                                                                u'image/x-sgi-rgb',
                                                                u'image/x-sun-raster',
                                                                u'image/x-xbitmap',
                                                                u'image/x-xpixmap',
                                                                u'text/html',
                                                                u'text/plain'],
                                  'finishings-default': 3,
                                  'finishings-supported': [3],
                                  'generated-natural-language-supported': [u'en'],
                                  'ipp-versions-supported': [u'1.0', u'1.1'],
                                  'job-hold-until-default': u'no-hold',
                                  'job-hold-until-supported': [u'no-hold',
                                                               u'indefinite',
                                                               u'day-time',
                                                               u'evening',
                                                               u'night',
                                                               u'second-shift',
                                                               u'third-shift',
                                                               u'weekend'],
                                  'job-k-limit': 0,
                                  'job-page-limit': 0,
                                  'job-priority-default': 50,
                                  'job-priority-supported': [100],
                                  'job-quota-period': 0,
                                  'multiple-document-handling-supported': [u'separate-documents-uncollated-copies',
                                                                           u'separate-documents-collated-copies'],
                                  'multiple-document-jobs-supported': True,
                                  'multiple-operation-time-out': 60,
                                  'natural-language-configured': u'en',
                                  'number-up-default': 1,
                                  'number-up-supported': [1, 2, 4, 6, 9, 16],
                                  'operations-supported': [2,
                                                           4,
                                                           5,
                                                           6,
                                                           8,
                                                           9,
                                                           10,
                                                           11,
                                                           12,
                                                           13,
                                                           16,
                                                           17,
                                                           18,
                                                           20,
                                                           34,
                                                           35,
                                                           16385,
                                                           16386,
                                                           16387,
                                                           16388,
                                                           16389,
                                                           16390,
                                                           16391,
                                                           16392,
                                                           16393,
                                                           16395,
                                                           16396],
                                  'orientation-requested-default': 3,
                                  'orientation-requested-supported': [3,
                                                                      4,
                                                                      5,
                                                                      6],
                                  'page-ranges-supported': True,
                                  'pdl-override-supported': [u'not-attempted'],
                                  'printer-current-time': '(IPP_TAG_DATE)',
                                  'printer-info': u'usbprinter1',
                                  'printer-is-accepting-jobs': True,
                                  'printer-location': u'',
                                  'printer-make-and-model': u'Local Raw Printer',
                                  'printer-more-info': u'ipp://USBStation:631/printers/usbprinter1',
                                  'printer-name': u'usbprinter1',
                                  'printer-state': 3,
                                  'printer-state-message': u'',
                                  'printer-state-reasons': [u'none'],
                                  'printer-state-time': 0,
                                  'printer-type': 0,
                                  'printer-up-time': 1315927252,
                                  'printer-uri-supported': [u'ipp://USBStation:631/printers/usbprinter1'],
                                  'queued-job-count': 0,
                                  'uri-authentication-supported': [u'requesting-user-name'],
                                  'uri-security-supported': [u'none']}}
Page 8 (Verify packages):
{'packages_verification': {'cups': [],
                           'foomatic': ['package foomatic is not installed'],
                           'gutenprint': ['package gutenprint is not installed'],
                           'hpijs': ['package hpijs is not installed'],
                           'hplip': [],
                           'system-config-printer': []}}
Page 9 (Locale issues):
{'printer_page_size': None,
 'system_locale_lang': 'fr_FR',
 'user_locale_ctype': 'fr_FR',
 'user_locale_messages': 'fr_FR'}
Comment 1 Manuel Hiebel 2011-10-30 12:48:31 CET
Hello, sorry for the delay, is this bug still valid ?

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

Comment 2 Jacques Pronchery 2011-10-30 13:41:29 CET
Yes it is.
The config with ipp:// doesn't works.
Florian Hubold 2011-11-01 12:56:11 CET

Status: NEW => ASSIGNED
CC: (none) => doktor5000
Assignee: bugsquad => doktor5000

Manuel Hiebel 2011-11-11 01:28:07 CET

Component: Installer => RPM Packages

Comment 3 Florian Hubold 2011-12-12 15:41:49 CET
When trying to add it directly via CUPS web frontend http://127.0.0.1:631/  does it find your network printer and are you able to add it?
Comment 4 Jacques Pronchery 2011-12-12 17:28:14 CET
Yes via CUPS web frontend it's OK,
it find my network printer and I can configure it.
System-Config-Printer find my printer but it cannot continue with ipp.
It can continue with smb but the configuration is not good.
Comment 5 D Morgan 2011-12-18 13:49:07 CET
can you try with new cups ?

CC: (none) => dmorganec

Comment 6 Jacques Pronchery 2011-12-18 20:35:08 CET
I have problems with the new cups,
it start but do not respond to firefox.
Comment 7 Jacques Pronchery 2011-12-21 11:18:16 CET
It's an other problem with X. If I use the driver "nouveau" many apps don't work
but with "nvidia" it's OK.
For CUPS if I use web frontend it's OK I can configure my printer and it work.
Then if I open System-Config-Printer it show the printer with a red panel.
If I ask for properties I have 2 messages :
Imprimante << Epson >> : << cups-ipp-conformance-failure-report >>
Imprimante << Epson >> : << cupq-ipp-missing-job-history >>
Comment 8 Jacques Pronchery 2011-12-21 21:40:30 CET
I have just reinstall Mageia and System-Config-Printer works fine.
Comment 9 Florian Hubold 2012-01-12 20:52:05 CET
Ok, closing then. Feel free to reopen if it happens again.

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

Comment 10 Jacques Pronchery 2012-01-13 12:06:56 CET
System-Config-Printer works but there are some problemes.

If I ask for properties I have 2 messages :
Imprimante << Epson-Stylus-SX405 >> : << cups-ipp-conformance-failure-report >>
Imprimante << Epson-Stylus-SX405 >> : << cupq-ipp-missing-job-history >>
and when I print something the icon of task printing applet do not appear in notify bar.

There is the same problem as bug 2806 the app found the device with his name
(ie "USBStation") but if it is not in /etc/hosts with his IP (192.168.1.123)
CUPS do not found printer for printing.

I am under LXDE and applet of task printing is running.

Why Gimp is needed for System-Config-Printer ?

Status: RESOLVED => REOPENED
Resolution: WORKSFORME => (none)

Comment 11 Florian Hubold 2012-01-28 15:06:52 CET
Please don't mangle so much different information/problems into one bugreport, that's not really helpful.

First, your question about gimp:
What got installed when you installed the printer? Perhaps you mean gutenprint-gimp2, which requires gimp? If you really don't want that, you could do the following on a fresh installation, before you setup your printer in MCC:
urpmi --no-suggests task-printing
which doesn't install gutenprint-gimp2 and in turn also not gimp.

For the /etc/hosts thing, this is IMHO related to name resolution problems, as you have the same problem for a samba share. If your name resolution would be OK, without an entry in /etc/hosts you should be able to 
ping USBStation
and you should get some results, depending on the visibility of that machine.
But this is unrelated here. You should also be able to setup the printer/printserver via it's IP adress if it doesn't work via name.

As you said the setup via cups and now system-config-printer is OK, and you're able to print, i'm closing this one. You need to remember, if we can't reproduce this, and have not enough information what the problem really is, we can't fix it.

Status: REOPENED => RESOLVED
Resolution: (none) => WORKSFORME

Comment 12 Jacques Pronchery 2012-01-28 19:25:16 CET
If I install mageia minimal + task-X + task-lxde + drakconf.
Then I ask in MCC to configure a printer, the system want to install

154 packages (400M) with in the list GIMP and its dependences

Is it normal ???
Comment 13 Florian Hubold 2012-01-29 10:51:16 CET
(In reply to comment #12)
> If I install mageia minimal + task-X + task-lxde + drakconf.
> Then I ask in MCC to configure a printer, the system want to install
> 
> 154 packages (400M) with in the list GIMP and its dependences
> 
> Is it normal ???

Did you read my above comment? Quoting:

"Perhaps you mean gutenprint-gimp2, which requires gimp? If you really don't want that, you could do the following on a fresh installation, before you setup your printer in MCC:
urpmi --no-suggests task-printing
which doesn't install gutenprint-gimp2 and in turn also not gimp."