Failed to connect to cups server

Hello
If I select print settings and try to connect to the server, I get an error message. The server is /run/cups/cups.sock and the message says “failed to connect to server”. This should work at first time, as in all other linux distributions. I’ve been reading about it for two days and haven’t been able to fix it.
I appreciate the help.

https://endeavouros.com/docs/hardware-and-network/printers/

1 Like

Yes, I had already read this text (and many others), but it didn’t do me any good. I print files, yes, but the printer configuration tells me that it cannot connect to the server. And if I access localhost:631 (CUPS 2.3.3) and click on any option, I get the message “Cannot connect” (I have no firewall!). All this means that I can’t see the print queue, I can’t cancel jobs, etc. All I can do is print.

1 Like

Hello @lapagalia
First of all can i ask what printer model you have and is it connected to usb?

Edit: Can you also tell me what desktop you installed and did you install printer support.

Please post the following:

pacman -Qs cups

Welcome to the community :beers:

I’m not help with the printer set up, but I feel sure the pros here will get it sorted out for you before too long.

Hello ricklinux
My printer is Brother MFC-L250DW
When I try to print from Firefox, the printer is there and I can to print.
I have installed Linux Mint and Kubuntu on my computers and I have not had any problems with the printer, I have not even had to do any additional configuration.
The Desktop is xfce and I did install the printer support.
The output from pacman -Qs cups is:
ocal/cups 2.3.3-3
The CUPS Printing System - daemon package
local/cups-filters 1.28.5-1
OpenPrinting CUPS Filters
local/cups-pdf 3.0.1-5
PDF printer for cups
local/libcups 2.3.3-3
The CUPS Printing System - client libraries and headers
local/python-pycups 2.0.1-1
Python bindings for libcups
local/splix 2.0.0-15
CUPS drivers for SPL (Samsung Printer Language) printers
local/system-config-printer 1.5.12+33+g23b454ef-1
A CUPS printer configuration tool and status applet

Ricklinux, I forgot a thing: my printer is connected by usb to another computer, but the two computers are in the same lan.

Well that makes a difference then because it would be a network printer then. So if you have it installed on another system it would have to be shared from that computer. Can you check on EndeavourOS

systemctl status avahi-daemon

If it is not installed and running.

sudo pacman -S avahi --needed
sudo systemctl start avahi-daemon
sudo systemctl enable avahi-daemon

Edit: You should then be able to browse localhost:631 and set up the printer as a network printer.

You may have to go into the printer on your other computer and set it up to be shared first. It’s been a while since i have setup a network printer so hopefully i’m heading you in the right direction. :thinking:

Yes, I have set the printer on another computer to share it.
The output of systemctl status avahi-daemon is:

● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; ven>
Active: active (running) since Wed 2020-10-14 10:21:07 CEST; 9h ago
TriggeredBy: ● avahi-daemon.socket
Main PID: 585 (avahi-daemon)
Status: “avahi-daemon 0.8 starting up.”
Tasks: 2 (limit: 9456)
Memory: 1.7M
CGroup: /system.slice/avahi-daemon.service
├─585 avahi-daemon: running [archlinux.local]
└─611 avahi-daemon: chroot helper

oct 14 10:21:07 archlinux avahi-daemon[585]: Network interface enumeration comp>
oct 14 10:21:07 archlinux avahi-daemon[585]: Registering new address record for>
oct 14 10:21:07 archlinux avahi-daemon[585]: Registering new address record for>
oct 14 10:21:08 archlinux avahi-daemon[585]: Server startup complete. Host name>
oct 14 10:21:30 archlinux avahi-daemon[585]: Joining mDNS multicast group on in>
oct 14 10:21:30 archlinux avahi-daemon[585]: New relevant interface enp3s0f0.IP>
oct 14 10:21:30 archlinux avahi-daemon[585]: Registering new address record for>
oct 14 10:21:31 archlinux avahi-daemon[585]: Joining mDNS multicast group on in>
oct 14 10:21:31 archlinux avahi-daemon[585]: New relevant interface enp3s0f0.IP>
oct 14 10:21:31 archlinux avahi-daemon[585]: Registering new address record for>

I have installed avahi. However I have executed both start and enable avahi-daemon …
but nothing. A new message is showed: “Printing service not available. Start the service on this computer or connect to another server.”

Did you reboot?

Excuse me. The output was incompleted.

oct 14 10:21:07 archlinux avahi-daemon[585]: Network interface enumeration completed.
oct 14 10:21:07 archlinux avahi-daemon[585]: Registering new address record for ::1 on lo..
oct 14 10:21:07 archlinux avahi-daemon[585]: Registering new address record for 127.0.0.1 on lo.IPv4.
oct 14 10:21:08 archlinux avahi-daemon[585]: Server startup complete. Host name is archlinux.local. Local service cookie is 543534518.
oct 14 10:21:30 archlinux avahi-daemon[585]: Joining mDNS multicast group on interface enp3s0f0.IPv6 with address fe80::3ba1:8d57:b2ed:6af0.
oct 14 10:21:30 archlinux avahi-daemon[585]: New relevant interface enp3s0f0.IPv6 for mDNS.
oct 14 10:21:30 archlinux avahi-daemon[585]: Registering new address record for fe80::3ba1:8d57:b2ed:6af0 on enp3s0f0.
.
oct 14 10:21:31 archlinux avahi-daemon[585]: Joining mDNS multicast group on interface enp3s0f0.IPv4 with address 192.168.0.20.
oct 14 10:21:31 archlinux avahi-daemon[585]: New relevant interface enp3s0f0.IPv4 for mDNS.
oct 14 10:21:31 archlinux avahi-daemon[585]: Registering new address record for 192.168.0.20 on enp3s0f0.IPv4.

Now try and browse local host and see if you can set it as a network printer.

Edit: Can you get into localhost? If so then Administration add printer, network printer and find your printer and go through the steps.

I rebooted but everything remains the same.
I download localhost on Firefox, but I cannot visit any option. I get the message: “cannot be connected”.

You have to use root as the user name and your password.

where?

It should come up if you try to browse local host.

http://localhost:631

No

Try reinstalling cups.

sudo pacman -S cups cups-filters cups-pdf system-config-printer --needed