FS#4695 - cups 1.2.1-1 issues

Attached to Project: Arch Linux
Opened by Thomas Bächler (brain0) - Wednesday, 24 May 2006, 13:07 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To arjan timmerman (blaasvis)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

1) (the important thing)

cups 1.2.1-1 doesn't print to usb any more due to permission changes. Possible fixes are:

- set permissions of /usr/lib/cups/backend/usb to 700 (which will tell cupsd to run it as root)
- correct permissions of /dev/usb/lpX so that user daemon has write access

the other backends may also require some further thought

2) (the minor thing)

I can't seem to get Browsing working, but didn't really look into it very much. These are from my new cupsd.conf

Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @IF(vpn0)

cupsd doesn't seem to send broadcast packages on vpn0. The setting
BrowseAddress 192.168.0.255
doesn't work either, but
BrowseAddress 192.168.0.190
seems to work. I can't tell if I did something wrong here, as I only used the last setting with cups 1.1

3)

we should warn the user about the changed config file in the install message
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 30 May 2006, 15:14 GMT
Reason for closing:  Fixed
Comment by Yi Qiang (yi) - Wednesday, 24 May 2006, 22:31 GMT
Confirmed. And regarding to point 3, yes a notice about changes when going from one major version to another would be nice.
Comment by name withheld (Gullible Jones) - Thursday, 25 May 2006, 19:40 GMT
This doesn't just affect USB printing, it also kills printing via parallel ports, and I would not be surprised if the serial ports didn't work either.
Comment by arjan timmerman (blaasvis) - Thursday, 25 May 2006, 19:55 GMT
could you guys give me your log files, i am somewhat working in the dark.
I do not have a working printer here.
Comment by Thomas Bächler (brain0) - Thursday, 25 May 2006, 20:21 GMT
It shouldn't affect parallel printing, as per udev rules, /dev/lp0 should be owned by group lp (and user daemon is a member of lp). For usb, this is fixed by correcting the /dev/usb/lp0 ownership to root:lp.
Comment by Yi Qiang (yi) - Thursday, 25 May 2006, 21:39 GMT
Ok, it seems like cups can't even detect the printers anymore, going to "Add new printer" cups seems to think that there are no printers present.
Comment by arjan timmerman (blaasvis) - Thursday, 25 May 2006, 22:02 GMT
is this in the web interface ? you really need to tell me what you "Exactly" did.
Comment by Yi Qiang (yi) - Friday, 26 May 2006, 02:20 GMT
Yes, this is the web interface. Steps to reproduce:
1. Start cupsd
2. Go to http://localhost:631
3. Click on Printers

Shows no printers are connected.

Which log files would you like to see?
Comment by name withheld (Gullible Jones) - Friday, 26 May 2006, 02:20 GMT
Yi, you sure that you didn't unload the lp-related modules at some point? I never got that problem with CUPS 1.2.1, adding the printer would work fine but it just wouldn't print.
Comment by Yi Qiang (yi) - Friday, 26 May 2006, 02:23 GMT
Nope, I am not using the custom kernel and my printer modules are built in and the lp devices get created correctly. Try removing your printer and adding again and see if it sees it.
Comment by Yi Qiang (yi) - Friday, 26 May 2006, 02:24 GMT
Actually, I take that back, it seems to be able to add the printer fine. I was confused by the new interface.
Comment by Tobias Powalowski (tpowa) - Friday, 26 May 2006, 08:48 GMT
fixed in udev-092-4 package
Comment by Thomas Bächler (brain0) - Friday, 26 May 2006, 14:15 GMT
cups still borks for some reason:

started printer:
May 26 16:08:27 architect usb 1-2: new full speed USB device using ohci_hcd and address 2
May 26 16:08:27 architect usb 1-2: configuration #1 chosen from 1 choice
May 26 16:08:27 architect drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3004
May 26 16:08:27 architect usbcore: registered new driver usblp
May 26 16:08:27 architect drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver

[thomas@architect ~]$ ls -lF /dev/usb/lp0
crw-rw---- 1 root lp 180, 0 2006-05-26 16:08 /dev/usb/lp0

Then I went to the cups web interface, clicked "Test page". Nothing happens. This is /var/log/cups/error.log:

I [26/May/2006:16:03:43 +0200] Listening to 127.0.0.1:631 (IPv4)
I [26/May/2006:16:03:43 +0200] Listening to 192.168.0.2:631 (IPv4)
I [26/May/2006:16:03:43 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [26/May/2006:16:03:43 +0200] Sending browsing info to 192.168.0.190:631 (IPv4)
I [26/May/2006:16:03:43 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [26/May/2006:16:03:43 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [26/May/2006:16:03:43 +0200] Configured for up to 100 clients.
I [26/May/2006:16:03:43 +0200] Allowing up to 100 client connections per host.
I [26/May/2006:16:03:43 +0200] Using policy "default" as the default!
I [26/May/2006:16:03:43 +0200] Full reload is required.
I [26/May/2006:16:03:43 +0200] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
I [26/May/2006:16:03:44 +0200] Loading job cache file "/var/cache/cups/job.cache"...
I [26/May/2006:16:03:44 +0200] Full reload complete.
I [26/May/2006:16:03:44 +0200] Listening to 127.0.0.1:631 on fd 0...
I [26/May/2006:16:03:44 +0200] Listening to 192.168.0.2:631 on fd 2...
I [26/May/2006:16:03:44 +0200] Listening to /var/run/cups/cups.sock on fd 3...
E [26/May/2006:16:03:44 +0200] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
I [26/May/2006:16:08:29 +0200] Saving remote.cache...
I [26/May/2006:16:08:29 +0200] Listening to 127.0.0.1:631 (IPv4)
I [26/May/2006:16:08:29 +0200] Listening to 192.168.0.2:631 (IPv4)
I [26/May/2006:16:08:29 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [26/May/2006:16:08:29 +0200] Sending browsing info to 192.168.0.190:631 (IPv4)
I [26/May/2006:16:08:29 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [26/May/2006:16:08:29 +0200] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [26/May/2006:16:08:29 +0200] Configured for up to 100 clients.
I [26/May/2006:16:08:29 +0200] Allowing up to 100 client connections per host.
I [26/May/2006:16:08:29 +0200] Using policy "default" as the default!
I [26/May/2006:16:08:29 +0200] Full reload is required.
I [26/May/2006:16:08:29 +0200] Saving job cache file "/var/cache/cups/job.cache"...
I [26/May/2006:16:08:29 +0200] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
I [26/May/2006:16:08:29 +0200] Loading job cache file "/var/cache/cups/job.cache"...
I [26/May/2006:16:08:29 +0200] Full reload complete.
I [26/May/2006:16:08:29 +0200] Listening to 127.0.0.1:631 on fd 0...
I [26/May/2006:16:08:29 +0200] Listening to 192.168.0.2:631 on fd 2...
I [26/May/2006:16:08:29 +0200] Listening to /var/run/cups/cups.sock on fd 3...
I [26/May/2006:16:08:47 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2595)
I [26/May/2006:16:08:51 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2596)
I [26/May/2006:16:08:52 +0200] Adding start banner page "none" to job 306.
I [26/May/2006:16:08:52 +0200] Adding end banner page "none" to job 306.
I [26/May/2006:16:08:52 +0200] Job 306 queued on "ml4600" by "guest".
I [26/May/2006:16:08:52 +0200] Started filter /usr/lib/cups/filter/pstops (PID 2597) for job 306.
I [26/May/2006:16:08:52 +0200] Started filter /usr/lib/cups/filter/foomatic-rip (PID 2598) for job 306.
I [26/May/2006:16:08:52 +0200] Started backend /usr/lib/cups/backend/usb (PID 2599) for job 306.
I [26/May/2006:16:08:54 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2606)
I [26/May/2006:16:09:02 +0200] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=2607)
I [26/May/2006:16:09:05 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2608)

Looking at the CUPS printer list, I see
ml4600 (Default Printer) "Printer not connected; will retry in 30 seconds..."

I do this:
[root@architect ~]# chmod 666 /dev/usb/lp0
and printing starts less than 30 seconds later. There is still some permission problem, but I can't really figure out why, only the 666 permission allows me to print.
Comment by nackd (Prieto) - Friday, 26 May 2006, 19:30 GMT
Same problem here, with an Epson parallel printer.

I can only print if I do either one of:
- chmod 666 /dev/lp0
- chmod 700 /usr/lib/cups/backend/epson

Without that, I get this in CUPS error_log:
E [26/May/2006:21:00:45 +0200] [Job 161] Unable to open parallel port device file: Permission denied

My /dev/lp0 is owned by group lp and daemon is a member of lp. If I do
sudo -u daemon bash -c "echo Hi! > /dev/lp0"
it works. This doesn't make much sense to me.
Comment by Tobias Powalowski (tpowa) - Friday, 26 May 2006, 19:37 GMT
seems all backends need to be set 700 to work correctly
Comment by Tobias Powalowski (tpowa) - Friday, 26 May 2006, 21:39 GMT
please try new cups package i change the group to lp and user to daemon
Comment by nackd (Prieto) - Saturday, 27 May 2006, 11:02 GMT
It works here with my parallel printer.
Comment by Tobias Powalowski (tpowa) - Tuesday, 30 May 2006, 14:37 GMT
can we close this task?
Comment by nackd (Prieto) - Tuesday, 30 May 2006, 14:55 GMT
CUPS needs to be rebuilt against new gnutls in testing. Do I need to file a new bug?
Aside from that, no objection to closing the task.
Comment by Tobias Powalowski (tpowa) - Tuesday, 30 May 2006, 15:09 GMT
cups is already rebuild in testing against gnutls

Loading...