LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-23-2011, 06:12 PM   #1
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Rep: Reputation: 15
CUPS web interface gives 403 Forbidden error upon connecting to 127.0.0.1:631


Hello,

I'm on arch linux, and I've just got this issue, I'm trying to add a new printer on my netbook and I can't get cups to work anymore, it was working a little bit ago (maybe a few weeks ago) but now when I try it, it doesn't work. I will post any conf files you need. Thanks in advance,

Dragos
 
Old 07-24-2011, 02:52 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,902

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
and i take it you have been allover the arch wiki
https://wiki.archlinux.org/index.php/Cups
and nothing is helping ?

and that "cupsd" daemon IS in the /etc/rc.conf

Last edited by John VV; 07-24-2011 at 02:53 AM.
 
Old 07-24-2011, 08:22 AM   #3
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
and i take it you have been allover the arch wiki
https://wiki.archlinux.org/index.php/Cups
and nothing is helping ?

and that "cupsd" daemon IS in the /etc/rc.conf
The last one is a no. I never put it in my rc.conf because I don't want it at boot. I start it manually.

EDIT: When replacing the config with the default I now get a 400 Bad Request error.

Last edited by dragos240; 07-24-2011 at 08:26 AM.
 
Old 07-24-2011, 01:46 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,902

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
then i take it that the cups deamon is not starting
what is in the error message when you try to manually start it .
Is there anything in any of the logs after you try to manually start it

and what has changes since the time that it was working
 
Old 07-24-2011, 02:13 PM   #5
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
then i take it that the cups deamon is not starting
what is in the error message when you try to manually start it .
Is there anything in any of the logs after you try to manually start it

and what has changes since the time that it was working
No errors upon starting. It starts fine. The error log shows an interesting line though:
Code:
E [24/Jul/2011:09:25:03 -0400] Request from "192.168.0.101" using invalid Host: field "localhost:631"
This repeats 4 times in the logs. Not sure why. However starting the daemon there are no errors and it completes. To confirm it starts, an attempt to start it again fails and shutting it down succeeds.
 
Old 07-25-2011, 06:30 PM   #6
Peverel
Member
 
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 11.3, 11.4 and 12.2
Posts: 98

Rep: Reputation: 21
"localhost" is the address of your local network services,127.0.0.1: "localhost:631" is the web address through which CUPS is controlled. In my system, "localhost" is defined in /etc/hosts.
What happens if you type

ping localhost

in a terminal? You should get repeated lines of output: break in with ctrl+C. If no output, try

ping 127.0.0.1

If the second works and not the first, then you do not have the definition.
 
Old 07-26-2011, 06:11 AM   #7
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Peverel View Post
"localhost" is the address of your local network services,127.0.0.1: "localhost:631" is the web address through which CUPS is controlled. In my system, "localhost" is defined in /etc/hosts.
What happens if you type

ping localhost

in a terminal? You should get repeated lines of output: break in with ctrl+C. If no output, try

ping 127.0.0.1

If the second works and not the first, then you do not have the definition.
It's in /etc/hosts. Pinging localhost directs to 127.0.0.1.
 
Old 07-27-2011, 09:48 AM   #8
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Reverted back to 403 forbidden. I'm quite frustrated. Is there a way to reset all config files to defaults?
 
  


Reply


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
CUPS - 403 Forbidden message DLHOMME Linux - Server 10 09-09-2011 09:27 AM
[SOLVED] 403 Forbidden Error (permissions) bluegospel Linux - Server 5 01-18-2011 11:14 AM
403 forbidden error with apache2 shifter Programming 4 01-22-2010 05:22 AM
[SOLVED] CUPS web interface on localhost:631 not connecting zuzoa Linux - Software 8 07-13-2009 10:44 AM
403 Forbidden access to web with php and cgi scripts tonyboy Linux - Software 3 03-17-2004 07:45 AM


All times are GMT -5. The time now is 06:59 PM.

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