Print: The right to print should be a fundamental right

Hi,

How can I get the RIGHT to print my personal documents as before?

Since the last Kernel update, there are many errors in the logs about scanners, bluetooth, Plasma but above all I need a password to print on my personal printer.
Printing is systematically put on hold.

Hello,

is your user member of group lp (494)?

Regards
Philippe

That should not be required these days. Udev should care of that for USB-connected printer and scanner access. For network-connected devices it is irrelevant in any case.

More information needed here, but to start with please show

lpstat -t
sudo cat /etc/cups/printers.conf
scanimage -L

I discovered that ALL old kernels were removed despite protecting the zypp.conf file from chattr. It has ZERO restart options.

This is a big joke on a Linux system.

No possibility of falling back to a previous kernel to manage current affairs.
The user is not respected. It looks like Microsoft to be mistaken.
This is not the first time that I have noticed that configuration files are overridden by OpenSuse installations.

The GUI restarts in a loop since my initial message and I don’t feel like I’m on Linux.
If I wanted to start from the command line, I would have chosen a command line distribution and not a graphical one.

Leave us some backup kernels and respect us!

@phil524
No lp is alone in his group. This must have already been the case before.

@deano_ferrari

# lpstat -t
scheduler is running
system default destination: DeskJet_3700
device for DeskJet_3700: hp:/net/DeskJet_3700_series?ip=192.168.1.72
device for HP_Color_LaserJet_MFP_M277dw: hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.157
DeskJet_3700 accepting requests since Tue Feb 27 18:31:02 2024
HP_Color_LaserJet_MFP_M277dw accepting requests since Sat Mar 4 17:56:46 2023
printer DeskJet_3700 disabled since Tue Feb 27 18:31:02 2024 -
         reason unknown
printer HP_Color_LaserJet_MFP_M277dw is idle. enabled since Sat Mar 4 17:56:46 2023
DeskJet_3700-76 sylvain 872448 Tue Feb 27 18:30:57 2024
#scanimage -L
device `hpaio:/net/DeskJet_3700_series?ip=192.168.1.72' is a Hewlett-Packard DeskJet_3700_series all-in-one
device `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.157' is a Hewlett-Packard HP_Color_LaserJet_MFP_M277dw all-in-one
# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v2.4.7
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 3
<DefaultPrinter DeskJet_3700>
PrinterId 2
UUID urn:uuid:07631831-1fb4-3e5f-62a1-6c9bcf8c9ccc
Info HP Deskjet 3700 Series, hpcups 3.23.12
Rental
MakeModel HP Deskjet 3700 Series, hpcups 3.23.12
DeviceURI hp:/net/DeskJet_3700_series?ip=192.168.1.72
State Stopped
StateTime 1709055062
ConfigTime 1709054990
Reason paused
Type 4108
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser troubleshooting
AllowUser sylvain
OpPolicy default
ErrorPolicy stop-printer
</DefaultPrinter>
<Printer HP_Color_LaserJet_MFP_M277dw>
PrinterId 1
UUID urn:uuid:28c93fa9-61be-3f42-7c71-8d8dcedfef91
Info
Rental
MakeModel HP Color LaserJet Pro MFP M277 Postscript (recommended)
DeviceURI hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.157
State Idle
StateTime 1677949006
ConfigTime 1677950382
Type 8425500
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser troubleshooting
AllowUser sylvain
OpPolicy default
ErrorPolicy stop-printer
</Printer>

@straight_ahead the default is to keep the latest, latest-1 and running kernels.

Does your printer need a plugin? I have a HP P1102w that does, from memory I had to add back in a few weeks ago for a hplip update…

The printer is disabled. As administrator you can re-enable as required.

@deano_ferrari

Yes I know it is disabled.
I can’t reactivate it permanently because it systematically deactivates and goes back to pause.
I must not know how to do this or I’m not using the right command.
Even the local cups interface produces this result.
This is the reason for my message.

@malcolmlewis

Yes, I completely agree with you. This is the reason why I modified zypp.conf.
But there it’s just the current kernel and zero old kernel

My printer has been working with hplip without anything else for a few years.

@malcolmlewis

# ls -l /boot
total 72816
lrwxrwxrwx 1 root root       48 Feb 26 19:10 .vmlinuz-6.7.6-1-default.hmac -> ../usr/lib/modules/6.7.6-1-default/.vmlinuz.hmac
lrwxrwxrwx 1 root root       29 Feb 26 19:10 .vmlinuz.hmac -> .vmlinuz-6.7.6-1-default.hmac
lrwxrwxrwx 1 root root       45 Feb 26 19:10 System.map-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/System.map
lrwxrwxrwx 1 root root       41 Feb 26 19:10 config-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/config
drwxr-xr-x 5 root root     4096 Jan  1  1970 efi
drwxr-xr-x 1 root root       98 Feb 27 12:44 grub2
lrwxrwxrwx 1 root root       22 Feb 26 19:10 initrd -> initrd-6.7.6-1-default
-rw------- 1 root root 74525831 Feb 27 23:04 initrd-6.7.6-1-default
lrwxrwxrwx 1 root root       46 Feb 26 19:10 sysctl.conf-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/sysctl.conf
lrwxrwxrwx 1 root root       23 Feb 26 19:10 vmlinuz -> vmlinuz-6.7.6-1-default
lrwxrwxrwx 1 root root       42 Feb 26 19:10 vmlinuz-6.7.6-1-default -> ../usr/lib/modules/6.7.6-1-default/vmlinuz

@straight_ahead then I suspect what ever you did to the file has likely cause it to be ignored…

If you are talking about zypp.conf, my crime is to have changed one number to another.
In this case a “1” by a “4”…

@straight_ahead AFAIK, it should be latest,latest-1,latest-2,latest-3,latest-4,running.

Ok, but stay on topic. The ranting does not encourage assistance. More definitive diagnostic information is required.

First cancel any existing/stale jobs with

sudo cancel -a

Re-enable the printer, either via the CUPS web interface or

sudo cupsenable DeskJet_3700

Remove the existing CUPS error log

sudo rm -f /var/log/cups/error_log

Send a print job to that printer eg

lp -d DeskJet_3700 /path/to/foo.pdf

Examine/share the error log. It can be quite lengthy, so consider using pastebin or susepaste for this. You can filter the verbose output with something like

egrep -iA3 "filter|error|failed" /var/log/cups/error_log

Hopefully, that will lead to a better understanding of what is causing the printer to stop here.

I forgot to mention that CUPS can be put into debug mode for more verbose output using

sudo cupsctl --debug-logging

@deano_ferrari
I don’t see a rant. I just see words spoken with courtesy and with a tinge of annoyance. Perhaps it is the translation that does not reflect the accuracy of my words.

All the threads this evening clearly indicate that there is a problem with this kernel.

#cupsenableDeskJet_3700
cupsenable: Operation failed: client-error-not-authorized

# rm -f /var/log/cups/error_log

# cupsctl --debug-logging

lp -d DeskJet_3700 /path/to/my-document.pdf

# egrep -iA3 "filter|error|failed" /var/log/cups/error_log
grep: /var/log/cups/error_log: No such file or directory

The printer has paused and cannot be reactivated.
The root password is still requested for each action whereas this was not the case before.
Printing without effect.

I note printers.conf contains

AllowUser sylvain

Can you also confirm this is the user account in question?

That error arises beacuse you have explicitly set the allowed user to sylvain.

What happens if you allow all?

sudo lpadmin -p printer -u allow:all

Restart CUPS

sudo systemctl restart cups

Enable printer

sudo cupsenable DeskJet_3700

Test with print job

The file will be recreated if you do
sudo cupsctl --debug-logging

Commands entered without error.
The cups service is active and running.

Systematic root password request.

The printer immediately pauses as soon as I send it a job.
No printing made.

If this is helpful, I found a solution that works for me.

There were a lot of HP errors in my logs.

# journalctl -p err -b
...
Feb 28 10:38:21 gandalf.lan hp-systray[2199]: hp-systray[2199]: error: option -s not recognized
Feb 28 10:43:33 gandalf.lan hp[5338]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 10:43:33 gandalf.lan hp[5338]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: Process 611 (systemd-journal) of user 0 dumped core.
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: Coredump diverted to /var/lib/systemd/coredump/core.systemd-journal.0.092a18293edf41e4967675a15f96fe26.611.1709113968000000.zst
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: Stack trace of thread 611:
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #0  0x00007f222690933a fsync (libc.so.6 + 0x10933a)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #1  0x00007f2226e50e8b n/a (libsystemd-shared-254.so + 0x250e8b)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #2  0x00007f2226e530e7 journal_file_append_object (libsystemd-shared-254.so + 0x2530e7)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #3  0x00007f2226e552bf n/a (libsystemd-shared-254.so + 0x2552bf)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #4  0x00007f2226e563a6 journal_file_append_entry (libsystemd-shared-254.so + 0x2563a6)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #5  0x0000560a13183782 n/a (systemd-journald + 0x11782)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #6  0x0000560a131939bc n/a (systemd-journald + 0x219bc)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #7  0x0000560a1317d56f n/a (systemd-journald + 0xb56f)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #8  0x00007f2226e7c361 n/a (libsystemd-shared-254.so + 0x27c361)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #9  0x00007f2226e8033d sd_event_dispatch (libsystemd-shared-254.so + 0x28033d)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #10 0x00007f2226e80c48 sd_event_run (libsystemd-shared-254.so + 0x280c48)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #11 0x0000560a1317b5d5 n/a (systemd-journald + 0x95d5)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #12 0x00007f222682a1f0 __libc_start_call_main (libc.so.6 + 0x2a1f0)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #13 0x00007f222682a2b9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a2b9)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: #14 0x0000560a1317bcc5 n/a (systemd-journald + 0x9cc5)
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: ELF object binary architecture: AMD x86-64
Feb 28 10:51:32 gandalf.lan systemd[1]: systemd-journald.service: Watchdog timeout (limit 3min)!
Feb 28 10:52:49 gandalf.lan systemd-coredump[10849]: [🡕] Process 611 (systemd-journal) of user 0 dumped core.
Feb 28 10:56:35 gandalf.lan hp[11101]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 10:56:35 gandalf.lan hp[11101]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 10:57:05 gandalf.lan hp[11129]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 10:57:05 gandalf.lan hp[11129]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 10:58:40 gandalf.lan hp[11205]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 10:58:40 gandalf.lan hp[11205]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:01:06 gandalf.lan hp[11363]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:01:06 gandalf.lan hp[11363]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:01:17 gandalf.lan hp[11422]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:01:17 gandalf.lan hp[11422]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:01:31 gandalf.lan hp[11482]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:01:31 gandalf.lan hp[11482]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:02:00 gandalf.lan hp[11551]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:02:00 gandalf.lan hp[11551]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:05:00 gandalf.lan hp[11607]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:05:00 gandalf.lan hp[11607]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:25:03 gandalf.lan hp[14315]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:25:03 gandalf.lan hp[14315]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:25:13 gandalf.lan hp[14440]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:25:13 gandalf.lan hp[14440]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72
Feb 28 11:25:35 gandalf.lan hp[14497]: io/hpmud/jd.c 94: unable to read device-id
Feb 28 11:25:35 gandalf.lan hp[14497]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/net/DeskJet_3700_series?ip=192.168.1.72

I deleted the error printer in the KDE system configuration.

I uninstalled the hplip packages
# zypper rm hplip hplip-devel hplip-hpijs hplip-sane hplip-scan-utils hplip-udev-rules

then I reinstalled them
# zypper in hplip hplip-devel hplip-hpijs hplip-sane hplip-scan-utils hplip-udev-rules

zypper installed 28 packages for me:

The following 28 NEW packages are going to be installed:
   cups-devel cups-rpm-helper dbus-1-devel gmp-devel hplip hplip-devel hplip-hpijs hplip-sane hplip-scan-utils hplip-udev-rules libQt6JsonRpc6 libQt6LanguageServer6
   libQt6QmlCompiler6 libavahi-devel libgnutls-devel libnettle-devel libopenssl-3-devel libopenssl-devel libqt5-qtdeclarative-tools net-snmp-devel ninja p11-kit-devel
   qml-autoreqprov qt6-base-common-devel qt6-declarative-tools qt6-macros rpm-build rpm-devel

Access to the HP device manager was available again and confirmed the error accessing my Deskjet__3700 printer, which I deleted.

I added a printer with KDE which allowed me to print my famous page without any error.

To complete the configuration with the HP device manager, I added the Deskjet_3700
~> hp-setup 192.168.1.31

~> hp-doctor
confirmed to me that everything was detected without error.
The absence of certain packages seems to be a particularity of Opensuse.

Printers with their scanners work correctly and without passwords.
I hope this will help.