Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-11-2004, 06:56 AM
|
#1
|
Member
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 308
Rep:
|
server-error-internal-error with CUPS "Configure Printer"
Hi Folks
I am having some fun and games with CUPS. I have several machines running Slack 10.0, but not all of them have this problem.
I have installed a number of printers with their respective ppds using the web-interface and when I attempt to configure the page size etc. with the "Configure Printer" button, I get the infamous "server-error-internal-error" message. After setting LogLevel to "debug" I saw this message in /var/log/cups/error_log:
D [11/Aug/2004:13:52:08 +0200] SendError() 9 code=403 (Forbidden)
The "code=403" is kinda like an http error, but I don't know what CUPS is trying to tell me. Could someone narrow this down a bit for me?
The fact that I only get this on some of the machines seems to indicate something that I am doing during the installation, I just wish I knew what. (BTW, I have not installed lprng at all, so there's no clash happening with symlinks etc.)
|
|
|
08-11-2004, 07:38 AM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
I know what is wrong.
You have a differering name in your /etc/cups/cupsd.conf and /etc/hosts. What I mean is that, in your /etc/cups/cupsd.conf ServerName is different from your machine name. Change it so that it is the same and restart cups.
|
|
|
08-11-2004, 07:51 AM
|
#3
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
You may have to add in /etc/cups/cupsd.conf some lines which look like :
(for a network 192.168.0.0/24)
<Location /printers/YourPrinterName>
Order Deny,Allow
Deny From All
Allow From 192.168.0.0/24
</Location>
|
|
1 members found this post helpful.
|
08-11-2004, 08:11 AM
|
#4
|
Member
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 308
Original Poster
Rep:
|
carboncopy:
Nope, I have checked the ServerName thing and it's not that .
Cedrik:
I probably should've mentioned that I have edited cupsd.conf so that I can configure the printers from other machines, so I the IP addies in <Location> and <Admin>.
|
|
|
08-11-2004, 08:20 AM
|
#5
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
And did you check the ServerName in /etc/cups/client.conf of your machines ?
|
|
|
08-11-2004, 08:39 AM
|
#6
|
Member
Registered: Jun 2002
Location: South Africa
Distribution: Custom slackware64-current
Posts: 308
Original Poster
Rep:
|
After reading Cedrik's suggestion about the ServerName in client.conf I decided to comment it out in cupsd.conf so that it would read /etc/hosts, and this appears to have fixed the problem. I am rather bemused because I have configured a CUPS server like this in 9.1 without these issues.
Thanks for the help carboncopy and Cedrik .
|
|
|
06-05-2013, 01:51 PM
|
#7
|
LQ Newbie
Registered: Aug 2008
Posts: 12
Rep:
|
server-error-internal-error with CUPS "Configure Printer"
This is quite old but since I found it very helpful I am replying so maybe it will help someonne else.
I do not understand all the code below that you suggested adding but it seems to have solved the problem. I was in doube if I should add the line "allow from 192.168.0.0/24" or if it should be my printer address. I added the line as you put it (I copied and pasted the entire code) and it worked. Thanks.
You may have to add in /etc/cups/cupsd.conf some lines which look like :
(for a network 192.168.0.0/24)
<Location /printers/YourPrinterName>
Order Deny,Allow
Deny From All
Allow From 192.168.0.0/24
</Location>
Cedrik is offline Add to Cedrik's Reputation Report This Post
|
|
|
All times are GMT -5. The time now is 07:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|