Error_log.1 (0B) error_log.1 (190.4 GiB) error_log.2 (638.9 GiB)

du -hs /var/log/cups/*

0	/var/log/cups/error_log
191G	/var/log/cups/error_log.1
639G	/var/log/cups/error_log.2

Can I delete those files? Can I limit the size of the file?

In the image, I am using the package: gdu

Thanks :slight_smile:

inxi

CPU: 32-core AMD Ryzen Threadripper 3970X (-MT MCP-)
speed/min/max: 2296/2200/4549 MHz Kernel: 6.6.47-1-MANJARO x86_64 Up: 2m
Mem: 14.23/125.64 GiB (11.3%) Storage: 4.36 TiB (36.3% used) Procs: 1015
Shell: Bash inxi: 3.3.35

mhwd-kernel -li

Currently running: 6.6.47-1-MANJARO (linux66)
The following kernels are installed in your system:
   * linux66

lsb_release -sirc
ManjaroLinux 24.0.8 Wynsdey

LANG=C lscpu

Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          43 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   64
  On-line CPU(s) list:    0-63
Vendor ID:                AuthenticAMD
  Model name:             AMD Ryzen Threadripper 3970X 32-Core Processor
    CPU family:           23
    Model:                49
    Thread(s) per core:   2
    Core(s) per socket:   32
    Socket(s):            1
    Stepping:             0
    Frequency boost:      disabled
    CPU(s) scaling MHz:   49%
    CPU max MHz:          4549,1211
    CPU min MHz:          2200,0000
    BogoMIPS:             7389,86
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_o
                          pt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma
                           cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3d
                          nowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd
                           mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1
                           cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin arat npt lbrv svm_lock nr
                          ip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdp
                          id overflow_recov succor smca sev sev_es
Virtualization features:  
  Virtualization:         AMD-V
Caches (sum of all):      
  L1d:                    1 MiB (32 instances)
  L1i:                    1 MiB (32 instances)
  L2:                     16 MiB (32 instances)
  L3:                     128 MiB (8 instances)
NUMA:                     
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-63
Vulnerabilities:          
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Mitigation; untrained return thunk; SMT enabled with STIBP protection
  Spec rstack overflow:   Mitigation; Safe RET
  Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected

yes, you can

I’m not sure whether or how to do that with cups error logs.

But:
the size of these logs!

You should fix the error that is responsible for the logs being so large!

Those logs with the number at the end are rotated logs - no longer written to,
still present for the sake of history, if you will …
The “active” one is /var/log/cups/error_log

du -hs /var/log/cups/*

would have done the job just as well - can you replace the image for the output of that command?

3 Likes

Indeed. Something’s aamiss there, because in contrast:

$ dua /var/log/cups                                                                                                                                                                                                          0   B access_log
0   B error_log
0   B page_log
4.00 KiB error_log.1
4.00 KiB error_log.2
4.00 KiB error_log.3
4.00 KiB error_log.4
4.00 KiB page_log.1
4.00 KiB page_log.2
4.00 KiB page_log.3
4.00 KiB page_log.4
8.00 KiB access_log.1
8.00 KiB access_log.3
12.00 KiB access_log.2
24.00 KiB access_log.4
84.00 KiB total
1 Like

du -hs /var/log/cups/*

0	/var/log/cups/error_log
191G	/var/log/cups/error_log.1
639G	/var/log/cups/error_log.2

you misunderstood me
replace - not post this variant here again :wink:
the intention was to get rid of the picture in the first post

ps:
I see you did - thanks!

1 Like

This. This…well, I’ve never seen logs this large. Better to find out why they’re this size. Please provide the output of:

tail -n 300 /var/log/cups/error_log.2
1 Like

tail -n 300 /var/log/cups/error_log.2

E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.

I tried:
tail -n 100000 /var/log/cups/error_log.2
The result is the same line repeating!
E [22/Jul/2024:00:46:59 +0200] Unable to accept client connection - Bad file descriptor.

Please provide the output of:

sudo grep -ri /cups.sock /etc/cups/*
1 Like

You have a 4.36 TiB drive. By default, journald maintains a maximum log size of 20% of the filesystem’s capacity.

I would advise you to edit /etc/systemd/journald.conf, look for these values below and change them to what you would consider sane defaults — the ones I’ve set are pretty good values. :point_down:

[...]

SystemMaxUse=250M

[...]

RuntimeMaxUse=250M

[...]

Make sure these lines are not commented out — i.e. there must not be a “#” in front of them — and then save the file and run the following command… :point_down:

sudo systemctl reload systemd-journald
2 Likes

sudo grep -ri /cups.sock /etc/cups/*

/etc/cups/cupsd.conf:Listen /run/cups/cups.sock
/etc/cups/cupsd.conf.default:Listen /run/cups/cups.sock

Please provide the output of:

systemctl status cups.{service,socket}
1 Like

Thanks :smiley:

I will wait with doing that, first I wan to see if people have something they want to learn from this “mess/bug?” that I have.

1 Like

systemctl status cups.{service,socket}

â—Ź cups.service - CUPS Scheduler
     Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-09-15 10:47:39 CEST; 31min ago
 Invocation: 6949560b865b45ea8b82f2bc4c995e82
TriggeredBy: â—Ź cups.path
             â—Ź cups.socket
       Docs: man:cupsd(8)
   Main PID: 1633 (cupsd)
     Status: "Scheduler is running..."
      Tasks: 1 (limit: 154354)
     Memory: 2.7M (peak: 3.2M)
        CPU: 11ms
     CGroup: /system.slice/cups.service
             └─1633 /usr/bin/cupsd -l

sep. 15 10:47:39 w systemd[1]: Starting CUPS Scheduler...
sep. 15 10:47:39 w systemd[1]: Started CUPS Scheduler.

â—Ź cups.socket - CUPS Scheduler
     Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled; preset: disabled)
     Active: active (running) since Sun 2024-09-15 10:47:39 CEST; 31min ago
 Invocation: 8ebc4259b59a44aa8026b1ee79c515cb
   Triggers: â—Ź cups.service
     Listen: /run/cups/cups.sock (Stream)
     CGroup: /system.slice/cups.socket

sep. 15 10:47:39 w systemd[1]: Listening on CUPS Scheduler.

Hmmm…OK, Nothing there, either. So let’s dive a bit deeper. Please provide the error logs.

Finding errors

journalctl --priority=warning..crit --no-pager --boot=-1 --unit=cups.service

Where:

  • The --priority=warning..err argument limits the output to warnings and errors only;
  • --no-pager formats the output nicely for use here, on the forum;
  • the --boot=-1 argument limits the messages to be from the previous boot; this can be adjusted to 0 for the current boot or -2 for the 2 boots ago.
  • The --unit=cups.service argument limits the output to messages from the cups service only.
1 Like

hmmm

journalctl --priority=warning..crit --no-pager --boot=-1 --unit=cups.service
-- No entries --

That means it’s working fine, the error is not something related to starting cups. I think. I think i t has to do with cups itself, and an error in the cups configuration. So please provide the out of the following:

cat /etc/cups/cupsd.conf

and

systemctl cat cups.{service,socket}
1 Like

Can I ask what is/are the “cups”?

sudo cat /etc/cups/cupsd.conf

#
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
#PageLogFormat

# Specifies the maximum size of the log files before they are rotated.  The value "0" disables log rotation.
MaxLogSize 0

# Default error policy for printers
ErrorPolicy stop-printer

# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock

# Show shared printers on the local network.
Browsing Yes
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
IdleExitTimeout 60

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Restrict access to log files...
<Location /admin/log>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the kerberized printer/job policies...
<Policy kerberos>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Negotiate
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

systemctl cat cups.{service,socket}

systemctl cat cups.{service,socket}
# /usr/lib/systemd/system/cups.service
[Unit]
Description=CUPS Scheduler
Documentation=man:cupsd(8)
After=network.target nss-user-lookup.target nslcd.service
Requires=cups.socket

[Service]
ExecStart=/usr/bin/cupsd -l
Type=notify
Restart=on-failure


[Install]
Also=cups.socket cups.path
WantedBy=printer.target multi-user.target

# /usr/lib/systemd/system/cups.socket
[Unit]
Description=CUPS Scheduler
PartOf=cups.service

[Socket]
ListenStream=/run/cups/cups.sock
RemoveOnStop=on

[Install]
WantedBy=sockets.target

Common Unix Printing System

1 Like

CUPS is the standards-based, open source printing system developed by OpenPrinting for Linux® and other Unix®-like operating systems.
– CUPS - ArchWiki

I have absolutely NO idea what is/what could be causing the problem, sorry.

Maybe someone else does, though.

1 Like

Probably some wrong printer config file, but i have no idea how to debug too.

1 Like