WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Unable to Print  (Read 11129 times)

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Unable to Print
« on: July 02, 2012, 01:35:32 AM »
I have seemingly everything going to make my printer print, yet it refuses to do so.
In cups /localhost:631/printers the printer is set-up and shows no errors.
cupsd is started on boot, however, command:
lpq gives:
Quote
error - no default destination availabe

I followed the instructions in the Wiki to set up my printer and all worked even putting a filter wrapper
in /usr/local/etc/cups/filter/brlpdwrapperdcp285c which is needed for this Brother printer as I know from
my working Linux box.

All settings are saved and return on booting.

I am at a loss.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Unable to Print
« Reply #1 on: July 02, 2012, 02:26:51 AM »
How is the printer connected - usb, parallel port, ipp, or?

Does the cups error log show anything interesting?

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Unable to Print
« Reply #2 on: July 02, 2012, 07:29:06 PM »
My 2 printers are USB connected. Only Brother is found by cups, Epson LQ300 is not found.

error log
 E [03/Jul/2012:02:55:00 +0800] Unable to open listen socket for address [v1.::1]:631  - Address family not supported by protocol.

access log
localhost - - [03/Jul/2012:02:57:28 +0800] "POST /printers/Brother_DCP-385C HTTP/1.1" 200 463 Print-Job successful-ok

Jobs in http://localhost:631/Jobs

show completed jobs:
Brother_DCP-385C-2      Test Page       anonymous       1k      Unknown         completed at Tue Jul 3 02:57:28 2012

Then there is no printing and "lpq" gives mentioned error.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11246
Re: Unable to Print
« Reply #3 on: July 02, 2012, 07:39:28 PM »
Hi ordep
Quote
E [03/Jul/2012:02:55:00 +0800] Unable to open listen socket for address [v1.::1]:631  - Address family not supported by protocol.
I don't know if that is the source of your problem, but that error is being caused because the program is
trying to use IP6, which is not on your system. Installing the  IPV6  extension should make that error go away.

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Unable to Print
« Reply #4 on: July 03, 2012, 12:18:18 AM »
Thanks, I installed that IPV6 and now the error is gone. In cups I gave permission to user and now command "lpq" gives:
Brother is ready, no entries.
I thought that's it. Wrong, still does not print and cups log access gives:
Quote
access.log
localhost - - [03/Jul/2012:20:03:42 +0800] "POST /printers/Brother_DCP-385C HTTP/1.1" 200 352 Create-Job successful-ok
localhost - - [03/Jul/2012:20:03:42 +0800] "POST /printers/Brother_DCP-385C HTTP/1.1" 200 294 Send-Document successful-ok

That looks the same as in my working linux box, however, nothing is being printed.

Edit: I might to add that during boot an error messge shows saying:

"/usr/local/bin/dbus-daemon no such file or directory"

After booting that file is there.
« Last Edit: July 03, 2012, 01:42:18 AM by ordep »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Unable to Print
« Reply #5 on: July 03, 2012, 02:01:16 AM »
It might be useful to change the log mode to "debug" in /usr/local/etc/cupsd.conf, restart cups, try to print and see if the error log gives any more detailed information.

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Unable to Print
« Reply #6 on: July 03, 2012, 09:15:42 PM »
It might be useful to change the log mode to "debug" in /usr/local/etc/cupsd.conf, restart cups, try to print and see if the error log gives any more detailed information.

This is the error log filtered for "E"

Quote
E [04/Jul/2012:11:00:20 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:00:20 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:01:54 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:01:54 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:05:59 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:05:59 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:06:20 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:06:20 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:06:34 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:06:34 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:07:10 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:07:10 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:09:29 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:09:29 +0800] [CGI] rpcclient not found!
E [04/Jul/2012:11:16:14 +0800] [CGI] smbclient not found!
E [04/Jul/2012:11:16:14 +0800] [CGI] rpcclient not found!

This is really the first time in my many years with Linux in a number of distros that printing fails me.
Some distros would not read my Epson LQ300 usb connection, however, putting into printers.conf
Quote
Info Epson
MakeModel Epson 24-Pin Series
DeviceURI usb://Unknown/
.....
would make it show up in cups "add printer".
Not so in TCL.



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11246
Re: Unable to Print
« Reply #7 on: July 03, 2012, 09:44:07 PM »
Hi ordep
Those two client programs are part of samba3.tcz, which is rather large. I'm not sure why they should be
needed for a local printer connected via USB.
Quote
Edit: I might to add that during boot an error messge shows saying:

"/usr/local/bin/dbus-daemon no such file or directory"

After booting that file is there.
Try opening your  onboot.lst file and moving the  dbus.tcz  line towards the beginning of the file.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Unable to Print
« Reply #8 on: July 03, 2012, 11:42:03 PM »
The samba and dbus errors can be ignored.

The dbus error is caused by the daemon being restarted the first time the cups daemon starts, the samba error is caused by the smb backend symlink to smbspool in the samba extension.

Probably the best way to check for a usb printer is to plug it in and enter "/usr/local/lib/cups/backend/usb". If the printer is recognised, it will give you the uri to be used with the cups browser interface.

For example:
Code: [Select]
$ /usr/local/lib/cups/backend/usb
direct usb://HP/OfficeJet%20K80?serial=ES0911401VOH "HP OfficeJet K80" "HP OfficeJet K80" "MFG:Hewlett-Packard;MDL:OfficeJet K80;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard OfficeJet K Series;1284.3M:f7f,f7f;1284.4DL:4d,4e,1;SERN:ES0911401VOH;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K0,C0,SM,NR,KP035,CP011;AiO:0;DW-PCL;" ""
..i.e. the uri is "usb://HP/OfficeJet%20K80?serial=ES0911401VOH"

For the epson, this would most likely take the form "usb://usb/xxxxxxxx"
« Last Edit: July 03, 2012, 11:53:14 PM by Juanito »

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Unable to Print
« Reply #9 on: July 05, 2012, 02:08:52 AM »

I booted from the CD with norestore so I had a clean sled. Installed the drivers for my Brother printer,
did all the jazz with cups and it just will not print or better said no paper is printed since cups claims it did print.

/usr/local/lib/cups/backend/usb finds only the Brother printer which cups has found as well.

My Epson printer is not found even when Brother printer is disconnected.

I think I have exhausted all the tricks I know to get either one of my printers printing.
I give up, spending too much time already. Never had such a bad going.

Too bad, I do like TCL :(

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Unable to Print
« Reply #10 on: July 05, 2012, 02:18:00 AM »
I'd guess the brother/epson drivers have a dependency that is not satisfied, do you have the names of the files installed?

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Unable to Print
« Reply #11 on: July 05, 2012, 03:34:44 AM »
Some distros would not read my Epson LQ300...

In the past I have also had difficulty with an Epson+TC combination and found only files from openprinting.org would work.  Browsing their site for your printer reveals the following which is not very encouraging
http://www.openprinting.org/printer/Epson/Epson-LQ_300plus2
   

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11246
Re: Unable to Print
« Reply #12 on: July 05, 2012, 06:35:50 AM »
Hi ordep
Instead of using the Epson driver, is there a generic dot matrix driver you can try?

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Unable to Print
« Reply #13 on: July 05, 2012, 08:26:08 PM »
Thanks all!
It does not matter so much if I can print with my Epson as long as I can print with the Brother printer which is still not possible.
In other Linux distros  that is slacks and knoppix the device for the Epson printer is always:  DeviceURI usb://Unknown/ in printers.conf. If in a distro cups does not read the printer I copy the data into printers.conf after which it shows up in cups and I can configure the printer. In TCL it does not show-up.

I have here the access-log of one printing with Brother in KNOPPIX which gave a printed page and one with TCL which did not print anything, the printer not even giving a burb.

Quote
Knoppix access-log
localhost - - [06/Jul/2012:10:21:06 +0000] “POST /admin/ HTTP/1.1“ 200 60 - -
localhost - - [06/Jul/2012:10:21:06 +0000] “POST / HTTP/1.1“ 200 1912 CUPS-Get-Devices -
localhost - - [06/Jul/2012:10:21:06 +0000] “POST /admin/ HTTP/1.1“ 200 5329 - -
localhost - - [06/Jul/2012:10:22:52 +0000] “POST /printers/Brother_DCP-385C HTTP/1.1“ 200 21406 Print-Job successful-ok
localhost - - [06/Jul/2012:10:22:52 +0000] “POST / HTTP/1.1“ 200 341 Create-Printer-Subscription successful-ok
localhost - - [06/Jul/2012:10:23:42 +0000] “GET /admin/log/error_log HTTP/1.1“ 200 311 - -

TCL access-log
ocalhost - - [06/Jul/2012:10:50:43 +0800] "GET /admin/log/access_log HTTP/1.1" 200 133 - -
localhost - - [06/Jul/2012:10:51:08 +0800] "GET /admin/log/error_log HTTP/1.1" 200 383 - -
localhost - - [06/Jul/2012:10:52:42 +0800] "POST /printers/Brother_DCP-385C HTTP/1.1" 200 244 Create-Job successful-ok
localhost - - [06/Jul/2012:10:52:42 +0800] "POST /printers/Brother_DCP-385C HTTP/1.1" 200 175853 Send-Document successful-ok

I do not know if someone can find from this why in TCL there is no page output.
 

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: Unable to Print
« Reply #14 on: July 05, 2012, 09:55:36 PM »
As mentioned previously, you're possibly missing a dep for the brother printer driver - what sort of driver is it?

Do you have ghostscript and ghostscript_common loaded?