cupsys can no longer share a printer to windows

Bug #43303 reported by Mark
This bug report is a duplicate of:  Bug #43145: cupsys won't print octet-stream. Edit Remove
24
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
High
Martin Pitt

Bug Description

Binary package hint: cupsys

I have a HP DeskJet-970C connected to my Ubuntu Dapper machine. I am trying to share that printer via cups ipp to my network. I have 2 windows machines on the network that cannot print to the printer.

I have added the following lines to the cupsd.conf:
<Location /printers>
 AuthType None
 Order Deny,Allow
 Deny From None
 Allow From All
</Location>

I am using this URL to add the printer:
http://machinename:631/printers/DeskJet-970C

I have searched for 3 days on google, launchpad and the forums and have thus far been unable to make this work.

nix4me

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Have you checked "detect lan printers" ?
Are the only modification you made ?
What's the version of cupsys ?
Have you already success on sharing printers by ipp from ubuntu to windows ?

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
Mark (nix4me) wrote :
Download full text (3.7 KiB)

I have tried it all. It simply wont work. Ive made debian and fedora do this today. I really want this to work. I will post my configs:

cupsd.conf
#
#
# 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 warning

# Administrator user group...
SystemGroup lpadmin
RunAsUser No

# Only listen for connections from the local machine.
# These settings are configured in /etc/cups/cups.d/ports.conf so that
# changing them does not require to change this file.
# Listen localhost:631
# Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
# The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
# so that changing it does not require to change this file.
# Browsing Off
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL

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

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

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

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

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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 CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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 CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    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>

# Include files in /etc/cups/conf.d
#Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf

<Location /printers/DeskJet-970C>
  Order deny,allow
  Deny From All
  Allow From 127.0.0.1
  AuthType None
  Allow From All
</Location>

Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631
Port 631

printers.conf
# Printer configuration file for CU...

Read more...

Revision history for this message
grendel970 (dn) wrote :

I am having the same problem and it's due to:

D [09/May/2006:17:14:53 -0600] print_job: request file type is application/octet-stream.
I [09/May/2006:17:14:53 -0600] Print-Job client-error-document-format-not-supported: Unsupported format 'application/octet-stream'!

I tried to open a bug report on this, bug #43145, but it got closed, and I have had no response trying to get it reopened.

Can you check your /var/log/cups/error_log and see if you are having the same problem? I have tried many, many things and no luck on this.

Revision history for this message
Mark (nix4me) wrote : Re: [Bug 43303] Re: cupsys can no longer share a printer to windows

grendel970 wrote:

>I am having the same problem and it's due to:
>
>D [09/May/2006:17:14:53 -0600] print_job: request file type is application/octet-stream.
>I [09/May/2006:17:14:53 -0600] Print-Job client-error-document-format-not-supported: Unsupported format 'application/octet-stream'!
>
>I tried to open a bug report on this, bug #43145, but it got closed, and I have had no response trying to get it reopened.
>
>Can you check your /var/log/cups/error_log and see if you are having the same problem? I have tried many, many things and no luck on this.
>
>
>
Yes, i had same problem and fixed that specific problem, but it still
wouldn't print.
To fix that problem you have to uncomment the octet raw lines in the
mime.types and mime.convs files in /etc/cups.

That still didnt fix my problem.

I got tired of being ignored so I switched my server to Debian 'etch'.
Got print server set up in 5 minutes.

nix4me

Revision history for this message
grendel970 (dn) wrote :

nix4me, I tried that, but funny thing is raw printing (octet-stream) is enabled by default in raw.types/raw.convs, I even compiled cupsd with debugging enabled and still couldn't figure it out.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Please update to cupsys 1.1.99.rc3-0ubuntu4
Use the default configuration of this version.
Just select the "detect lan printer" in gnome-cups-manager.
This option is mislabeled a bit; it should be 'Detect/Advertise LAN printers'

Revision history for this message
Martin Pitt (pitti) wrote :

Patrice, enabling 'Detect LAN printers' will not change the behavior of Windows clients.

Revision history for this message
grendel970 (dn) wrote :

This clearly looks to me like a problem printing "application/octet-stream" which it states is an unsupported format, nothing I do will enable this mime type.

Revision history for this message
Mark (nix4me) wrote :

grendel970 wrote:

>nix4me, I tried that, but funny thing is raw printing (octet-stream) is
>enabled by default in raw.types/raw.convs, I even compiled cupsd with
>debugging enabled and still couldn't figure it out.
>
>
>
I agree. It's broken. Thats why I filed the bug. I spent 3 full days
trying to figure out why and then decided to use another OS.

nix4me

Revision history for this message
Mark (nix4me) wrote :

VETSEL Patrice wrote:

>Please update to cupsys 1.1.99.rc3-0ubuntu4
>Use the default configuration of this version.
>Just select the "detect lan printer" in gnome-cups-manager.
>This option is mislabeled a bit; it should be 'Detect/Advertise LAN printers'
>
>
>
Tried that. Didn;t work.

nix4me

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

I'v forgotten.
edit /etc/cups/cups.d/ports.conf

Edit to have 2 lines :
Port 631
Listen /var/run/cups/cups.sock

restart cupsys

Revision history for this message
grendel970 (dn) wrote :

Yeah I've already got this configured, it can submit jobs, it just won't print
type octet-stream.

VETSEL Patrice wrote:
> I'v forgotten.
> edit /etc/cups/cups.d/ports.conf
>
> Edit to have 2 lines :
> Port 631
> Listen /var/run/cups/cups.sock
>
> restart cupsys
>

Revision history for this message
Mark (nix4me) wrote : Re: [Bug 43303] Re: [Bug 43303] Re: cupsys can no longer share a printer to windows

grendel970 wrote:

>Yeah I've already got this configured, it can submit jobs, it just won't print
>type octet-stream.
>
>VETSEL Patrice wrote:
>
>
>>I'v forgotten.
>>edit /etc/cups/cups.d/ports.conf
>>
>>Edit to have 2 lines :
>>Port 631
>>Listen /var/run/cups/cups.sock
>>
>>restart cupsys
>>
>>
>>
>
>
>
Has this been fixed in Ubuntu yet?

I've noticed on my Debian machine that printing is working but cups is
writing to access_log 2 times every 5 seconds.

Sure would be nice to get a debian based distro with a working cups.

nix4me

Revision history for this message
Mark (nix4me) wrote :
Download full text (4.4 KiB)

I have tried Ubuntu Dapper again: Installed 40 minutes ago on 5/12/06. Got all updates.

I still cant print from windows machines.

Here are the various configs:

(cupsd.conf)#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin

# Only listen for connections from the local machine.
# These settings are configured in /etc/cups/cups.d/ports.conf so that
# changing them does not require to change this file.
# Listen localhost:631
# Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
# The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
# so that changing it does not require to change this file.
# Browsing Off
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL

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

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow @LOCAL
</Location>

<Location /printers>
  Order allow,deny
  Allow localhost
  Allow @LOCAL
</Location>

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

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

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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 CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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 CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    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>

# Include files in /etc/cups/conf.d
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf

(ports.conf)
Listen *:631
Listen /var/run/cups/cups.sock

(mime.types)
########################################################################
#
# Raw print file support...
#
# Comment the following type to prevent raw file printing.
#

application/octet-stream

(mime.convs)
########################################################################
#
# Raw...

Read more...

Revision history for this message
grendel970 (dn) wrote : Re: [Bug 43303] Re: cupsys can no longer share a printer to windows
Download full text (4.7 KiB)

Per hva, try reverting back to 1.1.99.rc2-0ubuntu1, I haven't tried this
on my box yet, but it looks like there's a bug with cups on this.

On Fri, 2006-05-12 at 16:50 +0000, Mark wrote:
> I have tried Ubuntu Dapper again: Installed 40 minutes ago on 5/12/06.
> Got all updates.
>
> I still cant print from windows machines.
>
> Here are the various configs:
>
> (cupsd.conf)#
> # Log general information in error_log - change "info" to "debug" for
> # troubleshooting...
> LogLevel warning
>
> # Administrator user group...
> SystemGroup lpadmin
>
> # Only listen for connections from the local machine.
> # These settings are configured in /etc/cups/cups.d/ports.conf so that
> # changing them does not require to change this file.
> # Listen localhost:631
> # Listen /var/run/cups/cups.sock
>
> # Show shared printers on the local network.
> # The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
> # so that changing it does not require to change this file.
> # Browsing Off
> BrowseOrder allow,deny
> BrowseAllow @LOCAL
> BrowseAddress @LOCAL
>
> # Default authentication type, when authentication is required...
> DefaultAuthType Basic
>
> # Restrict access to the server...
> <Location />
> Order allow,deny
> Allow localhost
> Allow @LOCAL
> </Location>
>
> <Location /printers>
> Order allow,deny
> Allow localhost
> Allow @LOCAL
> </Location>
>
> # Restrict access to the admin pages...
> <Location /admin>
> Order allow,deny
> Allow localhost
> </Location>
>
> # Restrict access to configuration files...
> <Location /admin/conf>
> AuthType Basic
> Require user @SYSTEM
> Order allow,deny
> Allow localhost
> </Location>
>
> # Set the default printer/job policies...
> <Policy default>
> # Job-related operations must be done by the owner or an adminstrator...
> <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 CUPS-Move-Job>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
>
> # All administration operations require an adminstrator to authenticate...
> <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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 CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
> AuthType Basic
> 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>
>
> # Include files in /etc/cups/conf.d
> Include /etc/cups/cups.d/ports.conf
> Include /etc/cups/cups.d/browse.conf
>
> (ports.conf)
> Listen *:631
> Listen /var/run/cups/cups.sock
>
> (mime.types)
> ###############...

Read more...

Revision history for this message
Mark (nix4me) wrote : Re: [Bug 43303] Re: [Bug 43303] Re: cupsys can no longer share a printer to windows
Download full text (4.9 KiB)

grendel970 wrote:

>Per hva, try reverting back to 1.1.99.rc2-0ubuntu1, I haven't tried this
>on my box yet, but it looks like there's a bug with cups on this.
>
>On Fri, 2006-05-12 at 16:50 +0000, Mark wrote:
>
>
>>I have tried Ubuntu Dapper again: Installed 40 minutes ago on 5/12/06.
>>Got all updates.
>>
>>I still cant print from windows machines.
>>
>>Here are the various configs:
>>
>>(cupsd.conf)#
>># Log general information in error_log - change "info" to "debug" for
>># troubleshooting...
>>LogLevel warning
>>
>># Administrator user group...
>>SystemGroup lpadmin
>>
>># Only listen for connections from the local machine.
>># These settings are configured in /etc/cups/cups.d/ports.conf so that
>># changing them does not require to change this file.
>># Listen localhost:631
>># Listen /var/run/cups/cups.sock
>>
>># Show shared printers on the local network.
>># The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
>># so that changing it does not require to change this file.
>># Browsing Off
>>BrowseOrder allow,deny
>>BrowseAllow @LOCAL
>>BrowseAddress @LOCAL
>>
>># Default authentication type, when authentication is required...
>>DefaultAuthType Basic
>>
>># Restrict access to the server...
>><Location />
>> Order allow,deny
>> Allow localhost
>> Allow @LOCAL
>></Location>
>>
>><Location /printers>
>> Order allow,deny
>> Allow localhost
>> Allow @LOCAL
>></Location>
>>
>># Restrict access to the admin pages...
>><Location /admin>
>> Order allow,deny
>> Allow localhost
>></Location>
>>
>># Restrict access to configuration files...
>><Location /admin/conf>
>> AuthType Basic
>> Require user @SYSTEM
>> Order allow,deny
>> Allow localhost
>></Location>
>>
>># Set the default printer/job policies...
>><Policy default>
>> # Job-related operations must be done by the owner or an adminstrator...
>> <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 CUPS-Move-Job>
>> Require user @OWNER @SYSTEM
>> Order deny,allow
>> </Limit>
>>
>> # All administration operations require an adminstrator to authenticate...
>> <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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 CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
>> AuthType Basic
>> 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>
>>
>># Include files in /etc/cups/conf.d
>>Include /etc/cups/cups.d/ports.conf
>>Include /etc/cups/cups.d/browse.conf
>>
>>(ports.conf)
>>Listen *:631
>>Listen /var/run/cups/cups.sock
>>
>>(...

Read more...

Revision history for this message
Mark (nix4me) wrote :

1.1.99.rc2-0ubuntu1.deb does not work either.

Mark

Martin Pitt (pitti)
Changed in cupsys:
assignee: nobody → pitti
status: Needs Info → Confirmed
Revision history for this message
hva (francesco) wrote :

i have that same problem, but downgrading to 1.1.99.rc2-0ubuntu1 fixed it for me. it seems is an upstream problem; there's a similar bug filed at cups's site

Revision history for this message
Ante Karamatić (ivoks) wrote :

This seams to be related to:

http://cups.org/str.php?L1667+P0+S-2+C0+I0+E0+Qoctet-stream

"application/octet-stream ..." in /etc/cups/mime.convs does not work any more

Revision history for this message
Martin Pitt (pitti) wrote :

Closing as duplicate of bug 43145.

Changed in cupsys:
status: Confirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.