• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to enable CUPS Debugging on CentOS/RHEL

By admin

Steps below will guide how to configure CUPS to produce debug information and how to capture it.

Configuration

1. Open the cups configuration file /etc/cups/cupsd.conf with a text editor.

# vi /etc/cups/cupsd.conf

It would look something like this:

MaxLogSize 0
#
# "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
#
# Sample 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

or

#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

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

2. We need to edit the LogLevel line to look like the following:

LogLevel debug2

3. Save the file now.

How to Capture the Log

1. Open two different terminal windows as a root user.

2. In one of the Terminal Run the following command:

# tail -f /var/log/cups/error_log > /tmp/cups_debug_error.txt

Let this command run while the following steps are performed.

3. In the other terminal, do the following:

# service cups restart

4. Now follow the steps to recreate the Issue which you are facing with the Printer.

– One the first Terminal, Press, Ctrl-C to Stop the tail command.

– Once the logs have been captured, reset the Loglevel to the default and restart the cups service.

More options with LogLevel

  • debug2 – Log everything.
  • debug – Log almost everything.
  • info – Log all requests and state changes.
  • warn – Log errors and warnings.
  • error – Log only errors.
  • none – Log nothing.

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to limit memory resources for a specific user using cgroups
  2. CentOS / RHEL 6 : How to Boot into single user mode
  3. CentOS / RHEL 7 : How to set udev rules for ASM on multipath disks
  4. Unable To Join Linux Samba Server To Windows Active Directory Domain
  5. How to Change the default kernel (boot from old kernel) in CentOS/RHEL 8
  6. Changing the IPset rules from IPtables to Firewalld in CentOS/RHEL 7
  7. CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)
  8. Linux OS Service ‘squid’
  9. How to Disable/Enable Numa for Virtual Machine (XEN based)
  10. CentOS / RHEL 6 : How to Disable / Enable direct root login via telnet

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary