Unable to bind socket for address ::1:631

Michael Sweet mike at easysw.com
Mon Jun 19 04:51:49 PDT 2006


James Doe wrote:
> I have installed CUPS 1.2.1 on a Sun V880 server running Solaris 9.
> I tried to install a printer using 'lpadmin' and I received an error 'lpadmin: Unable to copy PPD file!'.
> 
> On looking in the 'error_log' I have found the following error.
> 
> I [19/Jun/2006:10:51:15 +0000] Full reload complete.
> d [19/Jun/2006:10:51:15 +0000] cupsdStartListening: 2 Listeners
> E [19/Jun/2006:10:51:15 +0000] Unable to bind socket for address ::1:631 - Cannot assign requested address.
> I [19/Jun/2006:10:51:15 +0000] Listening to 127.0.0.1:631 on fd 0...
> d [19/Jun/2006:10:51:15 +0000] cupsdSetEnv: CUPS_SERVER=localhost
> d [19/Jun/2006:10:51:15 +0000] cupsdSetEnv: CUPS_ENCRYPTION=IfRequested
> d [19/Jun/2006:10:51:15 +0000] cupsdSetEnv: IPP_PORT=631
> d [19/Jun/2006:10:51:15 +0000] cupsdResumeListening: Setting input bits...
> d [19/Jun/2006:10:51:15 +0000] cupsdResumeListening: Adding fd 0 to InputSet...
> d [19/Jun/2006:10:51:15 +0000] cupsdStartServer: Adding fd 2 to InputSet...
> d [19/Jun/2006:10:51:16 +0000] select_timeout: 86400 seconds to do nothing
> ~
> 
> In the 'cupsd.conf' I have configured only one listener (localhost) although it states two listeners in the 'error_log'
> 
> Has anyone any ideas please?

OK, the "unable to bind" error is unrelated to the "unable to copy
PPD file" error.

When you say "Listen localhost:631", CUPS tries to bind to both the
IPv4 loopback address (127.0.0.1) and the IPv6 loopback address
(::1).  If you don't have IPv6 enabled on your system, then it will
report that error.  You can avoid the error by specifying an IPv4
address, like "Listen 127.0.0.1:631".

The second error is probably a permissions or disk space issue; look
further down your error_log file for the CUPS-Add-Modify-Printer
request and see what is reported there...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list