libera/#devuan/ Saturday, 2021-09-11

ksx4systemanyone tried Devuan under modern OpenVZ? by modern I mean 4.x kernel instead of 2.6.x02:30
Guest42Hi!04:00
Guest42I was here before, asking for help with the wireless card problems.04:01
* golinux is always wired so of no help04:03
Hydragyrumwhat wireless card problems?04:05
golinux(Hydragyrum rides to the rescue (hopefully))04:06
Guest42gnarface you asked me to restart window manager, and check if it will help.04:07
* Hydragyrum has had some wireless card issues in the past and may be able to help04:07
Guest42Logging out, and in, does the same, right?04:07
HydragyrumGuest42, yes04:07
gnarfacewait no04:07
gnarfaceGuest42: no, you have to then also restart the login manager04:07
gnarfaceif it's lightdm for example: /etc/init.d/lightdm restart04:08
gnarfacemaybe reload04:08
Guest42I logged out and in, and it didn't help.04:08
gnarfaceit'll tell you if you get it wrong04:08
Guest42Forgot the shortcuts.04:08
Guest42gnarface But alt-prntscreen-k should do that, right?04:10
Guest42It breaks in a random manner. Last time it happened just a couple minutes after turning on.04:11
Guest42Changing NM to Connman didn't help at all.04:12
Guest42gnarface Should the previously mentioned shortcut do this?04:13
gnarfaceGuest42: no because the login manager is a separate program from the window manager04:14
gnarfaceGuest42: if you were getting into X with startx it would be sufficient to log out and startx again but in your case you have to restart the login daemon too04:14
_ds_You're not supposed to run the init scripts directly (environment setup reasons) – “invoke-rc.d lightdm restart” or (I think) “service restart lightdm”04:40
fluffywolfI've always used /etc/init.d/foo restart...04:46
onefangThe problem with the service command is that (as per the man page) if there's a systemd unit and a sysvinit script, the systemd unit is used.  Devuan has LOTS of systemd units.04:49
blockheadonefang: so that means don't use the service command?04:53
onefangRead the man page yourself, check out the locations it looks for systemd units, see if there's any on your system that'll get in the way of using the service command.04:58
onefangI did, there was just way to many systemd units to bother trusting the service command, so I don't use it.04:58
masonMiddle ground:   env -i /etc/init.d/foo05:02
masonYou get the clean environment service would have given you, but no quackery with systemd units05:02
fluffywolfwouldn't the devuan script attepting to do systemd anything be considered a bug?05:04
fluffywolfattempting05:04
Hydragyrumyes05:04
masonfluffywolf: My fear and absence lately has been this overwhelming recognition that there's no escaping an ever-increasing deluge of systemd while still based on Debian. It won't be possible.05:09
onefangAnother option is sysv-rc-conf.  Might be more useful depending on what you are doing.05:24
onefangIt can be used to start or stop services from the list of all of them it shows.05:25
gnarfacei assume Guest42 is still having wifi issues05:44
gnarfacehmmm05:45
gnarfacechasing gremlins05:45
gnarfacei forget if it was suggested to try to see if disabling power management for the networking device was possible with a module parameter05:46
gnarfacei think i was thinking maybe a graphical problem was interfering with the UI widgets or something05:47
gnarfacebut i think he was saying it just drops and we still have no evidence about why05:47
blockheadgnarface: the disabling power management sounds like a good idea: i'd had that problem ages ago05:48
gnarfacei think the "service" wrapper is just a convenience tool; the init.d scripts are still meant to be called directly too05:51
gnarfaceit's not required to be installed even05:51
gnarfacejust fyi05:52
gnarfacesome systemd stuff might require it now, i don't know, but it actually predates systemd by a lot05:52
rwpgnarface, The problem that the service command solves is when a user has an environment that is different from root's boot time environment.06:00
rwpWho might be those with a different environment?  All of us!  All of us have a customized PATH for example.  Or at least I do.06:00
rwpBut perhaps it is the SSH_AUTH_SOCK variable that causes more trouble.  Because then system init services inherit the setting of that variable and behave differently.06:01
rwpThere are many different ways that a user's environment will leak into the init scripts.  And service is one of the utilities that uniformly avoids those problems.06:02
rwpBy first cleaning the environment.  Basically "env -i" and ensuring a boot time clean setting for PATH and other variables.06:02
rwpAnd service first does a "cd /" so that it does not spawn daemons with a cwd on a mount point.  Which would then be busy forever and stuck.06:03
rwpThose are all things that users often do to shoot themselves in the foot.  Especially when using "sudo /etc/init.d/foo restart" or some such.06:03
rwpOf course I know that you almost certainly never use sudo and always have a very tidy and clean /root environment.  "su -" and then as root "# /etc/init.d/foo restart" and that's fine.06:04
rwpBut a whole generation of users are now doing crazy things with their login environment and that leaks into init scripts and it causes trouble later.06:04
rwpUsing service avoids those environment leakage problems.06:05
onefangIf only there was a configuration option to get service to either ignore systemd units, or not have them be top priority over sysv init scripts.06:47
rwpBut here we are in Devuan without systemd and therefore there shouldn't be any systemd units to ignore. :-)06:51
rwpHowever on a systemd system the service command does pass through the request to systemctl though.06:52
onefangBut there are heaps of them.06:52
onefangAll those packages that have systemd units, but that have not been forked by Devuan, still install systemd units.06:53
rwpBut since systemd is not running service doesn't call systemctl but calls /etc/init.d/foo directly.06:54
onefangThat's not what man service says.06:54
* rwp goes to read the man page again...06:55
onefang"The existence of a systemd unit of the same name as a script in /etc/init.d will cause the unit to take precedence over the init.d script."06:55
rwpThat's insufficiently correct about the actual action of the script. :-(06:56
rwpPlease browse the script /usr/sbin/service and find "if [ -d /run/systemd/system ]; then is_systemd=1; fi" sets that variable.06:56
rwpThen subsequently if "if [ -n "$is_systemd" ]" is true or false various actions occur.06:57
onefangIf the docs say it does exactly what I don't want to do, and my previous method still works fine, I got better things to do that deep dive into the code to see if the docs lie.  shrugs06:59
onefangOnly reason I looked at it at all is it's a shorter command, less to type.  lol06:59
rwpWhat is "your previous method"?07:00
rwpAlso maybe an example.  In Beowulf/Buster the maintainer removed the init script for Mailman.  The bugger!07:01
rwp"service mailman start" in that case returns "mailman: unrecognized service"07:01
rwpBecause Beowulf is not running systemd.  Yet the package contains a systemd service unit. /lib/systemd/system/mailman.service is ignored though.07:02
sadoon_albader[mIs there an RSS feed for devuan news?07:30
rwpsadoon_albader[m, As far as I know the main RSS news feed is at https://dev1galaxy.org/ the web forum.07:42
rwpBut that's not project news as it is community forum news.07:42
sadoon_albader[mWhat about the project?07:43
ksx4systemI've upgraded an OpenVZ VPS from Debian stretch to Devuan beowulf. Everything went well but SSH login now freezes for a long time (a minute maybe?) before displaying command prompt16:38
daemonhmm might be totally unrelated but I have seen that on a few of my freebsd boxes16:39
daemonthat do not have configured nameservers16:39
ksx4systemssh -vvv shows me that it freezes exactly at "debug1: pledge: exec" point16:39
ksx4systemnameservers are configured correctly ofc16:39
daemonwhat might be interesting is doing a diff on a standard sshd_config vs the one on your system16:40
daemonsee if there is anything obvious16:40
ksx4systemdone already16:40
ksx4systemeven reinstalled openssh-server, replaced sshd_config for a standard file16:40
ksx4systemnothing16:40
daemonwell pledge: exec, is that the step that normally passes off to zsh/bash etc?16:41
ksx4systemdaemon, no idea tbh16:41
daemonssh -vvv on one that does not have that problem16:41
daemonsee what is meant to happen16:41
daemonbecause presumable whatever it is meant to be exec()'ing is blocking for some reason16:42
ksx4systemnope, there's lots of things happening after "pledge: exec" on healthy box16:42
ksx4systemas far as I've googled it might be related to PAM somehow16:42
daemonI assume after the minute, the b0rked system does all those same steps16:42
daemonafter the pledge: exec that is16:43
ksx4systemuh, yes16:43
daemonok so now we just need to know what the heck pledge exec is actually doing :)16:43
ksx4systemalso: "su root" to get root privileges freezes exactly the same way (while within ssh session of course)16:44
daemonas a million to one, try: ssh -o GSSAPIAuthentication=no16:44
daemonthough indeed it does sound PAM'y16:44
daemonalmost sounds like its trying ldap or something and failing through out of timeout before reverting to a different auth backend16:45
ksx4systemsame freeze with that gssapi option16:45
daemondiff /etc/pam.d on a working system and your current one?16:46
daemonsee if you have a different setup somehoiw16:46
daemonon my linux system for instance I have these changes:16:46
daemonsystem-services:session         optional        pam_ldap.so16:46
daemonsystem-auth:auth            sufficient      pam_ldap.so use_first_pass16:46
daemonbut that is for a gentoo box, may be slightly different on devuan16:46
daemonoh someone reported precisely the issue you have for redhad: https://bugzilla.redhat.com/show_bug.cgi?id=145280416:47
ksx4systemdaemon, I've got another healthy Devuan box to compare :) even more than one16:48
daemon:)16:48
ksx4systemweird16:52
daemonanything interesting?16:53
ksx4systemon a healthy system mc displays properly16:53
ksx4systemon this b0rked VPS it displays... well, b0rked16:53
daemonhmmm16:53
* ksx4system should've got KVM VPS16:53
ksx4systemand install Devuan from scratch16:53
ksx4systemhttps://www.devuan.org/os/documentation/dev1fanboy/en/stretch-to-beowulf16:54
daemonif you only just got the system you can likely cancel it for refund and grab a KVM instead16:54
ksx4systemdaemon: this procedure used to work well on OpenVZ boxes16:54
daemonit certainly is strange16:54
ksx4systemdaemon, got 14 days to cancel so I'll probably play around a little more and cancel after16:54
daemonit sounds like your locales and or term are screwed up as well16:55
daemonas a raw curiosity have you tried making a brand new user and seeing if that has problems16:55
ksx4systemlocally it's fine (Crostini on Chrome OS so basically vanilla Debian oldstable), displays fine on other healthy hosts16:55
ksx4systemdaemon, yes I did16:55
ksx4systemsame problems16:55
daemonso strange set of problems16:56
daemonwe came to the idea that it might be pam, hence the su - being slow thing16:57
daemonbut that would not explain the terminal or locale being busted too16:57
ksx4systemwell, afaics there's no locale whatsoever XD16:57
ksx4systemI'll try fixing PAM quick and dirty way (copying config from healthy box)16:58
daemonso it should default to 'C'16:58
ksx4systemit does16:58
daemonfor messing about with pam make sure you stick a terminal logged in as root somewhere else :P16:58
daemonjust incase you totally break logins16:58
daemonlol16:58
ksx4system daemon: got out of band console lol16:58
daemon:)16:58
ksx4system"reboot command not found"16:59
ksx4systemsrsly16:59
buZzksx4system: try sudo reboot17:00
buZzlol17:00
ksx4systembuZz, that was executed from root ;)17:00
buZzhehe lol, on what distro?17:00
ksx4systemDevuan beowulf, migrated from (supposedly clean) stretch image17:00
buZzeh :P17:00
ksx4systemon a ghetto OpenVZ box17:00
buZzand your /sbin dir does -not- have 'reboot' ?17:01
ksx4systemuh17:01
buZzor 'as root user without root PATH?'17:01
daemonwait a mo ... can you actually reboot an openvz instance, I mean its not a real vm its just a soft jail17:01
buZzdaemon: yeah it still works17:02
ksx4system /sbin/reboot mysteriously worked17:02
ksx4systemdaemon, yup, it's just a container17:02
buZzksx4system: next time you 'go to root' maybe do so with 'sudo -s'17:02
buZzthen your PATH will be correct aswell17:02
daemonI have a theory17:02
ksx4systembuZz, don't have sudo on this system atm17:02
buZzksx4system: then 'su -'17:02
daemonright looking at what we have problems with: We have issues with terminal settings, auth and now paths17:02
daemonit sounds like when a user logs in their env is not being setup right17:03
daemonwhich would explain all problems in one go17:03
ksx4systemdaemon: copying /etc/pam.d from healthy box didn't help with slow SSH logins :(17:03
buZz'ssh freezing on log in' 'and also su root' <-- thats a DNS problem17:03
ksx4systembuZZ: /etc/resolv.conf has "nameserver 1.1.1.1" in it17:04
ksx4systemshould work fine17:04
daemon'UseDNS no' in sshd_config would be fastest way to test17:04
buZzyes daemon , good call17:04
ksx4systemdaemon, tried that - didn't help17:04
ksx4systemI guess image I've migrated from was simply b0rked17:04
ksx4systemthey have Debian 10 image too but migrating from this one leaves me with no networking lol17:05
daemonwait though even though old did the old image work correctly?17:05
ksx4systemdaemon, before migrating to Devuan SSH worked fine17:05
daemontime wise I would just get the VKM sod the migration do a fresh install17:06
daemoncuriosity wise, I would try doing the migration by hand17:06
daemonnot trusting some script17:06
ksx4systemdaemon, I've migrated manually lol17:06
ksx4systembut using that "official" procedure from Devuan's webpage17:07
daemonhow big of a jump/migration was this17:07
daemonoh stretch to beo17:07
ksx4systemyup17:07
ksx4systembuster to beo didn't work (no network after rebooting without bullshitd)17:08
ksx4systembut actually I didn't have initscripts at that point soooooo maybe it's worth trying again17:08
ksx4systemjust different sequence of doing things17:09
daemonmhmm there is a hack for that, slap some of your own network init stuff in /etc/rc.local17:09
ksx4systemok, so let's wipe that box17:09
ksx4systembuster time17:09
daemon:)17:09
ksx4systemand then migration to beo again17:09
ksx4systemfun fact: this box has 256MB RAM17:10
ksx4systemeven more fun17:10
daemonhehe its not to bad for light loads17:10
ksx4systemenough for ZNC and rarely used Icecast217:10
daemonyeah I think ZNC uses about what 50M ... hmm im curious17:11
daemon  772 znc           4  20    0    61M    26M select 148:28   0.00% znc17:11
daemon26M resident17:11
ksx4systembut tbh enough to host my websites too, no SQL whatsoever so 256M should be plenty17:11
daemonlikely be ok with sqlite17:11
ksx4systemI don't use any databases as of now17:11
ksx4systemno need to17:12
daemon... I think I am correct with what I am about to say but if someone could validate it would be handy! ... I think you can get a VM at aws 'free tier' with more resources than that17:12
ksx4systemuh17:13
ksx4systemWTF17:13
ksx4systemprevious (stretch-based) image showed me that I'm running 4.9 kernel17:14
ksx4systemnewer one says 4.1917:14
ksx4systemit's fscking OpenVZ17:14
daemonthat's curious17:14
ksx4systemnot really possible to run anything newer than 3.10 for this setup17:15
ksx4systemunless it's not OVZ717:15
daemonI thought openvz just used whatever the host was using17:17
ksx4systemdaemon, generally yes it does17:20
ksx4system(or at least did for all these years)17:20
daemonkind of weird I have managed to avoid openvz so far in life, use jails, hyperv and bhyve more17:22
* ksx4system OpenVZ veteran17:23
ksx4systemmy first VPS around 2009 ran on that17:23
daemonFirst containerization/seperation type thing I used was freebsd jail system17:24
daemonno idea what year that was17:24
daemonyou ever consider getting a cheap dedicated and just running your own openvz containers?17:25
daemonwill be a thousand times better than other peoples stack who likely have set it up using script they found on stack overflow :)17:25
ksx4systemnah, I don't have that much stuff to make renting a dedi reasonable17:26
ksx4systemif I had a little faster line at home I'd just host it all here17:26
daemonif you work at a small enough company, they might let you host something with them17:26
ksx4systemI'm self employed lol17:27
daemonah :P17:27
ksx4systemwhatever17:27
ksx4systemfsck that OpenVZ box17:27
daemonyeah it does not sound like its super happy17:28
ksx4systemI'll get a KVM, much less problematic17:28
daemonhey if you get a KVM it might have enough space to take a clone of that broken openvz system so you can continue figuring out what was wrong for fun :)17:29
ksx4systemdaemon, or I could simply rsync it to home PC lol17:30
daemonthough speaking of infra I need to go look at the upgrade paths for my dedi I actually managed to 100% a Intel Core i7-7700 with rust and redis17:30
daemonyeah that would work too! :_)17:31
ksx4systemdaemon, someone's running pretty big apps lol17:48
daemonksx4system, would you believe all it is, is tracking every crypto currency on binance at the same time, who would have thought it would cost so much in cpu and memory bandwidth :P17:50
ksx4systemlol17:51
daemonthe actual other comedy is the first 'prototype' of that application I wrote in perl/POE ... it worked obviously way to slow to handle that much data so I thought ... no issue I will write it in c#17:53
daemon.... wait hold on that can't keep up either17:53
daemonrust just manages to do it17:54
masonksx4system: Did you solve your issue?20:46
masonwith ssh?20:46
masonksx4system: I worked this up as the first step to debugging ssh issues for work: https://bpa.st/ABNA20:48
masonMight be useful. Do that on your problem case, do it on a healthy case, and you can compare.20:48
psionicwow now debian systemd free? I did the default install didnt see no option for that21:44
masonpsionic: Debian isn't systemd-free.21:46
ham5urgIs there a meta package to install common printers for auto-discovery (network printers)?21:52
fsmithredinstall cups21:53
ham5urgIt is but the printer is not popping up21:53
fsmithredthere are some extra packages you might need. I don't know the names off the top of my head.21:54
ham5urghplip and some printer-driver?21:54
fsmithredmaybe21:55
fsmithredsearch for cups and you'll get a long list21:55
fsmithredmaybe foomatic* maybe gutenprint*21:55
* fsmithred is still using parallel port printer21:56
sixwheeledbeastjetdirect not work? ip:910021:59
masonham5urg: if you have a printer that needs a proprietary HP plugin, install hplip and IIRC it's hplip-setup, and that'll configure a CUPS queue22:05
masonham5urg: If it's not that, or if it's remote, rather than browsing, which can be very hit or miss, you can set a path directly with lpadmin.22:06
masonham5urg: If it's a remote printer attached to some Unix box, remember to treat it as raw on your local box as double-filtering will effectively make it not print ever.22:07
ham5urgmason, it is a lan attached epson laser printer, PS-capabale.22:08
masonham5urg: Local example: lpadmin -p HP -v ipp://print-server.my.internal/printers/HP_LaserJet_Professional_P1109w -m raw -E22:08
masonSometimes browsing doesn't work, and upstream CUPS is in a bit of disarray recently.22:09
masonI really dislike CUPS, FWIW, as compared with lpd.22:09
masonMassively overengineered.22:10
ham5urgmason, the printer just got stucked. Its OS is restarting. I will try lpd.22:18
XenguyCUPS always worked fine for me.  Sorry to hear it's maybe gone downhill22:19
ham5urgThere is a package lpr and a lprng. Which one should I choose?22:28
ham5urgOnce I installed CUPS, it was a zeroconf solution, install & discover all printers in a LAN.22:28
ham5urgAFAIK cups depends on avahi, a "avahi-browse --all -t -r" should show all printers.22:31
ham5urgBut nothing.22:31
joergmy system not even heard of avahi-browse, then this is not a devuan22:34
ham5urgI installed avahi-utils22:35
ham5urgBut cups pulls in avahi-daemon22:36
joergjr@saturn:~> whichgrep *cups*22:57
joerg/usr/bin/cupstestppd22:57
joerg/usr/bin/cups-calibrate22:57
joerg/usr/bin/cupstestdsc22:57
joerg/usr/bin/cups-config22:57
joergalias whichgrep='find `echo $PATH|sed "s/:/ /g"` -iname '22:58
joergwhat the? unsolicited reconnect, sorry23:15
masonXenguy: Apple stopped maintaining it after being the principle caretakers for years. It's transitioning.23:17
fsmithredham5urg, add --no-install-recommends and then add in the Recommends that you want23:17
masonThe new maintainers might do okay.23:17
fsmithredhttp://localhost:63123:17
Xenguymason, That's right, I recall reading that the whole CUPS scheme originated with good ol' Apple23:59

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