Lpstat: Bad Request Error in Linux


 
Thread Tools Search this Thread
Operating Systems Linux Lpstat: Bad Request Error in Linux
# 1  
Old 03-06-2013
Lpstat: Bad Request Error in Linux

Dear Team,

Earlier my
Code:
lpstat syntax

is working on o/s, I have installed cups
Code:
"cups-1.6.1"

after that I'm not able to open the printer option in GUI and cannot do the query
Code:
"lpstat -a"

Below is the error i'm getting..Request you to advice me the best to me.

Code:
[root@r12devdb cups-1.6.1]# lpstat
lpstat: Bad Request


My O/s Version.

Code:
[root@r12devdb ~]# uname -v
#1 SMP Wed Oct 10 16:48:44 EDT 2007
[root@r12devdb ~]# uname -a
Linux r12devdb.ghobash.com 2.6.18-53.el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@r12devdb ~]# uname -r
2.6.18-53.el5xen
[root@r12devdb ~]# uname -mrs
Linux 2.6.18-53.el5xen x86_64
[root@r12devdb ~]#
[root@r12devdb cups-1.6.1]# cat /etc/*release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
[root@r12devdb cups-1.6.1]# cat /proc/version
Linux version 2.6.18-53.el5xen (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Oct 10 16:48:44 EDT 2007
[root@r12devdb cups-1.6.1]#

Thank you,
Faiz.
# 2  
Old 03-06-2013
This issue is a known regression in cups-1.6.1 apparently due to DNS rebinding attack protection code.

To work around this, try adding ServerAlias directives to your cupsd.conf file, either:

ServerAlias *

or one per hostname, e.g.:

ServerAlias host1.example.com
ServerAlias host2.example.com
This User Gave Thanks to fpmurphy For This Post:
# 3  
Old 03-07-2013
Hi Expert,

Thank you very much for your support.I added this parameter "ServerAlias *" its given the error "lpstat: Connection refused"
Then i added below two lines its work given the lpstat output.

PHP Code:
Listen 192.11.10.xx:631      # Listen on the LAN interface, Port 631 (IPP)
Listen xxxxx.xxxx.com:631  # Listen on all interfaces for the hostname 'socrates' 

While i'm trying to open printer from GUI mode its giving below error,Please advise, Thanks in advance.

PHP Code:
Traceback (most recent call last):
  
File "/usr/share/system-config-printer/system-config-printer.py"line 40in ?
    
import cups
ImportError
: /usr/lib64/python2.4/site-packages/cups.soundefined symbol_cupsAdminGetServerSettings 



Thank you,
Mohammed Faiz.
# 4  
Old 03-19-2013
Dear Expert,

Please let me know, how can i enable the GUI mode for printers...do i need to uninstall the cups? please update the action plan.

Thank you,
Faiz.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

Unable to connect only when using wget with 400 bad request error

Hi I have a proxy configured on my ubuntu o.s. running on vmware player, but when trying to wgetDownload Nagios Core from SourceForge.net, I have the following error: failed: Connection refused I have check on the web, they ask me to run sudo ufw status, but the output is enabled, so what... (0 Replies)
Discussion started by: fretagi
0 Replies

2. IP Networking

How to send non get request from linux server

Hi I want to send non get request for HTTP from linux server. Please let me knwo how to do that Thanks Lakshmikant (0 Replies)
Discussion started by: lakshmikant
0 Replies

3. UNIX for Advanced & Expert Users

HELP! what does this mean: "svc: bad direction 256, dropping request"

For a few weeks now, on several of our machines, i've been seeing this in /var/log/messages and dmesg: Nov 14 16:37:48 stg2 kernel: svc: bad direction 256, dropping request Nov 14 16:37:48 stg2 kernel: svc: short len 4, dropping request Nov 14 16:38:02 stg2 kernel: svc: bad direction 256,... (2 Replies)
Discussion started by: fishsponge
2 Replies

4. Solaris

lpstat gives segmentation coredump error

hi everyone, we have solaris 8 in sun v480 server. it gives this error. Segmentation Fault(coredump) can anyone help me in this - urgently. Regards Karthik C (8 Replies)
Discussion started by: cksriramchandra
8 Replies

5. Shell Programming and Scripting

Http request in Linux

Hi, i need a guide how to write a script which i can do a http request. Let say the request look like below; http://www.test.com?txid=1&type=service&server=linux I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies

6. SuSE

Request:- Could some do a poll of Linux version usage?

I don't know nearly enough about what versions of Open/Free Linux are available. I was wondering if someone would create a new poll of all the major recent(ish) distros so we can see the percentage of people's preferred distro? I've only ever used Suse and have been very happy with it, but... (0 Replies)
Discussion started by: Mark Ward
0 Replies

7. UNIX for Dummies Questions & Answers

I screwed up linux bad

Hey, I definately screwed up my libraries, but I am not sure how. I get this error: /bin/sh: relocation error: /usr/local/lib/libdl.so.2 symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference when I try to even login. I cannot even get... (2 Replies)
Discussion started by: farhan00
2 Replies

8. Linux

I screwed up linux really bad...

Hey, I definately screwed up my libraries, but I am not sure how. I get this error: /bin/sh: relocation error: /usr/local/lib/libdl.so.2 symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference when I try to even login. I cannot even get to a... (1 Reply)
Discussion started by: farhan00
1 Replies
Login or Register to Ask a Question