[00:01] rebooting for testing a command in the TTY environment . [05:02] good morning to all [05:03] hi lotus [05:03] hey oerheks [05:03] where is your O [05:04] oh, didn' t bother to correct it [05:04] like it better [05:05] with the big O ? [05:06] Oerheks [06:04] hey EriC^^ [06:04] hey lotuspsychje [06:05] all good there EriC^^ ? [06:05] yup you? [06:06] yeah fine here [06:06] coffee & chill before work [06:07] !info firefox xenial [06:07] firefox (source: firefox): Safe and easy web browser from Mozilla. In component main, is optional. Version 57.0+build4-0ubuntu0.16.04.5 (xenial), package size 44608 kB, installed size 170740 kB [06:07] new logo [06:18] yeah firefox quantum [06:19] seems ok yeah? [06:19] yeah im testing it [06:25] love the loading tabs [06:51] Howdy Everyone [06:51] Morning. [06:51] Hey there jink [06:52] Looks like we got firefox 57.0 [06:53] hi jink [06:53] hi sirru5h [06:54] Hey there lotuspsychje how are you doing? [06:55] http://www.omgubuntu.co.uk/2017/11/firefox-57-quantum-better-faster-stronger [06:55] great here sirru5h [06:56] I just hope it is better than 56 man I had a ton of trouble with that one [07:01] At one point i actually removed and reinstalled firefox it was so buggy, weird because it was fine on my ubuntu 17.04 machine [07:02] good morning, all [07:02] Hey there ducasse [07:03] \o sirru5h [07:07] Good morning [07:10] hi lordievader [07:10] how are you guys? [07:10] Hey ducasse (IRC) [07:10] Doing good here, how are you? [07:12] Met je rare nick-completion. [07:12] * lordievader blames weechat plugin [07:12] doing well, still waking up :) [07:12] lordievader: :P [07:12] lordievader: Get a real IRC client, like irssi. ^__^ [07:13] That doesn't support Matrix. [07:40] lordievader: wtf is Matrix? [07:40] No need to swear... https://www.matrix.org/ [07:46] i set up a riot account, but haven't looked at it much - maybe i should... [07:46] hey lordievader & ducasse [07:47] good morning lotuspsychje [07:47] all well? [07:47] yeah, you? [07:47] ducasse: new phone tweaked already? [07:48] still new things to play with :) [07:50] hmmz every time there's a new firefox it scrambles up my speed dial addon grr [07:53] and i dont like top websites, as less visited websites are also important [07:59] oh well, yet another speed dial addon for a change [07:59] until next version doesnt support it [08:03] lets hope they don't change the addon stuff again in a while now [08:05] yeah [08:12] bbl guys work ; ) [08:12] have a nice day [08:21] !ping [08:21] pong! [08:23] Hey lotuspsychje (IRC) [08:23] How are you doing? [08:24] Ouch . forum suddenly went down - hard ! [08:32] .. back up ,, was not even able to ping :( [08:40] * Bashing-om done - eyes too heavy to maintain . good nite \o [12:37] Hiyas all [15:21] hi [15:39] !info firefox [15:39] firefox (source: firefox): Safe and easy web browser from Mozilla. In component main, is optional. Version 57.0+build4-0ubuntu0.17.10.5 (artful), package size 45043 kB, installed size 171518 kB [15:39] ayyyyy got that update [16:07] I guess I should get rid of that firefox-new ppa and revert to the repo version... [16:31] trying out the new kde browser falkon ...reminds me of konqueror by the method used to import bookmarks .... impossible to figure out how to add them to the bookmarks toolbar ...so far it's got me beat..managed to import them, but adding them seems impossible [16:35] the browser is nice tho, it doesn't buffer on some difficult sites due to my slow dsl connection [16:36] buffer video that is === Guest7945 is now known as Spydar007 [19:41] "there is no apt" [19:41] -_- [19:56] o0 === TJ_Remix is now known as TJ- [20:54] nacc: can I sound you out on a theory regarding the sudo/nss issue from earlier? [20:54] TJ-: sure [20:58] I think there may be a bug in the libnss-mdns .postinst script but I want a 2nd opinion. read "man nsswitch.conf", the section on the STATUS and ACTION, in particular for [NOTFOUND=return] ... do you agree "return" suggests no further lookups are done for that database (hosts in our case) e.g. if we have "hosts: mdns4_minimal [NOTFOUND=return] dns" it'll never reach 'dns' if 'hostname' was not found [20:58] by mdns4_minimal? [20:59] Because in /var/lib/dpkg/info/libnss-mdns:amd64.postinst it inserts that into the existing nsswitch.conf - I'd expect it to be "[NOTFOUND=continue]" [21:00] which explains why jmft2 had 'hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname' [21:00] :) [21:03] TJ-: makes sense, readinng still [21:03] that doesn't explain why 'files' didn't get it from /etc/hosts (but I assume the default is read as "files [success=continue] or "files [success=merge]" [21:03] TJ-: also, [NOTFOUND=continue] appears to b the default [21:04] TJ-: so i'm not sure why the =return is there at all [21:04] I'm trying to determine what the default status=action settings are; it's explained in the man page [21:04] TJ-: yep, that's what i'm reading now [21:04] looks to be [21:04] success=return [21:04] notfound=continue [21:04] nacc: right, you'd expect it'd be [FOUND=return] [21:04] unavail=continue [21:04] sorry, [success=return] [21:04] tryagain=continue [21:04] yeah [21:05] borked=callTJ [21:05] heh [21:05] :> [21:05] so, in principle, jmft2's entry with "files" first should have read /etc/hosts, found the entry that matched /etc/hostname, and done [success=return] [21:05] but it seems like it may have done [success=continue] and then failed on a later look-up [21:06] if it had reached 'dns' and that called systemd-resolve, then the hostname would have resolved correctly even offline - according to my tests in an 17.10 container when doing "ip link set down dev eth0" [21:08] TJ-: were youa ble to determine for sure that the hostname it was trying to resolve was the one in /etc/hosts? [21:08] TJ-: if that mismatched, for some reason, i could see it falling over to dns [21:09] TJ-: unfort. i think to get any debugging, yhou have to get all the LIBC debugging [21:09] so... seems like 3 possibilities: 1) nsswitch.conf is being ignored/is corrupt 2) libnss-mdns .postinst script is inserting the wrong [STATUS=action] or 3) there's a bug in the internal glibc nss implementation in 17.10 [21:09] TJ-: was this a regression for them on upgrade? [21:09] fresh install so no idea [21:09] ok [21:10] the user said they're going to install 16.04 so no ability to further debug it there [21:10] seems to me there should be a unit-test for this someplace for offline lookups of local hostname [21:13] grrr! would you believe, for an NSS module NSS_STATUS_NOTFOUND can have two meanings, depending on whether errorno is set to ENOENT or SUCCESS ! [21:13] reading https://www.gnu.org/software/libc/manual/html_node/NSS-Modules-Interface.html#NSS-Modules-Interface [21:14] TJ-: lol [21:16] aha. default status=action options: https://www.gnu.org/software/libc/manual/html_node/Actions-in-the-NSS-configuration.html#Actions-in-the-NSS-configuration [21:16] default is "notfound=continue" [21:17] so that puts suspicion on libnss-mdns .postinst [21:19] if the nsswitch.conf cannot be read for whatever reason the default is: "For the hosts and networks databases the default value is dns [!UNAVAIL=return] files" [21:19] which could be what we were seeing - DNS *is* available so it's answer is definitive and 'files' is never used [21:19] yeah, so *possibly* you are getting a parse error? [21:20] and that is coming across as "nsswithc.conf cannnot be read" ? [21:20] possibly... there were /r/n line endings in /etc/hosts, but the user said /etc/nsswitch.conf didn't have them [21:20] hrm [21:20] nacc: could be... it's only read once on start-up anyhow [21:21] oh wow, ouch! just had an apport dialog telling me that ycmd thing has crashed! [21:21] weird since I've not got any vim sessions going [21:23] i can't think of a way to prove nsswitch.conf get's read. it'll be too early to set an inotify watch on it, unless it gets read once per process rather than once per boot [21:25] oh, it's fine, it's once per process. "inotifywait -m /etc/nsswitch.conf" works [21:28] TJ-: yeah, i think something inthe manpage says a given rpocess will only read it once [21:28] so it wo't see updates at runtime [21:29] "sudo -i" and it reads twice; I assume once for sudo and once for $SHELL [21:29] it does mean we can experiment by altering the file and re-running commands, rather than needing to reboot [21:29] yeah [21:29] I've set up "inotifywait -m --timefmt "%H:%M:%S" --format "%T %e %f" /etc/nsswitch.conf" so I get timestamps [21:30] it's being read but no indication if there's a parse error; not sure about how to detect that [21:30] I suppose the only way is to write my own debug module of libnss and include it so it logs queries [21:34] !info libnss-wrapper [21:34] libnss-wrapper (source: nss-wrapper): NSS wrapper library. In component universe, is optional. Version 1.1.3-1 (artful), package size 26 kB, installed size 86 kB [21:35] aha [21:35] fun :) [21:36] fab: "LD_PRELOAD=libnss_wrapper.so NSS_WRAPPER_HOSTS=/path/to/host ./myapplication" [21:38] and it also supports NSS_WRAPPER_DEBUGLEVEL=ERROR|WARNING|DEBUG|TRACE [21:38] ah that's great [21:39] so somoene thought of it before :) [21:39] it seems so; now I need to find a way to reproduce the original failure with sudo so I can use it! [21:40] yeah, i was wondering if you had a testcase already or not [21:40] first test I guess is to change mdns4_minimal to [NOTFOUND=continue] [21:41] I doubt it'll happen in a container so I'm trying a VM [21:41] yeah [21:41] and yeah, i think you'd need as close to a real machine env as possible [21:41] I'll give that a shot in the morning [21:42] apparently it was a fresh install of the desktop so it should be possible to recreate the same environment. The only thing I didn't find out was how the network was being configured. [21:48] well B**** me!!! Bug #1295229 [21:48] bug 1295229 in nss-mdns (Ubuntu) "With 'hosts: mdns4' in nsswitch.conf, getaddrinfo() returns -5 (EAI_NODATA) when network interface is down" [Undecided,New] https://launchpad.net/bugs/1295229 [21:49] Bind9? ;) [21:50] TJ-: interesting that it was filed so long ago [21:50] and no traction [21:50] i wonder why it's not seen more commonly [21:51] I wonder if that's the bug that prompted [NOTFOUND=return] ... but the meaning of that was misunderstood and the maintainer meant to have it do [NOTFOUND=continue] [21:52] oh, no, they show it in their description. [21:52] nice; someones written me a testcase :) [21:53] I'll test against 14.04 and 16.04 now I've seen that [21:54] Tackle it tomorrow with some positive pointers