You are not logged in.

#1 2012-11-20 22:36:10

styan
Member
Registered: 2012-11-07
Posts: 3

[SOLVED] CUPS + local printer problem

Hi all!

Until yet I can solve all of my arch related problems from the forum posts and from the wiki. But now I stucked with a problem.

I'd like to install a local printer (canon ip4500 inkjet) with cups, but unfortunatly I cannot find it in the list. I've got a fresh KDE install, in the past I haven't got any problem with this. I tried to install the printer with cups browser(localhost:631) and KDE interface without success.

I installed cups, cups-filetrs, libcups,

I use linux-ck kernel, but I've got the same problem with the repo kernel.

I enabled cups  with systemd

 # systemctl enable cups.service 
sudo systemctl list-unit-files | grep cups
cups.path                                   enabled 
cups.service                                enabled 
cupsd.service                               disabled 

I see the cupsd.service disabled, I tried to enable it with systemd, but I always got the same output.

sudo systemctl list-units | grep cups
cups.path                                                                                                loaded active running       CUPS Printer Service Spool
cups.service                                                                                             loaded active running       CUPS Printing Service
cups.socket                                                                                              loaded active running       CUPS Printing Service Sockets

From dmesg command I got this.

[10097.439008] usb 2-4: new high-speed USB device number 6 using ehci_hcd
[10097.564287] usblp 2-4:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04A9 pid 0x10C4

I've tried to blacklist usblp module, but it did't solve anything.

I tired to add the printer manually, /usr/lib/cups/backend/usb

DEBUG: list_devices
DEBUG: libusb_get_device_list=15
DEBUG2: Printer found with device ID: MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 series;CLS:PRINTER;DES:Canon iP4500 series;VER:1.040;STA:10;FSI:03;HRI:OTH;MSI:AON,BOFF,DAT,E3; Device URI: usb://Canon/iP4500%20series?serial=452691
direct usb://Canon/iP4500%20series?serial=452691 "Canon iP4500 series" "Canon iP4500 series" "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,PLI;SOJ:TXT01;MDL:iP4500 series;CLS:PRINTER;DES:Canon iP4500 series;VER:1.040;STA:10;FSI:03;HRI:OTH;MSI:AON,BOFF,DAT,E3;" ""
lpadmin -p canonip4500  -v usb://Canon/iP4500%20series?serial=452691 -P /home/styan/stp-bjc-PIXMA-iP4500.5.2.ppd

After I've added the printer manually I cannot start any printing job...

I've reinstalled cups, libcups and cups-filters, but it didn't solve my problem again.

I've checked the printer permissions: lsusb

Bus 002 Device 006: ID 04a9:10c4 Canon, Inc. Pixma iP4500 Printer

ls -l /dev/bus/usb/002/006

crw-rw-r-- 1 root lp 189, 133 nov   20 22.47 /dev/bus/usb/002/006

and the error log:

D [20/Nov/2012:23:12:32 +0100] [Client 16] 2.0 CUPS-Get-PPDs 109
D [20/Nov/2012:23:12:32 +0100] CUPS-Get-PPDs
D [20/Nov/2012:23:12:32 +0100] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-driverd"
D [20/Nov/2012:23:12:32 +0100] [CGI] argv[1] = "list"
D [20/Nov/2012:23:12:32 +0100] [CGI] argv[2] = "109"
D [20/Nov/2012:23:12:32 +0100] [CGI] argv[3] = "0"
D [20/Nov/2012:23:12:32 +0100] [CGI] argv[4] = "requested-attributes=all"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[10] = "SERVER_ADMIN=root@arch-nagygep"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[11] = "SOFTWARE=CUPS/1.6.1"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[13] = "USER=root"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[14] = "CUPS_MAX_MESSAGE=2047"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[15] = "CUPS_SERVER=/usr/lib/systemd/system/cups.socket"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[16] = "CUPS_ENCRYPTION=IfRequested"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[17] = "IPP_PORT=631"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[18] = "LANG=hu_HU.UTF8"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[21] = "SERVER_NAME=localhost"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[22] = "SERVER_PORT=631"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[23] = "REMOTE_ADDR=localhost"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[25] = "SCRIPT_NAME=/"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[27] = "SERVER_PROTOCOL=HTTP/1.1"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[28] = "HTTP_USER_AGENT=CUPS/1.6.1"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[29] = "REQUEST_METHOD=POST"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[30] = "CONTENT_LENGTH=75"
D [20/Nov/2012:23:12:32 +0100] [CGI] envp[31] = "CONTENT_TYPE=application/ipp"
D [20/Nov/2012:23:12:32 +0100] [CGI] Started /usr/lib/cups/daemon/cups-driverd (PID 6053)
I [20/Nov/2012:23:12:32 +0100] [Client 16] Started "/usr/lib/cups/daemon/cups-driverd" (pid=6053)
D [20/Nov/2012:23:12:32 +0100] [Client 16] file=17
I [20/Nov/2012:23:12:32 +0100] [cups-driverd] Read "/var/cache/cups/ppds.dat", 4536 PPDs...
I [20/Nov/2012:23:12:32 +0100] [cups-driverd] Read "/var/cache/cups/ppds.dat", 4536 PPDs...
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] Loading "/usr/share/cups/model"...
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] Loading "/usr/share/cups/model/C"...
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] Loading "/usr/share/cups/drv"...
D [20/Nov/2012:23:12:32 +0100] [CGI] ppdc: Unable to find include file "<pcl.h>" on line 7 of /usr/share/cups/drv/cupsfilters.drv.
E [20/Nov/2012:23:12:32 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] Loading "/usr/share/ppd"...
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] Loading "/usr/share/ppd/cupsfilters"...
D [20/Nov/2012:23:12:32 +0100] [cups-driverd] ChangedPPD=1
I [20/Nov/2012:23:12:32 +0100] [cups-driverd] Wrote "/var/cache/cups/ppds.dat", 1768 PPDs...
I [20/Nov/2012:23:12:32 +0100] [cups-driverd] Wrote "/var/cache/cups/ppds.dat", 1768 PPDs...
D [20/Nov/2012:23:12:32 +0100] Script header: Content-Type: application/ipp
D [20/Nov/2012:23:12:32 +0100] Script header: 
D [20/Nov/2012:23:12:32 +0100] PID 6053 (/usr/lib/cups/daemon/cups-driverd) exited with no errors.
D [20/Nov/2012:23:12:32 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [20/Nov/2012:23:12:32 +0100] [Client 16] HTTP_WAITING Closing on EOF
D [20/Nov/2012:23:12:32 +0100] [Client 16] Closing connection.
D [20/Nov/2012:23:12:32 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
I [20/Nov/2012:23:14:44 +0100] Scheduler shutting down normally.
D [20/Nov/2012:23:14:44 +0100] Discarding unused server-stopped event...
D [20/Nov/2012:23:14:44 +0100] [Client 15] Closing connection.
D [20/Nov/2012:23:14:44 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
I [20/Nov/2012:23:14:44 +0100] Saving job.cache...
I [20/Nov/2012:23:14:44 +0100] Remote access is disabled.
D [20/Nov/2012:23:14:44 +0100] Added auto ServerAlias arch-nagygep
I [20/Nov/2012:23:14:44 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
N [20/Nov/2012:23:14:44 +0100] Group and SystemGroup cannot use the same groups.
I [20/Nov/2012:23:14:44 +0100] Resetting Group to "nobody"...
D [20/Nov/2012:23:14:44 +0100] Repairing ownership of "/var/run/cups/certs"
I [20/Nov/2012:23:14:44 +0100] Using default TempDir of /var/spool/cups/tmp...
I [20/Nov/2012:23:14:44 +0100] Configured for up to 100 clients.
I [20/Nov/2012:23:14:44 +0100] Allowing up to 100 client connections per host.
I [20/Nov/2012:23:14:44 +0100] Using policy "default" as the default.
I [20/Nov/2012:23:14:44 +0100] Full reload is required.
I [20/Nov/2012:23:14:44 +0100] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 38 types, 51 filters...
I [20/Nov/2012:23:14:44 +0100] Loading job cache file "/var/cache/cups/job.cache"...
D [20/Nov/2012:23:14:44 +0100] cupsdAddSubscription(mask=0, dest=(nil)(), job=(nil)(0), uri="(null)")
I [20/Nov/2012:23:14:44 +0100] Full reload complete.
D [20/Nov/2012:23:14:44 +0100] cupsdCleanFiles(path="/var/spool/cups/tmp", pattern="(null)")
I [20/Nov/2012:23:14:44 +0100] Cleaning out old files in "/var/spool/cups/tmp"...
D [20/Nov/2012:23:14:44 +0100] cupsdCleanFiles(path="/var/cache/cups", pattern="*.ipp")
I [20/Nov/2012:23:14:44 +0100] Cleaning out old files in "/var/cache/cups"...
D [20/Nov/2012:23:14:44 +0100] systemd_checkin: Adding new listener /var/run/cups/cups.sock with fd 3...
I [20/Nov/2012:23:14:44 +0100] Listening to [v1.::1]:631 on fd 10...
I [20/Nov/2012:23:14:44 +0100] Listening to 127.0.0.1:631 on fd 11...
I [20/Nov/2012:23:14:44 +0100] Listening to /usr/lib/systemd/system/cups.socket:631 on fd 12...
I [20/Nov/2012:23:14:44 +0100] Listening to /var/run/cups/cups.sock:631 on fd 3...
I [20/Nov/2012:23:14:44 +0100] Resuming new connection processing...
D [20/Nov/2012:23:14:44 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [20/Nov/2012:23:14:44 +0100] Discarding unused server-started event...
D [20/Nov/2012:23:14:45 +0100] Report: clients=0
D [20/Nov/2012:23:14:45 +0100] Report: jobs=0
D [20/Nov/2012:23:14:45 +0100] Report: jobs-active=0
D [20/Nov/2012:23:14:45 +0100] Report: printers=0
D [20/Nov/2012:23:14:45 +0100] Report: stringpool-string-count=298
D [20/Nov/2012:23:14:45 +0100] Report: stringpool-alloc-bytes=4848
D [20/Nov/2012:23:14:45 +0100] Report: stringpool-total-bytes=4952

print scr
http://satyr.sch.bme.hu/~styan/scr.png
and my cupsd.conf file
http://satyr.sch.bme.hu/~styan/cupsd.conf

I've ran out of ideas, please help me how to get printing working again!


THANKS!
styan

Last edited by styan (2012-11-22 07:07:50)

Offline

#2 2012-11-20 23:55:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,137

Re: [SOLVED] CUPS + local printer problem

I don't think it is a problem that cupsd.service is disabled but I think maybe the socket should be enabled. Here's what I get:

$ systemctl list-unit-files | grep cups
cups.path                               enabled 
cups.service                            enabled 
cupsd.service                           disabled
cups.socket                             enabled

cupsd.service is just a symlink anyway - it isn't really a different service.

Did you notice:

N [20/Nov/2012:23:14:44 +0100] Group and SystemGroup cannot use the same groups.
I [20/Nov/2012:23:14:44 +0100] Resetting Group to "nobody"...

SystemGroup is set to "sys lp" in my conf file whereas you have "root lp". But whether that matters, I don't know.

Last edited by cfr (2012-11-21 00:15:30)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-11-21 06:22:14

styan
Member
Registered: 2012-11-07
Posts: 3

Re: [SOLVED] CUPS + local printer problem

Hi, I am at my workplace now, but at the evening I will try to enable socket.service.
I noticed this warning

N [20/Nov/2012:23:14:44 +0100] Group and SystemGroup cannot use the same groups.
I [20/Nov/2012:23:14:44 +0100] Resetting Group to "nobody"...

I think it woudn't be a problem, because the default settings is

SystemGroup sys root

and this worked with my another desktop pc.

Regards

Offline

#4 2012-11-21 21:40:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,137

Re: [SOLVED] CUPS + local printer problem

I don't think you should need to install the socket separately - the cups service should pull it in automatically, I believe.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-11-22 07:05:55

styan
Member
Registered: 2012-11-07
Posts: 3

Re: [SOLVED] CUPS + local printer problem

cfr wrote:

I don't think you should need to install the socket separately - the cups service should pull it in automatically, I believe.

Hi!

You're right!

But at last I could solve the problem. The solution wasn't obvious..

I reinstalled cups, libcups, cups-filters and I didn't edited cupsd.conf client.conf until yet,
then rebooted the pc!

I did the configuration with the config files, and restarted cups.

applied this command

sudo systemctl --system daemon-reload

-to regenerate rc-inetd services

sudo systemctl status cups.socket 
cups.socket - CUPS Printing Service Sockets
	  Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled)
	  Active:active (listening) since Thu, 2012-11-22 07:35:28 CET; 21min ago
	  CGroup: name=systemd:/system/cups.socket

big_smilecool socket activated!! cool

I can now install local and remote printers.

Thanks for the help.

Offline

Board footer

Powered by FluxBB