Bug 21699 - disappearing network printers, reproduced by many users.
Summary: disappearing network printers, reproduced by many users.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: High critical
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-13 05:36 CEST by Tony Blackwell
Modified: 2017-11-16 11:13 CET (History)
10 users (show)

See Also:
Source RPM: cups
CVE:
Status comment:


Attachments
Tony attachment journalctl (345.78 KB, application/x-xz)
2017-09-13 12:40 CEST, Tony Blackwell
Details
Log re: losing printing ability from Marc (447.96 KB, application/x-xz)
2017-09-13 12:48 CEST, Marc Paré
Details
log (387.10 KB, application/octet-stream)
2017-09-13 16:49 CEST, Barry Jackson
Details

Description Tony Blackwell 2017-09-13 05:36:47 CEST
Description of problem:
Hi,
This is a major problem - my HP printers keep disappearing.  never ever seen this before M6.

Install M6, task-printing-hp and task-scanning.  This brings in CUPS.  Restart, run hp-setup as normal user, manually tell it network printer at the address I've configured.  Finds it, installs after giving root pwd, report success.

except:

There is either nothing there at all, or perhaps MCC can see it for a while. I can set it as the default, but it doesn't last.

The HP icon on my xfce toolbar -may show the printer and scanner (MFP) in the window initially opened, but at _no_ point since M6 has the HP device manager on my M6 been able to see the printer it just reported as successfully installed.

Strangely my wife has been able to print OK from her M6, with HP device manager seeing the printers normally.  

Last night however the neighbourhood kids were all grumbling that none of their room-ful of M6 computers was able to print their homework - same problem on them all.  Pinters all vanished.

On my own and the kids computers I've deleted task-printing-hp and cups and re-installed.  Re-installed printers, but they've all gone again.

Help!

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Tony Blackwell 2017-09-13 05:38:38 CEST
... and yes, I've checked - our network is up and working normally.  I can normally 'ping' the vanished printer.

Tony
Comment 2 Tony Blackwell 2017-09-13 07:09:50 CEST
Herewith discussion just now in response to Bill's prompt thoughts via the discuss list:

On 13/09/17 14:18, Bill Unruh wrote:
> Just read your Mageia bug 21669
> 
> What does lpstat -a
> say? Can it see the printer?
> 
> Look in /etc/cups/printers.conf. Is the printer there? Is it owned by 
> root.lp?
> Do ls -l  /etc/cups/ppd/
> is there a ppd file there for the printer?
> 
> Go into /etc/cups/cupsd.conf and set up debugging
> LogLevel debug
> 
>   /etc/cups/cups-files.conf
>   ErrorLog /var/log/cups/error_log
> 
>   If that is already there, look in /var/log/cups/error_log and see if 
> there
>   something there. It is a huge list of stuff but then you might find 
> something
>   suspicious.
> 
 William G. Unruh <snip>
Thanks Bill,
At this moment, its 20 min since I reconfigured the network HP Officejet pro 8600 Plus on my desktop.  It lasted just long enough to print one document, but has now vanished.

lpstat -a    can't see it

/etc/cups/printers.conf contains detailed entries for the printer in printer mode and a separate entry for it in fax mode.

ls -l /etc/cups/ppd is empty - no ppd files, despite the hp-setup utility reporting finding the relevant ppd file during the install.

/etc/cups/cupsd.conf contained LogLevel warn.  I've changed it to debug.

/etc/cups/cups-files.conf shows errorlog pointing at syslog.  I've left it there for now.  Thinking more, is that valid in these systemctl days?  
I see /var/log/syslog doesn't exist.  I've gone back and changed it to /var/log/cups/error_log as you suggest.

I've taken the liberty of copying all this into the bug, your observations included.  Hope this is OK.

Tony
Comment 3 Tony Blackwell 2017-09-13 07:21:34 CEST
... and moments later, I checked MCC -> hardware -> Configure Printers & Scanning which reports nothing installed.  Despite this, xsane still has an entry for the now non-existent scanner and successfully scanned a couple of pages from the ADF.

Eh?
Tony
Comment 4 Barry Jackson 2017-09-13 10:33:13 CEST
Something odd happened yesterday.
I came to print a printed circuit layout that I had printed a couple of days previously without issue.

Nothing appeared wrong until I hit the final "Print" - that is, the printer was selected by name etc. and options for it were there.

But nothing happened - no printing, the job went into the printer queue and sat there 'held'.
I tried re-booting the machine and the printer to no avail.

I then deleted the printer in mcc and re-installed it, whereupon about 5 packages were installed including task-printing and the splix driver (which is essential for my Samsung printer).

Something had removed the driver as it *was* working at weekend!

It's Mga6 that was Cauldron until release of 6. I will check the updates it's had for the last few days when I get to the machine.

CC: (none) => zen25000

Comment 5 Marc Paré 2017-09-13 12:06:15 CEST
Same thing happened on my M6 system as well. All printers are gone.

* I also deleted all of my printers in MCC
* checked to see if task-printing was installed -- it was no longer installed, or at least I thought it was installed
* checked to see if task-printing-scanning was installed -- it was no longer installed ... in fact it installed "Sane" which I normally make sure is installed
* I re-added my printers one-by one
* they all seem to be printing once again

Marc

CC: (none) => marc

Comment 6 Marja Van Waes 2017-09-13 12:14:21 CEST
(In reply to Barry Jackson from comment #4)

> 
> Something had removed the driver as it *was* working at weekend!
> 


Did that happen to the other persons affected by this bug, too?

@ all
Did you see any messages about packages that needed to be removed for others to be upgraded, when updating your system?

Please, each of you, run as root:

  journalctl -a --since="YYYY-MM-DD hh:mm" --until="YYY-MM-DD hh:mm" > log.txt

while replacing the first YYYY-MM-DD hh:mm with the last date and time that printing _still_ worked, and the last YYYY-MM-DD hh:mm with the date and time that you saw for the first time that it had stopped working.

Then run 

  xz log.txt

and attach log.txt.xz to this report.

Thanks :-)

Keywords: (none) => NEEDINFO
Priority: Normal => High
CC: (none) => mageiatools, marja11, pkg-bugs, thierry.vignaud
Severity: major => critical
Summary: disappearing printers => disappearing printers, reproduced by many users. It seems needed packages got removed

Comment 7 Tony Blackwell 2017-09-13 12:40:47 CEST
Created attachment 9669 [details]
Tony attachment journalctl

I've been away a bit.  I _think_ it appeared shortly before I went away 24th August? - and was still an issue when I returned 10 days later.  Attached log perhaps covers too broad a span in this context.
Tony
Comment 8 Marc Paré 2017-09-13 12:48:32 CEST
Created attachment 9670 [details]
Log re: losing printing ability from Marc

Here is my log. Thanks for the help! -- Marc
Comment 9 Frank Griffin 2017-09-13 14:44:42 CEST
If the printer icons still appear in MCC but nothing prints, I would suspect bad ownership/permissions on the devices, but enough people are using the word "disappearing" to make that unlikely.  

If packages are getting uninstalled and devices are disappearing, that smacks of msec misbehavior or possibly some update packaging problem where periodic installation of a new update uninstalls needed packages and doesn't replace them with anything.

CC: (none) => ftg

Comment 10 Barry Jackson 2017-09-13 16:49:44 CEST
Created attachment 9673 [details]
log

log attached (tar'd as over size limit)

...however I am beginning to doubt my sanity as the log does not agree with my memory. Nor does rpm -qa -last.

There is no sign of any 'splix' being installed last night (Tue), but I do see task-printer-misc being installed on Monday:

task-printing-misc-2011-10.mga6.x86_64        Mon 11 Sep 2017 13:05:28 BST

I distinctly remember needing to make a spare print last night to make test strip and having to re-install the printer which then installed a task-... and ... and ...-splix, but it's not there in the outputs.
I remember being very surprised at the time and wish I had made notes, but I was actually trying to do something with the machine rather than diagnose it.

So, maybe put my comments down to a senior moment for now. :\
Comment 11 James Kerr 2017-09-13 17:53:35 CEST
(In reply to Barry Jackson from comment #10)

IIRC system-config-printer at some stage lists a number of packages that are going to be installed, even though some or all of them are already installed, in which case it skips those that are already installed.

CC: (none) => jim

Comment 12 Barry Jackson 2017-09-14 00:34:10 CEST
Thanks Jim - that explains what I saw.

I'm maybe not losing my marbles yet after all :)
Comment 13 Marja Van Waes 2017-09-14 09:58:34 CEST
(In reply to James Kerr from comment #11)
> (In reply to Barry Jackson from comment #10)
> 
> IIRC system-config-printer at some stage lists a number of packages that are
> going to be installed, even though some or all of them are already
> installed, in which case it skips those that are already installed.

I haven't found time to really dig into the logs, but at first sight no packages seem to get removed. Thanks for the explanation!

From skipping (too) fast over Marc's logs, I got the impression that the problem started after cups-2.2.3-2.mga6 was upgraded to cups-2.2.4-1.mga6, and cups-filters was upgraded, too

If any of you think the problem could have started with that upgrade, then please try downgrading to

cups-2.2.3-2.mga6
cups-common-2.2.3-2.mga6
cups-filesystem-2.2.3-2.mga6
lib(64))cups2-2.2.3-2.mga6
and
cups-filters-1.13.4-2.mga6
lib(64cups-filters1-1.13.4-2.mga6

Source RPM: (none) => cups?
Summary: disappearing printers, reproduced by many users. It seems needed packages got removed => disappearing network printers, reproduced by many users.

Comment 14 Tony Blackwell 2017-09-14 10:24:23 CEST
Ha!
I've just looked at my wife's M6 which is still working normally.  She hasn't updated the relevant packages, which are still all the versions Marja has just listed above.  Seems the problem is likely to be somewhere there.  

All the neighbourhood kids computers and my own have been upgraded and all have the problem.
Comment 15 Tony Blackwell 2017-09-14 10:26:04 CEST
s/upgraded/updated
Comment 16 aguador 2017-09-14 15:27:27 CEST
So this is related to Bug 21424 in Cauldron, except now downgrading (at least for me) also requires re-installation of the printer. That done, I now have a "filter failed" message I need to deal with.

CC: (none) => aguador

Comment 17 Marja Van Waes 2017-09-15 21:58:46 CEST
(In reply to Roy Reese from comment #16)
> So this is related to Bug 21424 in Cauldron, except now downgrading (at
> least for me) also requires re-installation of the printer. That done, I now
> have a "filter failed" message I need to deal with.

You might need to downgrade all your qpdf packages, too, so they match the qpfd version your downgraded cups-filters was built against. (See bug 21444)
Comment 18 Marja Van Waes 2017-09-15 22:00:00 CEST
(In reply to Marja van Waes from comment #17)

> qpfd version your downgraded cups-filters was built against. (See bug 21444)

s/qpfd/qpdf/
Comment 19 Marja Van Waes 2017-10-14 12:39:28 CEST
Is this bug still valid, or did it get fixed?
Comment 20 aguador 2017-10-14 16:14:33 CEST
It's still a problem on my mga6 machine, which is, according to urpmi, fully up to date.

There have been some cups updates in Cauldron where I am able to print. I thought those might have made it to testing and have been waiting release into the mga6.
Comment 21 Tony Blackwell 2017-10-14 19:23:57 CEST
Sorry I'm away from home for the next month and unable to test this.  Not lack of interest!
Comment 22 Marja Van Waes 2017-10-15 17:53:52 CEST
(In reply to Roy from comment #20)
> It's still a problem on my mga6 machine, which is, according to urpmi, fully
> up to date.
> 
> There have been some cups updates in Cauldron where I am able to print. I
> thought those might have made it to testing and have been waiting release
> into the mga6.

cups-2.2.4-1.mga6 is in Mageia 6, there is currently no cups in updates_testing.

Mageia 7 (Cauldron) had more releases:

joequant <joequant> 2.2.4-2.mga7:
+ Revision: 1139460
- fix major bug that causes printers not to get shown in libreoffice
  and KDE.  See https://bugs.archlinux.org/task/54695

tv <tv> 2.2.4-3.mga7:
+ Revision: 1160138
- CUPS may fail to start if NIS groups are used (rhbz#1494558)

tv <tv> 2.2.4-5.mga7:
+ Revision: 1168809
- Cannot browse CUPS servers in GNOME Control Panel Printers (rhbz#1498091)
- Can not get destinations from CUPS server (rhbz#1484916)

It looks like we need those fixes in Mageia 6, too.

Assigning to the cups maintainer, CC'ing all packagers collectively in case one of them wants to help (and because the maintainer is short on time)

Assignee: bugsquad => thierry.vignaud
Source RPM: cups? => cups
Keywords: NEEDINFO => (none)

Comment 23 papoteur 2017-10-16 09:57:37 CEST
The bug of void printer list is referenced here :
https://github.com/apple/cups/issues/5046
The list is void because no default printer is set. 
As workaround, set a default printer.
But it would be better if the cups package would be updated.

CC: (none) => yves.brungard_mageia

Comment 24 James Kerr 2017-11-12 11:54:31 CET
An update for cups is now available for testing. See bug#21864
Comment 25 aguador 2017-11-12 15:39:50 CET
Update installed without problems and Brother DCP-7055W was found by LibreOffice. However, attempting to print from LO and a test page from CUPS both returned "printer in use" messages . . . when it was not. Solved by deleting printer and reinstalling from CUPS which found the driver with no problem.

Note: A change in ISP resulted in changes in IP addresses that WAS updated, as it was on my Cauldron machine with no problem. Nevertheless, I suppose the initial error might have resulted from the change in the network.

We will see what others say, but from my perspective this report can be closed. It's good to be "back in business".
Comment 26 James Kerr 2017-11-16 11:13:58 CET
Fixed in cups-2.2.6

http://advisories.mageia.org/MGAA-2017-0109.html

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


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