libera/#devuan/ Thursday, 2021-08-12

systemdletebareos-fd is a daemon that needs access to the network to operate.  It currently fails to start, and I believe it is due to the lack of wireless availability --  a timing problem:  It takes a moment for my laptop to get a wireless connection.00:37
systemdletethe bareos-fd script header seems to require networking to be up first, but for some reason, the daemon does not seem to reliably fire up every time.00:37
systemdleteI'm wondering if this is because there is some configuration for the hardwired network (even though not used most of the time) while wicd is somewhat disconnected from that configuration.  But this is typical of my understanding of the networking options at a high level-- I know that the /etc/network/interfaces and wicd are two different realms and they can stomp on each other.00:39
systemdleteand do frequently00:39
systemdleteI'm looking for a way to delay the daeamon even attempting a start until the wireless is up and connected completely00:39
systemdleteI'd rather not muss with the script itself since I do not maintain it00:40
systemdletethanks -- this might be simple and straightforward or it might be impossible without submitting a bug to the bareos maintainers00:40
systemdleteHoping this is just a minor tweak to the sysvinit configuration somewhere00:41
gnarfacenot sure but maybe try it with the wired ethernet configuration in /etc/network/interfaces commented-out so that there's only wireless00:41
gnarface... test a few times that way just to test the theory00:41
gnarfacemaybe if wireless is the only one, or even just the first one, it will behave differently00:41
systemdleteLet me check what is actually there...00:41
systemdlete(yeah, I think you are right)00:41
gnarfaceif the wifi handshake still happens after it consideres networking to be "up" though maybe tie the script to something even later00:42
gnarfacethat's a hack but a simple quick one00:42
gnarfacei think it might be possible that the wifi router can cause this misbehavior independently of the init, but i'm not 100% sure of that00:42
gnarfaceit's been a while since i've had to use wireless extensively really00:43
gnarfacethere could be a problem in there00:43
systemdletegood idea, thanks.  Well, as it turns out, I do have an entry for the ethernet port.  So I could try commenting it out.00:43
systemdletebesides, I believe wicd has a facility for ONE ethernet connection anyway, so if I need it, I could just configure it there.00:44
systemdleteI rarely use the hard wire.  The only time is for doing installations of the OS (e.g., installing beowulf; I created a separate partition for it so that I still have ascii as a "spare" in case the beowulf or other install failed)00:45
systemdlete(I prefer to work that way, based on experience!)00:46
systemdletegnarface:  That worked, at least this time.00:47
systemdletesince I use the wireless mainly on the laptop, I think I'll stay with wicd entirely and avoid configuring anything via the interfaces file.00:47
systemdletegnarface:  Voila!  S04wicd but S03bareos-fd...01:25
systemdletewhich explains it01:25
systemdleterealistically, it is a backup daemon, so I wonder why they gave it so low a number in the ordering01:26
systemdleteI suppose I could rename the bareos script to have a higher number, like 9901:26
systemdletebut I wonder if there is a more compliant way?01:28
systemdletefor now I will submit a request to the devs at bareos to change the ordering number for the script -- I doubt anyone will have an issue with that.01:29
gnarfacewell what is important is you found a way to make it work01:33
systemdleteyeah, but I'm not sure how to go about changing the ordering (names of linked init files) in some kind of conformant fashion01:39
systemdletebrute force will work, of course.  But that may spell problems if I do an update which includes changes to the init files01:39
gnarfaceyes, the truth is you should just tar them all up once you have them set right in case you have to restore them later01:41
gnarfacenot all postinstall scripts are so badly behaved that they'll munge your changes but lots of them are01:42
systemdleteuhm.  couldn't an upgrade to bareos also include changes to those scripts?01:42
gnarfaceyea, and if they didn't make it smart enough to avoid stuff you'd touched they'd get clobbered01:42
rwpI didn't read the scrollback but bareos shouldn't be picking numbers.  Instead they pick dependencies and "insserv" automatically determines numbers and ordering topologically.01:42
systemdleteI would hope there is a way to do this via the rc scripts01:42
systemdleterwp: That is what I'm talking about01:42
gnarfacedebian is supposed to be smart enough to not clobber changes to /etc/ but even the openssh package has been known to do it01:43
gnarfaceopenssh-server at least01:43
rwpRight.  The "conffile" handling.  But that can be clobbered in a postinst script.01:43
systemdleterwp:  so the problem then is that the bareos init script does not have a dep for wicd, only for networking01:44
rwpSpeaking of which I highly recommend using "etckeeper" to version /etc with a git repository.  Then one can always go back through the history as needed.01:44
systemdleteso the issue is really that bareos needs to be more accommodating for different networking configs, which is unrealistic.  No devs will want that headache01:44
rwpSo...  networking comes up with the loopback device comes online.  And then wicd is managing dynamic mobile networking that may change while the system is running.01:45
rwpBut bareos does not handle networking changing while it is running?  Is that the root of the problem?01:45
rwp(I am only aware that bareos is a backup utility and that's all.)01:45
systemdleterwp, gnarface:  I suppose I could manually modify the init script to depend on wicd.  Then all the links should work right01:45
systemdletenot a matter of the network changing.  It has a dependency on networking in the header of the script, as expected.01:46
rwpThat would be a good initial test regardless.  Because then you would know if that solves the problem or not.01:46
systemdletebut it doesn't have one for wicd01:46
systemdlete(right)01:46
systemdletesee?01:46
rwpAlso note that /etc/init.d/ is in /etc and those files are all "conffiles" and so on upgrade dpkg will not smash your locally customized files.01:47
gnarfacerwp: yea it's just a race condition between $network "up" and whatever assumes wicd is working and connected to a router already by then, which isn't quite happening fast enough all the time01:47
rwpInstead it will ask you at every upgrade what you want to do about it.  Which is a PITA and something I _try_ to avoid whenever possible.01:47
systemdletegnarface:  Wicd has its own script01:47
systemdleterwp:  exactly01:47
gnarfacesystemdlete: hmmm, maybe depending on it directly would not be a bad idea then01:47
gnarfacesystemdlete: it wouldn't be a change they'd likely adopt upstream though, i think at some level, this stuff needs customization01:48
rwpI am not sure if Bareos is designed to be used in a dynamic network state environment.  Is it?  If not then really it should be handled differently.01:48
systemdletebtw, I did get the hardwire config to work in wicd.  So I don't need to deal with the conflicts between the interfaces file vs wicd config01:48
systemdletedynamic?01:48
systemdleteYou mean as in wireless is dynamic?01:49
rwpDynamic because isn't that what wicd is used for?  Dynamically connecting to networks via a user dialog for selection?01:49
systemdleteyes, true01:49
rwpThat's the only way I have ever used wicd.  And I have been a user of wicd for a decade or something.01:49
systemdleteyou didn't mean dynamic as in switching or comporting with both the "networking" and "wicd" network configs01:50
systemdleteI follow now01:50
systemdletethe reality here is that the laptop is on the wireless almost always01:50
rwpI meant that the network state might be UP or DOWN at different times while other programs and daemons are running.01:50
systemdlete(except for initial OS installs, and the like, where trying to work with wireless can be a viscious circle)01:51
rwpI meant that the default route and the IP address might change while other programs and daemons are running.01:51
rwpSome daemons care about these things.  Some do not.01:51
systemdletethe network state, really, should be up at all times.  Of course, it may take wicd a moment or so to actually make a connection.   The question here is will wicd wait for that event, or will it surrender control back to the scripts driver (i.e., parallel)01:52
systemdlete(for parallel booting)01:52
systemdlete(speed, the thing Mr. L. was so anal about)01:52
systemdlete(and got us to this awful convo)01:52
rwpFor example if you "ss -na | grep ^tcp.*LISTEN | less" and look at the daemons running on a system.  Some will listen to *:80 and some will listen on the current IP address 192.168.230.119:53 for example.01:53
systemdletemy gut says wicd will relinquish control even before the wireless connnection is established01:53
systemdleterwp:  Trust me, bareos MUST have a network connection to do any good in the world.01:54
rwpFor the daemons that listen on *: or [::]: or 0.0.0.0: or other wildcard addresses then the *actual* IP does not matter.01:54
rwpBut for some daemons (named is one of them) they bind explicitly to each IP address on each network device explicitly.  And then of course when those go UP or DOWN they must react.01:54
systemdleteok01:54
systemdletebut back to the issue at hand01:55
rwpA program can ioctl() call to ask about the current state and react to changes.  I have written software that does it that way and those are okay.01:55
rwpBut if bareos doesn't handle it nicely then it will need to be restarted or something whenever the network interface state is changed.01:55
systemdleteI have no idea what bareos does internally, at least not to any detailed extent.01:55
rwpFor things that happen in an event driven way and must handle those types of changes there is usually a network event script installed.01:56
systemdleteagain, the network needs to be up before bareos runs.  otherwise, it will fail to start.  and that is what I'm trying to avoid01:56
rwpFor example /etc/network/if-up.d/postfix is installed with Postfix to handle network changes that happen while Postfix is running.01:56
systemdletenetwork will need to be up and always up.  period.01:56
rwpThen...  Why use wicd?  That seems the wrong tool for it then.01:57
systemdleteThere is no need for any special handling like that... here in my house.  In a big data center, maybe.01:57
systemdletebecause wicd is convenient.  It handles all the wireless config and so forth.01:57
rwpI would simply use wpa_supplicant then and just connect using ifupdown always.01:57
systemdletehmmmm.  that's a thought.01:58
rwpIt's certainly okay to use wicd.  But then that decides on a dynamic event driven path.  Which means like what Postfix did.01:58
systemdleteyou know what?  I think this has taken up too much space and time.  I will see if I can get help in the bareos channels.  With the substantial base of users, bareos should be doing whatever it needs to (postfix style maybe) not ME01:59
systemdleteor YOU01:59
systemdletelol01:59
systemdletealso, I am about 3 major releases behind on bareos.  I've had difficulty upgrading in the past, but maybe now with beowulf it will make it smoother.  (Iirc, there were some lib deps issues)02:00
systemdletethe laptop has beowulf02:01
systemdletebut the host side is still running ascii02:01
systemdletebecause that is on my list of to-dos...02:01
systemdleteand I've been attending other stuff lately02:01
rwpAnother completely independent path is to use a separate supervisor monitor (such as "monit" or something) to check on system status and to start or stop bareos as needed/desired.02:02
systemdletethe laptop daemon has to be connected and running all the time.  Not that it is doing much most of the day and night, but when the host system calls up to run backups, it had better be up and listening good!02:03
systemdleteAnd that is just the architecture of bareos.  Don't shoot me.02:03
systemdletemaybe the newest version of bareos has a mechanism similar to postfix et al02:04
systemdlete(that would be nice)02:05
systemdleteagain, I don't know.  maybe it already does have it but it doesn't always work yada yada02:05
systemdletewho knowss02:05
systemdleteI have not examined their source code too closely, tbh02:05
systemdletethanks gnarface and rwp.  I'll give monit a looksee and determine if that could help, if simple to do.02:06
systemdletemaybe I just need a cron job to check the status of the daemon every hour or so.02:06
rwpI favor the way Postfix did things with a /etc/network/if-up.d/bareos hook script that looks for the interface coming online and (re)starting bareos on demand dynamically as needed.02:12
systemdletehow would that work?  the bareos director daemon is on the host and drives everything.  It initiates backups at a certain time, per its internal scheduler.02:14
systemdletewould the scheme you suggest work for this case?02:14
systemdletethat's why I mentioned that the laptop daemon (file daemon, specifically) needs to be ready for action at any time the director attempts to connect to the laptop.02:15
systemdletebut maybe your idea could work, idk02:15
systemdletethe director daemon on some host on the network will connect to each of its clients (e.g., my laptop) and initiate a session wherein it runs a backup, restore, or any other operation supported by the architecture.02:16
systemdleteis there a sort of "wake on lan" feature -- is that what you mean?02:17
systemdleteWOL for wireless ?02:17
systemdleteidk02:17
systemdlete(that would be nice to save energy)02:17
systemdletebtw, I've disabled the wireless powersave function due to the issues I've been having with lost or partially lost connectivity.  That has solved the problem for that.  But this other issue, at hand, is due (I think) to the init script ordering.02:19
systemdleteI suppose I could write a script that would nudge the director daemon to start the backup, which could be run from the laptop side.  But I think that sort of defeats the way bareos wants to do things.02:21
adhocmorning all02:49
djphhi adhoc02:50
adhocgot some apps that are deprecating python 3.7 real soon now02:51
adhocso have been reading up on the path to python 3.802:51
adhocseems this is an issue on debian10 too02:51
adhoclots of reading points to just installing it by hand and doing a; make altinstall02:52
adhocnot so keen on that to be honest02:52
adhocis there a prepackaged version of 3.8.x in a repo I'm not aware of yet ?02:53
adhoc=)02:53
djphnot that I'm aware02:53
djph.. actually02:54
adhocdang02:54
djph... Devuan Chimaera is 3.9.2 ...02:54
djphMaybe "something" will be in backports soonish?02:55
adhocah, that might be worth a look02:55
ShorTie3.9.6 is latest02:55
adhocis Chimaera released?02:56
adhocdjph: is there any doco on adding backports? I can find anything..02:58
fsmithredpython3.9 is not in backports02:58
adhocfsmithred: ta ...02:58
adhochmm02:59
fsmithredbut you would add a line for beowulf-backports that looks like your other lines02:59
fsmithredthere are examples at devuan.org02:59
fsmithredthere are beta installer isos for chimaera and alpha live isos02:59
fsmithredother than that, chimaera is mostly ready.03:00
adhocmostly ... =)03:00
djphsorry to have been unclear -- I meant to say "maybe backports will get something newer eventually"03:00
adhocdjph: thanks =)03:00
fsmithredyeah, some of the desktop theme stuff is not quite ready03:00
fsmithredand documentation03:00
fsmithredbut people who upgraded to chimaera months ago have been saying all along that it's very stable03:01
djphit is very nice, needed a bit of kicking in the kernel, but otherwise it was nearly flawless out of the box03:01
adhocso deb     http://deb.devuan.org/merged <release codename>-backports main03:01
fsmithredyeah03:01
adhocis beowulf-backports03:01
djph... and on a basically cutting-edge laptop03:01
fsmithredthen apt-update03:01
fsmithredno03:02
fsmithredapt update03:02
adhocunderstood03:02
* adhoc updates03:02
fsmithredapt -t beowulf-backports install <package>03:02
adhocok03:03
fsmithredand be selective03:03
adhocso, what is the approximate time line to 4.0 being released?03:04
fsmithredeverything that's in backports has never been tested all together03:04
adhocunderstood03:04
fsmithredmaybe september if we get our act together and write all the docs.03:04
fsmithredit's too hot to think right now03:04
adhochot?!?03:05
fsmithrednorthern hemi03:05
* adhoc was scraping ice of the windscreen last week and now rolling mists and freezing rain this week ...03:06
fsmithredI would gladly trade you some steam for some ice03:07
* adhoc puts some in an envelope, marks "express"03:08
fsmithredthanks03:08
XenguyHeat wave up here too03:32
XenguyBrain gradually gets fried03:33
djph'gradually' ?03:33
Xenguyheh03:33
Xenguydepends03:33
djph:)03:33
XenguyIt puts you in a heat trance, kind of03:33
XenguyYou now feel the weight of said heat03:34
onefangLast month Australia had a heat wave, in the middle of winter.  lol03:34
djphyeah, I know03:34
XenguyThe root problem is humidity, in this case03:34
djphI've lived with no AC for a long time03:34
Xenguyonefang, wow03:34
Xenguydjph, ^503:35
Xenguydjph, me too, we are fewer and fewer03:35
djphnow that the new place has it ... ehhh, it's nice, but I kinda miss having to work to keep cool03:35
onefangBuuuuut, off topic.03:35
djphyep03:35
XenguyIt's like Dialup => Broadband to me03:35
Xenguyonefang, oh dang03:35
djphoops03:36
Xenguy#devuan-offtopic03:36
Xenguylogged in already03:36
adhocok, so what are the likely gotchas when dist-upgrading from beowulf to chimera ?03:53
XenguyThat's kind of my acid test for distros:  can they handle an online upgrade gracefully?04:01
fsmithredadhoc, I got a conflict with libc6-dev and had to remove build-essential to get the upgrade to proceed.04:02
fsmithredalso had to remove libgcc104:02
XenguyStrange04:02
adhochmm04:03
XenguyManaging a distro is hard, amiwrong?04:04
fsmithredtry two04:04
Xenguyhah04:04
XenguyThat's right04:04
XenguyIt helps if you love (Devuan) Linux04:05
fsmithredI also had to install a couple of things as <package>=<version>04:05
Xenguyuh boy, that's beyond me04:05
fsmithredadhoc, you might not have some of the packages that gave me trouble.04:07
fsmithredand I did it a month ago. Some things may have changed.04:07
adhocI don';t think I have pinned any package versions like that on this machine04:07
adhocfsmithred: good to know =)04:08
fsmithredI should try upgrading a default beowulf install04:08
fsmithrednow that I think of it, beowulf to chimaera was easier than ascii to beowul04:08
fsmithredf04:08
adhocthat is good to hear, I have moved a bunch of my machines from ascii to beowulf04:09
adhocall headless machines inthe back room =)04:09
fsmithredfor ascii to beowulf, I know there were a few times when I had to use apt, aptitude and apt-get04:09
adhocthere were a few issues with custom perl packages I'd messed with04:09
fsmithredupgrade to chimaera was just apt04:10
Xenguyapt-get, please04:10
Xenguy8 -D04:11
adhoc is apt the normal thing now ?04:11
XenguyGet off of my lawn04:11
* adhoc generally only uses apt-get04:11
Xenguyadhoc, Seems like it's trending that way04:11
adhocapt-cache04:11
fsmithredapt is supposed to be the preferred command now04:11
* adhoc blames ubuntu =P04:11
XenguyI like apt-get, traditional toolchain, yada yada04:11
fsmithredbut it's not finished04:11
Xenguyfsmithred, I disagree04:11
XenguyWho says "suppose"04:11
fsmithredpipe the output to grep and you get a warning that it might change.04:12
adhocfsmithred: i'll build some beowulf machines over the weekend and then upgrade to see what is likely to be affected04:12
Xenguyhuh04:12
fsmithredXenguy, I think debian says it somewhere04:12
fsmithredI don't recall where I saw it. It was long ago.04:13
Xenguyfsmithred, Yeah, but we agree that there are some design decisions of Debian that we don't like so much04:13
fsmithredlol04:13
Xenguyoops04:13
adhocXenguy: that is why we are here, right ?04:14
XenguyI think it is04:14
XenguyWe saw systemd, and went:  hrmmmmmmmmmmmmmm04:14
fsmithredg'night folks04:15
adhocXenguy: that is the polite version, yes.04:15
adhocfsmithred: laters04:15
Xenguyo/04:15
fsmithredand no "d" talk in here04:15
Xenguyadhoc, yes04:15
Xenguyhah04:16
xrogaananybody using chimaera, elogind and xfce4?19:26
xrogaanApparently, xflock4's behavior is bugged on my end.19:26
hagbardxflock4 is merely a wrapper script that doesn't do anything by itself.19:28
xrogaanfrom xfce4-session amd64 4.16.0-1+devuan119:28
xrogaanwell, it forks itself to death19:29
xrogaanah, found the issue19:30
xrogaan$ xfconf-query -c xfce4-session -p /general/LockCommand19:30
xrogaanxflock419:30
xrogaanthe script call itself19:30
hagbardtry the locker of lightdm, if you have lightdm anyways: light-locker-command --lock19:30
xrogaanhow do we edit those values anyway?19:31
xrogaanAnother gnome bullshit, to do away with config files19:31
hagbardits not the config bulshit from gnome, but xfce4 own19:32
xrogaansame spirit.19:32
brocashelmi haven't used xflock4 in years because it's always caused problems. a better alternative would be something like i3lock19:32
hagbardyou can find it in the settings editor in xfce4-session19:32
xrogaanwhat editor?19:33
hagbardAgain, xflock is a mere tiny shell script, that starts whatever locker you have configured19:33
hagbardxfce4-settings-manager19:34
xrogaanThere is nothing in there to change that value. I need to access xfconf19:34
hagbardoops xfce4-settings-editor its is19:35
hagbard*it is19:35
hagbardChannel xfce4-session19:35
hagbardProperty LockCommand19:35
xrogaanfork bomb again19:36
hagbardWhat have you set LockCommand to?19:38
xrogaanI told it already, it's xflock419:38
xrogaanreset it to default19:38
xrogaanwhich is empty19:38
hagbardSet it to the locker you want to use19:39
xrogaanor empty19:39
hagbardSo you don't want to lock at all?19:40
xrogaanit'll use the defaults19:40
xrogaanif the cmd is empty, it defaults to xfce4-screensaver-command --lock19:40
hagbardyes19:40
xrogaanbut the lock command was set to itself.19:41
xrogaanproblem solved!19:41
hagbardgood19:41
Walexprobably the only reliable screenlocker is 'xscreensaver', I would not trust others.20:15
jonadabI know that the person who wrote xscreensaver, has repeatedly waxed sarcastic about some of the other ones, notably the Gnome one.20:19
jonadabAnd security issues were a key aspect of his criticism.20:19
onefangIf only xscreensaver would actually turn off my monitors like I told it to.  Only seems to work the first time after reboot.20:39
xrogaanAnyhow, opened an issue: https://gitlab.xfce.org/xfce/xfce4-session/-/issues/12020:41
masononefang: That fails for me too.20:42
masononefang: Rather, it fails erratically.20:42
masonIf I call xscreensaver-command -activate, I'll never see DPMS sleep. If it times out on its own, it starts DPMS sleep as configured.20:43
xrogaanyou can troubleshoot by setting `xscreensaver.verbose:true` and `xscreensaver.logFile:/path/to/file.log` in your $HOME/.Xresources file20:45
xrogaanthen consult the log to see what's happening.20:45
masonxrogaan: Oh, didn't know about that. Will do.21:27
xrogaanor run xscreensaver -verbose21:30
xrogaanand -log filename21:31
masonAlready going via resources. I'm fond of using X resources for config.21:31
masonxrogaan: Fascinating stuff: https://bpa.st/RCMQ22:17
masonxrogaan: I think the even at 16:08 was where the DPMS was supposed to kick in but didn't, so it respawned the process doing the visuals (deco)22:18
xrogaanI don't know.22:29
masonNeither do I. I've collected the whole log and shipped it off to jwz, and we'll see if *he* knows.22:34
xrogaanokay, that website is cool: https://www.jwz.org/.22:57

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