Announcement

Collapse
No announcement yet.

Starting Cups automaticly

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Starting Cups automaticly

    I noticed that my printer, a HP Photosmart, wasn't found. When i went into System Settings -> Printers, i was told " No Printer services Bad file descriptor".
    When i used the HP utility, it will find the printer, but no PDD file, and would not install the printer.
    After a bit of Googling, i found that you have to start Cups manually with:
    Code:
    sudo /usr/sbin/cupsd -f
    .
    Sure enough, after that, the printer showed up in both System Settings and the HP utility.
    But it is not persistent and have to issue that command after every restart.
    Could this be a bug, and is there a way to make it persistant

    It is a wireless printer and i never had problem before with any release, and it was working before with this release, 14.10, but then it just stopped.
    Last edited by GerardV; Jan 25, 2015, 10:18 PM.
    sigpic

    #2
    cups should be starting with the system ,,,,,,,,,,,,,hear are the cups related packages installed@ hear

    Code:
    vinny@vinny-Bonobo-Extreme:~$ dpkg -l | grep cups
    ii  bluez-cups                                  4.101-0ubuntu13                       amd64        Bluetooth printer driver for CUPS
    ii  cups                                        1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - PPD/driver support, web interface
    ii  cups-browsed                                1.0.52-0ubuntu1.2                     amd64        OpenPrinting CUPS Filters - cups-browsed
    ii  cups-bsd                                    1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - BSD commands
    ii  cups-client                                 1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - client programs (SysV)
    ii  cups-common                                 1.7.2-0ubuntu1.2                      all          Common UNIX Printing System(tm) - common files
    ii  cups-core-drivers                           1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - PPD-less printing
    ii  cups-daemon                                 1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - daemon
    ii  cups-filters                                1.0.52-0ubuntu1.2                     amd64        OpenPrinting CUPS Filters - Main Package
    ii  cups-filters-core-drivers                   1.0.52-0ubuntu1.2                     amd64        OpenPrinting CUPS Filters - PPD-less printing
    ii  cups-ppdc                                   1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - PPD manipulation utilities
    ii  cups-server-common                          1.7.2-0ubuntu1.2                      all          Common UNIX Printing System(tm) - server common files
    ii  libcups2:amd64                              1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - Core library
    ii  libcupscgi1:amd64                           1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - CGI library
    ii  libcupsfilters1:amd64                       1.0.52-0ubuntu1.2                     amd64        OpenPrinting CUPS Filters - Shared library
    ii  libcupsimage2:amd64                         1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - Raster image library
    ii  libcupsmime1:amd64                          1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - MIME library
    ii  libcupsppdc1:amd64                          1.7.2-0ubuntu1.2                      amd64        Common UNIX Printing System(tm) - PPD manipulation library
    ii  printer-driver-hpcups                       3.14.3-0ubuntu3.2                     amd64        HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
    ii  python-cups                                 1.9.66-0ubuntu2                       amd64        Python bindings for CUPS
    ii  python-cupshelpers                          1.4.3+20140219-0ubuntu2.2             all          Python modules for printer configuration with CUPS
    this is on 14.04 so yours will be newer ver.


    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Thanks Vinny and mine looks pretty much the same as yours

      Code:
      gerard@gerard-Satellite-L750:~$ dpkg -l | grep cups
      ii  bluez-cups                                  4.101-0ubuntu20                          amd64        Bluetooth printer driver for CUPS
      ii  cups                                        1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - PPD/driver support, web interface
      ii  cups-browsed                                1.0.61-0ubuntu2                          amd64        OpenPrinting CUPS Filters - cups-browsed
      ii  cups-bsd                                    1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - BSD commands
      ii  cups-client                                 1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - client programs (SysV)
      ii  cups-common                                 1.7.5-3ubuntu2                           all          Common UNIX Printing System(tm) - common files
      ii  cups-core-drivers                           1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - PPD-less printing
      ii  cups-daemon                                 1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - daemon
      ii  cups-filters                                1.0.61-0ubuntu2                          amd64        OpenPrinting CUPS Filters - Main Package
      ii  cups-filters-core-drivers                   1.0.61-0ubuntu2                          amd64        OpenPrinting CUPS Filters - PPD-less printing
      ii  cups-filters-ippusbxd                       1.0.61-0ubuntu2                          amd64        ippusbxd - Daemon for IPP-over-USB printer support
      ii  cups-ppdc                                   1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - PPD manipulation utilities
      ii  cups-server-common                          1.7.5-3ubuntu2                           all          Common UNIX Printing System(tm) - server common files
      ii  libcups2:amd64                              1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - Core library
      ii  libcupscgi1:amd64                           1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - CGI library
      ii  libcupsfilters1:amd64                       1.0.61-0ubuntu2                          amd64        OpenPrinting CUPS Filters - Shared library
      ii  libcupsimage2:amd64                         1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - Raster image library
      ii  libcupsmime1:amd64                          1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - MIME library
      ii  libcupsppdc1:amd64                          1.7.5-3ubuntu2                           amd64        Common UNIX Printing System(tm) - PPD manipulation library
      ii  printer-driver-hpcups                       3.14.6-1ubuntu1                          amd64        HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
      ii  python-cups                                 1.9.67-0ubuntu1                          amd64        Python bindings for CUPS
      rc  python-cupshelpers                          1.4.3+20140219-0ubuntu2.2                all          Python modules for printer configuration with CUPS
      ii  python3-cups                                1.9.67-0ubuntu1                          amd64        Python3 bindings for CUPS
      ii  python3-cupshelpers                         1.5.1+20141010-0ubuntu2.2                all          Python modules for printer configuration with CUPS
      So its a bit of a mistery why yours starts and mine doesn't.
      It's no big deal, just a bit odd.
      I did try to add that command as a shell script in System Settings->Autostart, but that buggered the system a bit and had to boot into Mint to delete ~/.KDE/Autostart.
      Last edited by GerardV; Jan 25, 2015, 10:53 PM.
      sigpic

      Comment


        #4
        You should have:

        Code:
        ~ $ ls -al /etc/init.d/cup*
        -rwxr-xr-x 1 root root 2816 Nov  4 02:53 /etc/init.d/cups
        -rwxr-xr-x 1 root root 1961 Jul 28 02:17 /etc/init.d/cups-browsed
        Try stopping and starting from a command line to see if you get any errors:

        $ sudo service cups stop
        $ sudo service cups start

        Comment


          #5
          Ronw,

          This the output from that command:
          Code:
          ~$ ls -al /etc/init.d/cup*
          -rwxr-xr-x 1 root root 2816 Aug 15 03:24 /etc/init.d/cups
          -rwxr-xr-x 1 root root 1961 Apr  8  2014 /etc/init.d/cups-browsed
          gerard@gerard-Satellite-L750:~$
          So that appears to be correct as well.

          Stop/ Start command output:
          Code:
          ~$ sudo service cups stop
          [sudo] password for gerard: 
          cups stop/waiting
          gerard@gerard-Satellite-L750:~$ sudo service cups start
          cups start/running, process 3537
          No apparent errors here either.
          sigpic

          Comment


            #6
            Anything in dmesg after boot up? Sounds like something is causing it to fail to start initially, but not in the way later.

            Please Read Me

            Comment


              #7
              oshunluvr, the only references to cups i could find are:
              Code:
              4.177568] init: [COLOR="#FF0000"]cups[/COLOR] main process (525) killed by HUP signal
              [    4.177583] init: [COLOR="#FF0000"]cups[/COLOR] main process ended, respawning
              and:
              Code:
              34.225675] audit: type=1400 audit(1422251250.904:28): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend[COLOR="#FF0000"]/cups[/COLOR]-pdf" pid=2650 comm="apparmor_parser"
              [   34.225682] audit: type=1400 audit(1422251250.904:29): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/[COLOR="#B22222"]cupsd[/COLOR]" pid=2650 comm="apparmor_parser"
              [   34.255744] audit: type=1400 audit(1422251250.936:30): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="third_party" pid=2650 comm="apparmor_parser"
              [ 5031.580712] audit: type=1400 audit(1422256250.706:31): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=3536 comm="apparmor_parser"
              [ 5031.580725] audit: type=1400 audit(1422256250.706:32): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/[COLOR="#FF0000"]cupsd[/COLOR]" pid=3536 comm="apparmor_parser"
              [ 5031.600987] audit: type=1400 audit(1422256250.730:33): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="third_party" pid=3536 comm="apparmor_parser"
              What is a HUP signal and why would it kill cups i wonder.
              Last edited by GerardV; Jan 26, 2015, 03:53 AM.
              sigpic

              Comment


                #8
                The first part looks normal to me.

                I have read about apparmor blocking cups sometimes. Personally, I always remove apparmor so I can't comment on it much.

                Is there anything in /var/log/cups/error_log ?

                Please Read Me

                Comment


                  #9
                  oshulover, this is the log from the last couple of days
                  Code:
                  E [26/Jan/2015:10:02:19 +1100] [Client 14] Returning IPP client-error-bad-request for Create-Printer-Subscriptions (/) from localhost
                  W [26/Jan/2015:15:32:42 +1100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP_Photosmart_C4500_series-Gray..' already exists
                  W [26/Jan/2015:15:32:42 +1100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP_Photosmart_C4500_series-RGB..' already exists
                  W [26/Jan/2015:15:32:42 +1100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'Photosmart_C4500-Gray..' already exists
                  W [26/Jan/2015:15:32:42 +1100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'Photosmart_C4500-RGB..' already exists
                  E [26/Jan/2015:15:32:42 +1100] Unable to bind socket for address [v1.::1]:631 - Address already in use.
                  E [26/Jan/2015:15:32:42 +1100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
                  E [26/Jan/2015:15:55:45 +1100] Unable to remove /var/run/cups/certs/0!
                  E [27/Jan/2015:16:42:04 +1100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
                  However, i have rebooted a halve dozen times since, and every time the printer showed up.
                  A bit of a mistery and a bit annoying that i dit not find a cause. Systemd quirk perhaps?
                  So i am going to mark this as solved and thanks all you guys for your help and suggestions.
                  sigpic

                  Comment


                    #10
                    Looks like maybe your hosts file and/or cupsd.conf have something slightly wrong. If you want to trouble shoot further, post those two files and we'll have a look.

                    I would also re-install hplip and re-run hp-config. Could be a missing ppd file or a mis-configured printer address assignment.

                    Finally, if some other process is trying to use port 631, that would cause what you're seeing. It's not likely, but possible. To check this, enter this in a terminal:

                    sudo ss -lpn|grep 631

                    Output should look like:
                    Code:
                    tcp    UNCONN     0      0                      *:631                   *:*      users:(("cups-browsed",2046,8))
                    tcp    LISTEN     0      128            127.0.0.1:631                   *:*      users:(("cupsd",7643,10))

                    Please Read Me

                    Comment


                      #11
                      Originally posted by oshunluvr View Post
                      Looks like maybe your hosts file and/or cupsd.conf have something slightly wrong. If you want to trouble shoot further, post those two files and we'll have a look.

                      I would also re-install hplip and re-run hp-config. Could be a missing ppd file or a mis-configured printer address assignment.

                      Finally, if some other process is trying to use port 631, that would cause what you're seeing. It's not likely, but possible. To check this, enter this in a terminal:

                      sudo ss -lpn|grep 631

                      Output should look like:
                      Code:
                      tcp    UNCONN     0      0                      *:631                   *:*      users:(("cups-browsed",2046,8))
                      tcp    LISTEN     0      128            127.0.0.1:631                   *:*      users:(("cupsd",7643,10))
                      I have a similar problem. I got my printer installed a working a while back but the other day it stopped working! I tried this command on my computer. As you can see the last colum is different from what you get:

                      Code:
                      steve7233@steve7233-EP45-UD3P:~$ 
                      steve7233@steve7233-EP45-UD3P:~$ sudo ss -lpn|grep 631
                      [sudo] password for steve7233: 
                      udp    UNCONN     0      0                      *:631                   *:*      users:(("cups-browsed",pid=1298,fd=7))
                      tcp    LISTEN     0      128            127.0.0.1:631                   *:*      users:(("cupsd",pid=2156,fd=10))
                      tcp    LISTEN     0      128                  ::1:631                  :::*      users:(("cupsd",pid=2156,fd=9))
                      steve7233@steve7233-EP45-UD3P:~$
                      Just to remind users and devs that Ubuntu and its flavors have a long way to go to be as usr friendly as they should be.

                      http://www.kubuntu.org/getkubuntu

                      Comment


                        #12
                        Looks to me like cupsd is running twice.

                        Try killall cupsd until it returns no process found and then manually start cupsd with sudo service cupsd restart

                        Please Read Me

                        Comment

                        Working...
                        X