LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2023, 01:00 PM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Debian 11 and CUP upgraded on PI server: How to make reworking my Printer-Scanner server?


Hello,
I am trying to make working my raspberry PI1 Debian 11 server again since several days and will post here to see if anybody would have an idea how to make it working.
Several clients are connected to it (home network): lets start with the Debian11 clients.
(later I will have a look at the Microsoft and Android clients).

On the raspberry pi server Debian 11: a scanner/printer is connected via USB. And I would like to access it (again: all worked before) via the home router network.

lpstat -a
Code:
# output..
#HP_Deskjet_2540_series accepting requests since Sat 28 Jan 2023 18:58:19 CET
lsusb -v | grep -A 3 bInterfaceClass.*7
Code:
# output..
#Couldn't open device, some information will be missing
#      bInterfaceClass         7 Printer
#      bInterfaceSubClass      1 Printer
#      bInterfaceProtocol      4 
#      iInterface              0
lsusb
Code:
# output..
#Bus 001 Device 004: ID 03f0:c211 HP, Inc Deskjet 2540 series
#Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
#Bus 001 Device 002: ID 0424:9512 Microchip Technology, Inc. (formerly SMSC) SMC9512/9514 USB Hub
#Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ls -l /dev/bus/usb/001/004
Code:
#crw-rw-r--+ 1 root lp 189, 3 Jan 28 19:43 /dev/bus/usb/001/004
ippfind
Code:
# output..
#ipp://raspberrypi.local:631/printers/HP_Deskjet_2540_series
sudo nano /etc/cups/cupsd.conf
Code:
<Location />
    Order allow,deny
    Allow all
</Location>
driverless
Code:
#ERROR: ippfind (PID 2379) stopped with status 1!
sudo nano /etc/cups/cups-browsed.conf
Code:
CreateIPPPrinterQueues Driverless
sudo nano /etc/ipp-usb/ipp-usb.conf
Code:
#.. the interface parameter in /etc/ipp-usb/ipp-usb.conf to all
#..
interface = all
nano /var/log/cups/error_log
Code:
E [28/Jan/2023:19:25:46 +0100] [CGI] ippfind (PID 2594) stopped with status 1!
E [28/Jan/2023:19:25:46 +0100] [cups-deviced] PID 2583 (driverless) stopped with status 1!
E [28/Jan/2023:19:27:15 +0100] [CGI] ippfind (PID 2631) stopped with status 1!
W [28/Jan/2023:19:28:06 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'HP_Deskjet_2540_series-Gray..\' already exists
The scanner functionality was installed (connected with the use of HPLIP) and more to be done for having it accessed from the clients.
sudo apt-get install sane
sudo apt-get install sane-airscan

scanimage -L
Code:
device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one

On a Client Debian 11 64bits:

by trying to install the printer with the GNOME printer application, giving the link of the network printer
ipp://raspberrypi.local:631/printers/HP_Deskjet_2540_series
into the menue. But this is not accepted. Probably this is creating the errors above.

In a browser I could activate this https://raspberrypi:631/printers/HP_Deskjet_2540_series
Beschreibung: HP Deskjet 2540 series
Ort: xxxx
Treiber: Deskjet 2540 Series, hpcups 3.21.2 - IPP Everywhere (farbig, 2-seitiges Drucken)
Verbindung: ipp://raspberrypi.local:631/printers/HP_Deskjet_2540_series
Standardeinstellungen: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

but the printer dont appear in the printing applications

and
Quote:
sudo sane-find-scanner
dont announce anything but errors which can be seen on the server
dmesg
Quote:
..
[ 7808.050232] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 7810.516973] usblp0: removed
[ 7815.886538] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 7816.034429] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 7818.492526] usblp0: removed
[ 7823.866886] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 7824.017644] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 7826.519492] usblp0: removed
[ 7831.887687] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 7832.034217] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 7834.506850] usblp0: removed
I suppose diverse errors are occuring:
- setup ipp-usb
- conflict setups printing / scanning
Any idea or advice is welcome.

Last edited by floppy_stuttgart; 01-28-2023 at 01:18 PM.
 
Old 01-28-2023, 02:31 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Can you print successfully from the Pi itself?
If a firewall is running does it allow TCP and UDP traffic on port 631?
Is "shared printers connected to this system" option enabled in cups?
Is sharing for the HP_Deskjet_2540_series queue enabled?

That should allow the other debian clients to automatically "see" and use the shared printer and should be displayed something like HP_Deskjet_2540_series_raspberrypi in the lpstat output or in the cups web interface.

The above assumes that everything is the same on the Pi as a regular x86 PC but since ippfind does not work it depends on what is not working.

I don't use a scanner but make sure that saned is configured for your network and is running.
https://wiki.debian.org/SaneOverNetwork

If a firewall is running SANE uses TCP 6566 and you also need to allow data port range as shown in the arch wiki.
https://wiki.archlinux.org/title/SANE
 
Old 01-29-2023, 12:08 PM   #3
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Answer below to the first questions (I will read the other informations regarding SANE which were already my reading the last few days)
Quote:
Originally Posted by michaelk View Post
Can you print successfully from the Pi itself?
If a firewall is running does it allow TCP and UDP traffic on port 631?
Is "shared printers connected to this system" option enabled in cups?
Is sharing for the HP_Deskjet_2540_series queue enabled?
Code:
Can you print successfully from the Pi itself?
No. testpages dont comes out (from the pi server accessed via a browser https://raspberrypi:631/printers/HP_Deskjet_2540_series. Looks like they go into the queue but dont come out. See attached picture.

Code:
If a firewall is running does it allow TCP and UDP traffic on port 631?
an home router is used to connect all PC / devices / router around the house. You mean this router? or the pi server? Then I must have a look at advices in the internet how to allow this (no knowledge how to do).

Is "shared printers connected to this system" option enabled in cups?
I think yes. Not sure where to find this parameter. In cups.conf of the pi print server? On a picture? see attached content
sudo nano /etc/cups/cupsd.conf
Quote:
LogLevel warn
PageLogFormat
MaxLogSize 1m
ErrorPolicy retry-job
#Allow remote access
Port 631
Listen /run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
# Allow remote administration...
Order allow,deny
Allow all
# Allow @LOCAL
</Location>
<Location /admin>
# Allow remote administration...
Order allow,deny
..
Is sharing for the HP_Deskjet_2540_series queue enabled?
I think yes. See pictures.
Attached Thumbnails
Click image for larger version

Name:	Bildschirmfoto vom 2023-01-29 18-47-39.png
Views:	7
Size:	156.9 KB
ID:	40371   Click image for larger version

Name:	Bildschirmfoto vom 2023-01-29 18-53-21.png
Views:	10
Size:	79.4 KB
ID:	40372   Click image for larger version

Name:	Bildschirmfoto vom 2023-01-29 18-53-40.png
Views:	7
Size:	55.4 KB
ID:	40373   Click image for larger version

Name:	Bildschirmfoto vom 2023-01-29 19-00-33.png
Views:	7
Size:	68.4 KB
ID:	40374  
 
Old 01-29-2023, 02:07 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
It all looks reasonable but if you can't print a test page from the Pi that is a problem. I would try setting up the usb printer as shown in the 2nd image and see what happens.
 
Old 01-30-2023, 05:44 AM   #5
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by michaelk View Post
It all looks reasonable but if you can't print a test page from the Pi that is a problem. I would try setting up the usb printer as shown in the 2nd image and see what happens.
I will try.

Before I will do, the printing from a client was showing.. (pipe error..)
tail -n 150 /var/log/cups/error_log
Quote:
D [30/Jan/2023:08:47:36 +0100] Report: stringpool-string-count=766
D [30/Jan/2023:08:47:36 +0100] Report: stringpool-alloc-bytes=9280
D [30/Jan/2023:08:47:36 +0100] Report: stringpool-total-bytes=14624
D [30/Jan/2023:08:47:36 +0100] [Client 9] POST / HTTP/1.1
D [30/Jan/2023:08:47:36 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [30/Jan/2023:08:47:36 +0100] [Client 9] Read: status=200, state=6
D [30/Jan/2023:08:47:36 +0100] [Client 9] No authentication data provided.
D [30/Jan/2023:08:47:36 +0100] [Client 9] 2.0 Renew-Subscription 4
D [30/Jan/2023:08:47:36 +0100] Renew-Subscription /
D [30/Jan/2023:08:47:36 +0100] cupsdIsAuthorized: requesting-user-name="xxxx"
D [30/Jan/2023:08:47:36 +0100] cupsdMarkDirty(----S)
D [30/Jan/2023:08:47:36 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [30/Jan/2023:08:47:36 +0100] [Client 9] Returning IPP successful-ok for Renew-Subscription (/) from localhost.
D [30/Jan/2023:08:47:36 +0100] [Client 9] Content-Length: 106
D [30/Jan/2023:08:47:36 +0100] [Client 9] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [30/Jan/2023:08:47:36 +0100] [Client 9] con->http=0x55fd31a89020
D [30/Jan/2023:08:47:36 +0100] [Client 9] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=106, response=0x55fd31a30fd0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [30/Jan/2023:08:47:36 +0100] [Client 9] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [30/Jan/2023:08:47:36 +0100] [Client 9] bytes=0, http_state=0, data_remaining=106
D [30/Jan/2023:08:47:36 +0100] [Client 9] Flushing write buffer.
D [30/Jan/2023:08:47:36 +0100] [Client 9] New state is HTTP_STATE_WAITING
D [30/Jan/2023:08:47:36 +0100] [Client 9] Waiting for request.
D [30/Jan/2023:08:47:36 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [30/Jan/2023:08:47:36 +0100] [Client 9] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [30/Jan/2023:08:47:36 +0100] [Client 9] Closing connection.
D [30/Jan/2023:08:47:36 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [30/Jan/2023:08:47:37 +0100] Expiring subscriptions...
I [30/Jan/2023:08:48:07 +0100] Saving subscriptions.conf...
D [30/Jan/2023:08:48:07 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [30/Jan/2023:08:48:07 +0100] Expiring subscriptions...
D [30/Jan/2023:09:45:56 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [30/Jan/2023:09:45:56 +0100] [Client 10] Server address is "/run/cups/cups.sock".
D [30/Jan/2023:09:45:56 +0100] [Client 10] Accepted from localhost (Domain)
D [30/Jan/2023:09:45:56 +0100] [Client 10] Waiting for request.
I [30/Jan/2023:09:45:56 +0100] Expiring subscriptions...
D [30/Jan/2023:09:45:56 +0100] cupsdAddCert: Adding certificate for PID 0
D [30/Jan/2023:09:45:56 +0100] Report: clients=1
D [30/Jan/2023:09:45:56 +0100] Report: jobs=2
D [30/Jan/2023:09:45:56 +0100] Report: jobs-active=0
D [30/Jan/2023:09:45:56 +0100] Report: printers=1
D [30/Jan/2023:09:45:56 +0100] Report: stringpool-string-count=766
D [30/Jan/2023:09:45:56 +0100] Report: stringpool-alloc-bytes=9280
D [30/Jan/2023:09:45:56 +0100] Report: stringpool-total-bytes=14624
D [30/Jan/2023:09:45:56 +0100] [Client 10] POST / HTTP/1.1
D [30/Jan/2023:09:45:56 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [30/Jan/2023:09:45:56 +0100] [Client 10] Read: status=200, state=6
D [30/Jan/2023:09:45:56 +0100] [Client 10] No authentication data provided.
D [30/Jan/2023:09:45:56 +0100] [Client 10] 2.0 Renew-Subscription 5
D [30/Jan/2023:09:45:56 +0100] Renew-Subscription /
D [30/Jan/2023:09:45:56 +0100] cupsdIsAuthorized: requesting-user-name="xxxx"
D [30/Jan/2023:09:45:56 +0100] cupsdMarkDirty(----S)
D [30/Jan/2023:09:45:56 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [30/Jan/2023:09:45:56 +0100] [Client 10] Returning IPP successful-ok for Renew-Subscription (/) from localhost.
D [30/Jan/2023:09:45:56 +0100] [Client 10] Content-Length: 106
D [30/Jan/2023:09:45:56 +0100] [Client 10] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [30/Jan/2023:09:45:56 +0100] [Client 10] con->http=0x55fd31a89020
D [30/Jan/2023:09:45:56 +0100] [Client 10] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=106, response=0x55fd31a33fd0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [30/Jan/2023:09:45:56 +0100] [Client 10] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [30/Jan/2023:09:45:56 +0100] [Client 10] bytes=0, http_state=0, data_remaining=106
D [30/Jan/2023:09:45:56 +0100] [Client 10] Flushing write buffer.
D [30/Jan/2023:09:45:56 +0100] [Client 10] New state is HTTP_STATE_WAITING
D [30/Jan/2023:09:45:56 +0100] [Client 10] Waiting for request.
D [30/Jan/2023:09:45:56 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [30/Jan/2023:09:45:56 +0100] [Client 10] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [30/Jan/2023:09:45:56 +0100] [Client 10] Closing connection.
D [30/Jan/2023:09:45:56 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [30/Jan/2023:09:45:57 +0100] Expiring subscriptions...
I [30/Jan/2023:09:46:27 +0100] Saving subscriptions.conf...
D [30/Jan/2023:09:46:27 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [30/Jan/2023:09:46:27 +0100] Expiring subscriptions...
D [30/Jan/2023:10:44:16 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [30/Jan/2023:10:44:16 +0100] [Client 11] Server address is "/run/cups/cups.sock".
D [30/Jan/2023:10:44:16 +0100] [Client 11] Accepted from localhost (Domain)
D [30/Jan/2023:10:44:16 +0100] [Client 11] Waiting for request.
I [30/Jan/2023:10:44:16 +0100] Expiring subscriptions...
D [30/Jan/2023:10:44:16 +0100] cupsdAddCert: Adding certificate for PID 0
D [30/Jan/2023:10:44:16 +0100] Report: clients=1
D [30/Jan/2023:10:44:16 +0100] Report: jobs=2
D [30/Jan/2023:10:44:16 +0100] Report: jobs-active=0
D [30/Jan/2023:10:44:16 +0100] Report: printers=1
D [30/Jan/2023:10:44:16 +0100] Report: stringpool-string-count=766
D [30/Jan/2023:10:44:16 +0100] Report: stringpool-alloc-bytes=9280
D [30/Jan/2023:10:44:16 +0100] Report: stringpool-total-bytes=14624
D [30/Jan/2023:10:44:16 +0100] [Client 11] POST / HTTP/1.1
D [30/Jan/2023:10:44:16 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [30/Jan/2023:10:44:16 +0100] [Client 11] Read: status=200, state=6
D [30/Jan/2023:10:44:16 +0100] [Client 11] No authentication data provided.
D [30/Jan/2023:10:44:16 +0100] [Client 11] 2.0 Renew-Subscription 6
D [30/Jan/2023:10:44:16 +0100] Renew-Subscription /
D [30/Jan/2023:10:44:16 +0100] cupsdIsAuthorized: requesting-user-name="xxxx"
D [30/Jan/2023:10:44:16 +0100] cupsdMarkDirty(----S)
D [30/Jan/2023:10:44:16 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [30/Jan/2023:10:44:16 +0100] [Client 11] Returning IPP successful-ok for Renew-Subscription (/) from localhost.
D [30/Jan/2023:10:44:16 +0100] [Client 11] Content-Length: 106
D [30/Jan/2023:10:44:16 +0100] [Client 11] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [30/Jan/2023:10:44:16 +0100] [Client 11] con->http=0x55fd31a89020
D [30/Jan/2023:10:44:16 +0100] [Client 11] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=106, response=0x55fd31a7e5b0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [30/Jan/2023:10:44:16 +0100] [Client 11] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [30/Jan/2023:10:44:16 +0100] [Client 11] bytes=0, http_state=0, data_remaining=106
D [30/Jan/2023:10:44:16 +0100] [Client 11] Flushing write buffer.
D [30/Jan/2023:10:44:16 +0100] [Client 11] New state is HTTP_STATE_WAITING
D [30/Jan/2023:10:44:16 +0100] [Client 11] Waiting for request.
D [30/Jan/2023:10:44:16 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [30/Jan/2023:10:44:16 +0100] [Client 11] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [30/Jan/2023:10:44:16 +0100] [Client 11] Closing connection.
D [30/Jan/2023:10:44:16 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [30/Jan/2023:10:44:17 +0100] Expiring subscriptions...
I [30/Jan/2023:10:44:47 +0100] Saving subscriptions.conf...
D [30/Jan/2023:10:44:47 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [30/Jan/2023:10:44:47 +0100] Expiring subscriptions...
D [30/Jan/2023:11:42:36 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [30/Jan/2023:11:42:36 +0100] [Client 12] Server address is "/run/cups/cups.sock".
D [30/Jan/2023:11:42:36 +0100] [Client 12] Accepted from localhost (Domain)
D [30/Jan/2023:11:42:36 +0100] [Client 12] Waiting for request.
I [30/Jan/2023:11:42:36 +0100] Expiring subscriptions...
D [30/Jan/2023:11:42:36 +0100] cupsdAddCert: Adding certificate for PID 0
D [30/Jan/2023:11:42:36 +0100] Report: clients=1
D [30/Jan/2023:11:42:36 +0100] Report: jobs=2
D [30/Jan/2023:11:42:36 +0100] Report: jobs-active=0
D [30/Jan/2023:11:42:36 +0100] Report: printers=1
D [30/Jan/2023:11:42:36 +0100] Report: stringpool-string-count=766
D [30/Jan/2023:11:42:36 +0100] Report: stringpool-alloc-bytes=9280
D [30/Jan/2023:11:42:36 +0100] Report: stringpool-total-bytes=14624
D [30/Jan/2023:11:42:36 +0100] [Client 12] POST / HTTP/1.1
D [30/Jan/2023:11:42:36 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [30/Jan/2023:11:42:36 +0100] [Client 12] Read: status=200, state=6
D [30/Jan/2023:11:42:36 +0100] [Client 12] No authentication data provided.
D [30/Jan/2023:11:42:36 +0100] [Client 12] 2.0 Renew-Subscription 7
D [30/Jan/2023:11:42:36 +0100] Renew-Subscription /
D [30/Jan/2023:11:42:36 +0100] cupsdIsAuthorized: requesting-user-name="xxxx"
D [30/Jan/2023:11:42:36 +0100] cupsdMarkDirty(----S)
D [30/Jan/2023:11:42:36 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [30/Jan/2023:11:42:36 +0100] [Client 12] Returning IPP successful-ok for Renew-Subscription (/) from localhost.
D [30/Jan/2023:11:42:36 +0100] [Client 12] Content-Length: 106
D [30/Jan/2023:11:42:36 +0100] [Client 12] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [30/Jan/2023:11:42:36 +0100] [Client 12] con->http=0x55fd31a89020
D [30/Jan/2023:11:42:36 +0100] [Client 12] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=106, response=0x55fd31a7e5b0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [30/Jan/2023:11:42:36 +0100] [Client 12] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [30/Jan/2023:11:42:36 +0100] [Client 12] bytes=0, http_state=0, data_remaining=106
D [30/Jan/2023:11:42:36 +0100] [Client 12] Flushing write buffer.
D [30/Jan/2023:11:42:36 +0100] [Client 12] New state is HTTP_STATE_WAITING
D [30/Jan/2023:11:42:36 +0100] [Client 12] Waiting for request.
D [30/Jan/2023:11:42:36 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [30/Jan/2023:11:42:36 +0100] [Client 12] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [30/Jan/2023:11:42:36 +0100] [Client 12] Closing connection.
D [30/Jan/2023:11:42:36 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [30/Jan/2023:11:42:37 +0100] Expiring subscriptions...
I [30/Jan/2023:11:43:07 +0100] Saving subscriptions.conf...
D [30/Jan/2023:11:43:07 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [30/Jan/2023:11:43:07 +0100] Expiring subscriptions...

I have done it. in https://raspberrypi:631/printers/HP_Deskjet_2540_series
Quote:
Beschreibung: HP Deskjet 2540 series
Ort: Wohnzimmer_EG
Treiber: 2540 Series, hpcups 3.21.2 - IPP Everywhere - IPP Everywhere (farbig, 2-seitiges Drucken)
Verbindung: hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604
Standardeinstellungen: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
No test page comes out.

Now few errors can be seen with dmesg on the pi server
Quote:
[ 593.376599] usb 1-1.3: usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1
[ 595.835806] usb 1-1.3: usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1
[ 598.466220] usb 1-1.3: usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1
[ 600.854014] usb 1-1.3: usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1
[ 603.307502] usb 1-1.3: usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1
Using another driver didnt help. No testpage coming out. https://raspberrypi:631/printers/HP_Deskjet_2540_series
Quote:
Beschreibung: HP Deskjet 2540 series
Ort: Wohnzimmer_EG
Treiber: HP Deskjet 2540 Series, hpcups 3.21.2 (farbig, 2-seitiges Drucken)
Verbindung: hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604
Standardeinstellungen: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

looks like ipp-usb and usb connected printer currently not manageable by the system on the server.
Several path are analyzed:
- upgrade ipp-usb
- delete ipp-usb https://ask.fedoraproject.org/t/usb-...-enabled/20975

Last edited by floppy_stuttgart; 01-30-2023 at 10:27 AM.
 
Old 01-31-2023, 02:48 PM   #6
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
ipp-usb package was updated to the latest available version from debian testing. No improvement.

I will have a look at this now https://fitzcarraldoblog.wordpress.c...ccess-at-last/
since this message appear in dmesg on the pi server
Quote:
"usbfs: interface 1 claimed by usbfs while 'ipp-usb' sets config #1"
and could be the origin.
More to come.
 
Old 02-04-2023, 11:36 AM   #7
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
So far not much progress. Connecting to USB was not positive.

Test print still not comes out.

In a browser https://raspberrypi:631/printers/HP_Deskjet_2540_series , I see

Quote:
Beschreibung: HP Deskjet 2540 series
Ort: Wohnzimmer_EG
Treiber: Deskjet 2540 Series, hpcups 3.21.2 - IPP Everywhere (farbig, 2-seitiges Drucken)
Verbindung: ipp://raspberrypi.local:631/printers/HP_Deskjet_2540_series
Standardeinstellungen: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
lpstat -l -e -r -p (on the server)
Quote:
HP_Deskjet_2540_series permanent ipp://localhost/printers/HP_Deskjet_2540_series ipp://raspberrypi.local:631/printers/HP_Deskjet_2540_series
HP_Deskjet_2540_series_raspberrypi network none ipps://HP%20Deskjet%202540%20series%20%40%20raspberrypi._ipps._tcp.local/cups
scheduler is running
printer HP_Deskjet_2540_series now printing HP_Deskjet_2540_series-57. enabled since Sat 04 Feb 2023 18:12:39 CET
Druckerstatus konnte nicht ermittelt werden:
Form mounted:
Content types: any
Printer types: unknown
Description: HP Deskjet 2540 series
Alerts: none
Location: Wohnzimmer_EG
Connection: direct
Interface: /etc/cups/ppd/HP_Deskjet_2540_series.ppd
On fault: no alert
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner required
Charset sets:
(none)
Default pitch:
Default page size:
Default port settings:
scanimage -L (on the server)
Quote:
device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
A lot of spam in dmeag on the server
Quote:
[ 70.275106] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 70.425780] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 72.955508] usblp0: removed
[ 78.325074] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 78.475810] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 80.971454] usblp0: removed
[ 86.345087] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 86.495921] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
[ 88.935617] usblp0: removed
[ 94.305089] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
[ 94.455911] usblp 1-1.3:1.1: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC211
ls -la /dev/bus/usb/001
Quote:
total 0
drwxr-xr-x 2 root root 120 Jan 1 1970 .
drwxr-xr-x 3 root root 60 Jan 1 1970 ..
crw-rw-rw- 1 root root 189, 0 Feb 4 17:53 001
crw-rw-rw- 1 root root 189, 1 Feb 4 17:53 002
crw-rw-rw- 1 root root 189, 2 Feb 4 17:53 003
crw-rw-rw-+ 1 pi scanner 189, 3 Feb 4 18:25 004
id
Quote:
uid=1000(pi) gid=115(scanner) groups=115(scanner),4(adm),7(lp),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(g ames),100(users),105(input),109(netdev),116(lpadmin),997(gpio),998(i2c),999(spi)
groups (when logged in pi user)
Quote:
scanner adm lp dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi
sudo ipp-usb check
Quote:
Configuration files: OK
IPP over USB devices:
Num Device Vndr:Prod Model
1. Bus 001 Device 004 03f0:c211 "HP Deskjet 2540 series"
in a terminal in pi user
avahi-publish -s test _test._tcp 1234
Quote:
Established under name 'test'
then in another termin in pi user
Quote:
avahi-browse _test._tcp -r
+ eth0 IPv6 test _test._tcp local
+ eth0 IPv4 test _test._tcp local
+ lo IPv4 test _test._tcp local
= eth0 IPv6 test _test._tcp local
hostname = [raspberrypi.local]
address = [2003:c5:9f42:4b00:28f0:db:2ca7:b0a8]
port = [1234]
txt = []
= eth0 IPv4 test _test._tcp local
hostname = [raspberrypi.local]
address = [192.168.178.50]
port = [1234]
txt = []
= lo IPv4 test _test._tcp local
hostname = [raspberrypi.local]
address = [127.0.0.1]
port = [1234]
txt = []
getfacl /dev/bus/usb/001/004
Quote:
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/004
# owner: pi
# group: scanner
user::rw-
group::rw-
group:lp:rw-
group:scanner:rw-
mask::rw-
other::rw-
sudo nano /etc/cups/cupsd.conf (on the server)
Quote:
LogLevel warn
PageLogFormat
MaxLogSize 1m
ErrorPolicy retry-job
Port 631
Listen 192.168.178.50:631
Listen /run/cups/cups.sock
Browsing On
BrowseAddress All
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
Order allow,deny
Allow all
</Location>
<Location /admin>
Allow all
</Location>
<Location /admin/conf>

Any advice / remark is welcome.
 
Old 02-06-2023, 01:36 PM   #8
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
I deleted the whole IPP-USB. Looks better with a standard installation via USB. Less error messages.
Re-install of the whole cups stuff done.
hplip re-installed.
hp-setup -i used to connect the usb printer on the server.

on the pi server
scanimage -L
Quote:
device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
on the pi server
lpstat -v
Quote:
device for HP-Deskjet-2540-series: usb://HP/Deskjet%202540%20series?serial=CN42B3F3SN0604&interface=1
journalctl -xe on the pi server
Quote:
..
Feb 06 20:20:53 raspberrypi sudo[1597]: pam_unix(sudo:session): session opened for user root(uid=0) by pi(uid=1000)
Feb 06 20:20:59 raspberrypi sudo[1597]: pam_unix(sudo:session): session closed for user root
Feb 06 20:23:39 raspberrypi dhcpcd[325]: eth0: Router Advertisement from fe80::5e49:79ff:fed6:85c0
Feb 06 20:24:38 raspberrypi dhcpcd[325]: eth0: Router Advertisement from fe80::5e49:79ff:fed6:85c0
Feb 06 20:25:45 raspberrypi dhcpcd[325]: eth0: Router Advertisement from fe80::5e49:79ff:fed6:85c0
Feb 06 20:28:53 raspberrypi dhcpcd[325]: eth0: Router Advertisement from fe80::5e49:79ff:fed6:85c0
Feb 06 20:29:22 raspberrypi inetd[313]: sane-port/tcp: bind: Address already in use
Feb 06 20:30:45 raspberrypi dhcpcd[325]: eth0: Router Advertisement from fe80::5e49:79ff:fed6:85c0
Scan works again on 2 clients (after using the scanner with a direct wifi scanning). I suppose all fine now on all. Will see.

After using that udev rule format (other did not work):

sudo nano /etc/udev/rules.d/99-libsane.rules
SUBSYSTEM=="usb",ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c211", MODE="0666", GROUP="lp", ENV{libsane_matched}="yes


starting system-config-printer on the Debian11 client, seems to make the install of the printer possible. However no testprint so far dont comes out.


Seems to be stuck now at: hplip not compatible with CUPS on my distro Raspbian on the pi server. Perhaps it has an effect on printing.

hp-check
Quote:
Saving output in log file: /home/pi/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.2)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to
successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version

warning: raspbian distro is not found in AUTH_TYPES
warning: unknown-11 version is not supported. Using unknown-0 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

Kernel: 5.15.91+ #1626 Wed Feb 1 17:33:09 GMT 2023 GNU/Linux
Host: raspberrypi
Proc: 5.15.91+ #1626 Wed Feb 1 17:33:09 GMT 2023 GNU/Linux
Distribution: unknown 11
Bitness: 32 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.21.2
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 11 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.21.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.21.2
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604
printer_name = Deskjet_2540

[installation]
date_time = 02/06/23 20:19:17
version = 3.21.2


<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.53.3 OK -
error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.31 OK -
dbus DBus - Message bus system REQUIRED - 1.12.24 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
network network -wget OPTIONAL - 1.21 OK -
avahi-utils avahi-utils OPTIONAL - 0.8 OK -

------------------------
| General Dependencies |
------------------------

libjpeg libjpeg - JPEG library REQUIRED - - OK -
error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
cups-image CUPS image - CUPS image development files REQUIRED - - OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - - OK -
libavahi-dev libavahi-dev REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.9 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.9.2 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
python3-xml Python XML libraries REQUIRED - 2.2.10 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.9.2 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 8.1.2 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.59 OK -

--------------
| COMPILEDEP |
--------------

libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 10.2.1 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -

---------------------
| Python Extentions |
---------------------

cupsext CUPS-Extension REQUIRED - 3.21.2 OK -
hpmudext IO-Extension REQUIRED - 3.21.2 OK -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
hpaio HPLIP-SANE-Backend REQUIRED - 3.21.2 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.21.2 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

Device URI Model
------------------------------------------------- -----------------------------------------
hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604 HP Deskjet 2540 series

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------


HP-Deskjet-2540-series
----------------------
Type: Unknown
Device URI: usb://HP/Deskjet%202540%20series?serial=CN42B3F3SN0604&interface=1
PPD: /etc/cups/ppd/HP-Deskjet-2540-series.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.21.2
Printer Rendering completedDeskjet-2540-series now printing HP-Deskjet-2540-series-77. enabled since Mon 06 Feb 2023 19:59:19 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.


--------------
| PERMISSION |
--------------

USB None Required - - OK Node:'/dev/bus/usb/001/004' Perm:' root lp rw- rw- rw- rw- rw-'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 5
Total Warnings: 1


Done.

Last edited by floppy_stuttgart; 02-06-2023 at 02:07 PM.
 
Old 02-15-2023, 09:10 AM   #9
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
I updated the server pi with bookworm.

Code:
lpstat -a
HP_Deskjet_2540_series accepting requests since Wed 15 Feb 2023 16:00:50 CET
Code:
sudo /usr/sbin/lpinfo -v 
network beh
file cups-brf:/
network ipps
network lpd
network https
network http
network ipp
network socket
direct hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604
direct hpfax
Code:
ippfind 
ipp://raspberrypi.local:49631/printers/HP-Deskjet-2540-series
Code:
hp-check
Saving output in log file: /home/pi/hp-check.log

HP Linux Imaging and Printing System (ver. 3.22.10)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                    
2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run.                      
3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
will check both of the above cases (both compile- and run-time dependencies).   

Check types:                                                                    
a. EXTERNALDEP - External Dependencies                                          
b. GENERALDEP - General Dependencies (required both at compile and run time)    
c. COMPILEDEP - Compile time Dependencies                                       
d. [All are run-time checks]                                                    
PYEXT SCANCONF QUEUES PERMISSION                                                

Status Types:
    OK
    MISSING       - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

Traceback (most recent call last):
  File "/usr/bin/hp-check", line 860, in <module>
    dep =  DependenciesCheck(MODE_CHECK,INTERACTIVE_MODE,ui_toolkit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/hp-check", line 175, in __init__
    self.core = CoreInstall(mode, ui_mode, ui_toolkit)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/installer/core_install.py", line 240, in __init__
    self.passwordObj = password.Password(ui_mode)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/password.py", line 94, in __init__
    self.__readAuthType()  # self.__authType
    ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/password.py", line 119, in __readAuthType
    distro_name = get_distro_std_name(os_name)
                  ^^^^^^^^^^^^^^^^^^^
NameError: name 'get_distro_std_name' is not defined. Did you mean: 'get_distro_name'?
Code:
scanimage -L
device `hpaio:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
hp-check show an issue. No scan possible from a client. still searching the issue.
 
Old 02-20-2023, 04:53 AM   #10
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
the Testpage dont go out ("Processing Page 1..." is announced for a long time).
See attachment: debug log file from cups.

Has anybody an idea where it could comes from?
Attached Files
File Type: txt cupslog.txt (218.3 KB, 6 views)
 
Old 03-02-2023, 11:04 AM   #11
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
since I see "broken pipe" in

Code:
nano /var/log/cups/error_log
d [02/Mar/2023:17:59:13 +0100] [Client 545] cupsdReadClient: error=0, used=0, state=HTTP_STATE_WAITING, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=0, request=(nil)(), file=-1
D [02/Mar/2023:17:59:13 +0100] [Client 545] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [02/Mar/2023:17:59:13 +0100] [Client 545] Closing connection.
What type of queue should be created on the server?

"All" did not work
"Driverless" did not work.

sudo nano /etc/cups/cups-browsed.conf
#CreateIPPPrinterQueues No
# CreateIPPPrinterQueues LocalOnly
# CreateIPPPrinterQueues Everywhere
# CreateIPPPrinterQueues AppleRaster
# CreateIPPPrinterQueues Everywhere AppleRaster
#CreateIPPPrinterQueues Driverless
#CreateIPPPrinterQueues All

on the server..

Code:
avahi-browse -rt _ipp._tcp
+ wlp0s20f3 IPv6 HP Deskjet 2540 series @ raspberrypi          Internet Printer     local
+ wlp0s20f3 IPv4 HP Deskjet 2540 series @ raspberrypi          Internet Printer     local
= wlp0s20f3 IPv4 HP Deskjet 2540 series @ raspberrypi          Internet Printer     local
   hostname = [raspberrypi.local]
   address = [192.168.178.50]
   port = [631]
   txt = ["printer-type=0x900E" "Color=T" "mopria-certified=1.3" "URF=V1.4,CP1,W8,PQ3-4-5,SRGB24,RS300,FN3" "TLS=1.2" "UUID=52da781d-4ea0-3a01-40e8-7c07a660ed69" "pdl=application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP Deskjet 2546r All-in-one Printer)" "priority=0" "note=192.168.178.50" "adminurl=https://raspberrypi.local.:631/printers/HP-Deskjet-2540" "ty=HP Deskjet 2540 Series, hpcups 3.22.10" "rp=printers/HP-Deskjet-2540" "qtotal=1" "txtvers=1"]
Failed to resolve service 'HP Deskjet 2540 series @ raspberrypi' of type '_ipp._tcp' in domain 'local': Timeout reached

Any advice/recommendation is welcome.

Last edited by floppy_stuttgart; 03-02-2023 at 11:40 AM.
 
Old 04-30-2023, 05:09 AM   #12
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
I have installed/updated the last bookworm for raspberry pi.

uname -a
Quote:
Linux raspberrypi 6.1.11+ #1630 Fri Feb 10 12:01:38 GMT 2023 armv6l GNU/Linux
but now, PPD files are not present.
Any idea where how to get them?

Quote:
hp-setup -i

HP Linux Imaging and Printing System (ver. 3.22.10)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ?

Using connection type: usb


Setting up device: hp:/usb/Deskjet_2540_series?serial=CN42B3F3SN0604



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Deskjet_2540'*, q=quit) ?m
Using queue name: Deskjet_2540
Locating PPD file... Please wait.
error: No PPD found for model deskjet_2540 using old algorithm.
error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? n
error: PPD file required. Setup cannot continue. Exiting.
 
Old 01-09-2024, 08:56 AM   #13
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
I had to install Buster again. Debian 11 did not worked.

Now, all fine again.

Quote:
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Canonical is reworking Snap application packages on Linux LXer Syndicated Linux News 0 01-09-2022 04:45 AM
LXer: Welcome to Ubuntu 18.04: Make yourself at GNOME. Cup of data-slurping dispute, anyone? LXer Syndicated Linux News 0 05-24-2018 08:36 AM
Need help understanding/reworking my partitions Odyssey1942 Linux - Newbie 18 04-15-2016 03:19 AM
New Printer Scanner in Xsane finds new printer/scanner (Brother MFC-6520DW) with error message TrinityBeing Linux - Newbie 23 03-29-2016 10:27 AM
Scanner/Printer Combo Unit - Scanner Works - Printer Does Not rrrssssss Linux - Hardware 1 03-04-2007 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration