Forums

Resolved
0 votes
Help!

I have recently upgraded my server box to ClearOS 6.2 (64-bit) and have everything working except my print server.

I have setup the printer (HP DeskJet 1220C connected via USB) in Advanced Print Server and can successfully print a test page from the CUPS administration page but I cannot see the printer from my Windows 7 box to be able to install it.

The printer is displayed in the CUPS printer page as being shared, and I can see the appropriate entries in /etc/cupsd.conf:

MaxLogSize 2000000000
LogLevel warn
SystemGroup sys root
Include /etc/cups/cupsd.listen.conf
# Allow remote access
Port 631
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
Include /etc/cups/cupsd.location.conf
Include /etc/cups/cupsd.policy.conf
<Location />
# Allow shared printing...
Order allow,deny
Allow all
</Location>
<Location /admin>
# Restrict access to the admin pages...
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Restrict access to the configuration files...
Order allow,deny
</Location>
[root@vulture cups]# more /etc/samba/smb.conf
[global]

I have also checked the relevant entries in /etc/samba/smb.conf (extracts shown):

# Printing
printcap name = /etc/printcap
load printers = Yes

[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
cups options = raw
use client driver = Yes
printable = Yes
read only = No
browseable = Yes
available = Yes

[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = No
available = Yes

I know that samba and authentication itself is working because I can successfully access my disk shares.

ClearOS is running in standalone server mode, with no firewall installed, so I don't think it is firewall related.

All of this was working with the same machines, but running ClearOS 5.2 and I have compared the samba and cups conf files without finding anything that looks like a significant difference (allow in cupsd.conf is "@LOCAL" rather than "all" but changing this didn't make any difference).

I've tried rebooting both server and client boxes which unsurprisingly made no difference.

Any ideas?

Thanks very much,
Mark.
Sunday, July 15 2012, 03:12 PM
Share this post:
Responses (7)
  • Accepted Answer

    Wednesday, October 22 2014, 10:59 AM - #Permalink
    Resolved
    0 votes
    I never got round to findng a solution on this server build - I had so many other projects that I just connected the printer directly to my Windows box and printed from there.

    However, I've just rebuilt my server with ClearOs 6.5.0 and tried again to find the solution.

    For reference, the fiundamental point is a line in the /etc/cups/cupsd.location.conf related to the print_server_plugin group.

    More details are on this thread:
    http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,13/func,view/id,55272/#59662


    Commenting out that line in the conf file and restarting cups has solved the issue - I can now see/install/print to my printer on my windows clients successfully. :cheer:

    BTW - trying to access the CUPS webmin pages using FireFox is a disaster with half of it not working - use Internet Explorer and it all seems to work.
    The reply is currently minimized Show
  • Accepted Answer

    Rod_Bowden
    Rod_Bowden
    Offline
    Friday, May 30 2014, 06:39 AM - #Permalink
    Resolved
    0 votes
    I have the same issue in 6.5. I have setup the printer (Brother HL-2140 connected via USB) in Advanced Print Server and can successfully print a test page from the CUPS administration page but I cannot see the printer from my Windows 7 box to be able to install it. My Flexshares work fine.
    What was the end resolution for this issue?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 21 2012, 03:01 PM - #Permalink
    Resolved
    0 votes
    I tried linking the ppd file to the location indicated in the error log but it doesn't seem to make any difference.

    I'm not seeing additional error messages about the ppd file in error_log, whether the linked file is present or not. I'm not sure what caused these first two.
    The reply is currently minimized Show
  • Accepted Answer

    Gerry Reno
    Gerry Reno
    Offline
    Saturday, July 21 2012, 02:52 PM - #Permalink
    Resolved
    0 votes
    I think maybe you have to copy the printer drivers to the proper location.

    Seems like some manual work is necessary to get this working.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 21 2012, 02:40 PM - #Permalink
    Resolved
    0 votes
    Yes, I've tried the net use with the following result:

    C:\Users\mark>net use LPT2: \\192.168.1.10\HP_DESKJET_1220C
    The password or user name is invalid for \\192.168.1.10\HP_DESKJET_1220C.

    Enter the user name for '192.168.1.10': [strike]???????[/strike]
    Enter the password for 192.168.1.10:
    System error 66 has occurred.

    The network resource type is not correct.

    If I try an invalid username or password then I get:

    System error 1326 has occurred.

    Logon failure: unknown user name or bad password.

    so I'm pretty confident that it isn't directly an authentication issue

    However, I am now seeing
    E [21/Jul/2012:14:44:19 +0100] [CGI] Unable to get PPD file /printers/HP_DESKJET_1220C.ppd: 401 - Unauthorized
    in the error_log. The file exists in /etc/cups/ppd which is different, but I can't see where the ppd file location is specified in any of the config files. Google hasn't come up with anything useful.

    Any other ideas?
    The reply is currently minimized Show
  • Accepted Answer

    Gerry Reno
    Gerry Reno
    Offline
    Saturday, July 21 2012, 01:50 PM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, July 21 2012, 01:42 PM - #Permalink
    Resolved
    0 votes
    BUMP - I'm still struggling and getting confused by all the different possible settings I've found on the web. Can anyone help?

    Thanks,
    Mark.
    The reply is currently minimized Show
Your Reply