Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2007, 02:49 PM
kel_en kel_en is offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't connect to CUPS server -- solved
I installed PC-BSD two days ago on a laptop. I am now trying to get CUPS to work but am unable to connect to the server. Immediately after the install as I was exploring the system I was able to connect to the CUPS server using Konqueror and http://localhost:631. Since my printers are connected to my Linux box and I didn't have wireless working at the time, I quit the CUPS page without changes. I now have wireless working and am trying to configure CUPS but I am unable to connect to the server. cupsd is running. This is the tail of /var/log/cups/error-log representing the last restart of cupsd.

I [22/Jul/2007:09:52:51 -0400] Scheduler shutting down normally.
I [22/Jul/2007:09:52:51 -0400] Saving remote.cache...
I [22/Jul/2007:09:52:51 -0400] Saving job cache file "/var/cache/cups/job.cache"...
I [22/Jul/2007:09:52:53 -0400] Listening to ::1:631 (IPv6)
I [22/Jul/2007:09:52:53 -0400] Listening to 127.0.0.1:631 (IPv4)
I [22/Jul/2007:09:52:53 -0400] Listening to 127.0.0.1:631 (IPv4)
I [22/Jul/2007:09:52:53 -0400] Listening to :::631 (IPv6)
I [22/Jul/2007:09:52:53 -0400] Listening to 0.0.0.0:631 (IPv4)
W [22/Jul/2007:09:52:53 -0400] "AuthClass Anonymous" is deprecated; consider removing it from line 835.
I [22/Jul/2007:09:52:53 -0400] Loaded configuration file "/usr/local/etc/cups/cupsd.conf"
I [22/Jul/2007:09:52:53 -0400] Using default TempDir of /var/spool/cups/tmp...
I [22/Jul/2007:09:52:53 -0400] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [22/Jul/2007:09:52:54 -0400] Configured for up to 100 clients.
I [22/Jul/2007:09:52:54 -0400] Allowing up to 100 client connections per host.
I [22/Jul/2007:09:52:54 -0400] Creating CUPS default administrative policy:
I [22/Jul/2007:09:52:54 -0400] <Policy default>
I [22/Jul/2007:09:52:54 -0400] <Limit Send-Document Send-URI Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Authenticate-Job>
I [22/Jul/2007:09:52:54 -0400] Order Deny,Allow
I [22/Jul/2007:09:52:54 -0400] Require user @OWNER @SYSTEM
I [22/Jul/2007:09:52:54 -0400] </Limit>
I [22/Jul/2007:09:52:54 -0400] <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
I [22/Jul/2007:09:52:54 -0400] Order Deny,Allow
I [22/Jul/2007:09:52:54 -0400] AuthType Basic
I [22/Jul/2007:09:52:54 -0400] Require user @SYSTEM
I [22/Jul/2007:09:52:54 -0400] </Limit>
I [22/Jul/2007:09:52:54 -0400] <Limit All>
I [22/Jul/2007:09:52:54 -0400] Order Deny,Allow
I [22/Jul/2007:09:52:54 -0400] </Limit>
I [22/Jul/2007:09:52:54 -0400] </Policy>
I [22/Jul/2007:09:52:54 -0400] Full reload is required.
I [22/Jul/2007:09:52:54 -0400] Loaded MIME database from '/usr/local/etc/cups': 34 types, 38 filters...
I [22/Jul/2007:09:52:54 -0400] Loading job cache file "/var/cache/cups/job.cache"...
I [22/Jul/2007:09:52:54 -0400] Full reload complete.
E [22/Jul/2007:09:52:54 -0400] Unable to bind socket for address ::1:631 - Can't assign requested address.
E [22/Jul/2007:09:52:54 -0400] Unable to bind socket for address 127.0.0.1:631 - Can't assign requested address.
E [22/Jul/2007:09:52:54 -0400] Unable to bind socket for address 127.0.0.1:631 - Can't assign requested address.
I [22/Jul/2007:09:52:54 -0400] Listening to :::631 on fd 2...
I [22/Jul/2007:09:52:54 -0400] Listening to 0.0.0.0:631 on fd 3...

When I try to connect to http://0.0.0.0:631 Konqueror returns FORBIDDEN

laptop# ls /var/db/pkg | grep cups
cups-base-1.2.10
cups-pstoraster-8.15.3
cups-smb-backend-1.0

laptop# pgrep cupsd
1313

laptop# sockstat | grep cups
root cupsd 1313 2 tcp6 *:631 *:*
root cupsd 1313 3 tcp4 *:631 *:*
root cupsd 1313 4 udp4 *:631 *:

Any suggestions would be welcome.

Edit: Problem was no configuration for lo0 so connection to localhost was not possible. Found the solution in this forum. Thanks.
Reply With Quote
  #2  
Old 08-17-2007, 06:08 PM
Oko Oko is offline
Senior Member
 
Join Date: May 2007
Posts: 679
Thanks: 2
Thanked 0 Times in 0 Posts
Default
Did you give permissions to cup daemon to access you printer

edit devfs.conf

pern lp0 0666

read dmesg first printer might be ugen0
__________________
OKO
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to : Windows Terminal Server + Window Shared Printer mamoru General Questions 1 03-14-2007 07:37 PM
Unable to Connect with Kppp/ SOLVED! danrael Installing PC-BSD 30 08-28-2006 06:00 AM
Unable to connect to internet after install [solved] gkw Installing PC-BSD 3 08-05-2006 11:30 AM
Can't connect to CUPS server Zelmo Installing PC-BSD 7 06-20-2006 09:29 PM
[SOLVED] PC-BSD in vmware can not connect to the internet Aero37 General Questions 28 06-19-2006 03:00 AM


All times are GMT. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.