Host time is wrong
-
After a prolonged power cut, the UPS was unable to cope with the weather and shut down the entire system.
When I returned, I had the problem that the host time displayed in the browser and automatically used in the rules was not correct.
I searched for a topic here on this forum that talked about it, but it referred to a container installation. There was a recommendation to go into the storage/states directory and delete the files and restart MSR, I did it and it didn't solve the problem.
There was also a recommendation to go directly to the browser to check the time, and I did so and I see that the time is correct.
As you can see on the screen above:
- MSR browser shows the correct browser time 21:23, but host time 13:02;
- In the browser below the direct query and the host time is correct 9:22:54 PM;
- Setting the VM date command on the third screen, the time is 9:23:00 PM.
I've opened the entire reactor.log file and searched for any errors, and there aren't any.
^L [latest-23242]2023-09-15T02:11:12.928Z <app:null> Reactor build latest-23242-5ee8e1d4 starting on v18.12.0 [latest-23242]2023-09-15T02:11:12.929Z <app:null> Process ID 1807 user/group 1000/1000; bare-metal; platform linux/x64 #179-Ubuntu SMP Mo> [latest-23242]2023-09-15T02:11:12.929Z <app:null> Basedir /home/leonardo/reactor; data in /home/leonardo/reactor/storage [latest-23242]2023-09-15T02:11:12.929Z <app:null> NODE_PATH=/home/leonardo/reactor [latest-23242]2023-09-15T02:11:12.933Z <app:INFO> Configured locale (undefined); selected locale(s) en_US.UTF-8 [latest-23242]2023-09-15T02:11:12.955Z <app:INFO> Loaded locale en-US for en-US [latest-23242]2023-09-15T02:11:12.958Z <Structure:null> Module Structure v23172 [latest-23242]2023-09-15T02:11:12.959Z <Capabilities:null> Module Capabilities v22356 [latest-23242]2023-09-15T02:11:12.969Z <Capabilities:NOTICE> System capabilities loaded from core distribution, data version 23914 revisi> [latest-23242]2023-09-15T02:11:12.978Z <Plugin:null> Module Plugin v22300 [latest-23242]2023-09-15T02:11:12.981Z <TimerBroker:null> Module TimerBroker v22283 [latest-23242]2023-09-15T02:11:12.983Z <Entity:null> Module Entity v22353 [latest-23242]2023-09-15T02:11:12.986Z <Controller:null> Module Controller v23069 [latest-23242]2023-09-15T02:11:12.992Z <default:null> Module Ruleset v22293 [latest-23242]2023-09-15T02:11:12.992Z <default:null> Module Rulesets v22146 [latest-23242]2023-09-15T02:11:12.996Z <GlobalExpression:null> Module GlobalExpression v23211 [latest-23242]2023-09-15T02:11:13.003Z <Predicate:null> Module Predicate v23093 [latest-23242]2023-09-15T02:11:13.005Z <AlertManager:null> Module AlertManager v22283 [latest-23242]2023-09-15T02:11:13.007Z <Rule:null> Module Rule v23107 [latest-23242]2023-09-15T02:11:13.009Z <GlobalReaction:null> Module GlobalReaction v22324 [latest-23242]2023-09-15T02:11:13.010Z <Engine:null> Module Engine v23231 [latest-23242]2023-09-15T02:11:13.012Z <httpapi:null> Module httpapi v23058 [latest-23242]2023-09-15T02:11:13.019Z <wsapi:null> Module wsapi v23172 [latest-23242]2023-09-15T02:11:13.019Z <app:NOTICE> Starting Structure...
As you can see, the time in the log is 02:11, which is correct, because I'm in time zone -5, which means it's 09:11PM for me.
I've restarted the VM, the computer hosting the VM, and the MSR a few times and the same difference remains. What do you recommend for the next step in understanding and solving the problem?
Thanks.
-
Hi @toggledbits , any recommendations on how to align the two schedules? Thanks!
-
No idea. I assume you hard-reloaded the browser? Is the TZ being set for some reason in your service configuration file?
-
It really is rare.
I haven't changed anything in the TZ configuration I had before, I compared the two installations I have in different environments, and they are identical. The rules even operate at the correct time. I've downloaded and restarted the VM, the computer, I've cleared the cash from the browser, and I'm still seeing this strange time.
-
The strangest thing is that if I use the command
http://192.168.50.8:8111/diag/sun
shows the correct host time.
Look at this screen to see the difference of 55 minutes, but note that the rules have the correct time.
Thanks.
-
So what's the odd wrapper around the browser?
-
@toggledbits said in Host time is wrong:
So what's the odd wrapper around the browser?
The time difference that indicates that you have the browser, and the time that indicates the host.
All the queries in the VM, on my computer that opens the browse, using the diag/sun query have a different time to the one that MSR points to as the host time.
Thanks.
-
Not what I'm asking. Are you using some kind of remote access gateway?
-
@toggledbits Appears OP is using AnyDesk, a remote desktop application like Teamviewer, VNC, etc.
-
toggledbitsreplied to gwp1 on Sep 21, 2023, 3:31 PM last edited by toggledbits Sep 21, 2023, 11:33 AM
@gwp1 So it seems.
And if that's the case, then there are THREE computers involved here: the host/server on which MSR is running, the host on which the browser to running (i.e. the remote target of the AnyDesk connection), and the computer on which the AnyDesk client is being run.
I would venture to guess that the date/time is incorrect on the remote target (the system AnyDesk is connecting to, actually running the browser). I'm guessing the time displayed in the lower right corner is the time of the AnyDesk client machine, not the remote browser/host, and the client's time is irrelevant here. The browser is actually running on a remote target system, and it's the time on that remote target system that's in question here.
Beyond that, my suggestion is to connect to MSR locally from a local browser/computer, not using AnyDesk. But in all, this doesn't seem like an MSR issue, it seems like a (one of the many) host configuration issue.
-
@wmarcolin see above response.
-
Hi, let's to align.
In my house, where everything works normally, or in my neighbor's house, which worked normally until two weeks ago, we have a separate computer, on which a Linux VM is mounted, where MSR is installed. This local computer is where I open the browser and we see in my friend's case the time difference from the host.
For ease of work, I have the AnyDesk application installed on the VM machine and on the computer I use to access it (not by browser), i.e. this application only opens a remote operating terminal, it would not be influencing this situation.
Anyway, I'm going to ask my friend to open MSR in browse at home and send me a picture of the screen, so we can resolve this doubt.
Thanks.
-
@wmarcolin Have you checked that the host machine for MSR is properly syncing the date/time? This would not be MSR's job but the OS itself.
-
-
4/14