Page 1 of 1

System timezone is not in sync with DB and PHP

PostPosted: Tue Jul 16, 2024 3:12 am
by d001
Hello,

I hope this message finds you well. I have encountered a problem on my agent side. When they log in, it displays:

'There is a time synchronization problem with your system, please tell your system administrator.'

Additionally, the agent interface does not connect with my softphone user. After reviewing the system, I saw that the system timezone is not in sync with DB, PHP.

I am unsure how this happened because it was previously working, and I haven't made any changes. I thought it might be a DAHDI driver issue, but I'm not sure.

Here's the output and commands I used:


Code: Select all
vicibox11:~ # timedatectl
               Local time: Tue 2024-07-16 10:38:16 CEST
           Universal time: Tue 2024-07-16 08:38:16 UTC
                 RTC time: Tue 2024-07-16 08:38:16
                Time zone: Europe/Tirane (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
vicibox11:~ #


Code: Select all
vicibox11:~ # dahdi_cfg -v
DAHDI Tools Version - 3.1.0
DAHDI Version: /home/abuild/rpmbuild/BUILD/obj/default
Echo Canceller(s):
Configuration
======================
0 channels to configure.


Code: Select all
vicibox11:~ # modprobe dahdi
vicibox11:~ # asterisk -rx "module unload chan_dahdi.so"
vicibox11:~ # asterisk -rx "module load chan_dahdi.so"
vicibox11:~ # reboot


I used these commands to unload and load DAHDI, but the issue persists. Does anyone have any idea how to fix this?

I would appreciate any help. Thanks in advance.

ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5

Re: System timezone is not in sync with DB and PHP

PostPosted: Tue Jul 16, 2024 9:10 am
by d001
The problem is resolved. Refer to williamconley's answer here 'http://eflo.net/VICIDIALforum/viewtopic.php?t=40431#p144973'.

There is no Asterisk screen.

According to williamconley's answer, first:

Check:

"The server (under Admin -> Servers) to 'Auto-Restart Asterisk = Y' if it is not already. Also, verify 'Active Asterisk Server = Y' and 'Active = Y'."
Then, go to /etc/astguiclient.conf:

Check that the value of VARserver_ip is correct (it should be the IP of this server) and that VARDB_server is "localhost."
Most importantly, check the value of VARactive_keepalives, which should be VARactive_keepalives => 123456789E, because it has changed on your server.
Finally, execute the command:

Code: Select all
perl /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debugX


Then, check
Code: Select all
screen -ls
to see if they are present, and the problem should be solved.

Re: System timezone is not in sync with DB and PHP

PostPosted: Wed Jul 17, 2024 6:01 pm
by williamconley
It would appear self-serving if I posted something akin to "excellent postback, it's always a good idea to post your solution for anyone who may have a similar issue!"

Instead I will merely say ... um ... "Live long and prosper?"

Re: System timezone is not in sync with DB and PHP

PostPosted: Thu Jul 18, 2024 5:05 am
by d001
Thank you, williamconley!

I appreciate your guidance, and I’m glad to share the solution I found in your posts for others who might face the same issue.