Unable to bind socket for address ::1:631

James Doe jim.doe at sogefifiltration.com
Mon Jun 19 06:19:50 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

Thanks Michael, the 'Listen' problem is cured by using '127.0.0.1:631'
I am logged on as 'root' the error log is below when I try to add a printer.  The printer is created but does not work.  I think you are right about permissions but I am not sure who the owner/group should be and what permission should be.

I [19/Jun/2006:14:11:01 +0000] Listening to 127.0.0.1:631 (IPv4)
I [19/Jun/2006:14:11:01 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [19/Jun/2006:14:11:01 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [19/Jun/2006:14:11:01 +0000] Configured for up to 100 clients.
I [19/Jun/2006:14:11:01 +0000] Allowing up to 100 client connections per host.
I [19/Jun/2006:14:11:01 +0000] Using policy "default" as the default!
I [19/Jun/2006:14:11:01 +0000] Full reload is required.
I [19/Jun/2006:14:11:01 +0000] Loaded MIME database from '/etc/cups': 34 types, 37 filters...
I [19/Jun/2006:14:11:02 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [19/Jun/2006:14:11:02 +0000] Full reload complete.
I [19/Jun/2006:14:11:02 +0000] Listening to 127.0.0.1:631 on fd 0...
D [19/Jun/2006:14:11:47 +0000] cupsdAcceptClient: 5 from localhost:631 (IPv4)
D [19/Jun/2006:14:11:47 +0000] cupsdReadClient: 5 POST /admin/ HTTP/1.1
D [19/Jun/2006:14:11:47 +0000] cupsdAuthorize: No authentication data provided.
D [19/Jun/2006:14:11:47 +0000] CUPS-Add-Modify-Printer ipp://localhost/printers/laser
E [19/Jun/2006:14:11:47 +0000] CUPS-Add-Modify-Printer: Unauthorized
D [19/Jun/2006:14:11:47 +0000] cupsdSendError: 5 code=401 (Unauthorized)
D [19/Jun/2006:14:11:47 +0000] cupsdCloseClient: 5
D [19/Jun/2006:14:11:47 +0000] cupsdAcceptClient: 5 from localhost:631 (IPv4)
D [19/Jun/2006:14:11:47 +0000] cupsdReadClient: 5 POST /admin/ HTTP/1.1
D [19/Jun/2006:14:11:47 +0000] cupsdAuthorize: username="root"
D [19/Jun/2006:14:11:47 +0000] CUPS-Add-Modify-Printer ipp://localhost/printers/laser
I [19/Jun/2006:14:11:47 +0000] Setting laser printer-is-accepting-jobs to 1 (was 0.)
I [19/Jun/2006:14:11:47 +0000] Setting laser printer-state to 3 (was 5.)
D [19/Jun/2006:14:11:47 +0000] Discarding unused printer-state-changed event...
I [19/Jun/2006:14:11:48 +0000] Saving printers.conf...
D [19/Jun/2006:14:11:48 +0000] Discarding unused printer-added event...
I [19/Jun/2006:14:11:48 +0000] New printer "laser" added by "root".
D [19/Jun/2006:14:11:48 +0000] cupsdProcessIPPRequest: 5 status_code=0 (successful-ok)
D [19/Jun/2006:14:11:48 +0000] cupsdReadClient: 5 POST /admin/ HTTP/1.1
D [19/Jun/2006:14:11:48 +0000] cupsdAuthorize: username="root"
D [19/Jun/2006:14:11:48 +0000] CUPS-Add-Modify-Printer ipp://localhost/printers/laser
I [19/Jun/2006:14:11:48 +0000] Setting laser device-uri to "socket://172.18.131.1" (was "file:/dev/null".)
I [19/Jun/2006:14:11:48 +0000] Saving printers.conf...
D [19/Jun/2006:14:11:48 +0000] Discarding unused printer-modified event...
I [19/Jun/2006:14:11:48 +0000] Printer "laser" modified by "root".
D [19/Jun/2006:14:11:48 +0000] cupsdProcessIPPRequest: 5 status_code=0 (successful-ok)
D [19/Jun/2006:14:11:48 +0000] cupsdReadClient: 5 POST /admin/ HTTP/1.1
D [19/Jun/2006:14:11:48 +0000] cupsdAuthorize: username="root"
D [19/Jun/2006:14:11:48 +0000] CUPS-Add-Modify-Printer ipp://localhost/printers/laser
D [19/Jun/2006:14:11:48 +0000] copy_model: Running "cups-driverd cat laserjet.ppd"...
D [19/Jun/2006:14:11:48 +0000] [CGI] /usr/lib/cups/daemon/cups-driverd: Permission denied
E [19/Jun/2006:14:11:48 +0000] copy_model: empty PPD file!
E [19/Jun/2006:14:11:48 +0000] CUPS-Add-Modify-Printer server-error-internal-error: Unable to copy PPD file!
D [19/Jun/2006:14:11:48 +0000] cupsdProcessIPPRequest: 5 status_code=500 (server-error-internal-error)
E [19/Jun/2006:14:11:48 +0000] PID 522 (/usr/lib/cups/daemon/cups-driverd) stopped with status 13!
D [19/Jun/2006:14:11:48 +0000] cupsdCloseClient: 5







More information about the cups mailing list