Printer prints several copies instaed one

Hi there!
I have a network printer, HP Lasejet 4345 mfp, wich worked normally, but since a few days, when I try to print one copy, the printer prints several copies. (I don’t remember making any changes related to the printer.)
Other hosts in the network prints normally.
I’m running openSuse Leap 42.1
Driver: HP Laserjet 4345 mfp - CUPS + Gutenprint v5.2.10 Simplified.

The configuration file says:


## "$Id: cupsd.conf.in 11025 2013-06-07 01:00:33Z msweet $"
#
# 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


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


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


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


# Web interface setting...
WebInterface Yes


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


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


# Restrict access to configuration files...
<Location /admin/conf>
  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 CUPS-Get-Document>
    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 CUPS-Authenticate-Job>
    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>


# The policy below is added by SUSE during build of our cups package.
# The policy 'allowallforanybody' is totally open and insecure and therefore
# it can only be used within an internal network where only trused users exist
# and where the cupsd is not accessible at all from any external host, see
# http://en.opensuse.org/SDB:CUPS_and_SANE_Firewall_settings
# Have in mind that any user who is allowed to do printer admin tasks
# can change the print queues as he likes - e.g. send copies of confidental
# print jobs from an internal network to any external destination, see
# http://en.opensuse.org/SDB:CUPS_in_a_Nutshell
# For documentation regarding 'Managing Operation Policies' see
# http://www.cups.org/documentation.php/doc-1.7/policies.html
<Policy allowallforanybody>
  # Allow anybody to access job's private values:
  JobPrivateAccess all
  # Make none of the job values to be private:
  JobPrivateValues none
  # Allow anybody to access subscription's private values:
  SubscriptionPrivateAccess all
  # Make none of the subscription values to be private:
  SubscriptionPrivateValues none
  # Allow anybody to do all IPP operations:
  # Currently the IPP operations Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document
  # must be additionally exlicitly specified because those IPP operations are not included
  # in the "All" wildcard value - otherwise cupsd prints error messages of the form
  # "No limit for Validate-Job defined in policy allowallforanybody and no suitable template found."
  <Limit All Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document>
    Order deny,allow
    Allow from all
  </Limit>
</Policy>
# Explicitly set the CUPS 'default' policy to be used by default:
DefaultPolicy default


#
# End of "$Id: cupsd.conf.in 11025 2013-06-07 01:00:33Z msweet $".
#

When I try to print one copy, the log file says:


hp adrian 2911 [08/Oct/2018:10:20:21 -0300] 1 1  localhost config.txt Legal two-sided-long-edge

and access log says:


localhost - - [08/Oct/2018:10:20:21 -0300] "POST /printers/hp HTTP/1.1" 200 329 Create-Job successful-ok localhost - - [08/Oct/2018:10:20:21 -0300] "POST /printers/hp HTTP/1.1" 200 16274 Send-Document successful-ok

Please, can anybody help me with this problem?

Thank you in advance.

What did you change a few days ago. That can not be much as 42.1 is out of support and thus there are no patches/updates for it you could have applied.

Also your description is a bit unclear to me.

Do you mean that when you send a print from the 42.1 system, it prints multiple copies. And when you send a print from another system (not 42.1?) to the same printer, it print only once?
Or do you mean with “Other hosts in the network prints normally.” that those hosts (again, which OS and version?) have their own online printers?

I beg your pardon for my bad English. It is not my mother language.
I mean that when you send a print from the 42.1 system, it prints multiple copies. And when I send a print from another system (Windows 7 and Windows 2003 Server) to the same printer, it print only once.
I don’t change anything related to the printer.

That is your perception. I think it is better to try to remember all changes you did. Something must have been changes, or don’t you agree with that? When you can not remember any change at all, I doubt anybody here can guess whey the multiple prints. And as almost nobody runs 42.1 anymore, almost nobody will have experienced the same.

I agree with you.
I don’t remember makin any chages related to the printer, indeed.
Also, I removed the driver, and installed it again.

  1. Any particular application(s) behaving like this, or all?

  2. If you print a small document from the CLI, does it still print multiple copies?

lpr -P <name_of_printer> filename.pdf
  1. Nothing configured in /etc/cups/lpoptions or ~/.cups/lpoptions?

  2. Any unusual options set in the printer configuration file?

sudo cat /etc/cups/printers.conf

deano_ferrari thank you for replay.
I regret the delay of my response.

  1. Every application I try (kwrite, LibreOffice Calc, LibreOffice Writer, Okular) behaves in the same way.

  2. Printing from the CLI also prints several copies.

  3. There isn’t /etc/cups/lpopoptions file in my system.
    This is my ~/.cups/lpopoptions file:

Default hp

4)This is my /etc/cups/printers.conf file:


adrian@america:~> sudo cat /etc/cups/printers.conf
adrian's password:
# Printer configuration file for CUPS v1.7.5
# Written by cupsd on 2018-10-08 15:40
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter hp>
UUID urn:uuid:a3f7ea2d-b354-37ff-5e94-d6082d66c72c
Info HP LaserJet 4345 mfp - CUPS+Gutenprint v5.2.10 Simplified
MakeModel HP LaserJet 4345 mfp - CUPS+Gutenprint v5.2.10 Simplified
DeviceURI socket://170.231.179.248:9100
State Idle
StateTime 1539024016
Type 4116
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors \#000000
Attribute marker-levels -1
Attribute marker-names Black Cartridge HP CE505X
Attribute marker-types toner
Attribute marker-change-time 1539024016
</Printer>
adrian@america:~> 

I do not see anything abnormal in this file.

Thank you, again.

Ok, thanks for the answers to those questions. The /etc/cups/printers.conf configuration is as expected. However, I’m almost 100% certain that this problem will be due to your printer settings within the printer - check the printer front-panel to see if it is set for only one copy.

All other systems using this printer work normally.
Anyway, I’ll check it.
Thank you.

I could not find any configuration related to the number of copies in HP Laserjet 4345 mfp.

Can you find something like the following on front panel? ‘Default Job Options’ > ‘Default Print Options’ > 'Copies per job
https://www.manualslib.com/manual/72710/Hp-M4345-Mfp.html?page=40#manual

I can’t find ‘Default Job Options’ in configurations menu.
Anyway, I will change my system (openSuse Leap 42.1) for Leap 15, next week. So, I hope the problem is solved.
Thank you, again.

Please show output of


lpstat -t


adrian@america:~> lpstat -p
printer hp is idle.  enabled since Tue 09 Oct 2018 03:54:40 PM -03

Hey Knurpht!
Something caught my attention: the date.
Therefore, I sent a new print job. And after I stopped it, because the printer emitted too many copies, I sent the command again, with the following result:


adrian@america:~> lpstat -p
printer hp is idle.  enabled since Thu 11 Oct 2018 02:18:35 PM -03
        Waiting for printer to finish.


Finally, I changed my system by openSuse Leap 15.
But since the printer was still printing several copies instead of just one, I returned the printer to its factory settings. Only then, the printer began to work well, printing a copy only.
Thank you, very much.

Yes, definitely a printer setting but resetting to factory settings a pragmatic option here.

I can not believe it!
Now that I changed the operating system for Leap 15 and I found that the problem was in the configuration of the printer, I find that all KDE applications of Leap 15 can only print on A4 paper for a bug (https://forums.opensuse.org/showthread.php/532281-KDE-applications-always-print-A4-paper-size).
Anyway, thank you.