HP PSC 750 Printer Regression: unable to connect hpssd socket 2207: Connection refused.

Bug #218921 reported by nglnx
12
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Expired
Undecided
Unassigned
hplip (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My HP PSC 750 (usb) printer, which worked in all previous versions of Ubuntu, has the following problem in Ubuntu 8.04:

It is detected when plugged in, as can be confirmed by the visual cues in the pannel, by going to System/Admin/Printers and by checking syslog.

However, it does not print anything.

Syslog gives the followinf info:

As to the detection:

Apr 16 14:08:16 planet-earth kernel: [ 134.813219] usb 1-1: new full speed USB device using uhci_hcd and address 2
Apr 16 14:08:16 planet-earth kernel: [ 134.853221] usb 1-1: configuration #1 chosen from 1 choice
Apr 16 14:08:16 planet-earth NetworkManager: <debug> [1208351296.417042] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_1411_MY29PD6249WB').
Apr 16 14:08:16 planet-earth kernel: [ 134.963217] usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1411
Apr 16 14:08:16 planet-earth kernel: [ 134.963477] usbcore: registered new interface driver usblp
Apr 16 14:08:16 planet-earth NetworkManager: <debug> [1208351296.552961] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_1411_MY29PD6249WB_if0').
Apr 16 14:08:17 planet-earth hal_lpadmin: add
Apr 16 14:08:18 planet-earth hal_lpadmin: URIs: ['hp:/usb/PSC_750?serial=MY29PD6249WB', 'usb://HP/PSC%20750?serial=MY29PD6249WB', 'hal:///org/freedesktop/Hal/devices/usb_device_3f0_1411_MY29PD6249WB_if0_printer_MY29PD6249WB']
Apr 16 14:08:18 planet-earth python: hp-makeuri[6577]: error: Device does not support fax.
Apr 16 14:08:18 planet-earth hal_lpadmin: HPLIP Fax URIs: None
Apr 16 14:08:18 planet-earth NetworkManager: <debug> [1208351298.515393] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_1411_MY29PD6249WB_if0_printer_MY29PD6249WB').
Apr 16 14:08:18 planet-earth hal_lpadmin: Calling GetReady
Apr 16 14:08:21 planet-earth hal_lpadmin: Device ID: MFG:Hewlett-Packard;MDL:PSC 750;DES:Hewlett-Packard PSC 700 Series;CMD:MLC,PCL,PML; URI:hp:/usb/PSC_750?serial=MY29PD6249WB
Apr 16 14:08:22 planet-earth hal_lpadmin: PPD: drv:///hpijs.drv/hp-psc_750-hpijs.ppd; Status: 0
Apr 16 14:08:22 planet-earth hal_lpadmin: Added printer PSC_750

And when I try to print from any program:

Apr 16 14:12:47 planet-earth PSC_750?serial=MY29PD6249WB: prnt/backend/hp.c 496: unable to connect hpssd socket 2207: Connection refused
Apr 16 14:12:47 planet-earth kernel: [ 194.620547] usblp0: removed
Apr 16 14:12:47 planet-earth kernel: [ 194.693603] audit(1208351567.253:3): type=1503 operation="inode_permission" requested_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=6807 profile="/usr/sbin/cupsd" namespace="default"
Apr 16 14:12:48 planet-earth hal_lpadmin: remove
Apr 16 14:12:48 planet-earth hal_lpadmin: Found configured printer: PSC_750
Apr 16 14:12:48 planet-earth NetworkManager: <debug> [1208351568.237842] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3f0_1411_MY29PD6249WB_if0_printer_MY29PD6249WB').

I consider this to be a serious regression.

Revision history for this message
nglnx (nglnx) wrote :

It still happens with the release version of Ubuntu Hardy.

Revision history for this message
nglnx (nglnx) wrote :

It seems that disabling apparmor removes the message:

kernel: [ 194.693603] audit(1208351567.253:3): type=1503 operation="inode_permission" requested_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=6807 profile="/usr/sbin/cupsd" namespace="default"

And printing resumes.

Revision history for this message
Ante Karamatić (ivoks) wrote :

I can confirm problems with HP OfficeJet J3680. Logs look very nasty:

May 5 20:38:33 titanium Officejet_J3600_series?serial=CN7CO5Z5K8053D: prnt/backend/hp.c 496: unable to connect hpssd socket 2207: Connection refused
May 5 20:38:33 titanium kernel: [ 111.212528] usblp0: removed

This is with apparmor disabled. I don't get any output on printer. hpssd.py isn't started, but with it started there's no change in behavior.

nglnx (nglnx)
Changed in hplip:
status: New → Confirmed
Revision history for this message
PabloRQ (pablo-romeroquinteros) wrote :

Only happens when trying to print from a windows xp to ubuntu 8.04 with samba sharing a HP F4180.
The printer works excellent when printing in local (ubuntu).
With this bug, it doesn't print anything from samba.

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

Probably related problem:
Most of the times, my machine (after upgrade to Ubuntu 8.04) does NOT recongize my local printer, connected through USB.
 Photosmart_C4100_series?serial=MY759J12M204J7: prnt/backend/hp.c 496: unable to connect hpssd socket 2207: Connection refused
Also, just after a print job, the printer disappears. At that moment even "sudo lsusb" does not show the printer anymore.
Another nasty regression bug in Ubuntu 8.04, making this the worst release I've seen.

Revision history for this message
Ante Karamatić (ivoks) wrote :

jan changing PPD solved this issue for me, i suggest tring that.

Revision history for this message
Forest (fdenger-gmail) wrote :

This bug shows the same errors I am getting about hpssd socket connection refused. Also the denied_mask="::rw" section as well, and usblp0 removed. Though printing locally still works after the "usblp0 removed" portion is displayed sometimes.

Sometimes I can print from a remote system, and sometimes I can't. What does happen is that my printer is completely locked up once a print fails, and I have to unplug power to printer, unplug usb, replug power, power up, then replug usb, in that order specifically, to make it not lock up again, then sometimes the first print from a remote system will lock it, sometimes not. And sometimes, after a reboot of the printer that way, it will go ahead and print the remote print job from the queue, the very one that crashed it in the first place. I am not printing from samba remotely, but via http cups server.

disabling app-armor did not product any definitive results, still getting lockups 99% of the time.

I believe this bug to be closely related to https://bugs.launchpad.net/ubuntu/+bug/241781

Many people are hinting at a permissions problem, but I have no idea how to fix something like that.

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

Ante: Can you elaborate on what to change ?
Do you have a link to another bug# of answer that describes what you did , or list the commands you used ?

Revision history for this message
rickyrockrat (rickyrockrat) wrote :

I had to add these to the /etc/apparmor.d/usr.sbin.cupsd file:
#Samba access
  /var/lib/samba/passdb.tdb krw,
  /var/lib/samba/secrets.tdb krw,
  /usr/share/samba/panic-action kUx,
  /var/lib/samba/account_policy.tdb rw,

And that fixed the permissions issues I was having in the logs, however I still get this sequence in the logs.
Jan 13 23:20:11 maddspc PSC_1400_series?serial=CN599210M404GM: io/hpmud/musb.c 1058: unable to open hp:/usb/PSC_1400_series?serial=CN599210M404GM
Jan 13 23:20:11 maddspc PSC_1400_series?serial=CN599210M404GM: prnt/backend/hp.c 496: unable to connect hpssd socket 2207: Connection refused
Jan 13 23:20:11 maddspc PSC_1400_series?serial=CN599210M404GM: prnt/backend/hp.c 636: INFO: open device failed; will retry in 30 seconds...

This bug has been around since 2/2007. It is now 2009, and rather embarrassing for the Ubuntu community that it still exists. Does anybody know how to fix it besides upgrade? Intrepid gives me random boots and hard locks related to X, so I don't want to go there.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The bug should be filed against cups, since it ships the profile.

affects: apparmor (Ubuntu) → cups (Ubuntu)
Changed in cups (Ubuntu):
status: New → Confirmed
status: Confirmed → New
tags: added: apparmor
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Pitti, can you look into the issues of AppArmor interfering with Samba and HPLIP here?

Revision history for this message
Don Pittman (donpittman) wrote :

I have had the same problem for over a year with Fedora and now Ubuntu. I am currently running Ubuntu 10.04 with hplip 3.10.2-2ubuntu2.1 and cups 1.4.3-1ubuntu1.3. Is there a plan to fix this bug?

tags: removed: apparmor
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Till, is there a plan to fix this bug? Don have you still this printer and this problem? Thank you!

Changed in hplip (Ubuntu):
status: Confirmed → Incomplete
Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in hplip (Ubuntu):
status: Incomplete → Expired
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.