LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2007, 08:03 PM   #1
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
CUPS server not connecting to localhost.


This problem came out of the blue. I've made no configuration changes other than adding software and setting up mysql - printing works OK.

This problem is isolated to a laptop, other computers on the network are fine.

After typing localhost:631/. into Konqueror and getting the 404 Not Found error, I tried starting the cups interface from the System menu. This produced a 'white' featureless web page displaying only the link text - none of the usual cups interface, buttons etc (konqueror and seamonkey).
It was possible to connect to all the links except Home.

On a second attempt at starting the cups interface from the System menu, Konqueror displayed the 404 not found error only - no web page! However, I'm still able to access Administration etc by typing the full address e.g. http://localhost:631/admin, but not localhost:631/. (which is the equivalent of Home).

Is their a correlation between the inability of the cups interface to render a complete web page and problems connecting - not sure about that?

I've reinstalled cups several times with no success. At this stage it seems that removing cups and all of its configuration folders then reinstalling is the only option remaining?
 
Old 09-29-2007, 08:46 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Don't put the /. after localhost:631
 
Old 09-29-2007, 08:57 PM   #3
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
Thanks,

I tried that, and various other combinations, but no change. Konqueror and Seamonkey add a / automatically in any case.
 
Old 09-30-2007, 08:43 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,279

Rep: Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801Reputation: 801
Are you sure that the cups daemon is actually running?
ps ax | grep cups should show /usr/sbin/cupsd

Alternatively look at lpstat -t
This should show the scheduler is running.

It is possible that the daemon is not running, but your web browser is supplying a cached version of the admin page.
 
Old 09-30-2007, 06:22 PM   #5
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
Thanks allend,

That may have been the problem. I have since reinstalled the entire system overnight using slackpkg. Not only did that fix the CUPS problem, but everything is running much smoother and faster???

Thanks for your help. I will run those commands to familiarize myself with the system more fully.

Edit.
Come to think of it ksysguard indicated that cupsd was running, and printing was working OK. While it was possible to administer the system, I think you are right about the cached version of the cups interface. I don't understand the correlations!

Last edited by The_Outlander; 09-30-2007 at 06:29 PM.
 
Old 11-05-2007, 11:37 AM   #6
LnxSlck
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Slackware, Archlinux and OpenBSD
Posts: 26

Rep: Reputation: 1
Quote:
Originally Posted by The_Outlander View Post
This problem came out of the blue. I've made no configuration changes other than adding software and setting up mysql - printing works OK.

This problem is isolated to a laptop, other computers on the network are fine.

After typing localhost:631/. into Konqueror and getting the 404 Not Found error, I tried starting the cups interface from the System menu. This produced a 'white' featureless web page displaying only the link text - none of the usual cups interface, buttons etc (konqueror and seamonkey).
It was possible to connect to all the links except Home.

On a second attempt at starting the cups interface from the System menu, Konqueror displayed the 404 not found error only - no web page! However, I'm still able to access Administration etc by typing the full address e.g. http://localhost:631/admin, but not localhost:631/. (which is the equivalent of Home).

Is their a correlation between the inability of the cups interface to render a complete web page and problems connecting - not sure about that?

I've reinstalled cups several times with no success. At this stage it seems that removing cups and all of its configuration folders then reinstalling is the only option remaining?
I have the same problem. I had slackware 12 working with cups just fine, i upgraded to current (and cups got updated too) now i get the 404 not found (cupsd is running) if i enter localhost:631 and printers i can see the printers and there go to admin, but i'm trying to install a LPT1 local printer and when i try to add a printer the LPT1 driver option doesn't show.

Any ideas how to solve the 404 not found and the LPT1 driver problem ?
 
Old 11-05-2007, 05:27 PM   #7
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Original Poster
Rep: Reputation: 30
Hi,

I didn't find a specific solution to this problem. I have no idea what caused it.
My solution was to "reinstall" the entire system using slackpkg. This is not the favoured solution, and is more of a desperate measure.

If you consider this option please backup your /etc directory so as not to accidentally overwrite your current configuration. I'm sure you know that.

Do you mean that there is no ppd file for your printer, or there is no LPT #1 device.
You can get ppd files from linuxprinting. Otherwise they are located in /usr/share/cups/model or a closely related directory. Just place any downloaded ppd files in there. Or the cheats way, you can put it directly in /etc/cups/ppd, where cups automatically puts it anyway.

Hope this helps.
 
Old 11-08-2007, 12:21 PM   #8
LnxSlck
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Slackware, Archlinux and OpenBSD
Posts: 26

Rep: Reputation: 1
Quote:
Originally Posted by The_Outlander View Post
Hi,

I didn't find a specific solution to this problem. I have no idea what caused it.
My solution was to "reinstall" the entire system using slackpkg. This is not the favoured solution, and is more of a desperate measure.

If you consider this option please backup your /etc directory so as not to accidentally overwrite your current configuration. I'm sure you know that.

Do you mean that there is no ppd file for your printer, or there is no LPT #1 device.
You can get ppd files from linuxprinting. Otherwise they are located in /usr/share/cups/model or a closely related directory. Just place any downloaded ppd files in there. Or the cheats way, you can put it directly in /etc/cups/ppd, where cups automatically puts it anyway.

Hope this helps.
Thanks for your reply, i did solve the problem by reinstalling the previous version of cups, now everything works just fine.

In future, i will keep to stable versions (11,12) as current is indeed to developers and testers.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to a mysql server not on localhost kornfan2007 Linux - Newbie 10 07-18-2007 07:43 AM
Squirrelmail Error connecting to IMAP server: tls://localhost cccc Linux - Server 4 01-12-2007 01:39 AM
Squirrelmail Error connecting to IMAP server: tls://localhost cccc Debian 1 09-18-2006 01:44 PM
Problems with connecting to a Remote CUPS Server Techweenie1 Linux - Newbie 6 04-28-2003 08:43 AM


All times are GMT -5. The time now is 11:58 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