You are not logged in.

#1 2013-01-02 11:44:30

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Cups error: Unable to connect to cupsd: Connection refused

Cups doesn't seem to want to work since I transitioned my machine to systemd - although that may be a red herring.

I can start it via

systemctl start cups

and the web interface is available, although there are errors.  For example, the admin tab simply displays

Internal server error

and the printer tab shows:

Unable to get printer list:
Connection refused 

When I look in the log I can see

[CGI] Unable to connect to cupsd: Connection refused

If I enable the daemon with

systemctl enable cups.service

then it returns without errors - although I'm still getting the problems mentioned above - if that makes sense?

If I try and enable it with

systemctl enable cupsd.service

then it returns

Failed to issue method call: No such file or directory

The printer is connected and switched on! wink

Any ideas?

Offline

#2 2013-01-14 20:20:21

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: Cups error: Unable to connect to cupsd: Connection refused

I've tried reinstalling cups and googling there error, but still no luck.

Offline

#3 2013-01-14 20:25:50

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: Cups error: Unable to connect to cupsd: Connection refused

BTW - if it makes any difference, the printer is connected by wifi and has worked perfectly well for a while now.

Offline

#4 2013-01-14 20:57:07

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: Cups error: Unable to connect to cupsd: Connection refused

Nevermind - rebooting the server fixed it!

Offline

#5 2013-01-23 04:17:27

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: Cups error: Unable to connect to cupsd: Connection refused

I have the same problem, but after restarting cups for several times, the problem still didn't go away. Printing worked fine yesterday, today suddenly it won't.


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#6 2013-01-23 14:02:34

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: Cups error: Unable to connect to cupsd: Connection refused

The BrowseOrder directive (used in /etc/cups/cupsd.conf) stopped working for me after the last update I ran.  Removing it allowed cups to start properly.

What is the output from running:

systemctl status cupsd

That should identify any problems.

Offline

#7 2013-03-07 13:00:15

medivhok
Member
Registered: 2013-02-18
Posts: 7

Re: Cups error: Unable to connect to cupsd: Connection refused

I'm having the same problem. I just installed cups (never used my printer with my arch box yet) but I can't connect to the cups server.

[root@Mercure ~]# systemctl status cupsd
cups.service - CUPS Printing Service
          Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
          Active: active (running) since jeu 2013-03-07 07:55:49 UTC; 1s ago
        Main PID: 5136 (cupsd)
          CGroup: name=systemd:/system/cups.service
                  └─5136 /usr/sbin/cupsd -f

mar 07 07:55:53 Mercure systemd[1]: Started CUPS Printing Service.
mar 07 07:55:56 Mercure cupsd[5141]: Unknown directive DefaultAuthType on line 9.
mar 07 07:55:56 Mercure cupsd[5141]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
mar 07 07:55:56 Mercure cupsd[5145]: Unknown directive DefaultAuthType on line 9.
mar 07 07:55:56 Mercure cupsd[5145]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
mar 07 07:55:56 Mercure systemd-coredump[5147]: Process 5145 (cupsd) dumped core.
mar 07 07:55:56 Mercure systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
mar 07 07:55:56 Mercure systemd[1]: Unit cups.service entered failed state
mar 07 07:55:56 Mercure systemd[1]: Starting CUPS Printing Service...
mar 07 07:55:56 Mercure systemd[1]: Started CUPS Printing Service.
mar 07 07:55:56 Mercure systemd-coredump[5151]: Process 5149 (cupsd) dumped core.
mar 07 07:55:56 Mercure systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
mar 07 07:55:56 Mercure systemd[1]: Unit cups.service entered failed state
mar 07 07:55:56 Mercure systemd[1]: Starting CUPS Printing Service...
mar 07 07:55:56 Mercure systemd[1]: Started CUPS Printing Service.
mar 07 07:56:00 Mercure cupsd[5149]: Unknown directive DefaultAuthType on line 9.
mar 07 07:56:00 Mercure cupsd[5149]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
mar 07 07:56:00 Mercure cupsd[5153]: Unknown directive DefaultAuthType on line 9.
mar 07 07:56:00 Mercure cupsd[5153]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
mar 07 07:56:00 Mercure systemd-coredump[5156]: Process 5153 (cupsd) dumped core.
mar 07 07:56:00 Mercure systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
mar 07 07:56:00 Mercure systemd[1]: Unit cups.service entered failed state
mar 07 07:56:00 Mercure systemd[1]: Starting CUPS Printing Service...
mar 07 07:56:00 Mercure systemd[1]: Started CUPS Printing Service.
mar 07 07:56:00 Mercure systemd-coredump[5160]: Process 5158 (cupsd) dumped core.
mar 07 07:56:00 Mercure systemd[1]: cups.service: main process exited, code=dumped, status=6/ABRT
mar 07 07:56:00 Mercure systemd[1]: Unit cups.service entered failed state
mar 07 07:56:00 Mercure systemd[1]: Starting CUPS Printing Service...
mar 07 07:56:00 Mercure systemd[1]: Started CUPS Printing Service.
mar 07 07:56:04 Mercure cupsd[5158]: Unknown directive DefaultAuthType on line 9.
mar 07 07:56:04 Mercure cupsd[5158]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
mar 07 07:56:04 Mercure cupsd[5162]: Unknown directive DefaultAuthType on line 9.
mar 07 07:56:04 Mercure cupsd[5162]: cupsd: client.c:757: avahi_client_get_host_name: Assertion `client' failed.
[root@Mercure ~]# 

Offline

#8 2013-03-07 13:09:40

medivhok
Member
Registered: 2013-02-18
Posts: 7

Re: Cups error: Unable to connect to cupsd: Connection refused

Offline

Board footer

Powered by FluxBB