I'm at work now so can't post to list. Check the logs in /var/log/cups/ and see if they gives any more clues.
I'm attaching the log I get after installing the printer using the web-interface.
Just so you can compare here is the part of my printers.conf file for my parallel printer:
My parallel printer from /etc/cups/printers.conf
<Printer HPLJ1100> Info Location DeviceURI parallel:/dev/lp0 State Idle StateTime 1164436598 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy retry-job </Printer>
Mine looks exactly the same except minor details (having a Canon i550 instead).
Permissions on lp0
# ls -l /dev/lp0 crw-rw---- 1 root lp 6, 0 2007-01-17 05:48 /dev/lp0
Same.
Probably a silly question but I assume you've got all the printing ports installed like gimp-print and foomatic-filters? I don't know whether you need them but I have them installed and all my printing works fine.
Didn't have gimp-print and foomatic-filters since they were marked optional. However, didn't make much change. Still have the same error. Thanks, Helge
The final line in your error log: E [19/Jan/2007:19:49:54 +0100] [Job 16] Unable to open parallel port device file: Permission denied Makes me think that the user/group that cupsd is running as does not have the appropriate permissions to access /dev/lp0 Have you tried changing the Group in your cupsd.conf to lp as opposed to sys (which is the default in my cupsd.conf)? Regards, Edward T. Smith ----- Original Message ----- From: "Helge Fredriksen" <helgeingvart@gmail.com> To: "Joe Gilmour" <jgilmour@bigpond.net.au> Cc: "crux" <crux@lists.crux.nu> Sent: Friday, January 19, 2007 2:58 PM Subject: Re: Printer problems ---------------------SNIP-----------------------------------
Permissions on lp0
# ls -l /dev/lp0 crw-rw---- 1 root lp 6, 0 2007-01-17 05:48 /dev/lp0
Same.
Probably a silly question but I assume you've got all the printing ports installed like gimp-print and foomatic-filters? I don't know whether you need them but I have them installed and all my printing works fine.
Didn't have gimp-print and foomatic-filters since they were marked optional. However, didn't make much change. Still have the same error.
Thanks, Helge
Hi, did that. Still no printouts, just a log like this I [22/Jan/2007:21:21:49 +0100] Saving job cache file "/var/cache/cups/job.cache"... I [22/Jan/2007:21:21:51 +0100] Listening to 0.0.0.0:631 (IPv4) I [22/Jan/2007:21:21:51 +0100] Listening to :::631 (IPv6) I [22/Jan/2007:21:21:51 +0100] Listening to /var/run/cups/cups.sock (Domain) I [22/Jan/2007:21:21:51 +0100] Loaded configuration file "/etc/cups/cupsd.conf" I [22/Jan/2007:21:21:51 +0100] Using default TempDir of /var/spool/cups/tmp... I [22/Jan/2007:21:21:51 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"... I [22/Jan/2007:21:21:51 +0100] Configured for up to 100 clients. I [22/Jan/2007:21:21:51 +0100] Allowing up to 100 client connections per host. I [22/Jan/2007:21:21:51 +0100] Using policy "default" as the default! I [22/Jan/2007:21:21:51 +0100] Full reload is required. I [22/Jan/2007:21:21:51 +0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters... I [22/Jan/2007:21:21:51 +0100] Loading job cache file "/var/cache/cups/job.cache"... I [22/Jan/2007:21:21:51 +0100] Full reload complete. I [22/Jan/2007:21:21:51 +0100] Listening to 0.0.0.0:631 on fd 0... E [22/Jan/2007:21:21:51 +0100] Unable to open listen socket for address :::631 - Address family not supported by protocol. I [22/Jan/2007:21:21:51 +0100] Listening to /var/run/cups/cups.sock on fd 2... I [22/Jan/2007:21:22:04 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3351) I [22/Jan/2007:21:22:09 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3352) I [22/Jan/2007:21:22:09 +0100] Adding start banner page "none" to job 26. I [22/Jan/2007:21:22:09 +0100] Adding end banner page "none" to job 26. I [22/Jan/2007:21:22:09 +0100] Job 26 queued on "Parallel_Port_1" by "root". I [22/Jan/2007:21:22:09 +0100] Started filter /usr/lib/cups/filter/pstops (PID 3353) for job 26. I [22/Jan/2007:21:22:09 +0100] Started filter /usr/lib/cups/filter/pstocanonbj (PID 3354) for job 26. I [22/Jan/2007:21:22:09 +0100] Started backend /usr/lib/cups/backend/canon (PID 3355) for job 26. I [22/Jan/2007:21:22:11 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3359) Helge On 1/19/07, Ed Smith <esmith@xpressamerica.net> wrote:
The final line in your error log: E [19/Jan/2007:19:49:54 +0100] [Job 16] Unable to open parallel port device file: Permission denied
Makes me think that the user/group that cupsd is running as does not have the appropriate permissions to access /dev/lp0
Have you tried changing the Group in your cupsd.conf to lp as opposed to sys (which is the default in my cupsd.conf)?
Regards, Edward T. Smith
El Lunes, 22 de Enero de 2007 5:26 PM, Helge Fredriksen escribió:
Hi, did that. Still no printouts, just a log like this
I [22/Jan/2007:21:21:49 +0100] Saving job cache file "/var/cache/cups/job.cache"... I [22/Jan/2007:21:21:51 +0100] Listening to 0.0.0.0:631 (IPv4) I [22/Jan/2007:21:21:51 +0100] Listening to :::631 (IPv6) I [22/Jan/2007:21:21:51 +0100] Listening to /var/run/cups/cups.sock (Domain) I [22/Jan/2007:21:21:51 +0100] Loaded configuration file "/etc/cups/cupsd.conf" I [22/Jan/2007:21:21:51 +0100] Using default TempDir of /var/spool/cups/tmp... I [22/Jan/2007:21:21:51 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"... I [22/Jan/2007:21:21:51 +0100] Configured for up to 100 clients. I [22/Jan/2007:21:21:51 +0100] Allowing up to 100 client connections per host. I [22/Jan/2007:21:21:51 +0100] Using policy "default" as the default! I [22/Jan/2007:21:21:51 +0100] Full reload is required. I [22/Jan/2007:21:21:51 +0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters... I [22/Jan/2007:21:21:51 +0100] Loading job cache file "/var/cache/cups/job.cache"... I [22/Jan/2007:21:21:51 +0100] Full reload complete. I [22/Jan/2007:21:21:51 +0100] Listening to 0.0.0.0:631 on fd 0... E [22/Jan/2007:21:21:51 +0100] Unable to open listen socket for address :::631 - Address family not supported by protocol. I [22/Jan/2007:21:21:51 +0100] Listening to /var/run/cups/cups.sock on fd 2... I [22/Jan/2007:21:22:04 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3351) I [22/Jan/2007:21:22:09 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3352) I [22/Jan/2007:21:22:09 +0100] Adding start banner page "none" to job 26. I [22/Jan/2007:21:22:09 +0100] Adding end banner page "none" to job 26. I [22/Jan/2007:21:22:09 +0100] Job 26 queued on "Parallel_Port_1" by "root". I [22/Jan/2007:21:22:09 +0100] Started filter /usr/lib/cups/filter/pstops (PID 3353) for job 26. I [22/Jan/2007:21:22:09 +0100] Started filter /usr/lib/cups/filter/pstocanonbj (PID 3354) for job 26. I [22/Jan/2007:21:22:09 +0100] Started backend /usr/lib/cups/backend/canon (PID 3355) for job 26. I [22/Jan/2007:21:22:11 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3359)
Helge
Why don't you increase the log verbosity in the config file so you can have a better idea of your problem? Just set "LogLevel debug" in /etc/cups/cupsd.conf, and try to print again. You might get more answers if you ask for help in the cups forums/mailing list. There is nothing specific to crux in our cups package. http://www.cups.org/ Alan
crw-rw---- 1 root lp 6, 0 2007-01-17 05:48 /dev/lp0 I assume you've got a group of lp. Try playing around with permissions of /dev/lp0. Funny, I thought it may have been needed for the user to be a member of group lp but on my working system I'm not. Also in the cups admin page printing test pages is done by root so they should work if it's a permissions issue.
If I recall I did have some problems with an older version of cups but that was with networked printers I think. I think I also played with the BIOS setting for the parallel port settings. For me though once I actually got my port showing up it just worked. HTH, Joe
Tried setting permission to 777 on /dev/lp0, then no error message appears in the web interface, but no printing is taking place... Helge On 1/19/07, Joe Gilmour <jgilmour@bigpond.net.au> wrote:
crw-rw---- 1 root lp 6, 0 2007-01-17 05:48 /dev/lp0 I assume you've got a group of lp. Try playing around with permissions of /dev/lp0. Funny, I thought it may have been needed for the user to be a member of group lp but on my working system I'm not. Also in the cups admin page printing test pages is done by root so they should work if it's a permissions issue.
If I recall I did have some problems with an older version of cups but that was with networked printers I think. I think I also played with the BIOS setting for the parallel port settings.
For me though once I actually got my port showing up it just worked.
HTH,
Joe
participants (4)
-
Alan Mizrahi
-
Ed Smith
-
Helge Fredriksen
-
Joe Gilmour