-
Notifications
You must be signed in to change notification settings - Fork 34
OPERATION get-printer-attributes fails successfully? #6
Comments
The Puppet agent run is fine until There is one unusual line in the debug log:
It looks like you directly synced the PPD file to The directory |
Indeed: ppd: '/etc/cups/ppd/N3423_Multifunction_Color.ppd' Even if that would work, it would still be problematic, because Say you manually set duplex by default: sudo lpadmin -p MyPrinter -o Duplex=DuplexTumble CUPS will save this setting by modifying the file |
Moving the PPD to Thanks for the change in logging. In addition to your changes, it would be helpful to also see the output of the ipptool program (stdout and stderr) in the logs. Even greater would be the full ipptool call, so people can copy it directly on the console and reproduce and debug the problem without puppet. |
Long story short: Your PPD file is to blame.
Translation: The query is I simply deleted the corresponding lines from the PPD file --- KOC554UX.ppd 2016-06-10 17:44:05.907735575 +0200
+++ KOC554UX-patched.ppd 2016-06-10 17:30:04.890300481 +0200
@@ -216,33 +216,6 @@
*MediaType Thick1/Thick 1: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
/KMOptions /ProcSet findresource /setKMoptions get exec"
*End
-*MediaType Thick1(2nd)/Thick 1(Side2): "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick1Plus/Thick 1+: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thickplus) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick1Plus(2nd)/Thick 1+(Side2): "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thickplus) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick2/Thick 2: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick2) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick2(2nd)/Thick 2(Side2): "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick2) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick3/Thick 3: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick3) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick3(2nd)/Thick 3(Side2): "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick3) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick4/Thick 4: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick4) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType Thick4(2nd)/Thick 4(Side2): "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thick4) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
*MediaType Thin/Thin Paper: "<< /KMMediaType (Plain) /KMMediaColor (None) /KMMediaWeight (Thin) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
/KMOptions /ProcSet findresource /setKMoptions get exec"
*End
@@ -270,162 +243,12 @@
*MediaType Recycled/Recycled: "<< /KMMediaType (UserCustomType20) >>
/KMOptions /ProcSet findresource /setKMoptions get exec"
*End
-*MediaType Recycled(2nd)/Recycled(Side2): "<< /KMMediaType (UserCustomType20) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User1/User1(Plain Paper): "<< /KMMediaType (CustomType) /KMMediaColor (None) /KMMediaWeight (Normal) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User1(2nd)/User1(Plain. Side2): "<< /KMMediaType (CustomType) /KMMediaColor (None) /KMMediaWeight (Normal) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User2/User2(Plain Paper): "<< /KMMediaType (CustomType2) /KMMediaColor (None) /KMMediaWeight (Normal) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User2(2nd)/User2(Plain. Side2): "<< /KMMediaType (CustomType2) /KMMediaColor (None) /KMMediaWeight (Normal) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User3/User3(Thick 1): "<< /KMMediaType (CustomType3) /KMMediaColor (None) /KMMediaWeight (Thick) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User3(2nd)/User3(Thick 1 Side2): "<< /KMMediaType (CustomType3) /KMMediaColor (None) /KMMediaWeight (Thick) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User4/User4(Thick 1+): "<< /KMMediaType (CustomType4) /KMMediaColor (None) /KMMediaWeight (Thickplus) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User4(2nd)/User4(Thick 1+ Side2): "<< /KMMediaType (CustomType4) /KMMediaColor (None) /KMMediaWeight (Thickplus) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User5/User5(Thick 2): "<< /KMMediaType (CustomType5) /KMMediaColor (None) /KMMediaWeight (Thick2) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User5(2nd)/User5(Thick 2 Side2): "<< /KMMediaType (CustomType5) /KMMediaColor (None) /KMMediaWeight (Thick2) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User6/User6(Thick 3): "<< /KMMediaType (CustomType6) /KMMediaColor (None) /KMMediaWeight (Thick3) /MediaTabType (None) /MediaPreprinted false /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType User6(2nd)/User6(Thick 3 Side2): "<< /KMMediaType (CustomType6) /KMMediaColor (None) /KMMediaWeight (Thick3) /MediaTabType (None) /MediaPreprinted true /MediaPrepunched false >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
*MediaType PrinterDefault/Not Specified: "<< /KMMediaType (NoSet) /KMMediaColor (NoSet) /KMMediaWeight (NoSet) >>
/KMOptions /ProcSet findresource /setKMoptions get exec"
*End
*MediaType UserCustomType1/<3C>Custom 1<3E>: "<< /KMMediaType (UserCustomType1) >>
/KMOptions /ProcSet findresource /setKMoptions get exec"
*End
-*MediaType UserCustomType1(2nd)/<3C>Custom 1<3E>(Side2): "<< /KMMediaType (UserCustomType1) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType2/<3C>Custom 2<3E>: "<< /KMMediaType (UserCustomType2) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType2(2nd)/<3C>Custom 2<3E>(Side2): "<< /KMMediaType (UserCustomType2) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType3/<3C>Custom 3<3E>: "<< /KMMediaType (UserCustomType3) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType3(2nd)/<3C>Custom 3<3E>(Side2): "<< /KMMediaType (UserCustomType3) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType4/<3C>Custom 4<3E>: "<< /KMMediaType (UserCustomType4) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType4(2nd)/<3C>Custom 4<3E>(Side2): "<< /KMMediaType (UserCustomType4) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType5/<3C>Custom 5<3E>: "<< /KMMediaType (UserCustomType5) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType5(2nd)/<3C>Custom 5<3E>(Side2): "<< /KMMediaType (UserCustomType5) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType6/<3C>Custom 6<3E>: "<< /KMMediaType (UserCustomType6) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType6(2nd)/<3C>Custom 6<3E>(Side2): "<< /KMMediaType (UserCustomType6) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType7/<3C>Custom 7<3E>: "<< /KMMediaType (UserCustomType7) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType7(2nd)/<3C>Custom 7<3E>(Side2): "<< /KMMediaType (UserCustomType7) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType8/<3C>Custom 8<3E>: "<< /KMMediaType (UserCustomType8) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType8(2nd)/<3C>Custom 8<3E>(Side2): "<< /KMMediaType (UserCustomType8) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType9/<3C>Custom 9<3E>: "<< /KMMediaType (UserCustomType9) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType9(2nd)/<3C>Custom 9<3E>(Side2): "<< /KMMediaType (UserCustomType9) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType10/<3C>Custom 10<3E>: "<< /KMMediaType (UserCustomType10) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType10(2nd)/<3C>Custom 10<3E>(Side2): "<< /KMMediaType (UserCustomType10) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType11/<3C>Custom 11<3E>: "<< /KMMediaType (UserCustomType11) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType11(2nd)/<3C>Custom 11<3E>(Side2): "<< /KMMediaType (UserCustomType11) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType12/<3C>Custom 12<3E>: "<< /KMMediaType (UserCustomType12) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType12(2nd)/<3C>Custom 12<3E>(Side2): "<< /KMMediaType (UserCustomType12) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType13/<3C>Custom 13<3E>: "<< /KMMediaType (UserCustomType13) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType13(2nd)/<3C>Custom 13<3E>(Side2): "<< /KMMediaType (UserCustomType13) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType14/<3C>Custom 14<3E>: "<< /KMMediaType (UserCustomType14) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType14(2nd)/<3C>Custom 14<3E>(Side2): "<< /KMMediaType (UserCustomType14) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType15/<3C>Custom 15<3E>: "<< /KMMediaType (UserCustomType15) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType15(2nd)/<3C>Custom 15<3E>(Side2): "<< /KMMediaType (UserCustomType15) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType16/<3C>Custom 16<3E>: "<< /KMMediaType (UserCustomType16) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType16(2nd)/<3C>Custom 16<3E>(Side2): "<< /KMMediaType (UserCustomType16) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType17/<3C>Custom 17<3E>: "<< /KMMediaType (UserCustomType17) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType17(2nd)/<3C>Custom 17<3E>(Side2): "<< /KMMediaType (UserCustomType17) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType18/<3C>Custom 18<3E>: "<< /KMMediaType (UserCustomType18) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType18(2nd)/<3C>Custom 18<3E>(Side2): "<< /KMMediaType (UserCustomType18) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType19/<3C>Custom 19<3E>: "<< /KMMediaType (UserCustomType19) >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
-*MediaType UserCustomType19(2nd)/<3C>Custom 19<3E>(Side2): "<< /KMMediaType (UserCustomType19) /MediaPreprinted true >>
- /KMOptions /ProcSet findresource /setKMoptions get exec"
-*End
*CloseUI: *MediaType
*OpenUI *PageSize/Paper Size: PickOne and then everything worked as expected. |
Ah, I just noticed that I never gave feedback on this. Sorry -- you did all the work and never got a thanks :-( As you might have assumed, your analysis was right and solved the problem. |
BTW: Upcoming release 2.0.0 comes with a major rewrite due to #19 which not only has better error messages but can actually install the printer with the original malformed BizHub PPD file :-) |
Given Ubuntu 16.04 with Ruby 2.3.0, Puppet 3.8.5 and CUPS 2.1.3.
We have a printer that is specified like this (buggy printer)
(The PPD is copied before to the node and it's there, the ksmb protocol is a custom addition, and the shown hiera fragment gets passed to the corresponding arguments of a
Cups_queue
instance.).To compare, a printer defined like this works: (working printer)
The significant difference here is the use of the
model
parameter, and not theppd
parameter.When running puppet, the printer gets added, but we see the following error in the puppet agent log:
Unfortunately the error message is not very helpful, so I applied this patch to get more debug output, and that's what we get now:
Executing the same commands as the puppet-cups module does on the console for the non-working and the working printer results in that:
The cups
/var/log/cups/error_log
on that node when executing these commands shows this (timestamps removed). Essentially, the CUPS seems to send the same response in both cases.non-working case:
working case:
I don't know where things go wrong. I have the feeling ipptool is not behaving as it should, but do you have an idea why? I think the main difference between the two printers is the PPD file, but I don't see how that would influence this particular request?
The text was updated successfully, but these errors were encountered: