1 network printer + 3 configurations (copies) disappear

Bug #1829643 reported by FrankStefani
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Medium
Unassigned

Bug Description

###-----
### NOTE English is not my native language, I do my best ...
###-----

Distribution is Lubuntu (Ubuntu-19.04).

###-----
### NOTE by request
###-----
# cat /proc/version_signature
Ubuntu 5.0.0-15.16-generic 5.0.6

# apt-cache policy cups
cups:
  Installed: 2.2.10-4ubuntu1
  Candidate: 2.2.10-4ubuntu1
  Version table:
 *** 2.2.10-4ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.2.10-4 500
        500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages

# lsb_release -rd
Description: Ubuntu 19.04
Release: 19.04

###-----
### NOTE starting point
###-----
My printing system for the last 12-15 years based on cups had/has the following setup:

* 1 network laser printer "Brother MFC 9142CDN"
* 3 "symbolic" printers which are copies of the former, configured to set defaults for particular uses: "monoprinter" (grayscale), "colorprinter" (full color) and "labelprinter" (use of manual feed)

The "Brother MFC 9142CDN" was instantly discovered and completely PPD configured and successfully tested with a fresh Lubuntu-19.04 install, last week.

###-----
### NOTE by request: see attachment for "ubuntu-bug cups" output
###-----

###-----
### NOTE After first install and fresh configuration my printer setup looks as follows
###-----
# lpstat -s
device for Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print
device for colorprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
device for labelprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
device for monoprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
# ls -l ppd/
total 96
-rw-rw-r-- 1 root lp 8619 May 12 18:07 Brother_MFC_9142CDN.ppd
-rw-rw-r-- 1 root lp 8619 May 12 18:07 Brother_MFC_9142CDN.ppd.O
-rw-r----- 1 root lp 8617 May 17 21:00 colorprinter.ppd
-rw-r----- 1 root lp 8635 May 17 20:56 colorprinter.ppd.O
-rw-r----- 1 root lp 8622 May 17 21:05 labelprinter.ppd
-rw-r----- 1 root lp 8622 May 17 21:01 labelprinter.ppd.O
-rw-r----- 1 root lp 8620 May 17 20:59 monoprinter.ppd
-rw-r----- 1 root lp 8635 May 17 20:58 monoprinter.ppd.O

###-----
### NOTE Only the first of these (Brother_MFC_9142CDN) survives a reboot
###-----
# lpstat -s
device for Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print

###-----
### NOTE strangely, this one also disappears after some minutes
###-----
LANG=en lpstat -s
no system default destination
lpstat: No destinations added.
lpstat: No destinations added.

###-----
### NOTE printers.conf / printers.conf.O - mind the sizes
###
### printers.conf: no printer definition, just standard comment "DO NOT EDIT ..."
### printers.conf.O: only the physical network printer "Brother_MFC_9142CDN" description
### while the 3 other printers (monoprinter, colorprinter, labelprinter) are missing
###-----
# ls -l /etc/cups/printers.conf*
-rw------- 1 root lp 111 Mai 19 08:00 printers.conf
-rw------- 1 root lp 923 Mai 19 07:55 printers.conf.O

###-----
### NOTE the PPDs are also lost at this time
###-----
# ls -l /etc/cups/ppd/
total 0

###-----
### NOTE after my fresh and working configuration, the PPDs looked like this
###
### Only the "Brother_MFC_9142CDN" survives a reboot though it also disappears later.
### Mind the permissions: 664 versus 640 ... don't know why
###-----
# ls -l ppd/
total 96
-rw-rw-r-- 1 root lp 8619 May 12 18:07 Brother_MFC_9142CDN.ppd
-rw-rw-r-- 1 root lp 8619 May 12 18:07 Brother_MFC_9142CDN.ppd.O
-rw-r----- 1 root lp 8617 May 17 21:00 colorprinter.ppd
-rw-r----- 1 root lp 8635 May 17 20:56 colorprinter.ppd.O
-rw-r----- 1 root lp 8622 May 17 21:05 labelprinter.ppd
-rw-r----- 1 root lp 8622 May 17 21:01 labelprinter.ppd.O
-rw-r----- 1 root lp 8620 May 17 20:59 monoprinter.ppd
-rw-r----- 1 root lp 8635 May 17 20:58 monoprinter.ppd.O

###-----
### NOTE
###
### Apart from the different settings in "/etc/cups/printers.conf" for my 3 copies,
### the DeviceURI is the same for all four. Only the UUID differs
###-----
<Printer Brother_MFC_9142CDN>
UUID urn:uuid:f81a64b6-71d2-3878-71cf-1b1fd6b4dba3
DeviceURI ipp://BRN30055C78CF3B.local:631/ipp/print
</Printer>
<Printer colorprinter>
UUID urn:uuid:63efeecc-be6e-3065-6c0c-9a73bdd0dd62
DeviceURI ipp://BRN30055C78CF3B.local:631/ipp/print
</Printer>
<Printer labelprinter>
UUID urn:uuid:756313d5-4548-327f-666b-9f2edf2c8942
DeviceURI ipp://BRN30055C78CF3B.local:631/ipp/print
</Printer>
<DefaultPrinter monoprinter>
UUID urn:uuid:c4abcfb1-c1f2-34fd-4e8f-514209e3e5e9
DeviceURI ipp://BRN30055C78CF3B.local:631/ipp/print
</DefaultPrinter>
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: frank 1927 F.... pulseaudio
 /dev/snd/controlC0: frank 1927 F.... pulseaudio
CurrentDesktop: LXQt
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2019-05-12 (6 days ago)
InstallationMedia: Lubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
IwConfig:
 enp4s0 no wireless extensions.

 lo no wireless extensions.
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: linux (not installed)
ProcFB: 0 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-15-generic root=UUID=0c829e14-9df5-44b3-abff-7c5c2602e47b ro quiet splash resume=UUID=5e990f4c-e916-4772-88b0-aa9eb5cbe0d5 vga=843 vt.handoff=1
ProcVersionSignature: Ubuntu 5.0.0-15.16-generic 5.0.6
RelatedPackageVersions:
 linux-restricted-modules-5.0.0-15-generic N/A
 linux-backports-modules-5.0.0-15-generic N/A
 linux-firmware 1.178.1
RfKill:

Tags: disco
Uname: Linux 5.0.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sudo vboxusers
_MarkForUpload: True
dmi.bios.date: 07/11/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P2.90
dmi.board.name: Z77 Extreme4
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP2.90:bd07/11/2013:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnZ77Extreme4:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CupsErrorLog:

CurrentDesktop: LXQt
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2019-05-12 (6 days ago)
InstallationMedia: Lubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Lpstat:
 device for Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print
 device for colorprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
 device for labelprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
 device for monoprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: cups 2.2.10-4ubuntu1
PackageArchitecture: amd64
Papersize: letter
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/monoprinter.ppd', '/etc/cups/ppd/colorprinter.ppd', '/etc/cups/ppd/Brother_MFC_9142CDN.ppd', '/etc/cups/ppd/labelprinter.ppd'] failed with exit code 2: grep: /etc/cups/ppd/monoprinter.ppd: Permission denied
 grep: /etc/cups/ppd/colorprinter.ppd: Permission denied
 Brother_MFC_9142CDN: MFC-9142CDN - IPP Everywhere
 grep: /etc/cups/ppd/labelprinter.ppd: Permission denied
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.0.0-15-generic root=UUID=0c829e14-9df5-44b3-abff-7c5c2602e47b ro quiet splash resume=UUID=5e990f4c-e916-4772-88b0-aa9eb5cbe0d5 vga=843 vt.handoff=1
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-15-generic root=UUID=0c829e14-9df5-44b3-abff-7c5c2602e47b ro quiet splash resume=UUID=5e990f4c-e916-4772-88b0-aa9eb5cbe0d5 vga=843 vt.handoff=1
ProcVersionSignature: Ubuntu 5.0.0-15.16-generic 5.0.6
Tags: disco
Uname: Linux 5.0.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sudo vboxusers
_MarkForUpload: True
dmi.bios.date: 07/11/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P2.90
dmi.board.name: Z77 Extreme4
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP2.90:bd07/11/2013:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnZ77Extreme4:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1829643

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: disco
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
FrankStefani (too-clever) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
FrankStefani (too-clever) wrote : CRDA.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : CurrentDmesg.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : Lspci.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : Lsusb.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcEnviron.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcInterrupts.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcModules.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : PulseList.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : UdevDb.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : WifiSyslog.txt

apport information

penalvch (penalvch)
tags: added: latest-bios-p2.90
Revision history for this message
FrankStefani (too-clever) wrote :

LP#1829644 - "44" unfortunately mistyped vor "43" - sorry about that!
I did "43" afterwards, hope it's okay now!?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

FrankStefani, could you please run an apport-collect only once more to gather debugging information against the package cups:
apport-collect 1829643

affects: linux (Ubuntu) → cups (Ubuntu)
Changed in cups (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
FrankStefani (too-clever) wrote : CurrentDmesg.txt

apport information

description: updated
Revision history for this message
FrankStefani (too-clever) wrote : Dependencies.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : KernLog.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : Locale.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : Lspci.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : Lsusb.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : PrintingPackages.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcEnviron.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcInterrupts.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : ProcModules.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote : UdevDb.txt

apport information

Revision history for this message
FrankStefani (too-clever) wrote :

14:45 CEST - done!

Changed in cups (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
Changed in cups (Ubuntu):
importance: Low → Medium
status: Confirmed → New
tags: added: regression-potential
Revision history for this message
FrankStefani (too-clever) wrote :

Maybe another detail: After a perfect running setup (1 + 3 printers o.k.) I shutted the system down and made a cold start about 10 secs later. Immediately after a normal user login, I opened a terminal and started the following loop:

  % while true; do date && lpstat -s; sleep 10; done

Here are the first couple of loops - exactly every 10 seconds - and then the unexpected one (printers disappeard again) after 11 seconds, followed by more 1ß second loops:

% while true; do date && lpstat -s; sleep 10; done
So 19. Mai 15:25:01 CEST 2019
systemvoreingestelltes Ziel: monoprinter
Gerät für Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für colorprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für labelprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für monoprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
So 19. Mai 15:25:12 CEST 2019
systemvoreingestelltes Ziel: monoprinter
Gerät für Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für colorprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für labelprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für monoprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
 ...
 ...
So 19. Mai 15:27:19 CEST 2019
lpstat: Keine Druckziele hinzugefügt.
lpstat: Keine Druckziele hinzugefügt.
Keine systemvoreingestellten Ziele
So 19. Mai 15:27:29 CEST 2019
lpstat: Keine Druckziele hinzugefügt.
lpstat: Keine Druckziele hinzugefügt.
Keine systemvoreingestellten Ziele
So 19. Mai 15:27:39 CEST 2019
lpstat: Keine Druckziele hinzugefügt.
lpstat: Keine Druckziele hinzugefügt.
Keine systemvoreingestellten Ziele
 ...
 ...

This happened while I started firefox to check this bug report for new messages / updates.

Revision history for this message
FrankStefani (too-clever) wrote :

Addition: /etc/cups/printers.conf empty again and not a single file in /etc/cups/ppd

Revision history for this message
FrankStefani (too-clever) wrote :

Did it again (reconfigure, shutdown, reboot) and restarted the loop to check if and when "lpstat -s" changes:

###-----
### NOTE something happened between timestamp 160515 and 160525
###-----
So 19. Mai 16:05:15 CEST 2019
systemvoreingestelltes Ziel: monoprinter
Gerät für Brother_MFC_9142CDN: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für colorprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für labelprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
Gerät für monoprinter: ipp://BRN30055C78CF3B.local:631/ipp/print
So 19. Mai 16:05:25 CEST 2019
Keine systemvoreingestellten Ziele
lpstat: Keine Druckziele hinzugefügt.
lpstat: Keine Druckziele hinzugefügt.

###-----
### NOTE review of /var/log/cups/access_log for this timestamp
###-----
localhost - root [19/May/2019:16:05:19 +0200] "POST /admin/ HTTP/1.1" 200 161 CUPS-Delete-Printer successful-ok
localhost - root [19/May/2019:16:05:19 +0200] "POST /admin/ HTTP/1.1" 200 168 CUPS-Delete-Printer successful-ok
localhost - root [19/May/2019:16:05:19 +0200] "POST /admin/ HTTP/1.1" 200 160 CUPS-Delete-Printer successful-ok
localhost - root [19/May/2019:16:05:19 +0200] "POST /admin/ HTTP/1.1" 200 161 CUPS-Delete-Printer successful-ok

... so at this time the printers were suddenly deleted for no obvious reason.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.