According to the attached log files hp-setup has created a print queue with the same name as a queue created by cups-browsed, overwriting this queue. As cups-browsed removes all the queues it created when it shuts down, it also has removed this queue.
Normally cups-browsed gets a notification from CUPS on any queue modification and if one overwrites one of cups-browsed's queues, cups- browsed releases the queue from its control and so it does not get deleted on shutdown. Only here cups-browsed got shut down too quickly after the queue got overwritten, leaving no time for cups-browsed to receive the notification from CUPS and release the queue from its control. Probably hp-setup restarts CUPS right after creating a queue and this makes systemd restart cups-browsed. To overcome this problem I have now added an additional check to cups- browsed that if it removes a print queue, independent on whether on shutdown or when a printer disappears from DNS-SD (printer turned off or so), it checks whether it perhaps got overwritten and refrains from removing in such a case. I have committed the fix to the upstream GIT of cups-filters: https://github.com/OpenPrinting/cups-filters/commit/4814a2238 If you are familiar with building software from source, please test. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to cups-filters in Ubuntu. https://bugs.launchpad.net/bugs/1731417 Title: Installed network printer removed automatically when turned off Status in cups-filters package in Ubuntu: In Progress Bug description: After installing artful, I configured my HP LaserJet M1212nf via network as usual via hp-setup. Installation worked and I could print/scan via network, but next time I needed to print, the printer was gone from the system. Basically, every time I need to print, I have to install the printer again. I'm not sure when the printer disappears, but I can reproduce consistently. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: hplip-gui 3.17.7+repack0-3 ProcVersionSignature: Ubuntu 4.8.0-59.64-generic 4.8.17 Uname: Linux 4.8.0-59-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl ApportVersion: 2.20.7-0ubuntu3.1 Architecture: amd64 CupsErrorLog: CurrentDesktop: GNOME Date: Fri Nov 10 09:33:12 2017 InstallationDate: Installed on 2017-07-30 (102 days ago) InstallationMedia: Ubuntu-Server 17.10 "Artful Aardvark" - Alpha amd64 (20170730) Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added. MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M. PackageArchitecture: all Papersize: a4 ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-4.8.0-59-generic.efi.signed root=UUID=c2e94423-ace9-437c-ab5b-6dd78d6a052a ro rootflags=subvol=@ quiet splash vt.handoff=7 SourcePackage: hplip UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 10/23/2013 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: F15 dmi.board.asset.tag: To be filled by O.E.M. dmi.board.name: B75M-D3H dmi.board.vendor: Gigabyte Technology Co., Ltd. dmi.board.version: To be filled by O.E.M. dmi.chassis.asset.tag: To Be Filled By O.E.M. dmi.chassis.type: 3 dmi.chassis.vendor: Gigabyte Technology Co., Ltd. dmi.chassis.version: To Be Filled By O.E.M. dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF15:bd10/23/2013:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnB75M-D3H:rvrTobefilledbyO.E.M.:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.: dmi.product.name: To be filled by O.E.M. dmi.product.version: To be filled by O.E.M. dmi.sys.vendor: Gigabyte Technology Co., Ltd. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1731417/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

