S
S
sflyer2019-10-24 14:19:32
linux
sflyer, 2019-10-24 14:19:32

Ubuntu 19.10 and HP LJ MFP M129 how to set up printing?

You need to put a printer on Ubuntu. Domain user. HPLIP and plugin installed. In cups-files I added the line
SystemGroup lpadmin 'пользователи домена'
Gave lpadmin rights to the user.
As a result, the scan worked.
But the print does not go, I turned on the debug and I can't figure out what I'm doing wrong?
I sent a test page and this is what is in the access logs:

localhost - - [24/Oct/2019:16:04:18 +0500] "POST /printers/HP_LaserJet_MFP_M129-M134 HTTP/1.1" 200 350 Create-Job successful-ok
localhost - - [24/Oct/2019:16:04:18 +0500] "POST /printers/HP_LaserJet_MFP_M129-M134 HTTP/1.1" 200 423176 Send-Document successful-ok
localhost - - [24/Oct/2019:16:04:56 +0500] "POST / HTTP/1.1" 200 453 Create-Printer-Subscriptions successful-ok
localhost - - [24/Oct/2019:16:05:00 +0500] "POST / HTTP/1.1" 200 417 Create-Printer-Subscriptions successful-ok
localhost - - [24/Oct/2019:16:05:01 +0500] "POST / HTTP/1.1" 200 155 Cancel-Subscription successful-ok
localhost - - [24/Oct/2019:16:05:01 +0500] "POST / HTTP/1.1" 200 547 Create-Printer-Subscriptions successful-ok
localhost - - [24/Oct/2019:16:05:04 +0500] "POST /jobs/ HTTP/1.1" 200 200 Cancel-Job successful-ok
localhost - - [24/Oct/2019:16:05:05 +0500] "POST /jobs/ HTTP/1.1" 200 200 Cancel-Job successful-ok
localhost - - [24/Oct/2019:16:05:06 +0500] "POST /jobs/ HTTP/1.1" 200 200 Cancel-Job successful-ok
localhost - - [24/Oct/2019:16:05:08 +0500] "POST / HTTP/1.1" 200 155 Cancel-Subscription successful-ok
localhost - - [24/Oct/2019:16:05:08 +0500] "POST / HTTP/1.1" 200 359 Create-Printer-Subscriptions successful-ok
localhost - - [24/Oct/2019:16:05:08 +0500] "POST / HTTP/1.1" 200 155 Cancel-Subscription successful-ok
localhost - - [24/Oct/2019:16:05:09 +0500] "POST / HTTP/1.1" 200 155 Cancel-Subscription successful-ok
localhost - - [24/Oct/2019:16:05:09 +0500] "POST / HTTP/1.1" 200 305 Create-Printer-Subscriptions successful-ok
localhost - - [24/Oct/2019:16:05:09 +0500] "POST / HTTP/1.1" 200 155 Cancel-Subscription successful-ok
localhost - - [24/Oct/2019:16:06:05 +0500] "POST /printers/HP_LaserJet_MFP_M129-M134 HTTP/1.1" 200 350 Create-Job successful-ok
localhost - - [24/Oct/2019:16:06:05 +0500] "POST /printers/HP_LaserJet_MFP_M129-M134 HTTP/1.1" 200 423176 Send-Document successful-ok
localhost - - [24/Oct/2019:16:09:48 +0500] "POST /printers/HP_LaserJet_MFP_M129-M134_fax HTTP/1.1" 200 434 Print-Job successful-ok
localhost - - [24/Oct/2019:16:10:21 +0500] "POST /jobs HTTP/1.1" 200 139 Release-Job successful-ok
localhost - - [24/Oct/2019:16:10:34 +0500] "POST /jobs HTTP/1.1" 200 139 Release-Job successful-ok

In error logs:
D [24/Oct/2019:16:16:31 +0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [24/Oct/2019:16:16:31 +0500] [Client 3] Server address is "/run/cups/cups.sock".
D [24/Oct/2019:16:16:31 +0500] [Client 3] Accepted from localhost (Domain)
D [24/Oct/2019:16:16:31 +0500] [Client 3] Waiting for request.
I [24/Oct/2019:16:16:31 +0500] Expiring subscriptions...
D [24/Oct/2019:16:16:31 +0500] [Client 3] POST / HTTP/1.1
D [24/Oct/2019:16:16:31 +0500] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [24/Oct/2019:16:16:31 +0500] [Client 3] Read: status=200, state=6
D [24/Oct/2019:16:16:31 +0500] [Client 3] No authentication data provided.
D [24/Oct/2019:16:16:31 +0500] [Client 3] 2.0 CUPS-Get-Default 1
D [24/Oct/2019:16:16:31 +0500] CUPS-Get-Default
D [24/Oct/2019:16:16:31 +0500] [Client 3] Returning IPP successful-ok for CUPS-Get-Default (no URI) from localhost.
D [24/Oct/2019:16:16:31 +0500] [Client 3] Content-Length: 10135
D [24/Oct/2019:16:16:31 +0500] [Client 3] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [24/Oct/2019:16:16:31 +0500] [Client 3] con->http=0x55857f048380
D [24/Oct/2019:16:16:31 +0500] [Client 3] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=10135, response=0x55857f02d340(IPP_STATE_DATA), pipe_pid=0, file=-1
D [24/Oct/2019:16:16:31 +0500] [Client 3] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [24/Oct/2019:16:16:31 +0500] [Client 3] bytes=0, http_state=0, data_remaining=10135
D [24/Oct/2019:16:16:31 +0500] [Client 3] Flushing write buffer.
D [24/Oct/2019:16:16:31 +0500] [Client 3] New state is HTTP_STATE_WAITING
D [24/Oct/2019:16:16:31 +0500] [Client 3] Waiting for request.
D [24/Oct/2019:16:16:31 +0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [24/Oct/2019:16:16:31 +0500] [Client 3] POST / HTTP/1.1
D [24/Oct/2019:16:16:31 +0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [24/Oct/2019:16:16:31 +0500] [Client 3] Read: status=200, state=6
D [24/Oct/2019:16:16:31 +0500] [Client 3] No authentication data provided.
D [24/Oct/2019:16:16:31 +0500] [Client 3] 2.0 CUPS-Get-Printers 2
D [24/Oct/2019:16:16:31 +0500] CUPS-Get-Printers
D [24/Oct/2019:16:16:31 +0500] [Client 3] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
D [24/Oct/2019:16:16:31 +0500] [Client 3] Content-Length: 2371
D [24/Oct/2019:16:16:31 +0500] [Client 3] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [24/Oct/2019:16:16:31 +0500] [Client 3] con->http=0x55857f048380
D [24/Oct/2019:16:16:31 +0500] [Client 3] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2371, response=0x55857f02c7f0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [24/Oct/2019:16:16:31 +0500] [Client 3] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [24/Oct/2019:16:16:31 +0500] [Client 3] bytes=0, http_state=0, data_remaining=2371
D [24/Oct/2019:16:16:31 +0500] [Client 3] Flushing write buffer.
D [24/Oct/2019:16:16:31 +0500] [Client 3] New state is HTTP_STATE_WAITING
D [24/Oct/2019:16:16:31 +0500] [Client 3] Waiting for request.
D [24/Oct/2019:16:16:31 +0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [24/Oct/2019:16:16:32 +0500] [Client 3] POST / HTTP/1.1
D [24/Oct/2019:16:16:32 +0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [24/Oct/2019:16:16:32 +0500] [Client 3] Read: status=200, state=6
D [24/Oct/2019:16:16:32 +0500] [Client 3] No authentication data provided.
D [24/Oct/2019:16:16:32 +0500] [Client 3] 2.0 CUPS-Get-Printers 3
D [24/Oct/2019:16:16:32 +0500] CUPS-Get-Printers
D [24/Oct/2019:16:16:32 +0500] [Client 3] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
D [24/Oct/2019:16:16:32 +0500] [Client 3] Content-Length: 451
D [24/Oct/2019:16:16:32 +0500] [Client 3] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
I [24/Oct/2019:16:16:32 +0500] Expiring subscriptions...
D [24/Oct/2019:16:16:32 +0500] [Client 3] con->http=0x55857f048380
D [24/Oct/2019:16:16:32 +0500] [Client 3] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=451, response=0x55857f04bf10(IPP_STATE_DATA), pipe_pid=0, file=-1
D [24/Oct/2019:16:16:32 +0500] [Client 3] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [24/Oct/2019:16:16:32 +0500] [Client 3] bytes=0, http_state=0, data_remaining=451
D [24/Oct/2019:16:16:32 +0500] [Client 3] Flushing write buffer.
D [24/Oct/2019:16:16:32 +0500] [Client 3] New state is HTTP_STATE_WAITING
D [24/Oct/2019:16:16:32 +0500] [Client 3] Waiting for request.
D [24/Oct/2019:16:16:32 +0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [24/Oct/2019:16:16:32 +0500] [Client 3] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [24/Oct/2019:16:16:32 +0500] [Client 3] Closing connection.
D [24/Oct/2019:16:16:32 +0500] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
I [24/Oct/2019:16:16:33 +0500] Expiring subscriptions...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2019-10-30
@Viji

Try reinstalling CUPS and drivers again, with the user included in the lpadmin group

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question