libera/#devuan/ Monday, 2022-03-21

gryIncorrect time. Stuck on Friday the 18th. Where can I check the ntp server sync settings?01:50
gnarfacein /etc/ntpd.conf01:51
gnarfacei think01:51
gnarfaceeither that or with ntpq01:51
gnarfaceoh sorry it's /etc/ntp.conf01:52
gnarfaceyou should be able to check current status with ntpq01:53
brocashelmntpq -p shows your peers list01:54
brocashelmi use ntpsec, so i noticed my ntp.conf was in a subfolder (/etc/ntpsec)01:55
grygnarface, brocashelm, https://dpaste.com/97W92JK3A.txt02:04
rwpHi gry!  Your ntp daemon is in sync but probably the time is so far off that it cannot skew it fast enough.02:06
rwpInstead you will need to run ntpdate *once* to jump the date to the current time.  And then restart ntpd.  All will be good after that point.02:07
rwpLet me look up the ntpdate command to jump the time.  Jumping the time is discouraged and generally a reboot is recommended.02:07
rwpAt boot time the system clock is set from the hardware clock.  So it always starts out close enough for ntp to skew it on time.  Usually within 4 useconds.02:07
rwpOh, ntpdate is deprecated now.  It's done with an "ntpd -g" now.  Try restarting ntpd and seeing if it does the right thing.  "sudo service ntp restart"02:09
brocashelmntpdate works for me (ntpsec installed)02:09
rwpIt's not part of "ntp" package anymore.  (I knew that.  But I forgot it until I was reminded of it.)02:10
brocashelmoh, i see what you mean now02:10
brocashelmthanks, i'll use that command02:11
brocashelmis it normal for ntp/ntpsec to take its sweet time while restarting? needrestart will still prompt me for it even after doing so02:11
rwpI haven't noticed restarting problems.02:11
rwpIt might be slowed up by the DNS resolving the multiple "pool" addresses.02:12
brocashelmit restarts, but takes a while02:12
rwpIn rough terms about how long is a little while?02:13
brocashelmlike 2-3 minutes02:13
brocashelmonce it says "starting ntpd"02:13
rwpI think it is starting okay but not reporting any sync data until it has a few polls of the configured servers.  It doesn't know anything about jitter for at least a few poll cycles.02:14
rwpIt starts out with a 64 second polling cycle.  And then if the higher stratum sources are stable enough it backs off the polling time.02:15
rwpMy polling time on my systems right now are showing 1024 seconds polling time.  Because they are all interconnected and the connection is stable.02:15
brocashelmah02:15
rwpAn interesting part of the ntpp -q output is the "reach" column.  It's an octal bitmap.  377 is octal 377 showing the status of the last 8 poll attempts.  1 is success 0 is lost packet.  It's a shift register.02:17
rwpSo a value such as 54 is octal 54 and shows a high packet loss to that server.  A 377 is all packets good.  But 17 or other is all good *so far* as it is filling the shift register from right to left and shifting in the 8 bits of status.02:18
gryhttp://st22.uk.to:3000/file/1/k7GFDFTP0A8da3ww03:11
gryrwp, --^ pastebin03:12
joerg>>  -x, --slew               Slew up to 600 seconds. Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and  stepped  if  above  the  threshold.   This               option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually.  Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 200003:38
joergs.  Thus, an adjustment as much as  600  s  will  take almost 14 days to complete.<<03:38
gryDidn't interpret that. Could you rephrase, please?03:40
joergit's an excerpt of `man ntpd`04:32
joergprobably also relevant is this section:   man ntpd|less +'/Most  operating '04:34
joergand finally I always found hwclock a valuable command too04:36
joergthe above boild down to: it may take up to 128ms / 0.5ms/s = 256s until systime is in sync with UTC again04:40
joergit's mindboggling how many broken concepts to handle netdate and systime and cmos time linux suffered over the years, and still it seems there are problems04:48
joergline #3 in your pastebin is an error msg04:53
gryjoerg, what would you suggest to do?05:20
gryI only understood the kernel cannot fix the time, it would take it 14 days. I didn't understand anything else.05:20
joergI have no idea :-)05:20
joergwait, the kernel can't fix the time?05:20
joergwhy?05:21
joergtry `date; hwclock; date; hwclock`05:22
joerg`cat /var/lib/ntp/ntp.drift`05:23
joergaccording to manpage ntpd is supposed to adjust systime by skew for an offset of <128ms, otherwise it skips05:25
joergntpd is an intricate thing meanwhile05:28
joergwe'd need more info than just >>[21 Mar 2022 01:50:42] <gry> Incorrect time. Stuck on Friday the 18th.<< to start diagnosing what's going haywire05:29
joergif your time actually is stuck at 2022-03-18 and not running then you most certainly have a hw problem, likely weak cmos battery05:32
gryjoerg, on it. Command 'hwclock' not found. Package 'hwclock' does not exist. What's up next?05:38
gryjoerg, it is a virtual guest. The host's time is fine.05:38
gnarfacegry: is the timezone correct in the guest?14:29
grygnarface, how do I check?21:45
fsmithredgry, look in /etc/timezone21:51
fsmithred'dpkg-reconfigure tzdata' to change it21:52
gry"America/New_York"21:52
fsmithredthat's UTC-4 right now.21:52
gryI don't mind if it's wrong; I do mind that it is 3-4 days behind, even NY doesn't have that.21:52
fsmithredin US21:52
fsmithreddays?21:52
gry"Fri 18 Mar 2022 09:14:49 PM EDT" is wrong.21:52
fsmithredare you using ntp or something else to sync to a time server?21:53
fsmithredgry, hwclock must be run as root. It's part of the util-linux package. It is installed.21:58
fsmithredhm... my hardware clock was 2 minutes behind system clock. I fixed that a couple months ago when it was 10 minutes off. The computer does not get turned off. What could be wrong?22:05
used____Nothing is wrong, the accuracy of the hw clock on a computer is not stellar.22:07
used____20 seconds / month or more drift are normal22:07
gry"hwclock: select() to /dev/rtc0 to wait for clock tick timed out"22:07
used____Make that 50 seconds / month unadjusted22:08
gnarfaceseems weird22:08
used____Why?22:08
gnarfacebeing days off i mean22:08
fsmithredyeah22:09
gnarfaceyea maybe rtc driver problem?22:09
gnarfacenot sure22:09
fsmithredbunch of google hits on that error message22:09
used____30*86400 = 2592000 seconds/month; typical undajusted clock quartz is 20ppm, so 2592000 * 0.00002 = 51.84000  seconds off22:09
used____Days off is typically caused by never-ran ntp and or a few days of downtime unaccounted for.22:10
eyalrozSo, something bad happened to me today...22:10
used____You woke up? ;)22:10
used____Sorry this is not *-offtopic ;)22:10
eyalrozused____: I'm not that far gone :-(22:10
eyalrozI came back after a few hours outside, and the Cinnamon screensaver was stuck on some earlier hour22:10
eyalrozand would not go away with keypresses,22:11
eyalrozalthough moving the mouse worked22:11
eyalrozI could also switch to another VT and run terminal sessions22:11
used____It crashed! I never saw a software crashed screensaver, only on bad hardware which froze in many other contexts22:11
eyalrozI was wondering... is there any way I could continue my desktop environment session from that situation, somehow?22:11
eyalrozI tried killing the screensaver, which worked, but it didn't get me my desktop back22:12
used____Well in xfce4 you can find the PID of the saver and kill it22:12
eyalrozeventually I gave up and restarted lightdm22:12
eyalrozused____: I found the saver's pid and killed it,22:12
eyalrozbut that wasn't enough22:12
used____But as you noticed it does not always help22:12
eyalrozyeah22:12
used____Try some stress test on your hw22:12
used____See if it freezes at any time.22:13
eyalrozused____: I might, but that's not the point22:13
eyalrozWhat I was wondering if whether some recipe for getting Cinnamon to "take over" again, show windows, the panel, etc.22:13
eyalrozBecause everything was running22:13
used____If an "integrated" wm crashes, there is probably no way to restart it with state.22:13
eyalrozused____: But the thing is, it didn't crash22:13
used____In xfce4 the saver is a separate process which can be killed safely22:13
eyalrozI mean cinnamon was running, my browser was running etc.22:13
used____How did you determine it was running?22:14
eyalrozused____: cinnamon's wm is not integrated.22:14
fsmithredeyalroz, maybe vnc in from another box?22:14
eyalrozI ran pstree and saw it22:14
eyalrozfsmithred: I didn't have a vnc server running. I was hoping for a same-box approach22:14
used____pstree or top or ps auxwf shows you pids, not whether they are running22:14
eyalrozI also did htop and check CPU usage of stuff22:15
eyalrozand it looked like what I would expect,22:15
used____Did you note in what state they were? Busy spinning is a way to get stuck while showing "running"22:15
used____ps auxwf and top shows running state.22:15
eyalrozused____: So, I should have checked, but I didn't.22:16
used____ps auxwf columb STAT22:16
eyalrozLet's suppose for discussion's sake their status was running rather than anything else22:16
used____Chances are something posted a modal dialog under the saver22:16
used____If everything ran. Which is unusual. And that would not block the clock display on the saver.22:17
used____So, imo, the saver crashed. Period.22:17
eyalrozOk, the saver crashed. But could I have, in that situation, poked the session manager or window manager process to put things back in working order?22:18
used____Unlikely. Save session frequently if you suspect something does not work nicely.22:19
used____Ok, time to "vanish" here.22:19
* used____ uses the novel stealth shield to vanish22:19
XenguyI never expect true stability from *any* OS anymore...22:28
XenguyJust today, I sat down in the morning to send a very important email, and *something* went wrong, and the whole system completely locked up -- nothing...22:29
XenguySo, press the power button for 5 seconds and start over, simple fact of life22:29
fsmithredtry sysrq keys before power button22:30
Xenguyfsmithred, I'm not sure what that is on my keyboard here, but I've heard the term before22:37
fsmithredhold down alt-sysrq(prnt-screen) and press and release in order: R S U B22:38
fsmithred(E and I no longer work)22:38
fsmithredoh, you might have to edit /etc/sysctl.conf first.22:39
fsmithredkernel.sysrq=122:39
fsmithreddefault setting is 43822:39
fsmithredlook up other sysrq keys. b is reboot, o is poweroff22:40
fsmithredSync, Unmount22:40
eyalrozXenguy: Are you sure it was _completely_ locked up?22:41
eyalrozDid you try something like Ctrl+Alt+Fn keys, to switch VTs?22:41
eyalrozSometimes that works when other things don't22:41
eyalrozAnyway, fsmithred: Question for you, following my last one. Now that I've restarted mi lightdm, most things work fine, but I can't play video. It's as though some kind of resource or lock wasn't released, and video players can't get a hold of it anymore in the new session. Any idea of how I might resolve that?22:43
Xenguyeyalroz, Yeah, I always try diving to a VT, cos I always have top running as root, but the system didn't respond...22:44
XenguyI'll have to look up this 'sysrq' thing I suppose22:44

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!