Cups - broken pipe

I just formatted my root partition and installed 12.3 (I kept my home partition as usual).

I have a problem with my network printer hp laserjet 4015n. It used to work seemingslessly before. Now cups gives me a: Unable to write print data: broken pipe.

I have tried restarting cups, even installing the x86 version, but I can’t seem to fix the problem.

I have tried different protocols to connect the printer, currently: socks://ip:9100

Any ideas on how to make this work?

Thank you very much!

On 03/19/2013 08:26 AM, Dorax wrote:
>
> I just formatted my root partition and installed 12.3 (I kept my home
> partition as usual).
>
> I have a problem with my network printer hp laserjet 4015n. It used to
> work seemingslessly before. Now cups gives me a: Unable to write print
> data: broken pipe.
>
> I have tried restarting cups, even installing the x86 version, but I
> can’t seem to fix the problem.
>
> I have tried different protocols to connect the printer, currently:
> socks://ip:9100
>
> Any ideas on how to make this work?
>
> Thank you very much!

Using YaST, delete your existing printer configuration and start a new
configuration. For printers with a JetDirect card, which is what I think you
have, the Connection Wizard works well. Select a TCP Port. Of course, the
printer needs a static IP address, or at least one that never changes. When I
had a Laserjet 2200DN, I used this method.

If the wizard fails, use the alternative setup for HP printers. My current
printer (P1606dn) needs a special plugin that is only available from HP, thus I
need to use that method. Unfortunately, the printer is never detected
automatically, thus I need to specify the IP number manually.

Thank you for your answer.

If I add the printer via Yast, I get the same broken pipe error. Note: automatic detection does not work (I am at the university network), but I give in the manual IP address and the Test says ok. But still broken pipe.

If I use hp setup. It cannot detect the printer. So I choose manual. Give in the ip address (with and without port), set jetdirect port to 1 - 2 and 3. But printer could not be detected.

Strange…

Is the cups daemon actually running? This might help:


valeria:~ # 
valeria:~ # systemctl stop cups.service
valeria:~ # systemctl disable cups.service
valeria:~ # systemctl status cups.service
cups.service - CUPS Printing Service
          Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/cups.service

Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No limit for Cancel-Jobs defined in policy allowallforanybody and no suita...found.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No limit for Cancel-My-Jobs defined in policy allowallforanybody and no su...found.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No limit for Close-Job defined in policy allowallforanybody and no suitabl...found.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No limit for CUPS-Get-Document defined in policy allowallforanybody and no...found.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No JobPrivateAccess defined in policy allowallforanybody - using defaults.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No JobPrivateValues defined in policy allowallforanybody - using defaults.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No SubscriptionPrivateAccess defined in policy allowallforanybody - using defaults.
Mar 19 14:38:19 valeria.eng-int.net cupsd[9945]: No SubscriptionPrivateValues defined in policy allowallforanybody - using defaults.
Mar 19 17:47:37 valeria.eng-int.net systemd[1]: Stopping CUPS Printing Service...
Mar 19 17:47:37 valeria.eng-int.net systemd[1]: Stopped CUPS Printing Service.
valeria:~ # 
valeria:~ # systemctl enable cups.service
ln -s '/usr/lib/systemd/system/cups.service' '/etc/systemd/system/cupsd.service'
ln -s '/usr/lib/systemd/system/cups.service' '/etc/systemd/system/printer.target.wants/cups.service'
ln -s '/usr/lib/systemd/system/cups.socket' '/etc/systemd/system/sockets.target.wants/cups.socket'
ln -s '/usr/lib/systemd/system/cups.path' '/etc/systemd/system/multi-user.target.wants/cups.path'
valeria:~ # systemctl start cups.service
valeria:~ # systemctl status cups.service
cups.service - CUPS Printing Service
          Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
          Active: active (running) since Tue, 2013-03-19 17:49:16 GMT; 5s ago
        Main PID: 27829 (cupsd)
          CGroup: name=systemd:/system/cups.service
                  └ 27829 /usr/sbin/cupsd -f

Mar 19 17:49:16 valeria.eng-int.net systemd[1]: Started CUPS Printing Service.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No limit for Validate-Job defined in policy allowallforanybody and no sui...found.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No limit for Cancel-Jobs defined in policy allowallforanybody and no suit...found.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No limit for Cancel-My-Jobs defined in policy allowallforanybody and no s...found.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No limit for Close-Job defined in policy allowallforanybody and no suitab...found.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No limit for CUPS-Get-Document defined in policy allowallforanybody and n...found.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No JobPrivateAccess defined in policy allowallforanybody - using defaults.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No JobPrivateValues defined in policy allowallforanybody - using defaults.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No SubscriptionPrivateAccess defined in policy allowallforanybody - using...aults.
Mar 19 17:49:16 valeria.eng-int.net cupsd[27829]: No SubscriptionPrivateValues defined in policy allowallforanybody - using...aults.
valeria:~ # 


rayH

On 03/19/2013 11:56 AM, Dorax wrote:
>
> Thank you for your answer.
>
> If I add the printer via Yast, I get the same broken pipe error. Note:
> automatic detection does not work (I am at the university network), but
> I give in the manual IP address and the Test says ok. But still broken
> pipe.
>
> If I use hp setup. It cannot detect the printer. So I choose manual.
> Give in the ip address (with and without port), set jetdirect port to 1
> - 2 and 3. But printer could not be detected.

With hp setup, my printer is detected. AFAICT, the hp setup software is working
OK, but I wonder why the YaST selection can find your printer with the test, but
hp setup cannot. My JetDirect port is #1.

To help with the checking, I did a ‘sudo tcpdump’ while in the manual discovery
page, and then hit next. The related network activity was


12:48:01.507737 IP 192.168.2.202.50113 > printer.snmp:  C=public.1
GetRequest(33)  E:hp.2.3.9.1.1.7.0
12:48:01.510516 IP printer.snmp > 192.168.2.202.50113:  C=public.1
GetResponse(193)  E:hp.2.3.9.1.1.7.0="MFG:Hewlett-Packard;MDL:HP LaserJet
Professional P1606dn;CMD:ZJS,URF,PCLm,PJL,ACL,HTTP,PCL;CLS:PRINTER;DES:HP
LaserJet Professional P1606dn;FWVER:20110826;"

The first line was the request for information (“printer” is an entry in my
/etc/hosts), and the second is the response. What do you see?

Please verify that you can ping the printer, and try reloading hplip.

The first machines that I upgraded to or installed (new machines) 12.3 did not start cupsd on boot. Without cups enabled there is no socket
/var/run/cups/cups.sock

You can still get a response from ports 9100 and 631 on the printers.

That was with RC2. I do not know for sure with the releas 12.3 because my install/upgrade script explicitly enables sshd and cupsd.


rayH

Valeria, I did what you said. The cups deamon was running.

This is my status output, looks similar to yours:

Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be systemd[1]: Started CUPS Printing Service.                                                         
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No limit for Validate-Job defined in policy allowallforanybody and no suitable template found.
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No limit for Cancel-Jobs defined in policy allowallforanybody and no suitable template found.
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No limit for Cancel-My-Jobs defined in policy allowallforanybody and no suitable template found.    
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No limit for Close-Job defined in policy allowallforanybody and no suitable template found.         
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No limit for CUPS-Get-Document defined in policy allowallforanybody and no suitable template found.         
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No JobPrivateAccess defined in policy allowallforanybody - using defaults.                                  
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No JobPrivateValues defined in policy allowallforanybody - using defaults.                                  
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No SubscriptionPrivateAccess defined in policy allowallforanybody - using defaults.                             
Mar 20 11:03:40 BBlokPCsGroupBasedDHCP-146175204037.ua.ac.be cupsd[8086]: No SubscriptionPrivateValues defined in policy allowallforanybody - using defaults.

Still same pipe error

If I do tcpdump, I get all 5000 computers connected to the network here. I don’t see the printer on first glance. But all my collegeas are able to print to it with the same IP address, so I think the printer is setup and connected ok.

Perhaps it is an issue with my firewall?

Here is the beginning of the output of tcpdump

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:11:15.172547 IP 146.175.204.2.hsrp > all-routers.mcast.net.hsrp: HSRPv0-hello 20: state=active group=13 addr=vlan-b-blok.cst.ua.ac.be
11:11:15.173263 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.51556 > dhcp1.cde.ua.ac.be.domain: 61056+ PTR? 2.204.175.146.in-addr.arpa. (44)
11:11:15.173959 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.51556: 61056 NXDomain* 0/1/0 (106)
11:11:15.280526 IP BBlokPCsGroupBasedDHCP-146175204054.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 130
11:11:15.280861 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.52397 > dhcp1.cde.ua.ac.be.domain: 61524+ PTR? 255.255.255.255.in-addr.arpa. (46)
11:11:15.281616 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.52397: 61524* 0/1/0 (81)
11:11:15.283427 IP BBlokPCsGroupBasedDHCP-146175204054.ua.ac.be.17500 > 146.175.207.255.17500: UDP, length 130
11:11:15.283463 IP BBlokPCsGroupBasedDHCP-146175204054.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 130
11:11:15.283803 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.52152 > dhcp1.cde.ua.ac.be.domain: 58938+ PTR? 255.207.175.146.in-addr.arpa. (46)
11:11:15.284491 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.52152: 58938 NXDomain* 0/1/0 (108)
11:11:15.349902 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:15.426014 IP BBlokPCsGroupBasedDHCP-146175204029.ua.ac.be.52818 > 239.255.255.250.ssdp: UDP, length 97
11:11:15.426378 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.54637 > dhcp1.cde.ua.ac.be.domain: 27365+ PTR? 250.255.255.239.in-addr.arpa. (46)
11:11:15.427106 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.54637: 27365 NXDomain 0/1/0 (103)
11:11:15.514980 ARP, Request who-has vlan-b-blok.cst.ua.ac.be tell pctew126.cst.ua.ac.be, length 46
11:11:15.515423 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.60574 > dhcp1.cde.ua.ac.be.domain: 31319+ PTR? 218.206.175.146.in-addr.arpa. (46)
11:11:15.516184 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.60574: 31319* 1/2/2 PTR pctew126.cst.ua.ac.be. (157)
11:11:15.572584 IP stackoverflow.com.http > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.36387: Flags [P.], seq 3352643330:3352643359, ack 1171780506, win 32, options [nop,nop,TS val 681683794 ecr 8722943], length 29
11:11:15.572914 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.39415 > dhcp1.cde.ua.ac.be.domain: 18013+ PTR? 25.206.252.198.in-addr.arpa. (45)
11:11:15.573705 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.39415: 18013 1/4/4 PTR stackoverflow.com. (224)
11:11:15.574764 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.36387 > stackoverflow.com.http: Flags [P.], seq 1:9, ack 29, win 123, options [nop,nop,TS val 9024839 ecr 681683794], length 8
11:11:15.654112 IP stackoverflow.com.http > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.36387: Flags .], ack 9, win 32, options [nop,nop,TS val 681683875 ecr 9024839], length 0
11:11:15.702083 IP dft110015.cst.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:15.702385 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.59496 > dhcp1.cde.ua.ac.be.domain: 60126+ PTR? 93.207.175.146.in-addr.arpa. (45)
11:11:15.703157 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.59496: 60126* 1/2/2 PTR dft110015.cst.ua.ac.be. (157)
11:11:16.085989 STP 802.1d, Config, Flags [none], bridge-id 8022.00:1a:a1:f4:b7:80.801f, length 43
11:11:16.178621 IP BBlokPCsGroupBasedDHCP-146175204038.ua.ac.be.52682 > 239.255.255.250.ssdp: UDP, length 117
11:11:16.356381 IP BBlokPCsGroupBasedDHCP-146175204052.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 123
11:11:16.356803 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.36940 > dhcp1.cde.ua.ac.be.domain: 14834+ PTR? 52.204.175.146.in-addr.arpa. (45)
11:11:16.357524 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.36940: 14834* 1/2/2 PTR BBlokPCsGroupBasedDHCP-146175204052.ua.ac.be. (179)
11:11:16.362598 IP BBlokPCsGroupBasedDHCP-146175204052.ua.ac.be.17500 > 146.175.207.255.17500: UDP, length 123
11:11:16.406744 IP dft090021.cst.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:16.466600 IP dft110015.cst.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:16.475261 IP lpt120013.ua.ac.be.56450 > 239.255.255.250.ssdp: UDP, length 133
11:11:16.475699 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.55851 > dhcp1.cde.ua.ac.be.domain: 53696+ PTR? 34.206.175.146.in-addr.arpa. (45)
11:11:16.476304 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.55851: 53696* 1/2/2 PTR lpt120013.ua.ac.be. (153)
11:11:16.545513 
11:11:16.553814 IP 146.175.204.3.hsrp > all-routers.mcast.net.hsrp: HSRPv0-hello 20: state=standby group=13 addr=vlan-b-blok.cst.ua.ac.be
11:11:16.554099 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.39957 > dhcp1.cde.ua.ac.be.domain: 59909+ PTR? 3.204.175.146.in-addr.arpa. (44)
11:11:16.554813 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.39957: 59909 NXDomain* 0/1/0 (106)
11:11:17.003890 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 121
11:11:17.009467 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 121
11:11:17.009501 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 121
11:11:17.009777 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 121
11:11:17.010295 IP BBlokPCsGroupBasedDHCP-146175204077.ua.ac.be.17500 > 146.175.207.255.17500: UDP, length 121
11:11:17.033644 IP BBlokPCsGroupBasedDHCP-146175204027.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 133
11:11:17.033947 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.45442 > dhcp1.cde.ua.ac.be.domain: 19353+ PTR? 27.204.175.146.in-addr.arpa. (45)
11:11:17.034672 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.45442: 19353* 1/2/2 PTR BBlokPCsGroupBasedDHCP-146175204027.ua.ac.be. (179)
11:11:17.036477 IP BBlokPCsGroupBasedDHCP-146175204027.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 133
11:11:17.036515 IP BBlokPCsGroupBasedDHCP-146175204027.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 133
11:11:17.036523 IP BBlokPCsGroupBasedDHCP-146175204027.ua.ac.be.17500 > 146.175.207.255.17500: UDP, length 133
11:11:17.168066 ARP, Request who-has pot080001.cst.ua.ac.be tell dft080017.cst.ua.ac.be, length 46
11:11:17.168383 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.41222 > dhcp1.cde.ua.ac.be.domain: 13346+ PTR? 50.207.175.146.in-addr.arpa. (45)
11:11:17.169032 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.41222: 13346* 1/2/2 PTR pot080001.cst.ua.ac.be. (157)
11:11:17.171307 IP dft090021.cst.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:17.208157 ARP, Request who-has ppt080001.cst.ua.ac.be tell aarekens-20130308-114359.ua.ac.be, length 46
11:11:17.250257 IP dft110015.cst.ua.ac.be.netbios-ns > 146.175.207.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
11:11:17.348175 IP BBlokPCsGroupBasedDHCP-146175204115.ua.ac.be.62652 > 239.255.255.250.ssdp: UDP, length 117
11:11:17.377060 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.51606 > 93.184.221.133.http: Flags [S], seq 4118077222, win 14600, options [mss 1460,sackOK,TS val 9026641 ecr 0,nop,wscale 7], length 0
11:11:17.377330 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.43162 > dhcp1.cde.ua.ac.be.domain: 36355+ PTR? 133.221.184.93.in-addr.arpa. (45)
11:11:17.384467 IP 93.184.221.133.http > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.51606: Flags [S.], seq 1292044078, ack 4118077223, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 8], length 0
11:11:17.384510 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.51606 > 93.184.221.133.http: Flags .], ack 1, win 115, length 0
11:11:17.385532 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.43162: 36355 NXDomain 0/1/0 (116)
11:11:17.440116 IP BBlokPCsGroupBasedDHCP-146175204049.ua.ac.be.57248 > 255.255.255.255.vce: UDP, length 82
11:11:17.667217 ARP, Request who-has vlan-b-blok.cst.ua.ac.be tell dft090016.cst.ua.ac.be, length 46
11:11:17.674876 IP dft120004.cst.ua.ac.be.17500 > 255.255.255.255.17500: UDP, length 123
11:11:17.675353 IP BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.41609 > dhcp1.cde.ua.ac.be.domain: 44004+ PTR? 170.207.175.146.in-addr.arpa. (46)
11:11:17.675827 IP dft120004.cst.ua.ac.be.17500 > 146.175.207.255.17500: UDP, length 123
11:11:17.676083 IP dhcp1.cde.ua.ac.be.domain > BBlokPCsGroupBasedDHCP-146175204076.ua.ac.be.41609: 44004* 1/2/2 PTR dft120004.cst.ua.ac.be. (158)
^C11:11:17.887776 IP6 fe80::45c7:7b49:fc06:2d2f.dhcpv6-client > ff02::1:2.dhcpv6-server: dhcp6 solicit

If I just pint the printer:

ping 146.175.25.85
PING 146.175.25.85 (146.175.25.85) 56(84) bytes of data.
64 bytes from 146.175.25.85: icmp_seq=1 ttl=254 time=0.536 ms
64 bytes from 146.175.25.85: icmp_seq=2 ttl=254 time=0.451 ms

How exactly do I reload hplib? Is that done when I restarted cups?

Solved by manually adding the printer in cups with:

hp:/net/HP_LaserJet_P4015?ip=x.x.x.x

On 03/20/2013 05:46 AM, Dorax wrote:
>
> Solved by manually adding the printer in cups with:
>
> hp:/net/HP_LaserJet_P4015?ip=x.x.x.x

Glad you solved it. Something went wrong in the initial configuration.