Time Synchronization Issue

All installation and configuration problems and questions

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

Time Synchronization Issue

Postby jlam » Mon Jan 20, 2025 12:26 pm

Hello all,
New install Vicibox 11-
Asterisk Ver: 16.30.0-vici
VERSION: 2.14-934a
BUILD: 250103-0843

Getting the time synchronization message - showing a time difference on the server time verses db and php:

Code: Select all
SERVER -   DESCRIPTION   IP   ACT   LOAD   CHAN   AGNT   DISK   TIME   VER
jlam   Server   Y / Y / Y   53 - 4%   0   1   11%           2025-01-20 08:51:03   3896
    PHP Time                                                               2025-01-20 10:22:14
    DB Time                                                               2025-01-20 10:22:14   


Steps I have taken so far:
Ran zypper up
Ran svn up and install.pl

Time is set to America/Chicago in both php.ini files under /etc/php7
# date shows correct time

Keepalive is running under cron

AST-update and AST-listen are listed in /etc/astguiclient.conf
but not running under screen -ls
Code: Select all
screen -ls
There are screens on:
        2545.ASTemail   (Detached)
        2542.ASTVDadFILL        (Detached)
        2539.ASTfastlog (Detached)
        2536.ASTVDadapt (Detached)
        2310.asterisk   (Detached)
        2305.astshell20250120085032     (Detached)
6 Sockets in /run/screens/S-root.


perl /usr/share/astguiclient/ADMIN_keepalive_ALL.pl -debugXXX completes without any errors that I can see

When I run - /usr/share/astguiclient/AST_update.pl
I get the error - pattern match timed-out at /usr/share/astguiclient/AST_update.pl line 470

Tried changing lines 470 and 534 to both:
$t->waitfor('/[0123456789]\n$/');
and
$t-waitfor('/Asterisk Call Manager.+\n$/');

when I run /usr/share/astguiclient/AST_update.pl again it fails at line 472 with this message:
Code: Select all
pattern match read eof at /usr/share/astguiclient/AST_update.pl line 472

(Haven't changed the passwords in manager.conf still default)


This is a hosted server - single server no cluster

Lost at this point on what to do next - any advice is much appreciated!
jlam
 
Posts: 4
Joined: Mon Dec 23, 2024 8:01 am

Re: Time Synchronization Issue

Postby carpenox » Mon Jan 20, 2025 2:01 pm

pattern mismatch means your manager.conf has wrong passwords, look at it with this command:

nano /etc/asterisk/manager.conf

it should have this:


[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1
timestampevents = yes

[cron]
secret = 1234
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate

[updatecron]
secret = 1234
read = command,reporting
write = command,reporting

eventfilter=Event: CoreShowChannel


[listencron]
secret = 1234
read = system,call,log,verbose,command,agent,user,dtmf
write = command

eventfilter=Event: Shutdown
eventfilter=Event: DTMFBegin
eventfilter=Event: DTMFEnd
eventfilter=Event: NewCallerid
eventfilter=Event: Newstate
eventfilter=Event: Hangup
eventfilter=!Event: HangupRequest

; Optional
eventfilter=Event: PeerStatus
eventfilter=Event: SIPRTPDisconnect
eventfilter=Event: PeerRegistered
eventfilter=Event: SIPCriticalTimeout

[sendcron]
secret = 1234
read = command
write = system,call,log,verbose,command,agent,user,originate

[sipcron]
secret = 1234
read = call
write = command

eventfilter=Event: SIPInvite
eventfilter=Event: SIPResponse

[confcron]
secret = 1234
read = command,reporting
write = command,reporting

eventfilter=Event: Meetme
eventfilter=Event: Confbridge
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Synchronization Issue

Postby jlam » Mon Jan 20, 2025 2:24 pm

Ok I tried that - the only difference was mine had bindaddr = 0.0.0.0
Same error - pattern mismatch
Update: I checked the manager secret setting - under admin- server and it had a different password than the default - changed it to the default 1234
now I am getting this:
Code: Select all
SIP Clients:  |gs102|gs102@gs102|...
ERROR: 2025-01-20 13:25:25|1|command timed-out|
ERROR: 2025-01-20 13:25:28|2|command timed-out|



added -debug to the update.pl command: (removed the ip)
Code: Select all
|SELECT channel,extension FROM live_channels where server_ip = 'xx.xx.xx.xx'|

|UPDATE server_updater set last_update='2025-01-20 13:31:26' where server_ip=xx.xx.xx.xx'|
ERROR: 2025-01-20 13:31:26|1|command timed-out|

|UPDATE servers SET sysload='004',channels_total='0',cpu_idle_percent='99',disk_usage='1 0|2 1|3 1|4 0|5 2|6 0|7 7|8 0|' where server_ip='xx.xx.xx.xx';|
concise: -1   loop: 5769999

bad grab, trying again


keeps repeating this over and over
jlam
 
Posts: 4
Joined: Mon Dec 23, 2024 8:01 am

Re: Time Synchronization Issue

Postby carpenox » Mon Jan 20, 2025 4:23 pm

sounds liek you changing certain passwords messed up the entire install, i would just reinstall at this point since its a new isntall anyways, use the new vicibox 12.0.1 iso
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Time Synchronization Issue

Postby jlam » Mon Jan 20, 2025 5:03 pm

Trying to avoid that as I don't have access to the physical server.
Time sync error is fixed - looks like fixing the manager.conf and passwords worked to correct that, still getting the last error though.
Thank you for your help!
jlam
 
Posts: 4
Joined: Mon Dec 23, 2024 8:01 am

Re: Time Synchronization Issue

Postby carpenox » Mon Jan 20, 2025 6:08 pm

my pleasure
Alma Linux 9.5 | SVN Version: 3920 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2584
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

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