Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: CUPS problems.

  1. #1

    Default CUPS problems.

    Hi,

    Running Lxde, and I have a printer on the local network.

    Code:
    systemctl status cups.service
    cups.service - CUPS Printing Service
       Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
       Active: active (running) since Sat 2016-04-23 21:56:06 BST; 30min ago
     Main PID: 1808 (cupsd)
       CGroup: /system.slice/cups.service
               ├─1808 /usr/sbin/cupsd -f
               ├─3661 /usr/lib/cups/cgi-bin/jobs.cgi
               └─3665 /usr/lib/cups/cgi-bin/admin.cgi
    
    netstat -ltunp|grep LISTEN
      
    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1808/cupsd          
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      2015/smbd
    If I go to the corner taskbar icon, system, admin, manage printer I get the basic cups page and unable to change tabs, if I go direct from firefox, nothing,

    Any ideas?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,673
    Blog Entries
    1

    Default Re: CUPS problems.

    You mean the following URL does not result in a CUPS page being served?

    http://localhost:631

  3. #3

    Default Re: CUPS problems.

    Quote Originally Posted by deano_ferrari View Post
    You mean the following URL does not result in a CUPS page being served?

    http://localhost:631
    Exactly, if I try that it just waits forever. Whereas following the administer printer link does at least bring up the CUPS 1.7.5 page to see something, but then does not let me see any other pages. But once I have followed the administer CUPS link, the main page does then come up for that session, until I reboot.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,673
    Blog Entries
    1

    Default Re: CUPS problems.

    Quote Originally Posted by unknown33 View Post
    Exactly, if I try that it just waits forever. Whereas following the administer printer link does at least bring up the CUPS 1.7.5 page to see something, but then does not let me see any other pages. But once I have followed the administer CUPS link, the main page does then come up for that session, until I reboot.
    Check that /etc/cups/cupsd.conf contains
    Code:
    Listen localhost:631

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,673
    Blog Entries
    1

    Default Re: CUPS problems.

    If that check out okay, try the following from a terminal
    Code:
    wget -p http://localhost:631 -O /dev/null

  6. #6

    Default Re: CUPS problems.

    from the cupsd conf file:

    Code:
    # Log general information in error_log - change "warn" to "debug"
    # for troubleshooting...
    LogLevel warn
    
    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen /run/cups/cups.sock
    
    # Show shared printers on the local network.
    Browsing On
    BrowseLocalProtocols dnssd
    
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    
    # Web interface setting...
    WebInterface Yes
    
    # Restrict access to the server...
    <Location />
      Order allow,deny
    </Location>
    
    # Restrict access to the admin pages...
    <Location /admin>
      Order allow,deny
      Allow localhost
    </Location>
    
    # Restrict access to configuration files...
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
    </Location>
    and wget gave this:

    Code:
    ing -O with -r or -p will mean that all downloaded content
    will be placed in the single file you specified.
    
    --2016-04-24 11:02:25--  http://localhost:631/
    Resolving localhost (localhost)... 127.0.0.1, ::1
    Connecting to localhost (localhost)|127.0.0.1|:631... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3697 (3.6K) [text/html]
    Saving to: ‘/dev/null’
    
    100%[=================================================================================================================================>] 3,697       --.-K/s   in 0s      
    
    2016-04-24 11:02:25 (490 MB/s) - ‘/dev/null’ saved [3697/3697]
    
    FINISHED --2016-04-24 11:02:25--
    Total wall clock time: 0.01s
    Downloaded: 1 files, 3.6K in 0s (490 MB/s)

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,673
    Blog Entries
    1

    Default Re: CUPS problems.

    Okay, that checks out as expected. Firefox is not configured to use a proxy server perhaps?

  8. #8

    Default Re: CUPS problems.

    Quote Originally Posted by deano_ferrari View Post
    Okay, that checks out as expected. Firefox is not configured to use a proxy server perhaps?
    Hi, well firefox is set to autodetect, but I have not deliberately chosen to have proxy, as it is a personal network behind the router firewall, so no special need to have one.

    I tried this and it just hung:

    wget -p http://localhost:631/admin -O /dev/null
    WARNING: combining -O with -r or -p will mean that all downloaded content
    will be placed in the single file you specified.

    --2016-04-24 14:57:59-- http://localhost:631/admin
    Resolving localhost (localhost)... 127.0.0.1, ::1
    Connecting to localhost (localhost)|127.0.0.1|:631... connected.
    HTTP request sent, awaiting response...

  9. #9

    Default Re: CUPS problems.

    Still learning and looking, found /var/cups/

    so in the error logs I get this:
    Code:
    E [21/Apr/2016:21:01:13 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [21/Apr/2016:22:51:26 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [22/Apr/2016:15:35:38 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [22/Apr/2016:15:47:44 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:10:13:50 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:18:55:12 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:20:31:47 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:21:56:06 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:22:24:52 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:22:24:52 +0100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
    E [23/Apr/2016:22:25:37 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [23/Apr/2016:22:25:37 +0100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
    E [24/Apr/2016:09:49:05 +0100] Unable to remove /run/cups/certs/0!
    E [24/Apr/2016:09:49:05 +0100] Unable to remove /run/cups/certs/0!
    E [24/Apr/2016:09:49:55 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [24/Apr/2016:09:54:46 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    E [24/Apr/2016:19:54:19 +0100] Unable to bind socket for address [v1.::1]:631 - Cannot assign requested address.
    So how do I track down the duplicate use of the port?

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,673
    Blog Entries
    1

    Default Re: CUPS problems.

    I noticed that in your opening post cups.service is disabled.
    Code:
    systemctl status cups.service
    cups.service - CUPS Printing Service
         Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
    I would have generally expected it to be enabled. Are you having to start it manually? Is this a clean install, or did you upgrade from openSUSE 13.1? I'm just wondering if stale systemd config at play. This thread may be worth reading (post #8 onwards).

Page 1 of 2 12 LastLast

Posting Permissions

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