[SOLVED] Debian 11 and CUP upgraded on PI server: How to make reworking my Printer-Scanner server?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
<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.
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.
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
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
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?
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.
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.
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...
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
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.
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
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>
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):
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
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 -
'/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 -
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
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-'
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.