Ubuntu 14.04 only prints LibreOffice Docs

Bug #1366743 reported by Hans Maier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I use Ubuntu 14.04, a Logilink Fast Ethernet Printserver and a HP Color Laserjet 2550L. Under Ubuntu 12.10 everything worked fine and I could print any file.

The printer is connected via a USB to the Printserver and adressed via HP Jet Direct. As already said, everything worked fine under 12.10 and I didn't change any settings on the printserver.

I use the ubuntu tool for installing the printer, as a normal user not su. Searching the network, for network printers offers me three possibilities for adressing the printer. HP Jet Direct, IPP and LPD/LPR. I tried all of them with the same result. I use the drivers from the Database, not surprisingly HP/Color Laserjet 2550/HP Color Laserjet 2550 Series Postscript [en] (recommended).

After installing the printer the first thing that fails is the Testpage. The ubunut printer spooler tells me that the job is in progress and the printer starts to blink to tell me that he is receiving input. Unfortunatly the job never starts or gets finished. After blinking quite a while the printer stops an nothing happes.

Interestingly, after canceling the job on my computer and a restart of the printer, the printserver and my computer, I can open libre office writing "Hello World" go to print and the printer starts immediately and prints the correct result. But this only works for libreoffice and only with text, as soon as there is an image in the document it doesn't work. I can't print any pdf or even from gedit. Nothing works. Always the same as with the Testpage. Printer starts to blink but nothing happens.

lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

Thanks for Help.

Hans Maier (gw2000)
affects: cairo (Ubuntu) → ubuntu
Revision history for this message
Lucy Llewellyn (lucyllewy) wrote :

assigning to cups package.

Hans, please review the steps at the following link and attach the output from the commands to this bug. This will help to diagnose the issue: https://wiki.ubuntu.com/DebuggingPrintingProblems

affects: ubuntu → cups (Ubuntu)
Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Hans Maier (gw2000) wrote :
Download full text (4.0 KiB)

hans@Hacker:~$ ping 10.0.0.5
PING 10.0.0.5 (10.0.0.5) 56(84) bytes of data.
64 bytes from 10.0.0.5: icmp_seq=1 ttl=64 time=3.45 ms
64 bytes from 10.0.0.5: icmp_seq=2 ttl=64 time=1.76 ms
64 bytes from 10.0.0.5: icmp_seq=3 ttl=64 time=3.47 ms
64 bytes from 10.0.0.5: icmp_seq=4 ttl=64 time=2.40 ms
^C
--- 10.0.0.5 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 1.761/2.772/3.473/0.729 ms
hans@Hacker:~$ nmap 10.0.0.5

Starting Nmap 6.40 ( http://nmap.org ) at 2014-09-14 18:43 CEST
Nmap scan report for 10.0.0.5
Host is up (0.014s latency).
Not shown: 993 filtered ports
PORT STATE SERVICE
80/tcp open http
139/tcp open netbios-ssn
631/tcp open ipp
9100/tcp open jetdirect
9101/tcp open jetdirect
9103/tcp open jetdirect
9111/tcp open DragonIDSConsole

Nmap done: 1 IP address (1 host up) scanned in 26.22 seconds
hans@Hacker:~$ /usr/lib/cups/backend/snmp
hans@Hacker:~$ sudo /usr/lib/cups/backend/dnssd
[sudo] password for hans:
DEBUG: sent=0, count=0
DEBUG: sent=0, count=0
hans@Hacker:~$ /usr/lib/cups/backend/snmp 10.0.0.5
hans@Hacker:~$ lpinfo -v
network ipp
network https
network ipp14
network socket
network ipps
network lpd
network smb
serial serial:/dev/ttyUSB0?baud=230400
network http
direct hp
direct hpfax
hans@Hacker:~$ avahi-browse -a -v -t -r
Server-Version: avahi 0.6.31; Rechnername: Hacker.local
E Ifce Prot Name Typ -Domain
+ eth0 IPv6 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
+ eth0 IPv4 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
= eth0 IPv6 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
   hostname = [Hacker.local]
   address = [fe80::1e6f:65ff:fe3f:74ce]
   port = [9]
   txt = []
= eth0 IPv4 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
   hostname = [Hacker.local]
   address = [10.0.0.1]
   port = [9]
   txt = []
: Datencache erschöpft
: Alle Einträge bisher
hans@Hacker:~$ avahi-browse -a -v -c -r
Server-Version: avahi 0.6.31; Rechnername: Hacker.local
E Ifce Prot Name Typ -Domain
+ eth0 IPv6 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
+ eth0 IPv4 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
= eth0 IPv6 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
   hostname = [Hacker.local]
   address = [fe80::1e6f:65ff:fe3f:74ce]
   port = [9]
   txt = []
= eth0 IPv4 Hacker [1c:6f:65:3f:74:ce] Arbeitsplatzrechner local
   hostname = [Hacker.local]
   address = [10.0.0.1]
   port = [9]
   txt = []
: Datencache erschöpft
hans@Hacker:~$ ifconfig
eth0 Link encap:Ethernet Hardware Adresse 1c:6f:65:3f:74:ce
          inet Adresse:10.0.0.1 Bcast:10.0.0.255 Maske:255.255.255.0
          inet6-Adresse: fe80::1e6f:65ff:fe3f:74ce/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
          RX-Pakete:21836 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:20926 Fehler:0 Verloren:0 Über...

Read more...

Revision history for this message
Hans Maier (gw2000) wrote :

hans@Hacker:~$ cupsctl LogLevel=debug
hans@Hacker:~$ cupsctl LogDebugHistory=999999

Revision history for this message
Hans Maier (gw2000) wrote :

'sudo aa-complain cupsd' didn't change anything

Revision history for this message
Hans Maier (gw2000) wrote :
  • appout Edit (122.6 KiB, application/octet-stream)

hans@Hacker:~$ lpstat -o
HP-Color-LaserJet-2550-52 hans 125952 Son 14 Sep 2014 21:12:39 CEST
hans@Hacker:~$ sudo ls -l /var/spool/cups/
[sudo] password for hans:
insgesamt 3000
-rw------- 1 root lp 733 Sep 7 17:03 c00017
-rw------- 1 root lp 778 Sep 7 17:16 c00019
-rw------- 1 root lp 869 Sep 7 20:40 c00042
-rw------- 1 root lp 781 Sep 8 10:32 c00043
-rw------- 1 root lp 1163 Sep 8 10:36 c00044
-rw------- 1 root lp 782 Sep 8 10:38 c00045
-rw------- 1 root lp 782 Sep 8 10:39 c00046
-rw------- 1 root lp 803 Sep 8 12:38 c00047
-rw------- 1 root lp 782 Sep 8 12:39 c00048
-rw------- 1 root lp 778 Sep 8 15:46 c00049
-rw------- 1 root lp 1194 Sep 14 19:12 c00050
-rw------- 1 root lp 1212 Sep 14 19:32 c00051
-rw------- 1 root lp 1178 Sep 14 21:18 c00052
-rw-r----- 1 root lp 234 Sep 8 10:18 d00043-001
-rw-r----- 1 root lp 11394 Sep 8 10:34 d00044-001
-rw-r----- 1 root lp 5974 Sep 8 10:38 d00045-001
-rw-r----- 1 root lp 8687 Sep 8 10:39 d00046-001
-rw-r----- 1 root lp 481390 Sep 8 12:31 d00047-001
-rw-r----- 1 root lp 6405 Sep 8 12:39 d00048-001
-rw-r----- 1 root lp 555485 Sep 8 12:40 d00049-001
-rw-r----- 1 root lp 1674123 Sep 14 18:54 d00050-001
-rw-r----- 1 root lp 125531 Sep 14 19:17 d00051-001
-rw-r----- 1 root lp 125531 Sep 14 21:12 d00052-001
drwxrwx--T 2 root lp 4096 Sep 14 21:11 tmp
hans@Hacker:~$ sudo ls /var/spool/cups/
c00017 c00043 c00046 c00049 c00052 d00045-001 d00048-001 d00051-001
c00019 c00044 c00047 c00050 d00043-001 d00046-001 d00049-001 d00052-001
c00042 c00045 c00048 c00051 d00044-001 d00047-001 d00050-001 tmp
hans@Hacker:~$ sudo l /var/spool/cups/
sudo: l: command not found
hans@Hacker:~$ sudo ls -l /var/spool/cups/
insgesamt 3000
-rw------- 1 root lp 733 Sep 7 17:03 c00017
-rw------- 1 root lp 778 Sep 7 17:16 c00019
-rw------- 1 root lp 869 Sep 7 20:40 c00042
-rw------- 1 root lp 781 Sep 8 10:32 c00043
-rw------- 1 root lp 1163 Sep 8 10:36 c00044
-rw------- 1 root lp 782 Sep 8 10:38 c00045
-rw------- 1 root lp 782 Sep 8 10:39 c00046
-rw------- 1 root lp 803 Sep 8 12:38 c00047
-rw------- 1 root lp 782 Sep 8 12:39 c00048
-rw------- 1 root lp 778 Sep 8 15:46 c00049
-rw------- 1 root lp 1194 Sep 14 19:12 c00050
-rw------- 1 root lp 1212 Sep 14 19:32 c00051
-rw------- 1 root lp 1178 Sep 14 21:18 c00052
-rw-r----- 1 root lp 234 Sep 8 10:18 d00043-001
-rw-r----- 1 root lp 11394 Sep 8 10:34 d00044-001
-rw-r----- 1 root lp 5974 Sep 8 10:38 d00045-001
-rw-r----- 1 root lp 8687 Sep 8 10:39 d00046-001
-rw-r----- 1 root lp 481390 Sep 8 12:31 d00047-001
-rw-r----- 1 root lp 6405 Sep 8 12:39 d00048-001
-rw-r----- 1 root lp 555485 Sep 8 12:40 d00049-001
-rw-r----- 1 root lp 1674123 Sep 14 18:54 d00050-001
-rw-r----- 1 root lp 125531 Sep 14 19:17 d00051-001
-rw-r----- 1 root lp 125531 Sep 14 21:12 d00052-001
drwxrwx--T 2 root lp 4096 Sep 14 21:11 tmp
hans@Hacker:~$ file ~appout
~appout: ERROR: cannot open `~appout' (No such file or directory)
hans@Hacker:~$ file ~/appout
/home/hans/appout: PDF document, version 1.5

Revision history for this message
Hans Maier (gw2000) wrote :

hans@Hacker:~$ cd /etc/cups
hans@Hacker:/etc/cups$ sudo gedit cups-files.conf
[sudo] password for hans:
Das hat nicht funktioniert, bitte nochmal probieren.
[sudo] password for hans:

(gedit:4059): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:4059): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
hans@Hacker:/etc/cups$ sudo restart cups
cups start/running, process 4124
hans@Hacker:/etc/cups$ cd ppd/
hans@Hacker:/etc/cups/ppd$ ls
HP-Color-LaserJet-2550.ppd
hans@Hacker:/etc/cups/ppd$ lpadmin -p test -E -v file:/tmp/printout -P /etc/cups/ppd/HP-Color-LaserJet-2550.ppd
hans@Hacker:/etc/cups/ppd$ sudo cp /tmp/printout ~
hans@Hacker:/etc/cups/ppd$ sudo chmod 777 ~/printout
hans@Hacker:/etc/cups/ppd$

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please follow the instructions of the section "PostScript (PDF) printer chokes on the PostScript (PDF) coming from Ubuntu" on https://wiki.ubuntu.com/DebuggingPrintingProblems, but run the command

lpadmin -p <printer> -o pdftops-renderer-default=gs

instead of

lpadmin -p <printer> -o pdftops-renderer-default=pdftops

in step 11.

Revision history for this message
Hans Maier (gw2000) wrote :

Sorry for the slow reponse, but it was a tough week. I started the section "PostScript (PDF) printer chokes on the PostScript (PDF) coming from Ubuntu" at point 8 because I think that I already did the former points. Tell me if I'm wrong.

So I started at "Sending a file to the printer unfilterd" (I used the same file I always tried to print)

hans@Hacker:~/printerdata$ ls
appout FC.pdf printout
hans@Hacker:~/printerdata$ nc -w1 10.0.0.5 9100 < FC.pdf
^C
hans@Hacker:~/printerdata$

It resulted in an immediate response of the printer. As soon as I entered the command he started to print, but only garbage. You know all these special signs and symbols like smileys, hearts, spades and so on but also letters.

As the file isn't PostScript but PDF I skipped point number 10.
I used the command as described.

hans@Hacker:~/printerdata$ lpadmin -p HP-Color-LaserJet-2550 -o pdftops-renderer-default=gs
hans@Hacker:~/printerdata$

Then I started a normal printing job, which resulted the same way as it always did. The printer starts to blink the job is queued but never begins an therefore never ends.

Revision history for this message
cliddell (cjl) wrote :

As the file you have is PDF, you should be trying:

lpr -P <printer> -o psdebug <file>.pdf

or

lp -d <printer> -o psdebug <file>.pdf

If that works, let us know.

If not, you need to follow the instructions starting here:
https://wiki.ubuntu.com/DebuggingPrintingProblems#Getting_the_data_which_would_go_to_the_printer

And then that should give you a Poscript file which, hopefully you can then use the instructions to send unfiltered to the printer. If the printer does not print, then attach that Postscript file here, and we can hopefully start the (usually lengthy!) process of debugging it.

OTOH, if sending the file unfiltered works (unlikely!) , tell us that, too.

Finally, once you've done all that, as a workaround, you can do:

lpadmin -p <printer> -o pdftops-renderer-default=pdftops

and try printing. Again let us know whether that works, doesn't work, or whatever.

Chris

Revision history for this message
Hans Maier (gw2000) wrote :

Sorry, once again for the very slow feedback :)

hans@Hacker:~/printerdata$ lpr -P HP-Color-LaserJet-2550 -o psdebug FC.pdf

Nothing but the usual bug (Blinking, never starts to print)

hans@Hacker:~/printerdata$ sudo restart cups
[sudo] password for hans:
cups start/running, process 3133
hans@Hacker:~/printerdata$ lp -d HP-Color-LaserJet-2550 -o psdebug FC.pdf
request id is HP-Color-LaserJet-2550-57 (1 file(s))

Again nothing... :(

hans@Hacker:~/printerdata$ sudo gedit /etc/cups/cups-files.conf
hans@Hacker:~/printerdata$ sudo restart cups
cups start/running, process 20563
hans@Hacker:~/printerdata$ lpadmin -p test -E -v file:/tmp/printout -P /etc/cups/ppd/HP-Color-LaserJet-2550.ppd

Start the printing of FC.pdf with "test"

hans@Hacker:~/printerdata$ sudo cp /tmp/printout ~
hans@Hacker:~/printerdata$ sudo chmod 777 ~/printout
hans@Hacker:~/printerdata$ cd ..
hans@Hacker:~$ ls -l | grep printout
-rwxrwxrwx 1 root root 300692 Okt 29 20:31 printout
hans@Hacker:~$ nc -w1 10.0.0.5 9100 < printout
^C
hans@Hacker:~$

Despite the "nc -w1 10.0.0.5 9100 < FC.pdf" command that still "works" as already described, the "nc -w1 10.0.0.5 9100 < printout" command results in business as usual :( Blinking but never starts to print

hans@Hacker:~$ sudo restart cups
cups start/running, process 2527
hans@Hacker:~$ lpadmin -p HP-Color-LaserJet-2550 -o pdftops-renderer-default=pdftops

Started a print job but still the same, no success :(((

Revision history for this message
cliddell (cjl) wrote :

Odd, that "printout" file is from the cairo/poppler "pdftops" filter, rather than the Ghostscript one that I deal with.

If you can repeat the tests after running:
lpadmin -p HP-Color-LaserJet-2550 -o pdftops-renderer-default=gs

And post your results and another "printout" file. If you want to, you can open the "printout" file in a text editor and look at the comments in the first 20 lines or so, and see whether it was created by Poppler or Ghostscript.

Thanks....

I'll leave it to Till to decide whether to contact the appropriate Cairo/poppler folks.

Chris

Revision history for this message
Hans Maier (gw2000) wrote :

hans@Hacker:~/lpadmin -p HP-Color-LaserJet-2550 -o pdftops-renderer-default=gs

hans@Hacker:~/printerdata$ lpr -P HP-Color-LaserJet-2550 -o psdebug FC.pdf

As before

hans@Hacker:~/printerdata$ sudo restart cups
[sudo] password for hans:
cups start/running, process 7966
hans@Hacker:~/printerdata$ lp -d HP-Color-LaserJet-2550 -o psdebug FC.pdf
request id is HP-Color-LaserJet-2550-57 (1 file(s))

Again nothing... :(

hans@Hacker:~/printerdata$ sudo gedit /etc/cups/cups-files.conf
hans@Hacker:~/printerdata$ sudo restart cups
cups start/running, process 8983
hans@Hacker:~/printerdata$ lpadmin -p test -E -v file:/tmp/printout -P /etc/cups/ppd/HP-Color-LaserJet-2550.ppd

Start the printing of FC.pdf with "test"

hans@Hacker:~/printerdata$ sudo cp /tmp/printout ~
hans@Hacker:~/printerdata$ sudo chmod 777 ~/printout
hans@Hacker:~/printerdata$ cd ..
hans@Hacker:~$ ls -l | grep printout
-rwxrwxrwx 1 root root 300692 Nov 3 21:35 printout
hans@Hacker:~$ nc -w1 10.0.0.5 9100 < printout
^C
hans@Hacker:~$

Again nothing. I uploaded the new printout. Interestingly it seems to be still produced by cairo/poppler "pdftops" filter. I entered the command "lpadmin -p HP-Color-LaserJet-2550 -o pdftops-renderer-default=gs" several times, even with restarts but the output was always the same. Do I need to have some special package installed to get that to work?

Revision history for this message
Hans Maier (gw2000) wrote :

I added a screenshot of the installed packages that get listed if I search for ghostscript in synaptic.

Revision history for this message
cliddell (cjl) wrote :

Sorry, but that "printout" file is still the Poppler created one.

I'm afraid I'm going to need Till's input on this as my knowledge of cups is limited (and now exhausted) - I only really do the Ghostscript end of things......

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Something seems to be going wrong with the "-o pdftops-renderer-default=gs". Please follow the instructions of the section "CUPS error_log" on https://wiki.ubuntu.com/DebuggingPrintingProblems while printing the job again. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cups (Ubuntu) because there has been no activity for 60 days.]

Changed in cups (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.