You are not logged in.

#1 2023-02-01 23:13:27

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

[SOLVED]Cups hangs up after printing

I have a HP LaserJet1606dn printer. Connected to my desktop machine, then tried to share over the house network. While this is done, through the other machines I created some more instances of the printer, so I deleted the all, and through the CUPS web interface recreated one. Now I have two instance in every applications prinitng panel, but CUPS shows just one. When I do a print job, right after it is started, CUPS gives up communicating, and I have to restart the service. Is it better idea to start it as a socket, or is there a way to solve the problem?
TNX!

Last edited by tombenko (2023-03-14 09:29:36)

Offline

#2 2023-02-02 08:05:03

seth
Member
Registered: 2012-09-03
Posts: 51,027

Re: [SOLVED]Cups hangs up after printing

in every applications prinitng panel

on your desktop or "the other machines"?

lpstat -s
sudo ls -lahR /var/cache/cups /etc/cups

Online

#3 2023-02-14 22:04:27

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: [SOLVED]Cups hangs up after printing

On the desktop.
lpstat -s hangs up, freezes, when runned after CUPS hanging. After rstart:

$ lpstat -s
no system default destination
device for Hewlett-Packard-HP-LaserJet-Professional-P1606dn: usb://HP/LaserJet%20Professional%20P1606dn?serial=000000000QQ01MH1PR1a

$ sudo ls -lahR /var/cache/cups /etc/cups
/etc/cups:
összesen 124K
drwxr-xr-x   4 root cups 4,0K febr  14 22.55 .
drwxr-xr-x 102 root root 4,0K febr  11 11.09 ..
-rw-------   1 root cups  108 jan   29 23.28 classes.conf
-rw-------   1 root cups  108 jan   29 21.53 classes.conf.O
-rw-r--r--   1 root cups  31K jan   25 08.11 cups-browsed.conf
-rw-r-----   1 root cups 4,6K jan   29 21.55 cupsd.conf
-rw-r-----   1 root cups 6,5K febr   1 20.02 cupsd.conf.default
-rw-r-----   1 root cups 4,8K jan   29 21.41 cupsd.conf.O
-rw-r-----   1 root cups 2,7K febr   1 20.02 cups-files.conf
-rw-r-----   1 root cups 2,7K febr   1 20.02 cups-files.conf.default
-rw-r--r--   1 root cups  11K nov   15 14.05 cups-pdf.conf
drwxr-xr-x   2 root cups 4,0K jan   29 21.57 ppd
-rw-------   1 root cups  644 febr  14 22.50 printers.conf
-rw-------   1 root cups  698 febr  12 23.12 printers.conf.O
-rw-r-----   1 root cups  142 febr   1 20.02 snmp.conf
-rw-r-----   1 root cups  142 febr   1 20.02 snmp.conf.default
drwx------   2 root cups 4,0K jan   30 19.07 ssl
-rw-r-----   1 root cups  409 febr  14 22.55 subscriptions.conf
-rw-r-----   1 root cups  409 febr  14 22.52 subscriptions.conf.O

/etc/cups/ppd:
összesen 168K
drwxr-xr-x 2 root cups 4,0K jan   29 21.57 .
drwxr-xr-x 4 root cups 4,0K febr  14 22.55 ..
-rw-r----- 1 root cups  53K jan   19 17.58 Hewlett-Packard-HP-LaserJet-Professional-P1606dn.ppd
-rw-r----- 1 root cups  53K jan   19 17.56 Hewlett-Packard-HP-LaserJet-Professional-P1606dn.ppd.O
-rw-r----- 1 root cups  24K 2017 márc  12 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.ppd
-rw-r----- 1 root cups  24K 2017 márc  12 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.ppd.O

/etc/cups/ssl:
összesen 24K
drwx------ 2 root cups 4,0K jan   30 19.07 .
drwxr-xr-x 4 root cups 4,0K febr  14 22.55 ..
-rw-r--r-- 1 root root 1,5K jan   30 19.07 __ffff_192.168.100.2.crt
-rw-r--r-- 1 root root 1,7K jan   30 19.07 __ffff_192.168.100.2.key
-rw-r--r-- 1 root root 1,4K 2019 ápr   27 Pug.crt
-rw-r--r-- 1 root root 1,7K 2019 ápr   27 Pug.key

/var/cache/cups:
összesen 520K
drwxrwx---  3 root cups 4,0K febr  14 23.01 .
drwxr-xr-x 10 root root 4,0K 2018 júl    6 ..
-rw-------  1 cups cups 129K jan   29 21.51 help.index
-rw-r--r--  1 root root  259 jan   29 21.41 Hewlett-Packard-HP-LaserJet-Professional-P1606dn-2.strings
-rw-r--r--  1 root root  259 jan   29 21.41 Hewlett-Packard-HP-LaserJet-Professional-P1606dn-3.strings
-rw-r--r--  1 root root 1,6K jan   29 21.55 Hewlett-Packard-HP-LaserJet-Professional-P1606dn.data
-rw-r--r--  1 root root  259 jan   29 21.55 Hewlett-Packard-HP-LaserJet-Professional-P1606dn.strings
-rw-r--r--  1 root root 2,3K 2019 aug   31 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.data
-rw-r--r--  1 root root  389 2019 aug   31 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.strings
-rw-r--r--  1 root root  259 jan   29 21.57 HP_LaserJet_Professional_P1606dn.strings
-rw-r-----  1 root cups  16K febr  14 23.01 job.cache
-rw-r-----  1 root cups  16K febr  14 22.55 job.cache.O
-r--------  1 root root    5 febr  14 23.01 org.cups.cupsd
-rw-------  1 cups cups 310K jan   29 21.56 ppds.dat
drwxrwxr-x  2 root cups 4,0K 2022 jún   10 rss

/var/cache/cups/rss:
összesen 8,0K
drwxrwxr-x 2 root cups 4,0K 2022 jún   10 .
drwxrwx--- 3 root cups 4,0K febr  14 23.01 ..

Offline

#4 2023-02-14 22:12:34

seth
Member
Registered: 2012-09-03
Posts: 51,027

Re: [SOLVED]Cups hangs up after printing

-rw-r----- 1 root cups  24K 2017 márc  12 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.ppd
-rw-r----- 1 root cups  24K 2017 márc  12 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.ppd.O
-rw-r--r--  1 root root  259 jan   29 21.41 Hewlett-Packard-HP-LaserJet-Professional-P1606dn-2.strings
-rw-r--r--  1 root root  259 jan   29 21.41 Hewlett-Packard-HP-LaserJet-Professional-P1606dn-3.strings
-rw-r--r--  1 root root 2,3K 2019 aug   31 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.data
-rw-r--r--  1 root root  389 2019 aug   31 HP_Deskjet_F2400_series_USB_CN97T1G3HQ05BS_HPLIP.strings

Where's the F2400 coming from?
And then there's obviously the residual Hewlett-Packard-HP-LaserJet-Professional-P1606dn-?.strings files.

Edit: about the hangs, see https://wiki.archlinux.org/title/CUPS/Troubleshooting
Raise the log level to debug and check the log when the cups daemon hangs.

Last edited by seth (2023-02-14 22:15:08)

Online

#5 2023-02-24 22:06:44

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: [SOLVED]Cups hangs up after printing

F2400...
Hm. Maybe an old printer from the neolithicum... We had one, but it' went dead, and I removed CUPS fully (I thought). For years I had nothing to print out to this year.
I will check it.

Offline

#6 2023-03-14 09:29:15

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: [SOLVED]Cups hangs up after printing

HM. I found, that the printer goes "dead" state as cups describe it, but after a while (looks like depending on printed quantity) the printer gets back to "idle" state. Maybe cache emptying or something happens in thi stime.

Offline

Board footer

Powered by FluxBB