Problem at startup with NTPD
Hi,
I am currently running Fedora Core 5 on my machine. My issue is that when I recently tried to make the system clock to syncrhonize at the bootup, but unfortunately when the machine is booting the NTPD always fails. Does anyone knows what can be causing that? Any help would be appreciated.. Many thanks.. |
Are you using a firewall? If you are you could try disabling it temporarily as root:
Code:
service iptables stop Code:
ntpdate -u <timeserve_ip_address> |
Dear Fordeck,
Sorry I haven't replied earlier and many thanks for your help.. I tried to disable the firewall and then update the clock with Quote:
Furthermore I disable the firewall completely and rebooted the machine to find out the problem was still there: Synchronizing NTP: [failed] I have been googgling for a while and everyone seems to point out that this is a firewall issue, but provided I rebooted the pc without it enabled, I am starting to think something else might be wrong. Thanks anyway for your help, if you do have any other suggestion please let me know and I can try it. Best Dannt |
Could you post your /etc/ntp.conf file? I could take a look at it and see if there are any issues.
|
Of course:
Quote:
|
Quote:
At what stage in the boot process are you calling "ntpdate -u <timeserve_ip_address>" ? Maybe it is being called too soon (eg before networking is up). I think I recall I had a similar problem when I first tried setting up ntp (and as I recall, I was trying to call it from /etc/rc.d/rc.local), and I worked around it like this: I set up a cron job to call a script called "checkthetime" every hour. This script checks to see if ntp has synced my clock today. If it hasn't, it does. This has the advantage that I don't have to do a reboot to sync the time, and I am not calling the ntp servers unnecessairly often. HTH |
Thanks Tredegar,
I think I realise what is happening clearer now, sorry if I didn't understood this first, but unfortunatelly more than 10 years using M$ Windows has dumbed me down to this point. My computer connects to the Internet using a wireless card, and it is only after I log in into my user account when the Network Manager asks me to introduce the password for the keyring that holds the Wireless Network Key, and I have to do this everytime I log in any user account, so I believe there is not Internet connection before this. Do you know by chance any way to prevent this keyring asking me for this password everytime I start? it isn't really necesary and from my point of view it is a waste of time. Otherwise I will find out how to do an script like the one Tredeger described. Many thanks |
Glad you have realised where the problem lies!
Sorry, I do not use wireless, and am running KDE anyway, so cannot help you with "Network Manager". In KDE I would go to System Settings -> Network Settings, Select "Administrator Mode", give password, then R-click on my wireless interface, choose "Configure" and enter my ESSID / WEP keys (if I had them!). Surely there must be something similar for gnome. Then you can play with cron and scripts (this was my first customise-linux-my-way project). I'll happily post my simple ntp script and crontab entry if this would help you. |
I believe you can modify /etc/sysconfig/network-scripts/ifup-wireless with your key to automate your wireless startup. You could also add the following to the bottom of the file:
Code:
/usr/sbin/ntpdate uk.pool.ntp.org "# --- OUR TIMESERVERS -----" section of /etc/ntp.conf: Code:
server 0.uk.pool.ntp.org Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 123 -j ACCEPT |
Dear Fordeck
Firstly I wanted to apologise for not having post a reply since last week, finally I managed to solve the issue following your advise and editing the ifup-wireless script, so many thanks for your help. I moved on now onto a new chalenge challenge; get the wireless card in Ubuntu. Thanks for your help |
All times are GMT -5. The time now is 04:16 PM. |