Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: All of a sudden, my printer won't print

  1. #1

    Default All of a sudden, my printer won't print

    openSUSE 12.3
    CUPS 1.5.4-5.5.1-x86_64

    It's been a while since I have been here since all has been working just fine.
    The printer was working last week and now it is partially working.
    By partial I mean that, from within CUPS I can print a test page, but I can't print a test page from within YAST.
    From within YAST I get an error message:

    Code:
    /usr/bin/lp: connection refused
    Also, no application is able to print.

    I think that I saw a CUPS update in the last YAST online update so maybe that had something to do with it.
    I tried adding the same printer as if it were new but that didn't solve it.

    Thanks for your guidance.
    openSUSE 13.2

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: All of a sudden, my printer won't print

    On 2014-01-27 13:36, hextejas wrote:

    > Code:
    > --------------------
    > /usr/bin/lp: connection refused
    > --------------------


    Is that a parallel port printer?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  3. #3

    Default Re: All of a sudden, my printer won't print

    [QUOTE=robin_listas;2619697]On 2014-01-27 13:36, hextejas wrote:

    > Code:
    > --------------------
    > /usr/bin/lp: connection refused
    > --------------------


    Is that a parallel port printer?

    It's a USB printer.
    openSUSE 13.2

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: All of a sudden, my printer won't print

    On 2014-01-27 14:36, hextejas wrote:
    >
    > robin_listas;2619697 Wrote:
    >> On 2014-01-27 13:36, hextejas wrote:
    >>
    >>> Code:
    >>> --------------------
    >>> /usr/bin/lp: connection refused
    >>> --------------------

    >>
    >> Is that a parallel port printer?
    >>
    >> It's a USB printer.


    But the above output means it is trying the parallel port.

    Besides YaST problem to print a test page, is something else not printing?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  5. #5

    Default Re: All of a sudden, my printer won't print

    Quote Originally Posted by hextejas View Post
    I think that I saw a CUPS update in the last YAST online update so maybe that had something to do with it.
    Create a file called /etc/systemd/system/cups.socket (f.e. with "kdesu kwrite /etc/systemd/system/cups.socket") with exactly the following content:
    Code:
    [Unit]
    Description=CUPS Printing Service Sockets
    
    [Socket]
    ListenStream=/var/run/cups/cups.sock
    ListenStream=631
    ListenDatagram=0.0.0.0:631
    BindIPv6Only=ipv6-only
    
    [Install]
    WantedBy=sockets.target
    And reboot.
    Everything should work just like before then.

  6. #6

    Default Re: All of a sudden, my printer won't print

    Quote Originally Posted by robin_listas View Post
    On 2014-01-27 14:36, hextejas wrote:
    >
    > robin_listas;2619697 Wrote:
    >> On 2014-01-27 13:36, hextejas wrote:
    >>
    >>> Code:
    >>> --------------------
    >>> /usr/bin/lp: connection refused
    >>> --------------------

    >>
    >> Is that a parallel port printer?
    >>
    >> It's a USB printer.


    But the above output means it is trying the parallel port.
    No. /usr/bin/lp is the (cups) command to print files.
    See "man lp".

    The parallel port backend is /usr/lib/cups/backend/parallel.

  7. #7

    Default Re: All of a sudden, my printer won't print

    Quote Originally Posted by wolfi323 View Post
    Create a file called /etc/systemd/system/cups.socket (f.e. with "kdesu kwrite /etc/systemd/system/cups.socket") with exactly the following content:
    Code:
    [Unit]
    Description=CUPS Printing Service Sockets
    
    [Socket]
    ListenStream=/var/run/cups/cups.sock
    ListenStream=631
    ListenDatagram=0.0.0.0:631
    BindIPv6Only=ipv6-only
    
    [Install]
    WantedBy=sockets.target
    And reboot.
    Everything should work just like before then.
    Lol, it got worse.
    When I tried to open CUPS and print a test page, I kept getting

    Code:
    Google Chrome's connection attempt to localhost was rejected. The website may be down, or your network may not be properly configured.
    Check your Internet connection.
    Check any cables and reboot any routers, modems, or other network devices you may be using.
    
    Allow Chrome to access the network in your firewall or antivirus settings.
    If it is already listed as a program allowed to access the network, try removing it from the list and adding it again.
    
    If you use a proxy server...
    Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chrome menu > Settings > Show advanced settings... > Change proxy settings...and make sure your configuration is set to "no proxy" or "direct."
    
    Error code: ERR_CONNECTION_REFUSED
    Every page that I went to in CUPS along with YAST.

    Here is what the .socket file looks like.

    Code:
    Corky-PC:/etc/systemd/system # 
    Corky-PC:/etc/systemd/system # 
    Corky-PC:/etc/systemd/system # cat cups.socket
    [Unit]
    Description=CUPS Printing Service Sockets
    
    
    [Socket]
    ListenStream=/var/run/cups/cups.sock
    ListenStream=631
    ListenDatagram=0.0.0.0:631
    BindIPv6Only=ipv6-only
    
    
    [Install]
    WantedBy=sockets.target
    Corky-PC:/etc/systemd/system #
    openSUSE 13.2

  8. #8

    Default Re: All of a sudden, my printer won't print

    Quote Originally Posted by hextejas View Post
    Here is what the .socket file looks like.

    Code:
    Corky-PC:/etc/systemd/system # 
    Corky-PC:/etc/systemd/system # 
    Corky-PC:/etc/systemd/system # cat cups.socket
    [Unit]
    Description=CUPS Printing Service Sockets
    
    
    [Socket]
    ListenStream=/var/run/cups/cups.sock
    ListenStream=631
    ListenDatagram=0.0.0.0:631
    BindIPv6Only=ipv6-only
    
    
    [Install]
    WantedBy=sockets.target
    Corky-PC:/etc/systemd/system #
    Well, that's exactly the file as shipped with 12.3. And the latest update only changed that file and nothing else.
    So if it doesn't it can't really be caused by the update.
    Remove that file again in that case.

    Does printing work maybe if you start cups manually?
    Code:
    sudo systemctl start cups.service
    Maybe Apparmor is blocking something? (wouldn't be the first time)
    Try:
    Code:
    sudo rcapparmor stop

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: All of a sudden, my printer won't print

    On 2014-01-27 15:16, wolfi323 wrote:

    > No. /usr/bin/lp is the (cups) command to print files.
    > See "man lp".


    Argh. Right. What was I thinking about? :-o

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  10. #10

    Default Re: All of a sudden, my printer won't print

    On 01/27/2014 12:23 PM, Carlos E. R. pecked at the keyboard and wrote:
    > On 2014-01-27 15:16, wolfi323 wrote:
    >
    >> No. /usr/bin/lp is the (cups) command to print files.
    >> See "man lp".

    > Argh. Right. What was I thinking about? :-o
    >


    A record you have on the old record player? :-))

Page 1 of 4 123 ... 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
  •