You are not logged in.

#1 2014-11-03 13:29:17

TimorLee
Member
Registered: 2012-07-05
Posts: 48

system-config-printer can't connect to cups

I'm trying to get my laptop to print over a network printer with cups, but for some reason cups doesn't seem to load correctly for system-config-printer to connect to it.

When trying to connect with system-config-printer (to /var/run/cups/cups.socket) it says: "failed to connect to server"

cups is installed after wiki onstructions (I believe...)

As far as my debugging has gotten me, it seams like cups doesn't create the socket... here some status output from cups:

#systemctl status org.cups.cupsd.service
● org.cups.cupsd.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.service; enabled)
   Active: active (running) since Mon 2014-11-03 14:12:44 CET; 10min ago
 Main PID: 13242 (cupsd)
   CGroup: /system.slice/org.cups.cupsd.service
           └─13242 /usr/bin/cupsd -l

Nov 03 14:12:44 marvin systemd[1]: Starting CUPS Scheduler...
Nov 03 14:12:44 marvin systemd[1]: Started CUPS Scheduler.
Nov 03 14:18:50 marvin systemd[1]: Started CUPS Scheduler.
# systemctl status cups.service cups.path cups.socket
● cups.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

● cups.path
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

● cups.socket
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Nov 03 13:52:55 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 13:53:41 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:00:25 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:03:41 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:04:04 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:04:08 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:07:55 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:12:44 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:13:41 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Nov 03 14:15:25 marvin systemd[1]: Cannot add dependency job for unit cups.socke...ry.
Hint: Some lines were ellipsized, use -l to show in full.

I believe somewhere in systemd I'm missing some part of the initialising process... but I'm clueless (especially since the way ups and systemd interact seams to change every other day...)

Anybody with Ideas which might help me solve this? I'll also post more information if somebody needs more!

Offline

#2 2014-11-03 16:03:33

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

Same problem here - still looking

Andrew

Offline

#3 2014-11-03 17:20:48

kmacleod
Member
Registered: 2009-03-27
Posts: 10

Re: system-config-printer can't connect to cups

The cups services have changed names. You need to disable cups.service and enable org.cups.cupsd.service. See https://wiki.archlinux.org/index.php/Cups#CUPS_daemon

Offline

#4 2014-11-03 17:23:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 21,201
Website

Re: system-config-printer can't connect to cups

kmacleod wrote:

The cups services have changed names. You need to disable cups.service and enable org.cups.cupsd.service. See https://wiki.archlinux.org/index.php/Cups#CUPS_daemon

TimorLee wrote:
#systemctl status org.cups.cupsd.service

Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2014-11-03 19:47:01

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

Thank you for that. I did follow all the instructions, but I think that quite a lot more seems to have changed. I will report back if and when I have sorted it out.

Andrew

Offline

#6 2014-11-03 22:29:00

herOldMan
Member
Registered: 2013-10-11
Posts: 91

Re: system-config-printer can't connect to cups

Same problem here.

Network printer located at: dnssd://Canon%20MX920%20series._printer._tcp.local/

Error: Processing - Unable to locate printer "cannon.local".

I can scan using sane.

Packages updated:
libcups (1.7.5-1 -> 2.0.0-2)
cups (1.7.5-1 -> 2.0.0-2)
system-config-printer (1.5.3-2 -> 1.5.3-3)

I am using org.cups.cupsd.service and I have formalized changes in cups.conf and cups-files.config.

Also, I tried re-installing printer. The printer is discovered using the web interface > add printer dialog and completes the install without error.

Note also: top shows cpu demand by cupsd at 100%

Last edited by herOldMan (2014-11-03 23:02:26)

Offline

#7 2014-11-05 00:19:17

herOldMan
Member
Registered: 2013-10-11
Posts: 91

Re: system-config-printer can't connect to cups

OK, I changed the printer's location to: lpd://192.168.0.122/PASSTHRU, where .122 is the static address of the printer.

I can now print.

Oddly, the following do not work anymore: lp* commands and system-config-printer.

Perhaps I botched something while working towards a printing solution. Does anyone have any ideas?

Offline

#8 2014-11-05 02:16:58

timurkiyivinski
Member
Registered: 2013-03-07
Posts: 19

Re: system-config-printer can't connect to cups

Have the same issue, disabled the old units and re-enabled the new units but it still enters a failed state.

Offline

#9 2014-11-05 04:34:59

Kopkins
Member
Registered: 2012-07-01
Posts: 189

Re: system-config-printer can't connect to cups

It look like to me that we need a working avahi setup to use the printer names like modelnumber.local/PASSTHRU. I also found that changing the *.local part of the printer location in /etc/cups/printers.conf fixed it for me.

Offline

#10 2014-11-05 07:33:16

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

I, too, found that the lp* commands don't work correctly for me on my work machine. I have reinstalled cups and reinstalled all my printers, with considerable difficulty., and continue testing today.

Oddly, on my laptop, everything works as expected, including lp* commands

Andrew

Offline

#11 2014-11-05 09:45:15

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

I, too, found that the lp* commands don't work

OK, so I have found that this is not quite true. From start up :

lpstat -t only shows my two physical printers, and not my wireless printer or my two virtual printers
KDE Manage Print Jobs widget only shows my two physical printers.
KDE Configure Printers only shows my two physical printers
Cups web interface shows all five printers

Now it gets weird, if I use lp to print to each of the virtual printers, the printers work fine.
If I use lp to print to the wireless printer is throws the job away - probably something to do with the set up of that printer so I will ignore that at the moment.
After printing to the printers:

lpstat -t only shows my two physical printers, and not my wireless printer or my two virtual printers
KDE Manage Print Jobs widget only shows all of my printers.
KDE Configure Printers only shows my two physical printers
Cups web interface still shows all five printers

Anyone care to hazard a guess as to what is going on?

Andrew

Offline

#12 2014-11-05 17:33:17

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

I find that lpoptions also does not work on the main pc. It does on the laptop.

If it helps the main pc is:

AMD Phenom II X6 1100T 3.3GHz Black Edition (Socket AM3)
Gigabyte 990XA-UD3 AMD 990X (AM3+) DDR3 PCI-Express ATX
Alpine Ezcool Midi Black EC-7103H (ATX/PIV)
8GB Mushkin Blackline LV #996988 (2x4GB) DDR3
1TB Western Digital Caviar Black WD1002FAEX 3.5" SATA III Hard Drive
LiteOn  DVD +- RW 
Nvidia Gainward GeForce 9500GT 1GB PCI-Express 2.0
 

The laptop, which works, is:

 HP-DM1 laptop, intel chipset, cpu: U2300 2-core, video: intel GM45 express, network: Realtek RTL8101E/8102E, Wifi: Broadcom  BCM4312

Andrew

Offline

#13 2014-11-06 18:36:47

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

@herOldMan Did you get the lp* commands to work?

Andrew

Offline

#14 2014-11-06 23:53:33

herOldMan
Member
Registered: 2013-10-11
Posts: 91

Re: system-config-printer can't connect to cups

Hi,

No. But I'd like to.

Offline

#15 2014-11-07 12:55:57

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 652
Website

Re: system-config-printer can't connect to cups

kmacleod wrote:

The cups services have changed names. You need to disable cups.service and enable org.cups.cupsd.service. See https://wiki.archlinux.org/index.php/Cups#CUPS_daemon

Brother DCP-150C here. Met the same issue than TimorLee and others.

systemctl -a | grep cups
● cups.path               not-found inactive dead      cups.path
● cups.service           not-found inactive dead      cups.service
● cups.socket            not-found inactive dead      cups.socket

Then did start CUPS new daemon as per the wiki:

systemctl {enable,start} org.cups.cupsd.service
systemctl disable {cups.path,cups.service,cups.socket
systemctl -a |grep cups
● org.cups.cupsd.path        loaded    inactive dead      CUPS Scheduler
● org.cups.cupsd.service    loaded    active running     CUPS Scheduler
● org.cups.cupsd.socket     loaded    inactive dead      CUPS Scheduler

Just starting new 'org.cups.cupsd.service' and the printer reappeared in localhost:631 and in printing dialogs. It also works as expected, with previous-to-CUPS-upgrade settings smile


Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) & 2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#16 2014-11-07 18:34:25

TimorLee
Member
Registered: 2012-07-05
Posts: 48

Re: system-config-printer can't connect to cups

Update on my side:

- cups finds the printer
- cups is running
- I can print a test page
- I can't print from evince, libreoffice, etc.
- system-config-printer can't connect to the socket.

systemctl -a | grep cups
  org.cups.cupsd.path                                                                                            loaded    active   running   CUPS Scheduler
  org.cups.cupsd.service                                                                                         loaded    active   running   CUPS Scheduler
  org.cups.cupsd.socket                                                                                          loaded    active   running   CUPS Scheduler

systen-config-printer wants to connect to:
/var/run/cups.socket

and returns:
failed to connect to server

Output from ls /var/run reveals there is a file called "cups"

Result: I can't print anything except test pages...quite useless.

Last edited by TimorLee (2014-11-07 18:35:53)

Offline

#17 2014-11-07 18:55:27

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

@TimorLee - for interest, try printing with lpr

Andrew

Offline

#18 2014-11-08 15:44:27

TimorLee
Member
Registered: 2012-07-05
Posts: 48

Re: system-config-printer can't connect to cups

Here are my results:

#lpinfo -v
lpinfo: Bad file descriptor

#lpstat -s
no system default destination
lpstat: Bad file descriptor
lpstat: Bad file descriptor

#lpr [dummyfile]
lpr: Error - scheduler not responding.

looks to me like something is quite wrong...

Offline

#19 2014-11-08 17:17:00

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

You could check this out:

https://bbs.archlinux.org/viewtopic.php … 9#p1472149

It may help. If so, recheck the same commands

Andrew

Offline

#20 2014-11-10 11:20:40

TimorLee
Member
Registered: 2012-07-05
Posts: 48

Re: system-config-printer can't connect to cups

No change there.

New Info: system-config-printer tells me "the cups spooler doesn't appear to be running".

But cups appears to be running flawlessly. The log also doesn't print any errors.

Offline

#21 2014-11-10 16:19:12

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

https://bbs.archlinux.org/viewtopic.php?id=189261 seems to be connected.

I [posted here

Andrew

Offline

#22 2014-11-13 16:45:11

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 342

Re: system-config-printer can't connect to cups

On the face of it the Cups 2.0.0.3 update has fixed it for me

Hooray

Andrew

Offline

#23 2014-12-16 15:01:01

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 114

Re: system-config-printer can't connect to cups

I have cups 2.0.1-1 installed on my print server and client. The following worked for me:

May not be necessary but disable old services, if they are still there after the upgrade:
sudo systemctl disable cups.service cups.path cups.socket cupsd.service

enable and start new service names:
sudo systemctl enable org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket
sudo systemctl start org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket

see what's enabled:
systemctl list-unit-files | grep cups   

reboot the cups printer server.

Offline

Board footer

Powered by FluxBB