Results 1 to 7 of 7

Thread: [SOLVED] Restarting samba causes shared cups printers to disappear.

  1. #1
    Join Date
    Nov 2007
    Location
    Vancouver, BC
    Beans
    223
    Distro
    Ubuntu Jaunty Jackalope (testing)

    [SOLVED] Restarting samba causes shared cups printers to disappear.

    This is driving me crazy.

    After a reboot, samba automatically detects all of my cups printers such that they are correctly listed with the command.

    Code:
    rpcclient  -c enumprinters localhost
    Of course, they also show up if I browse them with a windows machine.

    However, if for whatever reason, I restart samba, the result of the above command becomes

    Code:
    Password:
    No printers returned.
    And windows machines can no longer see any of the printers. I am of course entering the same valid samba password that got me the list of printers before restarting samba.

    I also notice that even if samba is seeing my printers, adding a new one to cups also requires a full reboot before samba can see it.

    I've tried restarting both cups and samba to no avail. I can't figure out what magic is happening when I reboot. Does anyone have any ideas or has anyone else noticed this?

  2. #2
    Join Date
    Sep 2007
    Location
    010101010101001101000001
    Beans
    858
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Restarting samba causes shared cups printers to disappear.

    Quote Originally Posted by kevmitch View Post
    This is driving me crazy.

    After a reboot, samba automatically detects all of my cups printers such that they are correctly listed with the command.

    Code:
    rpcclient  -c enumprinters localhost
    Of course, they also show up if I browse them with a windows machine.

    However, if for whatever reason, I restart samba, the result of the above command becomes

    Code:
    Password:
    No printers returned.
    And windows machines can no longer see any of the printers. I am of course entering the same valid samba password that got me the list of printers before restarting samba.

    I also notice that even if samba is seeing my printers, adding a new one to cups also requires a full reboot before samba can see it.

    I've tried restarting both cups and samba to no avail. I can't figure out what magic is happening when I reboot. Does anyone have any ideas or has anyone else noticed this?
    try this my friend...

    Code:
    sudo /etc/init.d/cupsys restart
    then check to see if your printers show up again
    Last edited by tech9; August 21st, 2008 at 10:01 PM.

  3. #3
    Join Date
    Nov 2007
    Location
    Vancouver, BC
    Beans
    223
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Restarting samba causes shared cups printers to disappear.

    Quote Originally Posted by tech9 View Post
    try this my friend...

    Code:
    sudo /etc/init.d/cupsys restart
    then check to see if your printers show up again
    Nope, doesn't do it. As I said, I've tried restarting both cups and samba to no avail. I will confess I'm on a Debian system where /etc/init.d/cupsys has been renamed to /etc/init.d/cups.

  4. #4
    Join Date
    Nov 2007
    Location
    Vancouver, BC
    Beans
    223
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Restarting samba causes shared cups printers to disappear.

    Well I figured out the problem, but I still don't know why a reboot ever helped.
    Along with finding the following in /var/log/cups/error_log

    Code:
    E [22/Aug/2008:02:51:12 -0700] Unsupported character set "iso-8859-1"!
    E [22/Aug/2008:02:56:40 -0700] Unsupported character set "iso-8859-1"!
    E [22/Aug/2008:02:56:40 -0700] Unsupported character set "iso-8859-1"!
    E [22/Aug/2008:02:56:40 -0700] Unsupported character set "iso-8859-1"!
    E [22/Aug/2008:02:56:40 -0700] Unsupported character set "iso-8859-1"!
    I stumbled upon the following link:
    http://daniel.mateos.cc/2008/05/14/s...n-debian-etch/

    Now I don't necessarily agree with the solution there. Mostly because I don't think you should have a UTF locale as the system wide default because you can't expect everything to support IT (e.g. aterm).

    So instead I dug around the samba man page and found that the following in the [global] section of my /etc/samba/smb.conf file did the trick:
    Code:
       display charset = UTF8

  5. #5

    Re: [SOLVED] Restarting samba causes shared cups printers to disappear.

    thank you SOO SOO much for that display charset - I've been troubleshooting this for about 5 hours over the past two days!!

    Oh, I owe you one!

  6. #6
    Join Date
    Apr 2010
    Beans
    1

    Re: [SOLVED] Restarting samba causes shared cups printers to disappear.

    Thanks for the fix. I have Ubuntu 10.04.2 LTS which still has the same problem.

    This fix nailed it though.

  7. #7
    Join Date
    Jun 2008
    Beans
    56
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Restarting samba causes shared cups printers to disappear.

    This is still a problem for 11.04, is there any bug filled about this?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •