libera/#devuan/ Sunday, 2025-04-06

systemdleteMaybe I haven't read carefully enough about cron/crontab, but I must admit to some confusion.  The @reboot feature seems to be working on Devuan, but for some reason, the @reboot command I am giving it does not seem to run every time the cron daemon is re-started:  Per everything I've read so far, vixie cron (which devuan uses) runs @reboot when the cron daemon is restarted (not when the system02:58
systemdleteitself is rebooted).  So I figured I could stop and start the cron daemon and it would cause the @reboot command to run.  But from what I see, it doesn't seem to happen.02:58
systemdleteAlso, man 5 cron does not even mention @reboot (or @daily, @hourly, etc).  But users of other linux distros are saying their man pages DO mention it.02:58
systemdleteIs devuan using a modified vixie cron, or am I simply confused by all this?02:59
systemdleteas always, thanks.02:59
systemdlete(BTW, this is not exactly urgent or very important.  It's just a point of confusion, and I'd like to get it sorted out.)02:59
systemdleteOr are we using a non-vixie cron on devuan?03:02
systemdleteuhm... well, I guess anacron would not work well with @reboot since anacron works with scripts that might run at boot03:03
systemdleteI conclude I am simply confused.  Anacron must have something to do with this.03:03
fsmithredsystemdlete, man 5 crontab03:10
systemdletefsmithred, see above. I read that already03:13
systemdletemore likely, something in it that I missed03:13
fsmithredI see where you mentioned man 5 cron03:14
systemdletetypo, sorry03:14
fsmithreddid you also read man 5 crontab? Mine talks about @reboot @weekly, etc03:14
systemdletethere is no man 5 cron on my system, only man 5 crontab03:14
systemdleteit's not in mine, no03:15
systemdleteand other users (on other systems) report it is not mentioned in their man page versions03:15
systemdleteso apparently, I am not the only one.03:15
systemdleteI have 3.0pl1-162 installed on my daedalus03:16
systemdletemaybe you have another cron installed?03:16
systemdleteif so, I might consider switching to yours03:17
fsmithredI just had to do 'apt install cron' on a laptop to be able to make a crontab.03:18
systemdletewhat does apt policy cron say on your laptop?03:18
fsmithredand the man page on the excalibur laptop mentions it just like the man page on the chimaera desktop I'm using03:19
systemdlete(please)03:19
fsmithred3.0p11-194 on the laptop03:19
systemdleteok, so yours is slightly ahead of my version03:20
fsmithred3.0pl1-13703:20
fsmithredon desktop03:20
fsmithredI'm guessing it's the same in daedalus03:20
systemdletemy chimaera also reports 3.0pl1-137, and just like yours, its man page mentions @reboot03:21
systemdletebut my daedalus does not03:21
fsmithredyeah, I'm seeing that03:22
systemdlete(I hope I haven't screwed up something on my daedalus)03:22
systemdleteseeing what?03:22
fsmithredthat it's not mentioned in daedalus03:23
systemdletethank you fsmithred.  So I am not totally out of my mind.  (Partially, perhaps)03:23
fsmithredI'm pretty sure it was someone other than you who screwed up03:23
systemdleteeven better for me then!!!03:24
systemdletelol03:24
fsmithredor maybe they removed because as you noted, it's not true in daedalus03:24
systemdleteremoved that one feature (@reboot, etc)03:24
systemdlete?03:24
fsmithredI was about to test it03:24
fsmithredremoved or broke, I don't know03:24
systemdleteJust an aside, I note that the AUTHOR section of the man page, even on daedalus, indicates Paul Vixie, so something weird has happened.03:26
rustyaxei see it in mine on daedalus03:29
rustyaxeii  cron                                                3.0pl1-194                                  amd64        process scheduling daemon03:29
rustyaxe/usr/share/man/man5/crontab.5.gz03:29
systemdleteplease define "it" rustyaxe -- there are several pieces here03:29
rustyaxeThe whole lot of it. @reboot support, man 5 crontab describing it, etc03:30
systemdleteand you are certain you are running daedalus?03:30
systemdletedid you build the package yourself? or from the repos?03:30
fsmithredthat's the excalibur version (-194)03:30
systemdletefsmithred and I are seeing something different than you03:31
fsmithreddaedalus has -16203:31
systemdleteah, right.  thanks fsmithred.03:31
rustyaxehttps://pkginfo.devuan.org/cgi-bin/package-query.html?c=package&q=cron=3.0pl1-16203:31
systemdleterustyaxe, thanks.  But we already figured out that both chimaera and excalibur have the expected man page03:31
rustyaxePretty sure it worked on daedalus before upgrading03:32
systemdleteit's just daedalus that seems to be different, for some reason03:32
fsmithred@reboot isn't working for me on excalibur right now03:32
systemdleterustyaxe, yes, it seems to work here also.  But the man page leads to confusion because it does not mention the vixie extensions @reboot etc03:32
fsmithredunless I'm doing it wrong03:32
systemdleteoh?03:32
systemdleteI don't have an excalibur here so I can't test it.03:33
systemdlete(though I could certainly install one, which might help the testing efforts)03:33
fsmithred@reboot echo 'test' >> /home/fsr/crontab.log03:35
fsmithredrestart cron and I get nothing03:35
systemdleteok03:36
systemdletefsmithred, thank  you for confirming all of this for me.03:36
systemdletewhile it doesn't correct the problem, at least I don't feel like I made some huge installation/configuration error03:37
fsmithredI also tried rebooting the laptop. nothing.03:37
systemdletewell, from what I've read, it is when the cron daemon is restarted, not the system, that @reboot is run03:37
fsmithredyeah, I tried restarting cron several times. Tried creating the log file first so it already was there. Tried restarting anacron.03:38
systemdletetry stopping and restarting explicitly rather than "restart"?03:38
systemdleteshould not make a difference I know03:38
systemdletebut just for science...03:38
fsmithreddoesn't work for me on chimaera either03:40
systemdletehuh.  I don't think I tried it there03:40
fsmithredI must be doing it wrong03:40
systemdletenot nec03:40
systemdletemaybe they tore out some of the support for the feature in one release, then tore out the docs for it in the next release.03:41
systemdleteidk, I'm just guessing03:41
* systemdlete goes off to try the experiment on their copy of chimaera also...03:42
systemdletebbs03:42
systemdleteso it failed for me with chimaera also.03:43
yetiDon't run reboot jobs when restarting the cron daemon.03:44
yetiis in a debian patch03:44
yeticheck the debsrc03:44
systemdleteand, like yours, it has the doc on the feature03:45
systemdleteyeti:  what do you mean "don't" run reboot jobs?03:45
systemdletecould it damage the system?03:45
yetithats a comment in a patch debian added to cron03:45
systemdleteoh03:46
systemdletemaybe quote stuff like that03:46
systemdleteI understand now, yeti03:46
yetiandit makes sense to run @reboot stuff only on system reboots instead of every cron restart03:46
systemdleteit does, indeed, but how does the cron daemon know that the system has just rebooted?03:47
yetia flag file somewhere03:47
yeti# define REBOOT_FILE "/run/crond.reboot"03:51
fsmithredmaybe there should be @reboot and @restart03:51
systemdleteok, that seals it then.03:51
systemdletemaybe.03:52
systemdletea more urgent solution would be to update the man page...03:52
yetiget the debsrc, read the diffs, one is that mentioned patch03:52
yetiI just hope the bsds add that too03:53
yetiI always took that for granted03:53
systemdletenot sure I want to step into that role03:53
systemdletefsmithred, yeti, rustyaxe thanks to all for your help04:33
chomwittin a fresh installation of daedalus netinstall  with what command would i test for access to interent if ping wont work (that is the case in a qemu image running with usermode network backend).19:37
chomwittcurl for example is not installed19:37
n4dirapt-get update?19:39
fsmithred:)19:39
chomwittok19:40
gnarfaceyou could try "traceroute -T [ip]"19:40
chomwittsince curl was in my mind why not apt-get19:40
chomwittgnarface: checking19:41
gnarfacethough i thought you could still ping the usermode network gateway, just not pass pings through it, am i remembering that wrong?19:41
gnarfacealso, you have to remember to still assign the usermode network's gateway ip as the default gateway in the guest OS19:43
gnarfacei don't think that part happens automatically, nor does the guest OS get a IP address by default19:43
gnarfaceor DNS servers for that matter19:43
chomwitti get a big list of * * * .19:43
gnarfacethough a DNS server should be provided with the default usermode networking setup, it's just not assigned to anything in the guest OS by default19:44
chomwittyes i can ping 10.0.2.2 (the qemu guest side gateway)19:44
gnarfacealright, that's a good start at least19:44
fsmithredtraceroute devuan.org works here in qemu19:45
fsmithredno network options in the command to launch the iso19:46
fsmithredping failed19:47
chomwitttracerout devuan.org work ok when my qemu machine (in user backend mode) has access to the interent (i found that i can fix the internet access with adding 8.8.8.8 to resolv.conf) . So i think traceroute serves me ok .19:48
gnarfaceusermode networking should define a local DNS server at 10.0.2.3 for you19:49
gnarfaceby default19:49
gnarfaceone up from the gateway19:50
chomwittgnarface: i see that in the docs . but i have no idea how to use it.19:50
gnarfacesame way19:50
gnarfaceadd 10.0.2.3 to your resolv.conf instead of google's19:50
gnarfaceor along side it, if you feel like19:51
* chomwitt trying gnarface tip...19:51
chomwittdoesnt work19:52
gnarfacehuh, weird... working fine here19:52
chomwitttesting now with tracerout devuan.org19:52
chomwittnop. when i set 8.8.8.8 and save it , it work ok19:54
gnarfaceodd, but whatever works19:54
* chomwitt thanks all for tracerout -T and tracerout devuan.org tips.19:56
fsmithredyw19:56
chomwitti forgot to mention that by default resolv.conf has 10.0.2.3 !!19:59
gnarfaceyou using network-manager?19:59
gnarfaceor maybe DHCP?19:59
chomwittgnarface: right question! i have xfce . one moment20:00
fsmithredyeah, n-m is the default20:00
chomwittusually i test with a minimal installation with light windom managers only... anyway. n-m is the one that at each reboots sets the resolv.conf overwriting my changes?20:02
gnarfaceprobably20:02
gnarfaceit's known for that, though it's not the only thing that does it20:02
chomwittgnarface: in your test of 10.0.2.3 do you have n-m ?20:03
gnarfaceno, my setup's all static20:03
gnarfacealso, the guest is actually chimaera20:04
chomwittok.20:04
chomwitti will try a more light qemu image with static ip.20:04
fsmithredI use n-m on laptop and I usually make resolv.conf immutable, but it's also possible to set the dns inside n-m20:05
chomwittfsmithred: checking20:05
fsmithrednot  sure if you need to set static ip for that or not20:05
fsmithredmy very first post to the debian forum was about network manager fighting with /etc/network/interfaces. I'd get a "not connected" icon when I was connected and vice versa.20:06
chomwitti tried to set a static ip from within n-m with no luck. my virtual nic got the static ip and resolf.conf 10.0.2.3 (dns) but no internet. (traceroute test)20:11
chomwittstrangely after reboot n-m created another dynamic interfaca and used that!20:11
fsmithredand does it work now?20:16
fsmithredother way to set it is in /etc/dhcp/dhclient.conf20:17
fsmithredprepend domain-name-servers20:18
chomwittjust checked in an daedalus install with no gui installed and name resolution (tracerout devuan.org) wont work but tracerout -T 8.8.8.8 seems to work20:19
chomwittand as i see , by default ? , /etc/network/interfaces sets eth0 to dhcp20:21
chomwittfsmithred: not . in my xfce setup it wont work after reboot. its create and uses a dhcp interace.20:22
chomwittbut it seems that static or not doesnt matter. its a dns issue20:23
chomwittindeed in my daedalus with no gui image i set a static ip and i still get no dns20:33
chomwittbut thanks to tracerout i think i can see that using IPs gets through20:33
* chomwitt away for a while20:33
|cos|My devuan machine still refuses to boot, without many, many attempts.22:00
|cos|I did PXE-boot it in order to create the supposedly missing nodes in /dev as suggested by fsmithred, but it turned out they were already there.22:01
|cos|It's the good old hang at "Waiting for /dev to be fully populated" that is happening.22:06
|cos|Adding "failsafe" as a kernel argument as suggested på rwp doesn't work this time, so I guess luck was unrelated to that on my last reboot.22:07
|cos|yey! it finally booted. no special tricks. i did switch from 6.1.0-32 to 6.1.0-31, but unless it is the actual switch of kernel version rather than the version in itself that ought to not be it since -31 was the failing one last time.22:12
|cos|Now when boot was successful, the syslog shows the system to be stuck for 47 seconds between reporting bluetooth devices and "Asymmetric key parser 'pkcs8' registered"22:17
|cos|i wonder if that just means it almost took me a minute to enter the passphrase for the root filesystem? maybe so.22:20
gnarface|cos|: classic symptoms of failing hardware22:24
gnarfacewhat device it actually seems to be hanging on though, could be a red herring; often it's the power supply causing devices to not power up on time22:25
gnarfacea failing or just insufficient wattage power supply can cause any device to hang on boot, but also this is often caused by failing mechanical harddrives22:28
gnarface...or optical drives22:28
gnarfaceeither could also explain why retrying it works, because if you're just barely over the margin the behavior can be intermittent22:29
gnarfacealso, either way you can usually figure it out by turning stuff off22:31
gnarfaceunplug an unnecessary device or two, deductively narrow down whether it's a particular device or just any amount of wattage worth of them22:31
gnarfaceoh, and in theory the wall power can be suspect too, if you don't have a UPS22:32
|cos|gnarface: you keep suggesting this… i highly doubt it's hardware given that software is involved, and it consistently happen once enough of the system is brought up that it's way past hardware initialization.23:44
|cos|had it happened in the first couple of seconds, sure. but this happens when more than a minute has passed on the kernel timer.23:45

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