Time Sync Error

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Time Sync Error

Postby hansg » Wed Aug 26, 2020 10:47 am

Hi,

I am having an issue where I am repeatedly getting a "Time Synchronization Error Please contact your Administrator."

This was happening every few days and I have rebooted the system and it has started working again, but today it has happened 4 times in the last hour.

Below is an image of what happens:
Image

What can it be that is causing this? What logs do I need to check?
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Wed Aug 26, 2020 10:29 pm

make sure the timezones are set correctly on the server, the php.ini files at /etc/php7/apache
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Thu Aug 27, 2020 3:51 am

I have the correct timezone set in that php.ini file

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/London"

Is there any other files I should check for the same thing?
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Thu Aug 27, 2020 12:02 pm

on the server, type "date" and see what its set to, as well as the main php.ini file in /etc/php7
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Mon Aug 31, 2020 4:48 am

I have checked these.

They are all displaying the correct time / timezone.

I am still getting frequent crashes. No idea what is causing them.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby hansg » Mon Aug 31, 2020 6:29 am

I think there is something causing a spike which is crashing the database.

Seconds before the it crashes I see the System Load jump from around 0.75 up to about 7.00

Then instant Time Sync Error.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Mon Aug 31, 2020 12:09 pm

is this a virtual server?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Mon Aug 31, 2020 4:50 pm

It is a Cloud Server.

I have loads of other servers all running perfectly using this cloud server method.

The only difference is that the others were installed from scratch on Centos. This one with the issue is a Vicibox Install using OpenSuse.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Mon Aug 31, 2020 5:09 pm

perhaps try to set asterisk to auto restart on crash in the server settings on vicidial interface
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Mon Aug 31, 2020 7:42 pm

Worth a shot.

I will try this and give an update.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby hansg » Tue Sep 01, 2020 3:49 am

Unfortunately that never made a difference.

Still can't find the issue.

EDIT: Having automatically restart asterisk on does fix the time sync error after it happens and allows users to log back in. However, it does not prevent it from happening.

Still an issue for me.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Tue Sep 01, 2020 7:25 am

yea thats just a temp fix. When it happens, have you ran a sockets check to see whats running and whats not? you dont get any error messages in your mail on the system?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Tue Sep 01, 2020 9:24 am

How would I find out if it is running out of sockets?

Also what mail would you be talking about?
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby hansg » Tue Sep 01, 2020 9:38 am

I am getting 2 errors in asterisk alot:

ERROR[2392]: chan_sip.c:4271 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data

and

WARNING[2805][C-00000019]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel.


From what I have been told, these are just errors to do with WebRTC and can be ignored.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Tue Sep 01, 2020 12:49 pm

sockets is by running "screen -ls" at the linux cli and checking to see if the ones you chose to run during install.pl are all running. definitely need send and listen which are the ones that tend to disappear during a time sync error. Yes those errors are from the webrtc, not that serious.
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby hansg » Tue Sep 01, 2020 5:52 pm

I paid someone to take a look at it for me.

They have said that the issue is with my crontab. They have made some changes to it.

I will test tomorrow. Hopefully it sorts the issue.
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby hansg » Thu Sep 03, 2020 3:30 am

Nope.

Still crashing frequently. No idea what the problem is :| :| :|
Dual Core - 4GB DDR3 - 80GB SSD
Vicibox 9
VERSION: 2.14-751a
BUILD: 200425-0949
SSL Installed
hansg
 
Posts: 129
Joined: Wed May 11, 2016 8:56 pm

Re: Time Sync Error

Postby carpenox » Thu Sep 03, 2020 11:54 am

I can look into it for you. Reach out to me through facebook: chris nox | skype: carpenox_3
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby kjburto » Wed Sep 30, 2020 10:38 am

Did you ever find out what the issue is on this? I am having the same issue with one of my servers. I am starting to think it could be something physical with the server memory or something. Is that possible?
kjburto
 
Posts: 81
Joined: Tue Aug 23, 2016 2:07 pm

Re: Time Sync Error

Postby carpenox » Wed Sep 30, 2020 12:35 pm

definitely possible, what are the specs? how many agents?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Sync Error

Postby williamconley » Fri Oct 02, 2020 4:08 pm

hansg wrote:... I am still getting frequent crashes. No idea what is causing them.

... which is crashing the database

It is a Cloud Server.

Cloud server doesn't answer the question: Is it Virtual or Physical? Both can reside in a colocation facility such as Amazon or elsewhere. Vicidial does not run Virtual. Google it, enjoy the battle, but be prepared for a serious time investment and likely failure. lol.
... Still crashing frequently.

kjburto wrote: I am having the same issue with one of my servers.


If an application is "crashing", then it would either be "stuck" or no longer running and in most cases it would leave an error trail of some sort.

I'm not seeing any error logs, or any information regarding processes no longer running or processes that are running but no longer functioning (both scenarios are common during this scenario). (IE: no Troubleshooting ... just guesses)

The original poster showed a red server in the "Reports" main page, but kjburto did not show or mention such an entry.

Normally when the server "goes red" it is because one of the "screen -ls" entries is missing, because one of the processes running in one of those screens has exited (abnormally) and the screen auto-closed. In some cases, the script running in the screen simply stops running without exiting, but that missing script turns the server red as the services the script provides are necessary and there's a "watchdog" field that is no longer updated ... thus turning the server red.

So the first thing we need to know is: Are all your processes running? If you're not sure, try this:
Code: Select all
screen -ls


If you do not know which ones *should* be running, reboot and run that command again when everything is operating normally. The scripts are run based on the server's /etc/astguiclient.conf setting for "VARactive_keepalives".

Once we know which script is missing (If that's the case) we can figure out why it's not running by starting it normally using the same command the keepalive script would use to start it. Add one thing to the command: " --debugX" and you may get lucky and find out why it's crashing. You may need to modify the keepalive to execute it with the --debugX directive so you can keep an eye on the screen (leave the screen running in a terminal and wait for it to crash ... the history may be useful). Often this information is in a log for the screen in question (those missing logs I was talking about 8-) )

If the script that is missing is the "asterisk" script, and asterisk is crashing, try using the /etc/asterisk/modules.conf file to set "noload" directives for any asterisk modules you are not using (as a hip shot) or check the asterisk logs to find out if the first error is in any way related to a module.

An older server's noload list
Code: Select all
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
;
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
noload => chan_woomera.so
noload => chan_capi.so
noload => cdr_csv.so


A newer server's noload list:
Code: Select all
; Load one of: chan_oss, alsa, or console (portaudio).
; By default, load chan_oss only (automatically).
;
noload => chan_alsa.so
noload => chan_oss.so
noload => chan_console.so
;
noload => cdr_csv.so
noload => chan_ooh323.so
noload => chan_woomera.so
noload => chan_capi.so
noload => res_config_sqlite.so
noload => app_cdr.so
noload => cdr_manager.so
noload => cdr_sqlite3_custom.so
noload => func_cdr.so
noload => app_forkcdr.so
noload => cdr_custom.so
noload => cdr_sqlite.so
noload => cdr_syslog.so
noload => res_ael_share.so
noload => pbx_lua.so
noload => res_speech.so
noload => res_jabber.so
noload => res_fax.so
noload => res_smdi.so
noload => pbx_ael.so
noload => app_ices.so
noload => app_festival.so
noload => pbx_realtime.so
noload => func_realtime.so
noload => chan_skinny.so
noload => format_jpeg.so
noload => format_vox.so
noload => app_sms.so
noload => app_talkdetect.so
noload => chan_agent.so
noload => app_zapateller.so
noload => app_nbscat.so
noload => app_queue.so
noload => cel_sqlite3_custom.so
noload => app_disa.so
noload => chan_gtalk.so
noload => app_image.so
noload => app_dictate.so
noload => app_url.so
noload => res_phoneprov.so
noload => func_pitchshift.so
noload => func_blacklist.so
noload => app_page.so
noload => res_http_post.so
noload => app_directory.so
noload => app_test.so
noload => app_flash.so
noload => chan_unistim.so
noload => app_sendtext.so
noload => app_minivm.so
noload => chan_jingle.so


You can also set asterisk to perform a core dump at the crash moment and read the core to find the error, but that's a wee bit involved. Usually disabling modules that aren't needed will solve an asterisk crash scenario.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 75 guests