View previous topic :: View next topic |
Author |
Message |
bubuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1747482306407695be0dd16.png)
Joined: 29 Mar 2003 Posts: 4 Location: cologne, germany
|
Posted: Sat Apr 03, 2004 7:58 am Post subject: ntpdate wont work |
|
|
Hello omniscient!
I cant do a ntpdate anymore and i dont find the switch to cure this problem...
So, if anyone knows - i do not.
And it goes like this:
klausdieter root # ntpdate ntp1.ptb.de
Looking for host ntp1.ptb.de and service ntp
host found : ntp1.ptb.de
3 Apr 13:31:34 ntpdate[2379]: setsockopt() IPV6_V6ONLY failed: Protocol not available
Thanks for your help! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
creche n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/14818467444040f354e1eb9.jpg)
Joined: 25 Apr 2003 Posts: 23 Location: Livorno, Italy
|
Posted: Sat Apr 03, 2004 10:20 am Post subject: |
|
|
try specifing ipv4 address. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bubuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1747482306407695be0dd16.png)
Joined: 29 Mar 2003 Posts: 4 Location: cologne, germany
|
Posted: Sat Apr 03, 2004 11:34 am Post subject: |
|
|
doesn't work either, but thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Paul9196 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/19139690683e7b883d6ea06.gif)
Joined: 24 Feb 2003 Posts: 54 Location: Knoxville, TN
|
Posted: Sun Apr 11, 2004 3:31 am Post subject: |
|
|
I'm getting the same problem now on one of my boxes. Anyone know why it is doing this?
Thanks,
Paul |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
solszew n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Apr 2004 Posts: 43
|
Posted: Sun Apr 11, 2004 3:45 am Post subject: |
|
|
What do the logs say? /var/log/messages or /var/log/syslog might give you more info. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Paul9196 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/19139690683e7b883d6ea06.gif)
Joined: 24 Feb 2003 Posts: 54 Location: Knoxville, TN
|
Posted: Sun Apr 11, 2004 4:12 am Post subject: |
|
|
/var/log/everything/current shows the same thing. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
woinnie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2004 Posts: 38
|
Posted: Sat Apr 17, 2004 7:10 pm Post subject: |
|
|
i got the same error, and can't find the switch to tell ntpdate not to use IPV6...
if one of you get the solution... thanks ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bubuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1747482306407695be0dd16.png)
Joined: 29 Mar 2003 Posts: 4 Location: cologne, germany
|
Posted: Sun Apr 18, 2004 1:11 pm Post subject: |
|
|
i fixed it by installing a new kernel (2.6 ), but i dont know what the problem was... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lduperval Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Jun 2003 Posts: 189
|
Posted: Fri Apr 23, 2004 3:15 am Post subject: |
|
|
I'm getting the same problem. I checked the logs and the last time it worked was on April 15. On that same day, I did an emerge world and it installed ntp-4.2.0. Since then, my system hasn't worked.
When I did my update, I also upgraded portage. On a whim, I decided to add -ipv6 to my USE flags. I'm currently emerging ntp... It's done, I'm trying it and...
.
.
.
.
.
.
.
.
.
.
It doesn't work.
I'm about to log it as a bug. Unless someone has an idea what the problem is. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Deebster Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/4819573334017707152aa6.jpg)
Joined: 16 Nov 2003 Posts: 126
|
Posted: Fri Apr 23, 2004 8:40 am Post subject: |
|
|
After you installed a new version of ntp, it probably pointed you at https://bugs.gentoo.org/show_bug.cgi?id=41827
In a nutshell, remove 'notrust' from the4 restrict settings in /etc/ntp.conf |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
devnullsp n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Oct 2003 Posts: 23
|
Posted: Fri Apr 23, 2004 9:18 am Post subject: Temporary solution |
|
|
I emerge /usr/portage/net-misc/ntp/ntp-4.1.2.ebuild
And ntpdate run well.
but ntp-client fail, but i dont look for that.
ntp-client start, say:
Code: |
* Setting clock via the ntp client 'ntpdate'...
ntpdate: unknown option -Q
usage: ntpdate [-bBdqsuv] [-a key#] [-e delay] [-k file] [-p samples] [-o version#] [-r rate] [-t timeo] [-U username] server ...
|
I think is an option is ntp-client or any config file.
Investigation comming soon
Yes...
ntp-client show -Q at comand line.
Delete it and work wery well...
Goodbye |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lduperval Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Jun 2003 Posts: 189
|
Posted: Fri Apr 23, 2004 10:03 am Post subject: |
|
|
This is my ntp.conf file:
Code: |
restrict default
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
server ntp1.cmc.ec.gc.ca
|
and it still doesn't work... Actually, ntpdate doesn't work. Using ntpd only seems to fix the problem.
Thanks,
L |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Carlo Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/20991155413e41b8130c9ee.png)
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Apr 23, 2004 1:38 pm Post subject: |
|
|
@bubuk: ntp1.ptb.de is a stratum 1 server. If you're not the admin of a fairly big organisation, using a stratum 1 is misuse. Please have a look at
http://www.eecis.udel.edu/~mills/ntp/servers.html
for a stratum 2 server. If you don't need ultraprecision, you won't notice any difference.
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bubuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1747482306407695be0dd16.png)
Joined: 29 Mar 2003 Posts: 4 Location: cologne, germany
|
Posted: Sat Apr 24, 2004 7:47 am Post subject: |
|
|
Uh, Ah...
Didn't know that. Now i've changed it to a stratum 1 server.
Thanks and a nice Weekend to all.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MasterC Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 25 May 2003 Posts: 150 Location: Woods Cross, UT
|
Posted: Wed Apr 28, 2004 6:34 pm Post subject: |
|
|
Just wanted to chime in and say I've got the same problem. My ntp.conf is about as simple as everyone else's:
server 192.168.1.24
logfile /var/log/ntpd.log
driftfile /var/lib/ntp/ntp.drift
Yet I get the same error when using ntpdate:
Code: | setsockopt() IPV6_V6ONLY failed.... |
I am currently downgrading to ntp4.1.x to fix it temporarily.
Cool |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
unnerve n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/62114365740a1c997bd28c.png)
Joined: 12 May 2004 Posts: 1 Location: Milwaukee, WI USA
|
Posted: Wed May 12, 2004 4:39 am Post subject: |
|
|
i've had similiar problems (setsocketopt() IPV6..) with ntpdate/ntp on one of my computers, but fortuneately i have another where it is working.
computer #1 works, acts as ntp server for the home LAN. it has
net-misc/ntp-4.2.0-r2
sys-kernel/gentoo-sources-2.4.25-r2
computer #2 ntp seems completely broken, my personal desktop.
net-misc/ntp-4.2.0-r2
sys-kernel/gaming-sources-2.4.20-r10
but when i boot #2 using an old 2.4.22-gentoo-r7 kernel i have lying around
ntp works as expected.
i've tried unmerging/remerging ntp, but no dice on the gaming kernel.
i found this bug report and it mentions to have ipv6 enabled in the kernel and/or use a -4 option on ntpdate. as far as i can tell i have ipv6 support in all kernels that i've tried and using a -4 option does not make a difference. so i'm still stuck, i don't want to drop the gaming-kernel but i want to be able to sync my time automatically.
i would give the chrony package a try, but:
a) my brain is still fried from trying to fix this and doing a complicated sendmail/ssmtp/vixie-con setup to suit my needs and fixing old uid's migrated from a legacy redhat to have gentoo style uid's (>1000 instead of >500).
b) i'm already familiar and confident with setting up ntp.
c) i'm quitting for the day to go watch Inuyasha.
d) i'm gonna read the source for ntp related to setsocketopt() and exmaine the ebuild tommorrow.
i hope this information might help lead to a solution, perhaps it's a kernel bug?? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kezzla Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/86306496140a5a58a4ea0e.gif)
Joined: 21 Aug 2003 Posts: 253 Location: Austin, TX
|
Posted: Wed May 12, 2004 6:17 am Post subject: Paul9196 |
|
|
Love the Avatar Paul9196 ! hhahahah
My ntpd is working fine. 3 winxp clients pointed at my linux server.
Currently using >> kernel 2.6.6-rc3-love4
Was using 2.6.6-rc3, rc2, rc1 all the way down to 2.6.1...never had a problem.
Also Using:
net-misc/ntp-4.2.0-r2 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lduperval Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 14 Jun 2003 Posts: 189
|
Posted: Fri May 14, 2004 10:05 am Post subject: |
|
|
Ah. I'm still on a 2.4.x kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
infinyt9 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Nov 2003 Posts: 26
|
Posted: Sun May 16, 2004 3:40 am Post subject: |
|
|
*After an hour...*
well, I dont know if this is supposed to be fix, but it doesnt really matter, I decided to go with 4.1.2... I mean, **** this, I wont waste time, I just want decent time!!!!
Maybe 4.2 should be masked? I dunno, just a thought from a long time gentoo user...
-------------------
*2 minutes later*
See see!!! It works!! damness, wasted sooooo much time _________________ To understand recursion, you must first... understand recursion. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fmouse Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/180368188441606e84dc33e.jpg)
Joined: 28 Jul 2003 Posts: 101
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Carlo Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/20991155413e41b8130c9ee.png)
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat May 22, 2004 5:38 pm Post subject: |
|
|
Just a note from the documentation:
Quote: | Disclaimer: The functionality of this program is now available in the ntpd program. See the -q command line option in the ntpd - Network Time Protocol (NTP) daemon page. After a suitable period of mourning, the ntpdate program is to be retired from this distribution |
_________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
paranerd Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 09 Apr 2003 Posts: 129
|
Posted: Tue Jun 29, 2004 3:16 am Post subject: |
|
|
infinyt9 wrote: | *After an hour...*
well, I dont know if this is supposed to be fix, but it doesnt really matter, I decided to go with 4.1.2... I mean, **** this, I wont waste time, I just want decent time!!!!
Maybe 4.2 should be masked? I dunno, just a thought from a long time gentoo user...
-------------------
*2 minutes later*
See see!!! It works!! damness, wasted sooooo much time |
100% agree.
What's going on? What am I missing here? This has been a problem for months! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enderson Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/5225166813fb39a07d932c.gif)
Joined: 12 Nov 2003 Posts: 141 Location: Arapiraca/Maceió, AL, Brazil
|
Posted: Thu Jul 15, 2004 6:06 pm Post subject: |
|
|
Didn't work here! Just downgrading to 4.1.2. _________________ --
Nothing to say here! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|