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
Opened by Thomas Bächler (brain0) - Wednesday, 24 May 2006, 13:07 GMT
|
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
I do not have a working printer here.
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?
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.
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.
Aside from that, no objection to closing the task.