Нужно на убунту поставить принтер. Пользователь доменный. HPLIP и плагин установлен. В cups-files добавил строку
SystemGroup lpadmin 'пользователи домена'
Дал пользователю права lpadmin.
В итоге заработало сканирование.
Но печать не идет, включил дебаг и не могу понять, что я делаю не так?
Отправил пробную станицу и вот что в логах доступа:
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
В логах error:
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...