michaelrsweet / lprint

A Label Printer Application
https://www.msweet.org/lprint
Apache License 2.0
219 stars 29 forks source link

Trying to Setup Zebra LP2844 Unable to Communicate #96

Closed hagensieker closed 6 months ago

hagensieker commented 1 year ago

I have an LP 2884z configured as a network printer. Installed LPrint 1.2 and went to the web @ localhost:8000

I can set up a printer and print a successful test page however when adding the printer via Bonjour (it shows up) it tells me it is unable to communicate with the printer at this time. Using MacOS 16.2

Unable to connect to ‘Zebra LPrint ._ipps._tcp.local.’ due to an error. Would you still like to create the printer?

Any help appreciated.

hagensieker commented 1 year ago

Additional info from log files.

I [2023-02-14T17:24:28.557Z] [Client 19] Closing connection from 'localhost'. I [2023-02-14T17:26:32.577Z] [Client 23] Accepted connection from '192.168.20.201'. I [2023-02-14T17:26:32.581Z] [Client 23] Starting HTTPS session. E [2023-02-14T17:26:34.748Z] [Client 23] Unable to encrypt connection: Unable to create server credentials. I [2023-02-14T17:26:34.748Z] [Client 23] Closing connection from '192.168.20.201'.

Siedlerchr commented 8 months ago

i have the same problem with A Zebra ZT411, it seems like the error message is coming from PAPPL. I tried both with and without "no-tls" option but that makes no difference Running on macOS Ventura with latest release of LPrint https://github.com/michaelrsweet/pappl/blob/7c37920ad4b2d244651e221debffe014c78cf5b3/pappl/client.c#L302-L316

bnemura commented 8 months ago

Unable to encrypt connection: Unable to create server credentials

I think I had a similar problem when I first tried using LPrint cross-built from source in an embedded system. IIRC the problem was the directory used for the self-generated/signed server cert was not present and/or writable.

michaelrsweet commented 7 months ago

Try creating the "/etc/cups/ssl" directory and see if that fixes things? I'll be building future packages with a newer version of libcups that automatically creates this directory as needed...

Siedlerchr commented 7 months ago

Yep, that solved the issue!