CUPS problem - "waiting for localhost"

Problems and successes with specific brands/models of printers
Message
Author
germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

CUPS problem - "waiting for localhost"

#1 Post by germanix »

When i started puppy form CDROM, i added my printers, using seamonkey, typing: http://localhost:631.
I get access to http://localhost:631/printers
No problems.

I saved a personal pupsave.3fs. And started puppy again.
I opened my default browser seamonkey 2.0.11 and typed: http://localhost:631
The CUPS welcome page comes up.

But now, when I click "Add Printer" or any other button, i get the message "Waiting for localhost...". And nothing happens.
I cannot add another printer or kill jobs by using seamonkey.

I typed in my shell: # cups-config --version
and got: 1.3.11

I typed again: # /etc/rc.d/init.d/cups status
and got: cups: scheduler is running.

And i can kill printer-jobs using #lpstat -t
and #lprm

So my cups works fine.

But what is the reason for this bug. How come that i have no access to http://localhost:631/printers after using a personal pupsave.3fs?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

Which Puppy version are you using?

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#3 Post by germanix »

This puppy version is wary-500, the newest wary puppy.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

I repeated your situation in Wary - booted off the Live CD, installed a printer, made a warysave.3fs file, rebooted, checked the printer. Everything worked fine.

I suspect that the problem is with your Seamonkey, not CUPS. In Seamonkey, go to Edit > Preferences > Privacy and Security. Hit the Clear Now button. Restart Seamonkey and open the CUPS web interface again.

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#5 Post by germanix »

I suspect that the problem is with your Seamonkey, not CUPS. In Seamonkey, go to Edit > Preferences > Privacy and Security. Hit the Clear Now button. Restart Seamonkey and open the CUPS web interface again.
I tried what you've suggested. But the same effect: I opened my default browser seamonkey 2.0.11 and typed: http://localhost:631
The CUPS welcome page comes up. And when I click "Add Printer" or any other button, i get the message "Waiting for localhost...". And nothing happens. I cannot add another printer or kill jobs by using seamonkey.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

What printers did you install? Maybe something went wrong with their installation and that's causing the problem.

Go into the folder /etc/cups and delete the file printers.conf.

If that doesn't help, try reinstalling CUPS 1.3.11 from here. Just install Items 1,2 and 5.

If nothing helps, you may have to delete your warysave.3fs file and start a new one.

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#7 Post by germanix »

I've installed the printers several times. I think they are correct installed. Both are HP laser printers. The one of them is an old network printer 8100, and the other is an old 4L at /dev/lp0. They did work fine under Puppy 4.3.1.

I deleted the /etc/cups/printer.conf and started /etc/rc.d/init.d/cups again.

I reinstalled CUPS 1.3.11 from there, just items 1, 2 and 5.

I deleted my warysave.3fs and started a new one.

All that didn't help. And i found out, that i cannot print. My printer is disabled by the system when i use a warysave.3fs file. Suspect.
I repeated your situation in Wary - booted off the Live CD, installed a printer, made a warysave.3fs file, rebooted, checked the printer. Everything worked fine.
Which wary-puppy were you using? I suppose, the same as me.

I googled in Internet "waiting for localhost linux" and found out that there could be a bug in the scripts. But if you are sure everything worked fine using warysave.3fs, then there cannot be a bug. So i don't know what to do. I need this warysave.3fs file because of an openoffice.sfs. But otherwise everything works fine without this warysave.3fs ...

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

because of an openoffice.sfs.
There have been reports of some older openoffice packages conflicting with CUPS. Where did you get yours?

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#9 Post by germanix »

This is the go-oo-3.2-sfs4.sfs.
And there are the download hints
I had never had a problem before.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

I had never had a problem before.
With what Puppies?

This would be easy to test. Remove the go-office sfs and see if printing becomes active again.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#11 Post by rcrsn51 »

I can confirm that when the go-oo-3.2-sfs4.sfs is added to Wary, CUPS will hang up. I suspect that this occurs because the go-oo package was built in a Puppy 4.3.1 environment which uses an old version of CUPS. It is not compatible with the newer CUPS in Quirky/Wary/Lupu.

However, LibreOffice does work with CUPS in Wary.

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#12 Post by germanix »

You are right. When i removed this package go-oo-3.2-sfs4.sfs, then it works fine. No problems any more. Thank you! I'll install another office.sfs as you suggested. Thank you again.

germanix
Posts: 40
Joined: Thu 30 Dec 2010, 16:32

#13 Post by germanix »

But where can i get the right java/jre pet package?
Is this the right one?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

DaveS' download site also has a Java. See the link above.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#15 Post by neurino »

I have tha same problem `waiting for localhost`...

Running puppy with no save file (pfix=ram) and using the pet you provide here (my printer is a Samsung ML 1640) I can print successfully the test page.

But with my savefile I can't get any CUPS interface web page except the home.

I have 3 sfs loaded on bootup (GIMP, devx and another) but removing them does not solve the problem.

Any tip? (except delete your savefile and start a new one... :wink: )

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

You can try reinstalling CUPS using the instructions above.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#17 Post by neurino »

I already did it before postin'... (I'm a good and devoted forum user :wink: )

Nothing else?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

Sorry. I wish I knew how to replicate this problem, but I can't. (Un)fortunately, my CUPS installs are all rock-solid.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#19 Post by neurino »

Some command I can give to see why the server hangs?

Code: Select all

# ps | grep cups
 5830 root       0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
# /etc/init.d/cups status
cups: scheduler is running.
# /etc/init.d/cups restart
cups: restarted scheduler.
# cups-config --version
1.3.11
Sob... :(

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

Try this:

Stop CUPS with the command: /etc/init.d/cups stop

Delete these folders, if they exist

/var/cups
/var/log/cups
/var/run/cups
/var/spool/cups
/var/cache/cups

Restart CUPS with: /etc/init.d/cups start

Post Reply