LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2009, 11:13 AM   #1
Thaorius
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
Exclamation CUPS: Not working properly, doing crazy stuff.


Hi, I got an HP LaserJet 1505 printer like a month ago; so I came home, installed CUPS and the latest version of HPLIP, which, after some struggling, started working like a charm. It worked for like 1 week, and then, I stopped being able to send jobs to the printer via CUPS. Even tried from a windows Laptop using IPP, which was working previously.

Sometimes the web interface doesn't even respond(time out, connection refused, etc), sometimes it's working "half ass", meaning, you click on something and it crashes.

The printer sometimes shows on my computer (Gnome's printing dialog), and sometimes it doesn't. At first it showed and I couldn't send anything(time out), but now the printer shows up and says "Rejecting jobs", while the printer isn't rejecting jobs.

I can print to PostScript, transfer the file to my LAN server, and run:
lp JOB.ps
But it's a completely hackish solution, not to mention it's blatantly slow and requires me to log to the LAN server every time I need to print something.

As for CUPS log, it doesn't really say anything usable.

The server is using Debian, presumably updated 2 months ago.

Any ideas?

Thanks for your time.

EDIT: I forgot to mention, usually, after restarting CUPS, I can send jobs from my Gnome desktop, but they never arrive to the printing queue.
 
Old 11-18-2009, 11:31 AM   #2
Spatior
LQ Newbie
 
Registered: Jun 2009
Location: México
Distribution: Debian based, CentOs
Posts: 22

Rep: Reputation: 4
Hi, my guess is an error in the CUPS config. It would be helpful if you post your config file and your 'lpstat -t' I haven't used the web interface so I don't know why it does not respond.
 
Old 11-18-2009, 12:44 PM   #3
Thaorius
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
Skarlet:/home/skarlet# lpstat -t
scheduler is running
system default destination: HP_LaserJet_P1505
members of class Network:
	HP_LaserJet_P1505
device for HP_LaserJet_P1505: hp:/usb/HP_LaserJet_P1505?serial=L501N8R
device for Network: ///dev/null
HP_LaserJet_P1505 accepting requests since Mon 09 Nov 2009 05:11:22 PM ARST
Network accepting requests since Tue 27 Oct 2009 02:00:22 PM ARST
printer HP_LaserJet_P1505 is idle.  enabled since Mon 09 Nov 2009 05:11:22 PM ARST
printer Network is idle.  enabled since Tue 27 Oct 2009 02:00:22 PM ARST
And my /etc/cups/cupsd.conf:
Code:
LogLevel debug
SystemGroup lpadmin
# Allow remote access
#Port 631
Listen 127.0.0.1:631
Listen 192.168.3.12:631
Listen 192.168.2.1:631

Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On

BrowseAddress 192.168.3.255
BrowseAddress 192.168.2.255
BrowseAddress 127.0.0.1
BrowseAllow from 127.0.0.1
BrowseAllow from 192.168.2.0/24)
BrowseAllow from 192.168.3.0/24)
BrowseOrder deny,allow

#BrowseOrder allow,deny
#BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols cups
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  # AuthType None
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    #Require user @OWNER @SYSTEM
    #Order deny,allow
    Order allow,deny
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    #Order deny,allow
    Order allow,deny
  </Limit>
</Policy>
WAN access is firewalled.
 
Old 11-20-2009, 08:30 PM   #4
Thaorius
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Please, anyone? I use the printer rather heavily and I don't know what else to do.

Thanks.
 
Old 11-23-2009, 10:34 AM   #5
Spatior
LQ Newbie
 
Registered: Jun 2009
Location: México
Distribution: Debian based, CentOs
Posts: 22

Rep: Reputation: 4
Hi, sorry i haven't been around.
Mmmh now, in your lpstat -t the URI for the printer states ///dev/null, but if you are using Cups i think it may say something like //any.ip.x.x/HP_LaserJet_P1505 or //box/HP_LaserJet_P1505.

So just to be sure, try lpadmin -l ///dev/null if it respond with the status then the network name is ok, otherwise you can try to lpadmin -v and give the URI.

Hope this works.
 
Old 11-24-2009, 04:24 AM   #6
Thaorius
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Running your commands outputs this:
Skarlet:~# lpadmin -l ///dev/null
lpadmin: Unknown option 'l'!
Skarlet:~# lpadmin -v
lpadmin: Unable to set the device URI:
You must specify a printer name first!
Skarlet:~# lpadmin -v HP_LaserJet_P1505
lpadmin: Unable to set the device URI:
You must specify a printer name first!

However, the /dev/null should be irrelevant; as I don't use the Network class but send directly to HP_LaserJet_P1505. Though I did test the Network class when it was working and it printed just fine :S.

If you can think of anything else, please do tell, in the mean time I'm going to issue a system wide dist-upgrade and we'll see what happens.

EDIT: I updated the system, cups went ballistic. First the web interface says:
"/usr/lib/cups/backend/hp failed"
And the printer shows up as "Paused".

So I go and run hp-check, getting this:
Code:
HP_LaserJet_P1505
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1505?serial=L501N8R
PPD: /etc/cups/ppd/HP_LaserJet_P1505.ppd
PPD Description: HP LaserJet p1505, hpcups 3.9.8.36
Printer Processing page 3...aserJet_P1505 now printing HP_LaserJet_P1505-0.  enabled since Tue 24 Nov 2009 09:23:12 AM ART
error: Required plug-in status: Not installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1505?serial=L501N8R
error: Device not found
error: Communication status: Failed
So I figured, let's try re-installing the plugin, and run hp-plugin, which failed miserably with printer communication errors.
So I figured, ok, let's check dmesg, and...:
Code:
Skarlet:~# dmesg | tail
RPC: Registered tcp transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
eth2: no IPv6 routers present
eth0: no IPv6 routers present
eth1: no IPv6 routers present
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (6144 buckets, 24576 max)
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver
cupsd[2327]: segfault at 00000074 eip b7de1582 esp bfde35e0 error 4
The printer doesn't work anymore, not even from the command line.

Any ideas? All I can think of is remove CUPS, HPLIP and re-install them from source, but that will take forever.

Last edited by Thaorius; 11-24-2009 at 06:34 AM.
 
Old 11-24-2009, 05:11 PM   #7
Spatior
LQ Newbie
 
Registered: Jun 2009
Location: México
Distribution: Debian based, CentOs
Posts: 22

Rep: Reputation: 4
Hi again.
My bad I get confused about that part.
I googled the error code=12 of hp-check and find this thread, the solution may help.
Code=12https://answers.launchpad.net/hplip/+question/47352

Also this other post of LQ talks about a bug in Cups, it may have nothing to do with your problem but i cant remeber which version is the last
Cups bug and locale
 
Old 11-24-2009, 05:38 PM   #8
Thaorius
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I checked the links you pointed out, and after some digging, I managed to get CUPS to print a test page again and hp-check shows no errors.

But still, CUPS doesn't work, it won't take the jobs I send from the network .
 
  


Reply

Tags
cups, hplip, job, laserjet, log, network, postscript


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Sound works, but not 100% properly. (Driving me crazy!) Red Barchetta Linux - General 0 03-18-2007 02:08 AM
CUPS! cannot get ti working properly!! ukpete1969 Linux - Networking 1 10-03-2006 09:36 AM
Constant hdd writing/reading? Crazy stuff! Svip Slackware 19 06-08-2006 08:41 PM
Going crazy trying to install gtkpod, amarok, libraries.. general noob stuff Dachy Slackware 1 02-12-2006 06:03 AM
PCMCIA NETWORK CARD NOT WORKING !!! me going crazy!! lionking_x Linux - Networking 0 02-26-2004 11:44 PM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration