Debian Testing random freeze (ANACRON)

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Re: Debian Testing random freeze (ANACRON)

Postby Deb-fan » 2020-09-18 09:35

Page 2. :)

Knew ive looked into that, getting rid of cron-etc and using timers, remember was a reason i backed off too, that being apps-etc which might rely on cron, the person in this mentions a/one solution.

https://coderich.net/2019/11/07/systemd-timers-vs-cron/

Though such is bound to change as more n more is converted to take advantage of systemd's features. Guy also notes systemd already has an easy means of seeing if any timers fail.

Code: Select all
systemctl list-units --failed


Cool, occurs to me implementing the hair brainedness outlined above into cron jobs could be good practice, something that's working now might not keep working w system changes, reconfigs, upgrades etc. Probably already plenty of means to handle ana/cron logging, only a random thought and yeppers still going to end up ditching cron-etc in favor of timers here. :)
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 954
Joined: 2012-08-14 12:27

Re: Debian Testing random freeze (ANACRON)

Postby Danielsan » 2020-09-18 12:34

sickpig wrote:Updating bios is not trivial. There is risk of bricking your system.
If you feel the error is due to cron/anacron you can make a note of all cron tasks and then simply uninstall cron and anacron. And check if that fixes it. Then you can re-create the essential tasks or simply create systemd.timers for them.


That sounds rational, I could simply rename/move them and see what happen. Yesterday night I used Zoom + Firefox for 4 hours and nothing happened, I reinstalled also the amd microcode and the amd firmware that worked with the wifi, but this morning around 8 am it got stuck again.

Deb-fan wrote:Big +1 @sickpig, the logs did catch it apparently and a good eye by @sgosnell for weeding through them, any way had some brainfarts to add to this mess, running xyz-jobs manually, one-by-one, if while doing so you experience a reboot/freeze or crash, clearly you need to rework that cron-job, script ... whatever.


Systemd hasn't any units failed, everything works fine with it.
User avatar
Danielsan
 
Posts: 599
Joined: 2010-10-10 22:36

Re: Debian Testing random freeze (ANACRON)

Postby Head_on_a_Stick » 2020-09-18 15:36

Danielsan wrote:testing has its sense, if I can isolated the issue I can report the bug and helping for the next stable release

Very laudable: https://wiki.debian.org/DebianKernel/GitBisect
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian Testing random freeze (ANACRON)

Postby Danielsan » 2020-09-18 16:19

Head_on_a_Stick wrote:Very laudable: https://wiki.debian.org/DebianKernel/GitBisect


I have to go through this process if I want find a solution, my only limit is the spare time that mostly overlaps 0...

By the way I should try at least with the kernel in stable and see what happens...
User avatar
Danielsan
 
Posts: 599
Joined: 2010-10-10 22:36

Re: Debian Testing random freeze (ANACRON)

Postby Danielsan » 2020-09-21 12:47

I think I just found a temporary workaround... I hope this will work. The freezes always happen almost at the same time, often I turn on the laptop ten minutes before the class beigins (8 am) and it get stuck (often) within 10 minutes. If the issue is a unpredictable combination of anacron, kernel, Firefox and Zoom maybe I can avoid it if anacron starts and finishes before the class, hence today I turned on the laptop earlier and so far it seems it hasn't frozen. Then I just figured out that I can change the behavior of anacron and making it starts after my son's classes... Maybe it might work... :idea:
User avatar
Danielsan
 
Posts: 599
Joined: 2010-10-10 22:36

Re: Debian Testing random freeze (ANACRON)

Postby Danielsan » 2020-09-22 16:21

It seems that it worked, the computer didn't freeze yesterday not a single a time!

Hence I added this line on anacrontab:

Code: Select all
START_HOURS_RANGE=22-6


Now anacron will always run when my Son hasn't school!
User avatar
Danielsan
 
Posts: 599
Joined: 2010-10-10 22:36

Previous

Return to Hardware

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable