Page 1 of 1

Problem with cups

Posted: Fri 05 Aug 2016, 22:27
by april
I am unable to get cups to load "http://localhost:631/" with this message
Failed to Connect

The connection was refused when attempting to contact localhost:631.

Though the site seems valid, the browser was unable to establish a connection.

Could the site be temporarily unavailable? Try again later.
Are you unable to browse other sites? Check the computer's network connection.
Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
This request "http://localhost:2605/index.html" loads OSbitmeter fine

So can anyone suggest what might be blocking cups?

Posted: Fri 05 Aug 2016, 22:48
by Galbi
While waiting for a better answer.... :)
I wonder if CUPS is really running.
In a console:

Code: Select all

#ps ax |grep cups
would be my first intent.

Saludos.

Posted: Sat 06 Aug 2016, 04:00
by watchdog
I would try to uninstall the most recent package installed in PPM... Sometimes, for permissions problems, installing a package breaks cups. You can restart cups with:

Code: Select all

/etc/init.d/cups restart

Posted: Sat 06 Aug 2016, 07:31
by april
Thanks watchdog ,running that gave me a missing link to the cups engine . So I'll go trace that now

I'm getting lots of cups related files and directories .
The link is pointing to /lib/init/upstart-job but I find there is no /lib/init/ files whatever .
can anyone suggest a fix . I have reinstalled some of the cups packages just now to try to remedy this but nothing has worked so far

Posted: Sat 06 Aug 2016, 08:52
by watchdog
Cups broken by missing libs and files? I never had success reinstalling cups. I suggest to backup important data and start again with a fresh frugal install.

Posted: Sat 06 Aug 2016, 09:58
by april
Galbi wrote:While waiting for a better answer.... :)
I wonder if CUPS is really running.
In a console:

Code: Select all

#ps ax |grep cups
would be my first intent.
Saludos.
Yes it was but it would not stop restart from a terminal Thanks

Posted: Sat 06 Aug 2016, 12:40
by perdido
Assuming you are still running precise 5.7.1 , the box-stock cups file in /etc/init.d/ on my precise 5.7.1 is not a sym-link, it is a real executable that is 3942 Bytes dated 19 nov, 2009

Seems yours updated to a sym-link.

Just mentioning because it is different from mine.

Posted: Sun 07 Aug 2016, 09:18
by april
Yes thanks , something weird has gone on . I picked that up myself so I opened the precise5.7.1.sfs file and copied the right file into the above directory . That improved the situation but now I have an unfound literal so i'm presently trying to track that down or get all the cups files in the sfs copied into my directories. I guess it must be some script running in the savefile that changed my files and it probably comes from an update I must have done .

Posted: Sun 07 Aug 2016, 10:01
by april
Icouldn't find a way around that so I looked through and got rid of a latter version of cups I had tried to install when the error surfaced . Then with the copied file in place cups is back to normal I think.