Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to create print queue, ignoring printer. #148

Closed
paulmenzel opened this issue Sep 3, 2019 · 10 comments
Closed

ERROR: Unable to create print queue, ignoring printer. #148

paulmenzel opened this issue Sep 3, 2019 · 10 comments

Comments

@paulmenzel
Copy link
Contributor

On Debian Sid/unstable, cups-browsed 1.25.4 fails to start.

$ systemctl status cups-browsed.service 
● cups-browsed.service - Make remote CUPS printers available locally
   Loaded: loaded (/lib/systemd/system/cups-browsed.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-09-03 08:35:02 CEST; 47min ago
  Process: 424 ExecStart=/usr/sbin/cups-browsed (code=exited, status=1/FAILURE)
 Main PID: 424 (code=exited, status=1/FAILURE)

Starting it manually with the switch --debug, I see the messages below.

$ sudo /usr/sbin/cups-browsed --debug
Tue Sep  3 09:06:54 2019 Reading command line option --debug, turning on debug mode (Log on standard error).
Tue Sep  3 09:06:54 2019 cups-browsed of cups-filters version 1.25.4 starting.
Tue Sep  3 09:06:54 2019 Reading config: BrowseRemoteProtocols dnssd cups
Tue Sep  3 09:06:54 2019 No "Browse..." line at all, accept all servers ("BrowseOrder Deny,Allow").
Tue Sep  3 09:06:54 2019 main() in THREAD 140164762878016
Tue Sep  3 09:06:54 2019 cups-browsed: Creating http connection to local CUPS daemon: /var/run/cups/cups.sock:631
Tue Sep  3 09:06:54 2019 update_netifs() in THREAD 140164762878016
Tue Sep  3 09:06:54 2019 network interface lo: Local host name/address: 127.0.0.1
Tue Sep  3 09:06:54 2019 network interface lo: Local host name/address: localhost
Tue Sep  3 09:06:54 2019 network interface enp34s0: Local host name/address: 192.168.1.2
Tue Sep  3 09:06:54 2019 network interface enp34s0: Local host name/address: XXX
Tue Sep  3 09:06:54 2019 Network interface enp34s0 at 192.168.1.2 for legacy CUPS browsing/broadcasting
Tue Sep  3 09:06:54 2019 network interface lo: Local host name/address: ::1
Tue Sep  3 09:06:54 2019 network interface enp34s0: Local host name/address: fe80::aa4b:e3c3:be18:e548
Tue Sep  3 09:06:54 2019 cups-browsed [BrowsePoll /var/run/cups/cups.sock:0]: IPP-Create-Subscription
Tue Sep  3 09:06:54 2019 cups-browsed [BrowsePoll /var/run/cups/cups.sock:0]: subscription ID=1672
Tue Sep  3 09:06:54 2019 cups-browsed (/var/run/cups/cups.sock): cupsEnumDests
Tue Sep  3 09:06:54 2019 Could not determine system default printer!
Tue Sep  3 09:06:54 2019 find_previous_queue() in THREAD 140164762878016
Tue Sep  3 09:06:54 2019 get-printer-attributes IPP call failed on printer epson_wf_2660_series (implicitclass://EPSON_WF_2660_Series/).
Tue Sep  3 09:06:54 2019 ERROR: Unable to create print queue, ignoring printer.
Tue Sep  3 09:06:54 2019 ERROR: Unable to allocate memory.

Without cups-browsed running, printing of course fails with the error below.

[Job 143] No destination host name supplied by cups-browsed for printer \"EPSON_WF_2660_Series\", is cups-browsed running?
@paulmenzel
Copy link
Contributor Author

Updating CUPS from 2.2.12-2 to 2.3.0-1 does not fix this.

@paulmenzel
Copy link
Contributor Author

Downgrading the packages cups-filters and cups-browsed from 1.25.4 to 1.25.3 also does not help.

@paulmenzel
Copy link
Contributor Author

No, idea if the information below helps.

$ wget https://raw.githubusercontent.com/steveathon/cups/master/test/get-printer-attributes-2.0.test
$ ipptool -tv ipp://EPSON73FFDE.local:631/ipp/print get-printer-attributes-2.0.test

The output is in a separate file ipptool-tv-output.txt.

@paulmenzel
Copy link
Contributor Author

Downgrading to cups-filters and cups-browsed to 1.21.6-5 from Debian stable/buster does make it work again.

@tillkamppeter
Copy link
Member

@deepak0405, could you have a look into this, it seems to be caused by your major changes.

@tillkamppeter
Copy link
Member

@deepak0405, the printer returns correct data on the get-printer-attributes IPP request, so something seems to go wrong when you handle the data and generate the PPD file.
@paulmenzel, there was a substantial change in cups-browsed in the 1.24.0 release of cups-filters. Probably this introduced the problem.

@paulmenzel
Copy link
Contributor Author

I submitted a bug to Debian’s Bug Tracking System, and it was assigned the number 939316.

@tillkamppeter
Copy link
Member

@paulmenzel, I think submitting to Debian does not help much, as this is most probably a problem of cups-browsed itself, not of the Debian packaging.

@paulmenzel
Copy link
Contributor Author

@paulmenzel, I think submitting to Debian does not help much, as this is most probably a problem of cups-browsed itself, not of the Debian packaging.

In this case, this is to inform the package maintainer, and to document it for other Debian users. The Debian BTS can and should also be used for upstream issue (and I tagged it accordingly), so the opinions sometimes differ from maintainer to maintainer.

@tillkamppeter
Copy link
Member

Fixed in commit a20ae81. Thank you for the bug report.
Problem was that there was a left over locally generated print queue (with "implicitclass://..." URI) from a crashed (or not cleanly shut down) cups-browsed and on the next start cups-browsed picked up this queue and tried a get-printer-attributes request on the "implicitclass://..." URI and this caused a fatal error.
Now I prevented these attemts and also removed the wrong fatality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants