You are not logged in.
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
Same problem here - still looking
Andrew
Offline
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
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
#systemctl status org.cups.cupsd.service
Offline
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
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
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
Have the same issue, disabled the old units and re-enabled the new units but it still enters a failed state.
Offline
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
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
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
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
@herOldMan Did you get the lp* commands to work?
Andrew
Offline
Hi,
No. But I'd like to.
Offline
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
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #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
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
@TimorLee - for interest, try printing with lpr
Andrew
Offline
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
You could check this out:
https://bbs.archlinux.org/viewtopic.php … 9#p1472149
It may help. If so, recheck the same commands
Andrew
Offline
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
Offline
On the face of it the Cups 2.0.0.3 update has fixed it for me
Hooray
Andrew
Offline
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