Results 1 to 6 of 6

Thread: Cups server: printers not accessible suddenly

  1. #1
    Join Date
    Aug 2010
    Location
    Berkshire
    Posts
    27

    Default Cups server: printers not accessible suddenly

    Running Opensuse 13.1 x86_64 and for some weeks have been sharing three printers on the network from one machine.

    Now suddenly no clients can see the shared printers.

    With firewall disabled on clients & server, still can't see printers.
    Cupsd is running on clients & server.

    Ports open on server:
    Host is up (0.00013s latency).
    Not shown: 996 closed ports
    PORT STATE SERVICE
    22/tcp open ssh
    111/tcp open rpcbind
    2049/tcp open nfs
    8010/tcp open xmpp

    Should 631 be open?

    Anyone any ideas what to check?

    Thanks.

  2. #2
    Join Date
    Aug 2010
    Location
    Berkshire
    Posts
    27

    Default Re: Cups server: printers not accessible suddenly

    A little more digging revealed this in the CUPS error log, which I can provoke by trying to restart cupsd:

    E [03/Feb/2014:19:09:11 +0000] Browsing=1
    E [03/Feb/2014:19:09:11 +0000] BrowseLocalProtocols=1
    E [03/Feb/2014:19:09:11 +0000] BrowseRemoteProtocols=1
    E [03/Feb/2014:19:09:11 +0000] BROWSE_CUPS=1
    E [03/Feb/2014:19:09:11 +0000] Browsing=1
    E [03/Feb/2014:19:09:11 +0000] BrowseLocalProtocols=1
    E [03/Feb/2014:19:09:11 +0000] BrowseRemoteProtocols=1
    E [03/Feb/2014:19:09:11 +0000] BROWSE_CUPS=1
    E [03/Feb/2014:19:09:11 +0000] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
    E [03/Feb/2014:19:09:11 +0000] Unable to bind socket for address [v1.::]:631 - Address already in use.

    Which led me to try to find who's bound the socket. I may have the wrong idea about investigating this but I stopped cupsd and tried:

    lsof -i :631

    Which gave:

    ~> lsof -i :631
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    systemd 1 root 21u IPv4 15396 0t0 TCP localhost:ipp (LISTEN)
    systemd 1 root 32u IPv6 15397 0t0 TCP localhost:ipp (LISTEN)
    systemd 1 root 33u IPv4 15398 0t0 UDP localhost:ipp
    systemd 1 root 34u IPv6 15399 0t0 UDP localhost:ipp

    So now I'm stuck (again). Is this right? What's systemd and why has it grabbed port 631?

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,728

    Default Re: Cups server: printers not accessible suddenly

    Please try this thread: https://forums.opensuse.org/showthre...r-after-update

    It may take some time to find out wha to do (and what not) exactly. The thread does not conclude with a clear step by step solution.
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,695
    Blog Entries
    1

    Default Re: Cups server: printers not accessible suddenly

    I'm going to suggest that you try the updates from the printing repo

    http://download.opensuse.org/reposit...openSUSE_13.1/

    as suggested in the bug report

    https://bugzilla.novell.com/show_bug.cgi?id=857372#c75

    Socket-activation has been disabled in the updates with cups.service now modified accordingly.

    I added the repo with zypper and updated from it. I've done the same with a CUPS print server I had set up, and all is working fine.

  5. #5

    Default Re: Cups server: printers not accessible suddenly

    How did you shared printer on openSUSE 13.1? I'm trying for about a week without luck. I'm new to suse, any clue would be appreciated.
    Even with firewall not running port 631 is not accesbile after some time. Could you at least tell me how to open port 631 properly?
    Is there any additional things to do except that?

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,695
    Blog Entries
    1

    Default Re: Cups server: printers not accessible suddenly

    Quote Originally Posted by splendorepl View Post
    How did you shared printer on openSUSE 13.1? I'm trying for about a week without luck. I'm new to suse, any clue would be appreciated.
    Even with firewall not running port 631 is not accesbile after some time. Could you at least tell me how to open port 631 properly?
    Is there any additional things to do except that?
    Try updating CUPS via the printing repo. Without socket activation, cups.service now looks like this
    Code:
    [Unit]
    Description=CUPS Printing Service
    After=network.target
    
    [Service]
    ExecStart=/usr/sbin/cupsd -f
    
    [Install]
    WantedBy=multi-user.target
    and cupsd will stay active, and listening. (All that remains is to make sure that /etc/cups/cupsd.conf is configured correctly each end.)

    If you require further help, I suggest you start a new thread with descriptive title.

Tags for this Thread

Posting Permissions

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