Project

General

Profile

Time Sync Problem?

Added by Connah Dawson about 10 years ago

Hi!

I tried logging in to my server this morning and I keep getting an error saying there's a time sync problem.

I've made sure the timezone is correct, I've set it in /etc/php.ini as well.

I've not changed the IP address but I ran update_server_ip anyway and made sure it's correct, which it is.

I'm still getting this error though?

Thanks!

Connah


Replies (5)

RE: Time Sync Problem? - Added by Erwin De Luna about 10 years ago

Hi Connah,

Is this a multi server setup? If yes please make it sure your database, web and asterisk server are setup to update their time to a common NTP server if possible for you to set this NTP server on your database and all of your other servers update their time through this server that would be a big help solving this issues.

RE: Time Sync Problem? - Added by Connah Dawson about 10 years ago

Hi Erwin,

Thank you for your reply.

It's not a multi-server setup though. This is what's baffling me.

P.S, I just realised in my first post I didn't mention it's only doing it for agents. It's fine for Admins.

Thanks!

RE: Time Sync Problem? - Added by Connah Dawson about 10 years ago

I've found that my PHP and DB time is 10 seconds ahead of what's being shown in my browser, is it this that's causing the problem?

If so how do I fix it?

Thanks,

Connah

RE: Time Sync Problem? - Added by Demian Biscocho about 10 years ago

Run this command on the DB server:

ntpdate -u pool.ntp.org

This is actually in the crontab script and is automatically ran every 30 minutes. You might need to set it to a lower interval like 10 minutes. To edit crontab, run:

crontab -e

RE: Time Sync Problem? - Added by Connah Dawson about 10 years ago

Hi!

I've updated my time server as above but I'm still getting the error.

I'm also getting a sendmail error on startup, as well as when I restart asterisk using service asterisk restart, it always fails on stopping safe_asterisk the first time. If I run it again straight afterwards it passes through fine.

Thanks,

Connah

    (1-5/5)
    Go to top