Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Lubuntu 13.04 - CUPS fails to start on bootup

  1. #1
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Lubuntu 13.04 - CUPS fails to start on bootup

    Lubuntu 13.04:

    CUPS is not starting at boot-up. I discovered this when attempting to install the printer with this new install. I then started CUPS from the terminal, was able to install the printer, and print. However, on restarting the computer, the service again fails to start. How do I configure this service to always automatically start on bootup?

    There is a Desktop Sessions Settings dialog of automatically started applications, but CUPS is not included there.
    Last edited by Dennis N; April 30th, 2013 at 04:19 PM.

  2. #2
    Join Date
    Dec 2009
    Beans
    319
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: CUPS fails to start on bootup

    open a terminal and give me the output of
    Code:
    head /etc/init/cups.conf
    I've not SEEN it configured wrong before, but I've never not not seen CUPS start on startup before either

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: CUPS fails to start on bootup

    Here is the output:

    Code:
    dn@Alexa:~$ head /etc/init/cups.conf
    # cups - CUPS Printing spooler and server
    
    description     "CUPS printing spooler/server"
    author          "Michael Sweet <msweet@apple.com>"
    
    start on (filesystem
              and started avahi-daemon
              and (started dbus or runlevel [2345]))
    stop on runlevel [016]

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: CUPS fails to start on bootup

    Look for clues in /var/log/cups.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: CUPS fails to start on bootup

    I'm looking at the output I gave, and I am not a coder, but it looks to me like for cupsd to start avahi-daemon must be started first? Am I right or wrong?

  6. #6
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: CUPS fails to start on bootup

    avahi simply advertises services--in this case shared printers. It should not cause cupsd to fail. CUPS does not have a direct dependecy but "recommends" avahi-daemon, which means it should be able to run without avahi-daemon.

    If you are running 13.04, try the following:

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    reboot
    Then check your printers.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  7. #7
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: CUPS fails to start on bootup

    Quote Originally Posted by tgalati4 View Post
    Look for clues in /var/log/cups.
    As to the cups log files, here is part of the error log, with output from a session earlier this afternoon:

    Code:
    W [26/Apr/2013:13:23:26 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:23:26 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:23:26 -0700] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    E [26/Apr/2013:13:38:54 -0700] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    W [26/Apr/2013:13:38:59 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:38:59 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:38:59 -0700] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:48:04 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:48:04 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    W [26/Apr/2013:13:48:04 -0700] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    Not sure these are that relevant to the cups-not-running problem - Lubuntu 12.10 on another computer shows similar errors (except for the bad driver information file line) and it prints normally.

    Thanks for pointing out the logs.

  8. #8
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: CUPS fails to start on bootup

    Quote Originally Posted by tgalati4 View Post
    avahi simply advertises services--in this case shared printers. It should not cause cupsd to fail. CUPS does not have a direct dependecy but "recommends" avahi-daemon, which means it should be able to run without avahi-daemon.

    If you are running 13.04, try the following:

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    reboot
    Then check your printers.
    I already tried this earlier. No effect.

    Yes, cupsd does not need avahi-daemon, and can run without it, but from the structure of the code, it appears to me that cupsd will not start unless avahi-daemon has been started first. Am I wrong on that interpretation?

    Next, I just found that avahi-daemon is not installed with Lubuntu 13.04:

    Code:
    dn@Alexa:~$ apt-cache policy avahi-daemon
    avahi-daemon:
      Installed: (none)
      Candidate: 0.6.31-1ubuntu3
      Version table:
         0.6.31-1ubuntu3 0
            500 http://us.archive.ubuntu.com/ubuntu/ raring/main i386 Packages
    It's not installed on my Lubuntu 12.10 installation either, and Lubuntu 12.10 prints normally. But on 12.10, the cups.conf does not include any reference to avahi-daemon - here is the cups.conf from Lubuntu 12.10:

    Code:
    dn@Roxanne:~$ head /etc/init/cups.conf
    # cups - CUPS Printing spooler and server
    
    description     "CUPS printing spooler/server"
    author          "Michael Sweet <msweet@apple.com>"
    
    start on (filesystem
              and (started dbus or runlevel [2345]))
    stop on runlevel [016]
    
    respawn
    I think I need to install avahi-daemon, or else change the code to remove reference to it.

    Comment?

  9. #9
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,899

    Re: CUPS fails to start on bootup

    Well, I edited cups.conf and removed the line referring to avahi-daemon. I was correct - this was stopping cupsd from starting. Tested and confirmed this solution. Printing on Lubuntu 13.04 now works.

    Now, anyone who downloads and installs Lubuntu 13.04 from the same iso is going to be affected by the same problem.

    The iso is at:

    http://cdimage.ubuntu.com/lubuntu/re...sktop-i386.iso

    and has a misconfigured cups.conf that will prevent the cups-daemon from starting unless fixed.

    The corrected cups.conf begins:

    Code:
    # cups - CUPS Printing spooler and server
    
    description     "CUPS printing spooler/server"
    author          "Michael Sweet <msweet@apple.com>"
    
    start on (filesystem
              and (started dbus or runlevel [2345]))
    stop on runlevel [016]
    
    respawn
    Thanks to Synoc and tgalati4 for your input.

  10. #10
    Join Date
    Dec 2007
    Beans
    1

    Re: CUPS fails to start on bootup

    thanks for the tip. Solved this issue for me too.

Page 1 of 3 123 LastLast

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
  •