/srv/irclogs.ubuntu.com/2018/03/20/#ubuntu-server.txt

jairHello all02:10
jairit's me again with that memory leak issue in Ubuntu 17.10 but now removed it and installed the latest update of ubuntu 16.04, however, the memory leak is still present02:10
jairIs there any command I can try other than reboot to make the OS to release the memory?02:12
sarnoldjair: what problem are you *really* seeing?02:13
jairsee paste > https://ibb.co/cfCOpc02:14
jairsarnold: the server start consuming memory and after 22 hours it keeps consuming it without releaseing it02:14
jairuntil it crashes02:14
jairHere is the ouput of the console I took after the crash02:15
jairsee this other paste > https://ibb.co/gw5hhx02:15
jairthe first paste is the current status, the memory does not goes down, it keeps going until it crashes02:16
jairthe only thing running on this server is BIRD 1.6.3 we are using the server as a BGP router02:16
sarnoldwow, OOM killing things that take one megabyte of ram ..02:16
jairhahaha yep02:17
sarnoldjair: what else does this system do?02:18
jairsarnold: nothing else really, we have LXD installed and snapd but I believe those were there just because installed and thought about the usage of LXCs but with this issue I doubt it02:19
jairsarnold: there is nothing we can do to force this system to release memory?02:19
jairit is going to crash in a few minutes from now :(02:20
sarnoldjair: if you're desparate maybe kill or purge lxd / snapd02:21
jairsarnold: https://paste.ubuntu.com/p/YGw6njmzrf/02:21
sarnoldjair: what's slabtop say?02:21
sarnoldjair: you might be able to buy some time by adding in a swapfile02:21
jairinteresting02:21
sarnoldjair: do you have any apparmor profiles in complain mode?02:22
sarnoldjair: what's dmesg output look like?02:22
jairhere > https://paste.ubuntu.com/p/XTHg28hRky/02:22
jairapparmor not that I know of, we are using for sure ip tables02:23
jairand to be honest I don't think lxd or snapd are the issues02:23
jairsarnold: let me paste the dmesg02:23
sarnoldjair: sync; echo 3 > /proc/sys/vm/drop_caches   .. that ough to take a big bite out the dentry slab02:24
sarnoldman that's only going to free up something like 100 megs, I think. Hrm.02:25
jairsarnold: here dmesg > https://paste.ubuntu.com/p/bVFBVhNcWp/02:25
sarnoldohho conntrack02:25
sarnoldI have a very vague memory of seeing systems fall over due to too many conntrack entries02:26
jairsarnold: I ran the command > sync; echo 3 > /proc/sys/vm/drop_caches but didn't seem to do much02:27
sarnoldjair: you could check the results with slabtop again, but .. it probably only bought you a hundred megs or so :(02:27
jairsarnold: OK02:28
jairsarnold: this is really bad :(02:33
jairI honestly being keeping myself away from pure ubuntu releases because of this type of issues02:33
jairI stick to debian for servers and so far other than weird stuff or delays with systemd when restarting the services or the server buyt no something like this with memory02:34
sarnoldjair: how about a ps auxw  pastebin?02:35
jairok checking02:35
jairsarnold: sorry for the delay > https://paste.ubuntu.com/p/bF7x7pD7mk/02:38
sarnoldwow, there's so little there. hrm.02:41
jairright, this is really worrying02:44
jairI am not feeling confortable to use ubuntu as a server... I will still prefer Debian02:44
jairI believe02:44
jairbut I will need to find the drivers for the RAID controller02:44
jairsarnold: https://paste.ubuntu.com/p/56GXBtbF9r/02:46
jairI need to make sure debian supports that raid controller02:47
sarnoldjair: seems likely, megaraid_sas appears to have been around foreever https://cateee.net/lkddb/web-lkddb/MEGARAID_SAS.html02:49
sarnoldjair: before you tear this machine down, can you run 'ubuntu-bug linux'? I hope this won't be the allocation that pushes the machine beyond it's limits, but it would be nice to capture this02:50
sarnoldthe only real advice I've got is to add a swap file or swap partition so the kernel has some place to shove data it doesn't need. But with 16 gigs ram and the machine doing so little, that feels like it wouldn't really help, just buy some more time.02:51
jairsarnold:02:52
jairsure02:52
jairsarnold: done > https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/175703702:59
ubottuLaunchpad bug 1757037 in linux-hwe (Ubuntu) "Ubuntu crashes after running out of memory 16G total" [Undecided,New]02:59
sarnoldjair: *thanks* :D can you paste in the slabtop, ps auxw, and meminfo files?03:02
jairsure03:02
sarnoldjair: I've got to run.. good luck :)03:03
jairsarnold: soiunds good, thank you for the help03:03
Wolf_YHi, is anyone online ?09:50
Wolf_Yi have some noob-ish questions to ask09:50
MitchTOdd_Bloke: I see it! 18.04.20180318012:01
MitchTbuilding now12:03
MitchTerr deploying12:03
=== JanC_ is now known as JanC
MitchTOdd_Bloke: it works again. Thanks so much.12:37
MitchTcommented on the bug report.12:40
aoamhello guys, doesnt anybody of you know, how to automate command "lxd init", it setup networks etc12:49
Odd_BlokeMitchT: \o/12:54
Odd_Blokeaoam: `lxd init --auto`?12:54
aoamOdd_Bloke: i has it this way as you say in my script, lxdbr0 does not have ipv4 so containers have no internet12:56
Odd_Blokeaoam: Have you looked at `lxd --help`?  There are options to modify network setup.13:00
aoamperfect, i’ll try, thanks13:03
cpaelzerrbasak: your mongo MP has no diff on the LP view13:10
cpaelzerrbasak: I don't care and will check the changes one by one, but wanted to let you know13:10
cpaelzerrbasak: also is that in your experimental ppa again?13:11
aoamjust for record, if anyone looking for solution, this could be right one: https://github.com/lxc/lxd/blob/master/doc/preseed.md13:12
cpaelzerrbasak: I see a (different) 1:3.4.7-1ubuntu3~ppa2 in there13:13
rbasakcpaelzer: yeah ppa:racb/experimental13:17
rbasakcpaelzer: it is identical to the MP except changelog wording and versions, but feel free to verify that13:17
cpaelzerrbasak: I did already13:17
cpaelzerfine13:18
cpaelzerrbasak: while I test you can explain the deps you chose for breaks/replaces - see MP comment13:18
rbasakcpaelzer: thanks for reviewing! Replied.13:20
cpaelzerrbasak: mongodb-server (<= 1:3.4.7-1ubuntu3~)13:26
cpaelzerrbasak: that should be the correct thing, don#t you tihnk13:26
rbasakcpaelzer: no, because ubuntu3~ would be derived from ubuntu3, which is after the change.13:26
cpaelzerrbasak: no, because "3~..." is everything sorted before "3"13:27
rbasakYes, 3~ would sort before 313:27
cpaelzerso if one had an experimental 3~changeindocs13:27
rbasakBut we want the breaks/replaces to match against neither 3 nor 3~13:27
rbasakWe do want it to match against 2 and 2~13:27
cpaelzerwe want it to match 3~ for my example above13:28
cpaelzerI agree you do not want it to match against 3, but it would not with my suggestion above13:28
rbasakWhy would you have a 3~changeindocs?13:28
cpaelzerwas an example for any change that might exist having a 3 but not being yours13:28
rbasakAny published (not development) version of 3~ that might exist would be derived from 3.13:29
rbasakThe 3 that I will publish13:29
rbasakAnd in this case, it shouldn't match against the breaks/replaces13:29
rbasakSince both 3 and the derived-from-3 3~ will be after the rearrangement.13:30
cpaelzerrbasak: no it won't be derived of 3, ~ versions are created as pre-next13:30
maddawg2so i'm FINALLY sitting down to learn about all this hype of containers lol13:30
cpaelzerif you have 2 today, and one tests something he will create 3~ppa1 or such13:30
cpaelzerand eventually this or some other change will become the real "3"13:30
rbasakcpaelzer: the use of the ~ in published versions is for backports etc.13:30
cpaelzerrbasak: so 3~ is derived from something before 313:30
rbasakA backport derived from 2 will be 2~something13:30
rbasakA backport derived from 3 will be 3~something13:31
maddawg2i'm thinking of experimenting with it on a virtual machine, but I'm curious if anyone has any recommendations on where i should start... should i start with docker?13:31
maddawg2or this LXD thing in Ubuntu13:31
cpaelzerrbasak: yeah I didn't talk about backports in this case, but only usual devel versions13:31
rbasakcpaelzer: the fact that 3~ orders before 3 is separate.13:31
cpaelzermaddawg2: start here https://stgraber.org/2016/03/11/lxd-2-0-blog-post-series-012/13:31
rbasakcpaelzer: once 3 is published, nobody will make a 3~ devel version anyway. In any case, we don't usually consider those when choosing version strings.13:32
cpaelzerrbasak: hrm, I hate letting go habits13:33
cpaelzerrbasak: at least I can blame you for setting me up that way to begin with13:33
cpaelzer:-)13:33
rbasakSorry :)13:33
maddawg2thanks cpaelzer... i'm also interested in learning chef and/or puppet type stuff as well... would LXD still be a good option for that13:33
rbasakThe only reason ~ ends up in these things in the archive is to accomodate existing or future backports.13:33
maddawg2or should i use something like docker13:33
rbasak(published, official backports)13:33
rbasakI suppose it also does help with local unpublished backports.13:34
rbasakUsing 2 here will break none of these cases, since backports derive from a published version and append ~13:34
cpaelzermaddawg2: you are getting to the land of opinions here, for me docker sucks and LXD gives me all that I ever need13:34
cpaelzermaddawg2: but for others it might be just vice versa13:34
rbasakmaddawg2: docker and lxd have very different use cases.13:34
cpaelzerexactly13:34
cpaelzermaddawg2: never the less I think to experiment with chef and similar a system level container (LXD) is more appropriate13:34
rbasakmaddawg2: lxd is easier conceptually. lxd gives you nested standard distribution installations.13:35
rbasakmaddawg2: an Ubuntu inside an Ubuntu.13:35
rbasakmaddawg2: Docker is a much larger paradigm shift.13:35
rbasakmaddawg2: there's really very little to learn with lxd if you consider it that way.13:35
rbasakmaddawg2: most things are exactly the same. You only need to know how to launch instances. And understand that the guest is mostly isolated by default, so if you don't have permission on the host, you won't have permission in the guest, etc.13:36
cpaelzermaddawg2: if you are up for a read start with any of http://lmgtfy.com/?q=system+vs+application+level+container13:36
cpaelzerrbasak: review complete, I've added a testing suggestion13:37
rbasakThanks!13:37
maddawg2cpaelzer, i'm looking to get make a career shift from IT management and system engineering over into a devops type position, but i'm not sure which product is most used in the enterprise that would be most beneficial to learn13:42
aoamin this command `lxc image copy some_remote:some_container local: --alias local_copy --auto-update` im wondering if auto update really updates my local image13:46
sdezielmaddawg2: try both, lxd can run docker in a container (https://stgraber.org/2016/04/13/lxd-2-0-docker-in-lxd-712/) :)13:46
rbasakcpaelzer: is that pastebin test in a dep8 test anywhere?13:50
rbasakSounds like it should be in pymongo?13:50
cpaelzerrbasak: it is in the qa tests that we use before bigger uploads but not fit dep814:09
cpaelzerrbasak: git+ssh://git.launchpad.net/qa-regression-testing14:09
adachmm the newest kernel I get when i dis-upgrade my xenial server installation is 4.4.0-89-generic14:15
adaclocally I have also 16.04 and there I have 4.13.0-37-generic14:16
patdk-lapyesand?14:17
patdk-lapand?14:17
patdk-lapthat sounds right14:17
patdk-lap!hwe14:17
ubottuThe Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack14:17
adacpatdk-lap, ok do I understand it correctly: if i install LTS point release (currently 16.04.4) I do immediately get HWE but if I dist-upgrade from a lower point release then I have to add it manually with:14:23
adac sudo apt-get install --install-recommends linux-generic-hwe-16.0414:23
patdk-lapI have no idea how it works on upgrades14:27
adacpatdk-lap, when I provisioned a server from my hoster with ubunut 16.04 minimal I got the 4.13.0-37-generic kernel as well14:29
adacwith my "old" virtual hosts I constantly upgraded I only get  4.4.0-89-generic14:29
dpb1adac: 4.13 is the "HWE" kernel14:29
dpb1https://wiki.ubuntu.com/Kernel/LTSEnablementStack14:30
dpb1adac: new installs (depending on cloud, etc) often will have that enabled by default14:30
dpb1but for upgrades, you have to opt-in to it14:31
adacdpb1, yes looks like that. Ok i will install it on all my machine14:31
adacansible comes into the game :D14:31
adacthanks for your help guys!14:31
maddawg2strange... i just installed ubuntu server 16.04 and ran a sudo apt-get update but it's failing....14:33
maddawg2it thinks the stuff is on a CD-Rom :-\14:33
=== dgadomski_ is now known as dgadomski
maddawg2lesson here is not to use vmware's quick install14:38
maddawg2lol14:38
maddawg2that was stupid14:38
MitchTcpaelzer: i think docker is .. overhyped - it probably has its place but in my line of work, setting up and maintaining our magento store, for something that acts more like a service and less like an "app" that can spool up and shut down... well idk.  Maybe i'm too old.14:46
adacdpb1, patdk-lap the kernel version i got from my hoster was: 4.13.0-36-generic14:47
adacthere was no hwe mentioned there14:48
MitchTcouple that with the 'always online' windows service that couples the site to our crm / inventory system and you have yourself a need for a regular old server.14:48
dpb1adac: do `dpkg -l |grep hwe`, does it show anything?15:04
adacdpb1, i downgraded there to a 4.4.x kernel since I had a problem with this kernel.15:09
adacdpkg -l |grep hwe15:09
adacii  linux-headers-generic-hwe-16.04     4.13.0.36.55                             amd64        Generic Linux kernel headers15:09
adacso i guess i forgot to remove the headers and it was indeed a hwe kernel then15:09
adacor?15:09
adacdpb1, this was froma  grep when I had the 4.13.x still installed: https://gist.github.com/anonymous/1cae9e709dd448164e5f37b00acaac9915:11
adacok generic is also shown for my local installation with this grep/awk15:13
dpb1adac: basically, there are two separate "tracks".  normal and HWE, but you could certainly have both kernels installed on your system at the same time.15:46
adacdpb1, but I need always have this hwe package from your link installed to have kernel bigger then 4.4.x right?15:51
dpb1basically, this package: linux-generic-hwe-16.04 is a meta package that will get you on the hwe track.  It will then get updated to point to newer and newer 4.13 kernels as they are released.15:53
ahasenackhm, in my package I'm renaming a couple of files in /etc/update-motd.d from 99-<something> to 80-<something>17:39
ahasenackturns out dpkg doesn't take care of removing 99-<something>17:39
ahasenackso I end up with both versions after an upgrade17:40
ahasenackhow is this solved? I suspect some maintainer script in pre/post17:40
naccahasenack: those are conffiles?17:41
naccahasenack: dpkg-maintscript-helper mv_conffie17:41
nacc*mv_conffile17:41
ahasenacknacc: they are conf files because they live in /etc. Other than that, the user has no incentive to touch them17:42
naccahasenack: sure, but i meant form the package's perspective17:42
ahasenackjust because they live in /etc17:42
naccahasenack: no, that'snot the definition17:43
naccone sec17:43
nacchttps://www.debian.org/doc/manuals/maint-guide/dother.en.html#conffiles17:43
nacce.g.17:43
naccoh maybe it's all files under /etc nm17:43
naccso then you can use the above helper to move it17:44
nacc*should* use17:44
ahasenacklet me check its docs17:44
CarCompoops. forgot what the /quit command oes17:50
CarCompdoes17:50
ahasenacknacc: yay, it worked18:08
ahasenackwith no drama :)18:08
ahasenack$ cat ubuntu-advantage-script/debian/ubuntu-advantage-tools.maintscript18:09
ahasenackmv_conffile /etc/update-motd.d/99-livepatch /etc/update-motd.d/80-livepatch 15~18:09
ahasenackmv_conffile /etc/update-motd.d/99-esm /etc/update-motd.d/80-esm 15~18:09
naccahasenack: nice18:41
naccahasenack: yeah that's the best way to do it, as it is supposed to handle the corner cases18:41
ahasenackgood18:42
=== whaley is now known as hugh_jim_bissell
MACscrthis seems to be the way apache2.4 and php-fpm are configured by default when installing using apt. Is this really the right way to be enabling php-fpm for php files? http://paste.debian.net/1015758/20:31
naccteward: jinx (re: ubuntu-devel-discuss)20:32
sarnoldMACscr: if you're using Ondrej's packages it might be worth asking him, or if he's got a community around his packages, then someone from that specifically20:33
MACscrsarnold ugh, ok. I figured he was just providing updated versions, not really config changes20:35
tomreynMACscr: FilesMatch evaluates regular expressions,t his seems more complicated than necessary. i'd assume AddType would be a better way.20:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!