Photosmart c6380 no wireless printing

Bug #1038435 reported by unishell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Gaurav Sood

Bug Description

Abstract: No wireless printing from linuxmint/ubuntu on a device that does work from other operating systems or connection methods.

Printer: HP Photosmart C6380
OS: 13 Maya (same has arisen on ubuntu installations)
hplip: 3.12.2-1ubuntu3.1 (as installed from mintinstall - though same problem arises via synaptic or manual installation)

USB:

Add usb printer, detected OK, hp-systray & device manager show printer as expected.
Actions: Scan works
printing works - via apps or via lp -d or any test print function. All as expected.

WIRELESS:
Remove printer as previously defined. Or when starting from scratch.

Add wireless printer, detected OK, hp-systray & device manager show the printer as expected.

Actions: Scan works (clearly the device, type etc are recognised and it interface to scan apps works)
Print DOES NOT work. print job is added to queue, no print out appears. lpstat shows print job. Print job is never processed, just rests in queue.

If I remove device and add via the CUPS browser interface (localhost:631) rather than via hp-setup, the same problem arises.
No wireless printing capability.

Compare with

Windows 7: add printer as wireless printer, scanning and printing work wirelessly. Thus there's nothing wrong with the printer itself.
Fedora 17: add hplip (same version), perform same "add printer" tasks, printer and scanning work wirelessly.

I can find nothing out there that suggests a solution on ubuntu/mint distros for this printer.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Edit the following file in root mode by searching for 'c6300' and put 'wifi-config=3' instead of 'wifi-config=0' and tell us what is happening

Changed in hplip:
assignee: nobody → Gaurav Sood (gaurav-sood)
Revision history for this message
unishell (8tz4) wrote :

Gaurav
thanks - can you tell me the file name (full path) - you forgot to include the name in your response.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Oh I am sorry.

here is the filname

"/usr/share/hplip/data/models/models.dat"

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

You should take care of one thing
Do it for Photosmart section not for officejet as yours is photosmart

Revision history for this message
unishell (8tz4) wrote :

Have changed value in models.dat. Has no effect.

Have removed printer, cleared queue, stopped cups, restarted, added printer from scratch.

No luck. Scanning still works, printing doesn't.

Here's typical output in syslog:

Aug 20 11:13:09 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 2...
Aug 20 11:13:10 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 1...
Aug 20 11:13:10 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 2...

which is about all that gets written repeatedly when hp-systray queries the device or scan is selected

and this when a test print is attempted:

Aug 20 11:20:51 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 2...
Aug 20 11:20:52 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 1...
Aug 20 11:20:52 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 2...
Aug 20 11:21:03 minty kernel: [ 1967.316768] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
Aug 20 11:21:03 minty kernel: [ 1967.319729] sd 6:0:0:0: [sdb] Asking for cache data failed
Aug 20 11:21:03 minty kernel: [ 1967.319741] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Aug 20 11:21:10 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 1...
Aug 20 11:21:11 minty python: io/hpmud/jd.c 800: mdns lookup HPFFCCF3.local retry 2

suspect this doesn't help at all.

Revision history for this message
unishell (8tz4) wrote :

A little bit more info:

here's the entries in the /var/log/cups/access_log for the steps of adding printer and attempting 1 print job
(lp -d Photosmart_C6300 /etc/hosts)

localhost - - [20/Aug/2012:12:24:27 +0100] "POST / HTTP/1.1" 200 3421492 CUPS-Get-PPDs -
localhost - - [20/Aug/2012:12:24:34 +0100] "POST /admin/ HTTP/1.1" 401 354 CUPS-Add-Modify-Printer successful-ok
localhost - russ [20/Aug/2012:12:24:34 +0100] "POST /admin/ HTTP/1.1" 200 354 CUPS-Add-Modify-Printer successful-ok
localhost - - [20/Aug/2012:12:26:26 +0100] "POST /printers/Photosmart_C6300 HTTP/1.1" 200 398 Create-Job successful-ok
localhost - - [20/Aug/2012:12:26:26 +0100] "POST /printers/Photosmart_C6300 HTTP/1.1" 200 578 Send-Document successful-ok

Revision history for this message
unishell (8tz4) wrote :

I had considered this might be down to a compatibility problem with the wireless card in use.

However, i get the same problem with 2 different linuxmint installs on different boxes with different wireless cards (1 had Atheros AR9285, one uses D-Link wireless USB adapter).

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Are you able to configure the device through wireless.

Revision history for this message
unishell (8tz4) wrote :

Not sure what you mean?

I can ping the device wirelessly

Using the HPLIP Device manager interface I can:

scan using the device wirelessly
align cartridges (print heads) - which incidentally involves producing printed output
clean cartridges
open the printer's web interface in a browser, and change settings (at least it tells me changes were successful and the status page appears to have correct information displayed for the wireless settings)

So wireless connectivity between the operating system/wireless card and the printer and its wireless card is clearly working correctly. - the most obvious manifestation being that scanning works.

Revision history for this message
unishell (8tz4) wrote :

Worth noting that using the printers own web interface I can run a wireless test, which produces printed output (which also states that everything has passed).

Revision history for this message
unishell (8tz4) wrote :

Some additional detail relating to evidence submitted so far:

On a dual-boot Dell PC booted in the following way:

Running as a windows 7 host:

windows 7 works installation of printer drivers, etc.. works

Under VirtualBox
a fedora 17 linux VM with hplip 3.12.2 works,
an ubuntu 11.10 VM with hplip 3.11.7 works,

.....a linuxmint VM, with 3.12.6 does NOT work.

Running as a linuxMint Host:

the host installation - printing does not work

Under virtualbox:
no VM combination appears get printing working - though scanning does work in all scenarios via hp-toolbox/systray.

Printing via the hp-toolbox align cartridges function running on the hosts, or via the printer web interface "run wireless test" DOES work.

So, all print failures appear to be related to the interaction of hplip<->cups<->linuxmint host operating system and the printer??????

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Can you provide the cups error log. First clear the contents of "/var/log/cups/error_log" and then send a print through wirless and now attach the contents of the mentioned file

Revision history for this message
unishell (8tz4) wrote :

The action "lp -d hpw1 /etc/hosts (where hpw1 is the name i gave the printer)

results in NO entries in the /var/log/cups/error_log.

here is the content of the /var/log/cups/access_log:

localhost - - [22/Aug/2012:16:12:51 +0100] "POST /printers/hpw1 HTTP/1.1" 200 343 Create-Job successful-ok
localhost - - [22/Aug/2012:16:12:51 +0100] "POST /printers/hpw1 HTTP/1.1" 200 566 Send-Document successful-ok

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Please follow the steps below

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => /etc/init.d/cups restart
                  or
       => service cups restart

       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog

    c) Try to print the file through wireless. If issue is not resolved then please send following files

          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log

Revision history for this message
unishell (8tz4) wrote :

Print job is still showing in device manager interface

after a long delay the error_log contains ONLY the following entry

:E [22/Aug/2012:16:39:17 +0100] [Job 69] Stopping unresponsive job!

no surprise there.

Revision history for this message
unishell (8tz4) wrote :

error_log attached

print job started at the entries at 17:11:38

Revision history for this message
unishell (8tz4) wrote :

syslog attached

Revision history for this message
unishell (8tz4) wrote :

message log empty still.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

can you upgrade to latest hplip i.e. 3.12.6 and then check

Revision history for this message
unishell (8tz4) wrote :

 hplip was at 3.12.6 when I first encountered this problem - after uninstalling and then using linuxmint's software centre to install the appropriate version, it was 3.12.2 that got installed.

however, I've now reinstalled 3.12.6

error_log attached from submission of an lp -d .... command as per last logs.

(scanning working, printing NOT).

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

you forgot to enable log messages. Follow steps in comment # 14

Revision history for this message
unishell (8tz4) wrote :

The following lines WERE in the cupsd.conf file - steps in #14 have been followed prior to the last error_log submission.

# for troubleshooting...
LogLevel debug
hpLogLevel 15

here's the syslog from the last exercise - print job submitted at 20:07:20 22/aug

Revision history for this message
unishell (8tz4) wrote :

OK I've repeated the comment #14 exercise again (cups file already configured as suggested).
at 3.12.6:

>log files
restarted cups service
scan to test scanner still works
lp -d ....... /etc/hosts

lpstat -t output:

printer Photosmart_C6300 now printing Photosmart_C6300-78. enabled since Fri 24 Aug 2012 10:59:54 BST
 Processing page 1...
Photosmart_C6300-78 root 1024 Fri 24 Aug 2012 10:59:54 BST

(this is how it remains until I clear the queue by cancelling the job - after which the "Processing page 1..." message tends to remain).

syslog and cups/error_log to follow

Revision history for this message
unishell (8tz4) wrote :

now syslog

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for the logs but looks like there is some issue in the log files because error_log file does not contain the information which we were looking for. So to help us understand and analyze the issue please follow following things again.
=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic) or http://hplipopensource.com/hplip-web/install/manual/index.html (manual if automatic does not work)

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin" (This will download right plugin)
      => Find the IP address of the Printer (Generated by Wifi router) from the device pannel (if it has) or from testpage print from the printer
       => hp-setup <IP address>
            (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing now.

If problem does not get solved then please capture some logs by doing following things.

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => restart cups service using following commands
                 /etc/init.d/cups restart or service cups restart or RESTART computer
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print the file. If issue is not resolved then please send following files
       => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          => scanned copy of the printed document (if present)
    d) Please let me know the application used for testing.

Revision history for this message
unishell (8tz4) wrote :

Result of reinstalling 3.12.6 - "remove and install" option in the run script.

**** scanning now no longer works - hpaio failure to find/operate scanner

"failed to open device `hpaio:/net/Photosmart_C6300_series?ip=192.168.0.9`: Operation not supported."

That aside. I have followed the instructions again as provided.
Printing still does not work.

The logs collected will be sent, and the config files.

Revision history for this message
unishell (8tz4) wrote :

cups config file

Revision history for this message
unishell (8tz4) wrote :

cups error log

Revision history for this message
unishell (8tz4) wrote :

syslog

Revision history for this message
unishell (8tz4) wrote :

The method used to print is a simple command line:

lp /etc/hosts

or lp -d printer /etc/hosts (where "printer" is the name of the device as entered into the hp-setup utility).

lpstat shows the job in the queue as expected:

scheduler is running
system default destination: Photosmart_C6300
device for Photosmart_C6300: hp:/net/Photosmart_C6300_series?ip=192.168.0.9
Photosmart_C6300 accepting requests since Fri 24 Aug 2012 13:01:05 BST
printer Photosmart_C6300 now printing Photosmart_C6300-88. enabled since Fri 24 Aug 2012 13:01:05 BST
 Rendering completed
Photosmart_C6300-88 russ 1024 Fri 24 Aug 2012 13:01:05 BST

but the job is never processed properly as no print out is produced.

Revision history for this message
unishell (8tz4) wrote :

any update on this?

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.