System timezone is not in sync with DB and PHP

All installation and configuration problems and questions

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

System timezone is not in sync with DB and PHP

Postby d001 » Tue Jul 16, 2024 3:12 am

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
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am

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

Postby d001 » Tue Jul 16, 2024 9:10 am

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.
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am

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

Postby williamconley » Wed Jul 17, 2024 6:01 pm

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?"
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

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

Postby d001 » Thu Jul 18, 2024 5:05 am

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.
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am


Return to Support

Who is online

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