Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 49257

Summary: NTP won't run
Product: Gentoo Linux Reporter: Stony <stonyy>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stony 2004-04-28 00:31:29 UTC
I did an emerge -u ntp, edited the /etc/conf.d/ntp-client as follows:
#NTPCLIENT_CMD="ntpdate"
NTPCLIENT_CMD="/usr/bin/ntpdate"
#NTPDATE_OPTS="-b your.server.here"
NTPCLIENT_OPTS="-b time.cachenetworks.com"
NTPCLIENT_OPTS="-b ntp1.mainecoon.com"
NTPCLIENT_OPTS="-b ntp1.sf-bay.org"

###########end of conf.d/ntp-update#########
Added to the startup via rc-update, then tried to run ntp with:

/etc/init.d/ntp-client restart
which  printed:
 * Setting clock via the ntp client '/usr/bin/ntpdate'...
27 Apr 05:18:41 ntpdate[21672]: setsockopt() IPV6_V6ONLY failed: Protocol not available
 * Failed to set clock 

So, I ran the ntpdate command manually as :...
sirbarton /etc/init.d# ntpdate -b ntp1.sf-bay.org
Looking for host ntp1.sf-bay.org and service ntp
host found : zorro.sf-bay.org
27 Apr 05:20:26 ntpdate[21681]: setsockopt() IPV6_V6ONLY failed: Protocol not available

I am not actually sure what is failing here, all I know is I would like ntp-client to work.


Reproducible: Always
Steps to Reproduce:
1.emerge -up ntp
2.ntpdate -b ntp1.sf-bay.org
3.

Actual Results:  
Error message and failure to adjust the clock

Expected Results:  
Set the clock to the correct synchronized time.
Comment 1 SpanKY gentoo-dev 2004-04-28 13:43:37 UTC
turn on ipv6 support in your kernel or add -4 to the options