libera/#devuan/ Monday, 2022-08-08

leafwizHey there. I have a daemon with a init script that seems not to work properly. Its the smokeping package. When I do a smokeping stop the service is still running15:41
leafwizI would expect it to log a termination to syslog15:41
leafwizNot sure what is wrong. the pid file seems fine15:43
leafwizwhen I give a stop command I get an output that it is stopping but nothing in syslog15:44
gnarfacedid you run it as root or as a regular user?15:46
gnarfaceand by "smokeping stop" you mean "/etc/init.d/smokeping stop" right?15:46
leafwizgnarface . I ran it as root, and yes, /etc/init.d/smokeping stop15:52
gnarfaceyou said nothing in syslog, did you also check daemon.log?15:54
leafwizgnarface: it is the same there16:16
gnarfacehmm, can't be sure what's going wrong sorry16:18
gnarfacewhich release are you on?16:18
gnarfaceleafwiz: which release are you on? is this chimaera?16:26
leafwizgnarface: i'm on stable16:27
gnarfacewas it an upgrade or a fresh install?16:27
leafwizI think it was a fresh install. But it has been autoupdating a while now16:28
gnarfacethere's some bugs on bugs.debian.org related to upgrades from the previous release, i wonder if it could be related16:29
leafwizokay. yeah, I can do a fresh install on a system. And reinstall smokeping.16:30
gnarfacewell, it might not come to that, just check those bugs and see if the config mangling happened to your configs too16:30
leafwizBecause it  seems like a obvious fault so yeah. prob something wrong with my system16:30
gnarfaceit's probably also something much easier to fix than a full reinstall16:30
gnarfacei'm not making any allegations i'm just guessing still16:31
leafwizSure, yeah. I don't want to do a full install on my prod system. I have a vmware at home I can do a test install on16:31
gnarfacedid it ever work right or is this the first time you've tried to stop it?16:32
gnarfacethere also might be something obvious if you look at the script itself, maybe related to missing some package16:32
leafwizThe thing is. I started smokeing in debug mode, and then it might change fileownerships16:34
gnarfacehmm, i don't know enough about it to know for sure16:35
gnarfacei was just thinking that maybe it does some check assuming some shell tool is installed but gets a false positive because it's not installed16:35
gnarfacebut if it used to stop right then probably not16:36
leafwizhttps://paste.pics/3e2786fcede8e8c98a68d486fbfa012b16:38
leafwizSo I see output from the log_daemon_msg, but it seems the start-stop-daemon does not wortk16:38
gnarfacei'm not gonna click on that sorry, but i'll take your word for it16:41
gnarfaceif you paste the init script at paste.debian.net i'll take a look and see if i get any ideas16:41
leafwizaha.. yeah. sorry. Just my copy paste did't work from vim.16:44
gnarfacehighlight + middle-click paste didn't work?16:45
gnarfacepaste.debian.net will allow you to select a file16:46
leafwizJust when I\m in vim there is issues.16:46
leafwizroot@gnafle:/etc/smokeping/config.d# start-stop-daemon --oknodo --stop --pidfile /var/run/smokeping/smokeping.pid --exec /usr/sbin/smokeping --signal 1516:46
leafwizNo /usr/sbin/smokeping found running; none killed.16:46
leafwizI ran the command manually16:46
leafwizroot@gnafle:/etc/smokeping/config.d# ps aux | grep smoke16:46
leafwizsmokepi+ 25979  0.0  0.2  98644 36068 ?        Ss   15:39   0:00 /usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config16:46
leafwizsmokepi+ 25980  0.0  0.2  98644 37524 ?        S    15:39   0:00 /usr/sbin/smokeping [IRTT]16:46
leafwizsmokepi+ 25981  0.0  0.2  98644 37716 ?        S    15:39   0:00 /usr/sbin/smokeping [FPing]16:46
leafwizroot     26649  0.0  0.0  14160  9312 pts/1    S+   16:35   0:00 vi /etc/init.d/smokeping16:47
gnarfacecareful, don't get hit by the flood protect16:47
gnarfaceyou can just /msg me stuff like that if you have to16:47
leafwizyeah, was about to ask.. nyes. Okay. But there is the lines16:47
gnarfaceand the pid file you say is present and has the right pid?16:48
leafwizjupp16:48
gnarfaceseems weird16:48
gnarfacei wonder if it's a bug in start-stop-daemon16:48
gnarfacei would be tempted to just hack the script and replace that with a call to killall16:49
leafwizmm.. so maybe the start-stop-daemon expects /usr/sbin/smokeping ,and it sees /usr/bin/perl as well16:49
leafwizheh.. yeah16:49
gnarfacebut /usr/sbin/smokeping has to be there doesn't it? make sure it's there16:49
leafwizBut I could also hack the script by putting in /usr/bin/perl16:49
leafwizin the daemon path16:50
leafwiznaah. that did't work.16:51
leafwizjupp, a killall would prob work.. ;)16:52
leafwiza killall didn't work.. but a kil $(cat pidfile) did work.16:55
gnarfacekillall didn't work?!?!16:56
gnarfacenow something seems really weird16:56
leafwiznope..16:56
gnarfaceone thing... do you have "chimaera" in your sources.list or actually the word "stable" instead?16:56
leafwizI just get a "no process found"16:57
leafwizI think its because it is started as a perl process16:57
gnarfacemaybe16:57
leafwizsmokepi+ 27086  0.0  0.2  98616 36056 ?        Ss   16:56   0:00 /usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config16:57
gnarfaceis the perl process the one whose pid goes in the pid file?16:58
leafwizI have the word `stable'16:58
gnarfaceso i have another theory16:58
gnarfaceif you had the word stable in there since the last release, and you've had auto-updates happening, you might be experiencing problems with an incomplete upgrade16:58
leafwizaha.. maybe.16:59
leafwizI run apt update && apt upgrade in a crontab16:59
gnarfacesince the release changed from beowulf to chimaera, but the auto-update thingy might not actually do a dist-upgrade16:59
gnarfacetry "apt-get update && apt-get --no-install-recommends upgrade && apt-get --no-install-recommends dist-upgrade"17:00
leafwizone packaged wanted to be updated17:00
gnarfacelook like anything relevant to this?17:01
leafwizcoontainerd.io , been running docker on int17:01
leafwizno17:01
gnarfacebummer17:01
leafwizyeah.. Well. I managed to hack it at least.17:01
leafwizCan  be something to do with killall not working17:01
gnarfacehang out, maybe someone else around here has an idea what's really going on17:02
leafwizSure. yeah.17:02
gnarfaceif you're up for burning more time on it, it would be valuable to know if this is also misbehaving the same way on debian stable17:03
gnarfaceif it's not, then we should escalate here17:04
leafwizSure, I could check when I get home. I don't have any debian stable available here.17:08
gnarfaceit's not like a big deal, especially if you have a solution that works for you for now, but something broken with init stuff that's not broken the same way in debian will get attention here faster17:10
gnarfaceespecially if it's in the stable release17:10
leafwizyeah, I suspect it might be a systemv issue only17:10
leafwizBut it will be interesting to see. I will check it up when I'm home.17:10
golinuxhttps://www.devuan.org/os/releases17:35
golinuxRead the section "Codenames or suites?"17:36
golinuxleafwiz: ^^^17:36
rwpgolinux, leafwiz is no longer in the channel but I installed smokeping and will confirm there is a bug and it does not stop correctly.20:10
rwpI'll see if I can't chase it down...20:10
golinuxrwp: He was here when I posted that.20:28
leafwizHey. Earlier I chatted about the init script in smokeping package does not work. I have tried on my homesystem that was installed a month ago. Stable. Same result20:43
leafwizOr the script is unable to stop the smokeping daemon20:43
gnarfaceit has been independently confirmed moments ago, leafwiz20:43
rwpHi leafwiz.  I installed smokeping here and will confirm there is a bug in the init script and it does not kill things properly.20:43
leafwizCool. Good to hear. So people know about it.20:44
rwpI'll dig into it a little big more here in a bit.  It's definitely a Debian upstream problem.20:44
leafwizAh. Misread, moments ago. But that it also good. :)20:44
rwpHowever...  It's in an init script.  So...  I am not optimistic about Debian being receptive to a fix there.20:45
leafwizmm.. yeah, that is my feeling as well.20:45
leafwizBut does devuan maintain inits scripts themself?20:45
leafwizOh well. We will see how it develops. hope for the best20:47
leafwizMaybe some init lovers will give it the good graces20:48
gnarfacethere's some forked packages that might have inits i think, and there's also a separate package of missing init scripts around here somewhere too20:51
gnarfacethe preference would be for debian to fix it if they will though20:51
leafwizIts strange. Even though the pid file has  the correct pid, and the daemon has the correct fullpath name the start-stop-daemon says "No /usr/sbin/smokeping found running; none killed."20:58
gnarfaceit might be checking the name and finding /usr/bin/perl, you might be right about that21:00
gnarfacethe pid in the file is the one pointing to the perl process that launches it, isn't it?21:01
leafwizwell.. in work I got the path of the perl process, and then the smokepingscript , but at home, with both stable devuan, I only get the path of the smokeping script21:02
leafwizbut it is a /usr/bin/perl script21:02
leafwizSo I'm unsure of how the system handles that type of programs.21:03
leafwizI also tried  to feed the start-stop-daemon with the correct user since it runs under the user `smokeping' but no go21:04
gnarfacehmm, i wonder if --ppid would work21:05
gnarfacefor parent process pid21:05
gnarfacei'm just looking at the man page for ideas21:05
gnarfacemaybe there's just a forgotten flag or something21:06
leafwiz start-stop-daemon  --oknodo --stop --retry 3  --pidfile $PIDFILE --exec /usr/bin/perl --signal 1521:06
leafwizThis worked, or killed it21:06
gnarfaceah, --exec, good call21:07
leafwizJupp. Just copied from the init file21:07
leafwizbut yeah, my suspicions was on the process-name21:07
leafwizOkay, so the init script needs to be changed to: start-stop-daemon  --oknodo --stop --retry 3  --pidfile $PIDFILE --signal 15 -u smokeping21:10
leafwiz"Don't use --exec $DAEMON when stopping, as this doesn't work if you're trying to stop the daemon after having replaced the executable as part of"21:11
leafwizhttps://serverfault.com/questions/706018/whats-the-proper-what-to-terminate-a-script-using-start-stop-daemon21:11
leafwizthe start-stop will complain if you don't add the user option.21:11
leafwizAnd you should not use the --exec when dealing with scripts21:11
leafwizOr  this is the correct version I would say:21:14
leafwizstart-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 1521:14
leafwizJupp. All good now.21:16
leafwizhttp://sprunge.us/0X6s0t21:21
leafwizThe init script21:22
leafwizgnarface: are you able to confirm it?21:24
leafwizAnd then the question is how do we send this patch to the correct people21:25
leafwizI have never done something like this21:25
gnarfacefile it at bugs.devuan.org i would say21:32
gnarfacefix seems logical, i'm sure rwp can verify21:33
leafwiz"Also remember that bugs in unforked packages (those that Devuan uses directly from Debian) should usually be reported to Debian's BTS unless you think you have found a Devuan specific problem. "21:37
leafwizSo this is an unforked package I assume. So I can report to BTS21:37
gnarfacewell that's probably true i guess21:37
gnarfaceforgot about that part21:38
gnarfacethey're probably just gonna remove it from the package though21:38
leafwizThe init script?21:40
gnarfaceyea21:41
leafwizWell. Maybe they won't if I supply a patch21:41
gnarfaceworth a try21:41
leafwizubs.. I used the reportbug tool, and it send the bugreport to devuan. Oh well. They will prob forward it for me, or something :)22:16
leafwizAnother thing. Why is it that so many distributions with debian is using the driver name as the device name for the nic ? In stead of eth0 or wlan0 ? What is it that one gains by doing this?22:23
leafwizOr some distribution, but happily not Devuan22:24
gnarfacei think they're just trying to be annoying actually but the excuse is that it's for disambiguation22:25
gnarfacebsd does something similar22:25
leafwizI ran into this in work. Trying to help a field technician, and he had to type in that long nic name in a console terminal. was a bit annoying22:25
leafwizThey succeed in being annoying, because the crappy nic name was so long! Like a hex password.. >P22:26
leafwiz:P22:26
leafwizI complained to debian to day.. And they gave me a long list, but I dunno. That list was written with quite the attitude.22:27
leafwizSo I didn't read it22:27
leafwiz(or the list was not long. It was a list with some topics)22:27
leafwizOh well. I just hope Devuan is able to maintain the classic naming scheme.22:28
leafwizIts one of those things I like with linux22:28
leafwizLike the two things that I liked with linux when I was a yungster was the systemv startup scripts, everything is a file. And the simple naming conventions for the hw devices. That was for me quite impressive.22:30
gnarfacethere's a kernel command-line parameter you can set to change it if you need to22:30
leafwizyeah, and that is nice. Its just that I miss those simple and nice names in default install.22:31
leafwizIts fine. I have devuan.22:33
wikanhi, is anyone using lxc under devuan?22:50
wikanit is even possible to use unprivigeled containers?22:50
gnarfacenot sure, but maybe check the forum while you wait for someone here who knows22:51
wikanwell i browse internet now22:52
wikansystemd is a fucking cancer22:52
wikanwell i found something...22:54
wikangreat23:15
wikanlxc doesnt work23:15
gnarfaceqemu works23:17
wikanbut slower23:19
gnarfacewith kvm it's pretty fast23:20
wikanif you have cpu that suuport virtualization23:20
wikani am too old i think23:21
wikanfuck, i must drop every software i use23:21
gnarfacelinux-vservers maybe?23:21
wikanwhat it is?23:22
gnarfacekernel level para-virtualization, it used to be part of debian a long time ago until it was pulled, but with some effort (custom kernel patch+build) you can get it working again23:26
wikani read about it23:26
wikanwell i quit this shit23:26
gnarfaceit's a good choice if you don't have hardware virtualization acceleration and only need to support linux guests23:26
wikanit is annoying if you do something and someone tells you to fuck yourself23:27
wikannon stop something changes23:28
wikani thought the arguments of commands is the max I can expect23:28
wikanbut as i see... one update and you are fucked23:28
rwpleafwiz, gnarface, I see lots of discussion so I assume the problem is resolved without reading it in detail.23:44
brocashelmsomeone was having a bad day...23:57

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