Bug 31191 - system-config-printer doesn't find a network printer (ipp or jetdirect); used to work on M8.
Summary: system-config-printer doesn't find a network printer (ipp or jetdirect); used...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-25 18:24 CET by Robert Fox
Modified: 2022-11-28 21:34 CET (History)
2 users (show)

See Also:
Source RPM: system-config-printer-1.5.18-1.mga9
CVE:
Status comment:


Attachments
Screenshot of adding a new printer in system-config-printer (50.25 KB, image/png)
2022-11-25 18:25 CET, Robert Fox
Details
Attached a shot from Linux Mint running system-config-printer - showing it finds my network printer automatically (41.28 KB, image/png)
2022-11-27 20:42 CET, Robert Fox
Details

Description Robert Fox 2022-11-25 18:24:31 CET
Description of problem:
Both in Cauldron and just tried with fresh install from Mageia 9 Alpha1 ISO - when trying to install a printer for the first time in MCC - it installs many packages including task-printing and system-config-printer

When started, I try to add a new printer - and it shows no printers found (see attached pic) - Same machine under Linux mint finds automagically the IPP printer I have (UTax 357ci) which is a Kyocera OEM network multi-function device

Version-Release number of selected component (if applicable):
system-config-printer-1.5.18-1.mga9

How reproducible:
Everytime also with fresh install of OS - Mageia 9 Alpha1

Steps to Reproduce:
1. Install OS - go to MCC / Hardware and add Printer
2. Installs other packages like task printing
3. Try to add a printer but nothing is found on the network
Comment 1 Robert Fox 2022-11-25 18:25:20 CET
Created attachment 13531 [details]
Screenshot of adding a new printer in system-config-printer

Screenshot of adding a new printer in system-config-printer
Comment 2 sturmvogel 2022-11-25 19:34:11 CET
Did you follow the official documentation how to setup a network printer? You need the IP-adress of the printer and add it to the required input field:
https://doc.mageia.org/mcc/8/en/content/mcc-hardware.html#network_printer
Comment 3 Robert Fox 2022-11-25 19:44:22 CET
I can add the printer manually by putting in the IP - but before it worked by automagically finding it on the network and offering it as a choice (this happens in Linux Mint and in Mageia 8) - I have two Cauldron installs which seem to work automatically - so when I choose "add printer" it scans a bit and offers my printer as advertised!!  When you click on "find a network printer" it should find one!!!  Linux Mint finds my printer automatically without me having to do anything!
Comment 4 Lewis Smith 2022-11-25 21:40:08 CET
I wondered from your screenshot whether you had clicked 'Internet Printing Protocol (ipp)' in the  'Find Network Printer' list. And if you do - what is the result?
I agree this is not 'automagic', but seems the logical thing to do with the dialogue presented.

CC: (none) => lewyssmith

Comment 5 Robert Fox 2022-11-25 22:03:38 CET
If you look at the screenshot - there is a dropdown arrow on "Network Printer" and then again on "Fond Network Printer" - if I click on that arrow - the arrow rotates but nothing else happens (before it would search for a network device and display what it finds) - If i click on ipp or ipps, it asks me "Enter the device URI" . . .
Comment 6 Dave Hodgins 2022-11-25 23:02:45 CET
Have you ensured shorewall isn't blocking the printer?

Quick way to ensure it isn't shorwall.
Add the following lines to /etc/shorewall/rules.drakx and restart shorwall ...
ACCEPT  net:10.0.0.0/8 fw
ACCEPT  net:169.254.0.0/16 fw
ACCEPT  net:172.16.0.0/12 fw
ACCEPT  net:192.168.0.0/16 fw

CC: (none) => davidwhodgins

Comment 7 Robert Fox 2022-11-26 08:18:32 CET
I thought of that and actually turned off the firewall using MCC and drakfirewall - "allow all - no firewall" using the GUI - I will try your suggestion but I thought shorewall is turned off when I do it through the GUI ?!?
Comment 8 Dave Hodgins 2022-11-26 13:18:39 CET
I strongly dislike drakfirewall. Running it will remove anything it doesn't
recognize such as the lines in comment 6, so don't use it much, except when
testing new installations. I'm not sure whether it runs "shorewall stop" which
blocks all incoming connections, or if it runs "shorewall clear" which allows
all connections. Please either run "shorewall clear" which allows everyone
on the internet to connect to your compuer, or try comment 6 which allows all
traffic from withing your lan, no matter which subnet the network interface
is configured to use.
Comment 9 Robert Fox 2022-11-27 12:29:23 CET
I tried both suggestions - but it didn't change anything.  I ran the "shorewall stop" command to completely eliminate the firewall - but system-config.printer still doesn't find any advertised printers - Same machine, same network - from Linux Mint it finds the printer . . .

Here's the output from the console:

 [rfox@FoxLT5 ~]$ sudo system-config-printer
/usr/share/system-config-printer/system-config-printer.py:325: DeprecationWarning: Gtk.ActionGroup.list_actions is deprecated
  for action in printer_manager_action_group.list_actions ():
/usr/share/system-config-printer/system-config-printer.py:326: DeprecationWarning: Gtk.Action.set_sensitive is deprecated
  action.set_sensitive (False)
/usr/share/system-config-printer/system-config-printer.py:334: DeprecationWarning: Gtk.ActionGroup.get_action is deprecated
  act = printer_manager_action_group.get_action (action)
/usr/share/system-config-printer/system-config-printer.py:364: DeprecationWarning: Gtk.UIManager.ensure_update is deprecated
  self.ui_manager.ensure_update ()
/usr/share/system-config-printer/system-config-printer.py:365: DeprecationWarning: Gtk.UIManager.get_accel_group is deprecated
  self.PrintersWindow.add_accel_group (self.ui_manager.get_accel_group ())
/usr/share/system-config-printer/system-config-printer.py:374: DeprecationWarning: Gtk.UIManager.get_action is deprecated
  action = self.ui_manager.get_action ("/new-printer")
/usr/share/system-config-printer/system-config-printer.py:375: DeprecationWarning: Gtk.Action.create_menu_item is deprecated
  newprinteritem = action.create_menu_item ()
/usr/share/system-config-printer/system-config-printer.py:683: DeprecationWarning: Gtk.Action.get_proxies is deprecated
  for widget in action.get_proxies ():
task-printing-server-2018-7.mga9
task-printing-hp-2018-7.mga9
/usr/share/system-config-printer/system-config-printer.py:2264: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter ()
Comment 10 Frank Griffin 2022-11-27 15:05:22 CET
See comment#8.  You need "shorewall clear" to completely shut down shorewall.  "stop" won't cut it.

CC: (none) => ftg

Comment 11 Robert Fox 2022-11-27 20:24:00 CET
I did both stop and clear - didn't seem to help ?!?  Maybe I should try a fresh install and see what happens . . .
Comment 12 Robert Fox 2022-11-27 20:42:01 CET
Created attachment 13536 [details]
Attached a shot from Linux Mint running system-config-printer - showing it finds my network printer automatically

Attached a shot from Linux Mint running system-config-printer - showing it finds my network printer automatically
Comment 13 Robert Fox 2022-11-28 08:44:11 CET
Did a completely fresh install using Mageia 9 Alpha1 ISO - same behviour (out of the box) - no printer is found automatically - FYI
Comment 14 Frank Griffin 2022-11-28 15:12:33 CET
s-c-p has needed some love for a while now.  See https://bugs.mageia.org/show_bug.cgi?id=30398
Comment 15 Robert Fox 2022-11-28 15:17:16 CET
Sad but true . . . but why does this work well in Linux Mint??  They also use s-c-p ?!?
Comment 16 Lewis Smith 2022-11-28 21:34:14 CET
Thank you Robert for all your lengthy trials.

> before it worked by automagically finding it on the network and
> offering it as a choice (this happens in Linux Mint and in Mageia 8)
This is clear enough; but this:

> I have two Cauldron installs which seem to work automatically - so when I 
> choose "add printer" it scans a bit and offers my printer as advertised!
> When you click on "find a network printer" it should find one
is confusing. Assume it repeats the not-shown problem.

This package has had various maintainers, so assigning this bug globally.

Summary: system-config-printer doesn't find a network printer (ipp or jetdirect) => system-config-printer doesn't find a network printer (ipp or jetdirect); used to work on M8.
Assignee: bugsquad => pkg-bugs
CC: lewyssmith => (none)


Note You need to log in before you can comment on or make changes to this bug.