Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Sep 2014, 16:04
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
CUPS problem - "waiting for localhost"
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Fri 07 Jan 2011, 13:39    Post subject:  

You can try reinstalling CUPS using the instructions above.
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Fri 07 Jan 2011, 13:48    Post subject:  

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

Nothing else?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Fri 07 Jan 2011, 13:54    Post subject:  

Sorry. I wish I knew how to replicate this problem, but I can't. (Un)fortunately, my CUPS installs are all rock-solid.
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Fri 07 Jan 2011, 14:02    Post subject:  

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

Code:

# 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... Sad
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Fri 07 Jan 2011, 14:03    Post subject:  

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
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Fri 07 Jan 2011, 14:21    Post subject:  

Done, nothing changed...

Ok, it seems I can only try with a new save file Crying or Very sad
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Sat 08 Jan 2011, 19:30    Post subject:  

One thing:

since first reboot after my "waiting for localhost" problem, before X starts I can read this warning:

Code:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.


and here's /etc/modprobe.conf content:

Code:
options parport_pc io=0x378 irq=7 dma=3


Is it related?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Sat 08 Jan 2011, 20:08    Post subject:  

That message has been around for a while. What Puppy version are you using?
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Sun 09 Jan 2011, 09:18    Post subject:  

Wary 104 (the latest Release Candidate)
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Mon 10 Jan 2011, 11:26    Post subject:  

Moreover today I discovered I don't have the PDF printer anymore it used to work before I first tried adding my Samsung printer... sgrunt! Evil or Very Mad
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Mon 10 Jan 2011, 12:47    Post subject:  

Are you installing from the PET or from the official Samsung installer?
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Mon 10 Jan 2011, 15:57    Post subject:  

I removed your pet now, anyway I re-factored it leaving only the ppd of my printer, to save some space.

Anyway with no save file loaded the pet worked and the printer printed.

With my current savefile instead, no matter what I install or delete, I can't get any CUPS webpage but the home... Crying or Very sad
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Tue 11 Jan 2011, 17:11    Post subject:  

mikeb wrote me a PM about double checking possible changes in file / folders permissions.
I gave a look but did not find anomalies.

Then I looked at cups conf file adding ErrorLog file and setting LogLevel to debug.

Code:
D [12/Jan/2011:20:03:03 +2300] cupsdReadClient: 10 GET /admin?OP=add-printer HTTP/1.1
D [12/Jan/2011:20:03:03 +2300] cupsdAuthorize: No authentication data provided.
D [12/Jan/2011:20:03:03 +2300] [CGI] /usr/lib/cups/cgi-bin/admin.cgi started - PID = 9232
I [12/Jan/2011:20:03:03 +2300] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=9232)
D [12/Jan/2011:20:03:03 +2300] cupsdSendCommand: 10 file=17
D [12/Jan/2011:20:03:03 +2300] Report: clients=6
D [12/Jan/2011:20:03:03 +2300] Report: jobs=0
D [12/Jan/2011:20:03:03 +2300] Report: jobs-active=0
D [12/Jan/2011:20:03:03 +2300] Report: printers=0
D [12/Jan/2011:20:03:03 +2300] Report: printers-implicit=0
D [12/Jan/2011:20:03:03 +2300] Report: stringpool-string-count=169
D [12/Jan/2011:20:03:03 +2300] Report: stringpool-alloc-bytes=4896
D [12/Jan/2011:20:03:03 +2300] Report: stringpool-total-bytes=3664
E [12/Jan/2011:20:03:03 +2300] PID 9232 (/usr/lib/cups/cgi-bin/admin.cgi) stopped with status 22!
D [12/Jan/2011:20:03:03 +2300] [CGI] /usr/lib/cups/cgi-bin/admin.cgi: Permission denied


The second last line reports the error, I checked binaries in /usr/lib/cups/cgi-bin/ but all have rwx,r-x,r-x permissions so I don't understand the Permission denied last message.

According to this error 22 is:

Code:
#define EINVAL          22      /* Invalid argument */


Any tip?

I think that adding as a default the cups error log (in /var/log/cups/ like Ubuntu) in all puppies could help a lot not experienced users.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9114
Location: Stratford, Ontario

PostPosted: Tue 11 Jan 2011, 17:31    Post subject:  

Run
Code:
top
and find the cupsd process. What user owns it?
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Tue 11 Jan 2011, 17:38    Post subject:  

root... Sad

Code:
# top
4836     1 root     S     4112   0%   0   0% /usr/sbin/cupsd -C /etc/cups/cupsd.conf


Code:
# ps | egrep "cupsd|USER"
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      4836  0.0  0.2   4112  2084 ?        Ss   21:23   0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0708s ][ Queries: 11 (0.0056s) ][ GZIP on ]