/srv/irclogs.ubuntu.com/2019/02/13/#ubuntu-server.txt

tewardfinally glad to see my Landscape Client memory consumption leak bug finally being addressed heh.  cc sarnold who I know has heard my complaints since I filed it in early 2017 about Landscape Client eating up *all* my systems' RAM to obscene levels02:34
sarnoldteward: oh yeah? :) nice02:37
tewardLP bug #168588502:38
ubottuLaunchpad bug 1685885 in landscape-client (Ubuntu Cosmic) "Extreme RAM and SWAP usage" [High,In progress] https://launchpad.net/bugs/168588502:38
tewardwe can blame twisted logging :P02:38
tewardbiggest impact is on Xenial P02:38
tewardbut it still exists to a lesser degree elsewhere.  Their fix seems sane, dump the unused logs to a null handler and just discard, rather than 'storing' in memory in a buffer that won't be used.02:39
teward'twas a nasty that technically could have been classified as an unintended DoS vector without any need to act because it'd just seize up the entire system's RAM and swap resources02:40
tewardi didn't push for it to be clarified as such, but :P02:40
tewardclassified*02:40
sarnold"you end up with a log buffer totaling in the hundreds of megabytes, or even gigabytes"02:40
sarnoldowwwwwww02:41
tewardyep.  and that just ate RAM and swap (depending on the degree of swappiness set in the system)02:42
sarnold"Author: exarkun" .. there's a name I haven't heard in a while02:42
tewardon Xenial from my initial report it ate 50% of RAM and 40%+ of 1GB of SWAP on a 1GB RAM machine :P02:42
tewardheh02:43
sarnoldamazing, it's a single-line bugfix.. I wonder how many people discarded landscape due to the memory use over the years due to it :(02:44
tewardsarnold: judging by the number of people who were asking for the bug to be fixed?02:44
tewarda substantial number.02:44
tewardI know I abandoned it even though I had more than enough machine counts to manage *all* the systems I have, solely because of the resource usage being obscene and DoSing my servers simply by eating RAM and swap02:45
tewardsarnold: the 'fix' upstream which limited the resource usage *was* made over 2 years ago, but *after* twisted had been in Ubuntu Xenial, it makes sense from this that the leak was unintentional but has a pretty easy fix of just initializing logging and discarding everything02:46
tewardso I'm strongly hoping that SRU passes through fairly quick :P02:48
tewardat least the fix is in disco currently xD02:48
kstenerudI'm merging a package that has some lintian errors due to debhelper. It has Build-Depends on debhelper-compat, but lintian complains that it doesn't have a Build-Depends on debhelper.11:23
kstenerudShould I be adding debhelper as well?11:23
ahasenackkstenerud: I'd check the history of debhelper-compat, see if it's just an old package, or metapackage, and if just debhelper replaces it11:53
=== lotuspsychje_ is now known as lotuspsychje
ahasenackrbasak: to get git-ubuntu to work with pmdk again, the package should be synced first, and then our delta re-applied? Would that be one way?12:30
rbasakahasenack: you could do that, but there's no need to sync first. Just branch your delta re-application from pkg/debian/sid.12:31
rbasakThen when you're ready (MP approved etc), upload tag that, push and upload.12:31
ahasenackah, I see12:32
rbasakgit-ubuntu will accept any upload tag you give it provided that the corresponding tree matches your upload.12:32
ahasenackok, thanks12:32
oussemosHi, I'm using an old Ubuntu AMI for EC2 (ami-02790d1ebf3b5181d) built on 2018-11-24, I found this morning that Docker is already the latest version16:15
oussemosHow do you guys managing this ?16:16
=== TheHonorableKitt is now known as THKitten
tewardoussemos: 'already the latest version' according to what?16:19
tewardupstream or apt?16:19
oussemosteward: yes upstream (Docker 18.09.2)16:21
oussemosThe image is supposed to be from 2018-11-2416:21
tewardoussemos: is Docker installed via snap?16:27
teward`snap list` and see if Docker is in thelist16:27
tewardoussemos: if Docker is installed via snap, then `snapd` will automatically update the snap when newer versions are available16:28
tewardthis is just how Snaps work :P16:28
tewardnothing to do with the AMI image itself16:28
sdezieldocker's snap is dated from October which means it contains the recently discovered vuln16:29
tewardsdeziel: interesting.16:29
tewardsdeziel: then how does the AMI have the updated upstream Docker?16:29
sdezielteward: I'd say worrying ;)16:29
tewardsdeziel: i'd blame HACKS then but :|16:29
sdezielDocker 18.09.2 isn't shipped in official repos so it seems like oussemos is using a custom source/PPA/etc16:31
oussemosno the package is not installed with snap16:33
oussemosit was installed from https://download.docker.com/linux/ubuntu source16:33
sdezieloussemos: maybe you have unattended-upgrades16:35
tewardoussemos: ^16:35
tewardunattended-upgrades might do the updates like that16:35
sdezielon second thoughts, I don't know if it would pull from non-official repos16:35
sdezielcould also be cloud-init16:36
oussemosyes exactly :) it's cloud-init16:39
oussemoswith package-update-upgrade-install, it's updating all packages to the latest version found in repos16:39
oussemosfound this in cloud-init logs16:39
oussemosThanks teward and sdeziel16:40
sdezielnp16:40
rawcohello everyone, hoping to find a tutorial/guide on setting up LDAP+SAMBA with webmin and integrate them. I got both up and running but i want to create groups in LDAP and them also becoming SAMBA groups/users . webmin throws me an error everytime i try: Failed to save group : "Failed to add group to LDAP database : objectClass: value #1 invalid per syntax" -- It will, however, create the group if i select “no” on the “SAMBA GROUP?” option17:46
=== svetlana_ is now known as sveta
Deihmosis there an expert install of the server?19:57
lordcirth_Deihmos, could you be more specific?19:58
lordcirth_What does the default installer not let you do?19:58
Deihmosexpert install like debian where you have some customization of what is included. the installation is very basic19:58
tewardDeihmos: are you using the live subiquity based installer or the original alterante installer that is d-i based?19:59
lordcirth_Deihmos, these have the debian installer, I think: http://cdimages.ubuntu.com/ubuntu/releases/bionic/release/19:59
tewardif it's subiquity then you're right, that's not really designed for ultimate heavy duty expert installation like d-i has, you want to use ^ those instead20:00
tewardfrom lordcirth_'s link :[20:00
teward:P *20:00
Deihmosthanks20:01
Deihmosthe installer doesn't give much customization. i guess that's just not what ubuntu does20:08
lordcirth_Deihmos, just curious, what customization did you want?20:09
Deihmosby default ubuntu installs a lot of stuff that i don't need.20:09
Deihmosi can install debian server and it is just 720MB. Ubuntu minimum is 1.5GB20:10
cukenI'm having problems installing ubuntu server behind my corporate firewall. I was able to put my corporate proxy server in during the install, but it requires an additional HTML login page. Is there a way for me to disable it from checking the archive repo's for release files?20:14
sarnoldthere ought to be a way to disable installing updates during install, but be warned that you ought to perform those updates asap before creating untrusted users on the system20:19
cukenI tried disabling my interface and it restarts the install. Looks like I require an internet connection now?20:21
sarnoldcuken: there's both a debian-based installer and a subuiqity-based installer; you could try the other one?20:21
lordcirth_cuken, the debian installer will work offline. Then you can set up your proxy after rebooting.20:28
geniicuken: If your work uses a captured portal system, you might be able to use a liveusb to access the login page and get the machine's MAC address on the authorized list of the portal long enough for it to still be in effect if you try to reinstall server just after that20:31
cukengenii: tried with the live ISO, looks like we cache with a mixture of the machine name :/21:19
geniicuken: Another way that occurs to me is during install, alt-f2 or alt-f3 to gain a terminal, then edit /target/etc/apt/sources.list to comment out all entries and Prompt=never in /target/etc/update-manager/release-upgrades21:25
geniialt-f1 would bring you back to the installer console, alt-f4 to installer output messages21:25
RoyKor ctrl+alt+f1 if you're in X21:27
Deihmosteward: the mini.iso is what i needed for the expert install.22:11
Deihmosdoes the server auto install updates?23:05
tomreynDeihmos: only if you choose it23:08
Deihmosthe install didn't have an option23:08
tomreynso you'll need to install unattended-upgrades and configure it in /etc/apt/apt.conf.d/50-unattended-upgrades23:09
tomreynthis path is from memory, might have changed since.23:09
sarnoldhmm, seeded-in-ubuntu reports that unattended-upgrades is in ubuntu-server: daily, daily-live, daily-preinstalled23:09
tomreyninstalled != enabled23:10
sarnoldhrmph. I really thought we had it enabled eveyrwhere by default now :(23:14
tomreynnot on either of the server installers, i would think. on desktops you can choose, but i'm not sure whether there is a (GUI) default.23:18
tomreynrbasak was saying he thinks ubuntu core does updates by default (but also wasn't 100% certain, though i guess it surely makes sense for the iot use case).23:21
tomreynon the other hand, if hundreds of remote, badly connected and basically pysically unserviable systems were to fail due to a regression, that'd be pretty bad.23:23
UssatI rip out unattended-upgrades on all my server installs23:27
mwhudsonthe d-i installer asks you if you want it enabled, the default is "security only"23:28
mwhudsonlive server doesn't ask (yet)23:29
tomreynoh so d-i defaults to on for security, i wasn't aware.23:30
tomreynsince when is this?23:30
tomreyni see, 18.04 d-i has it enabled.23:33
UssatFWIW I really dislike this "hand holding let us preconfigure and protect you from yourself" direction23:35
tomreyni might add that i'm still disappointed with the feature coverage and quality the default server installer will have in the third 18.04 release.23:40
tomreyni do recognize that some bugs git fixed, which is great., but also other didn't or maybe just the bug reports didn't get updated, not sure.23:41
tomreynas always, this is not to blame anyone, i'm just looking at things remotely and with the high expectations I got used to during the past years.23:42
mwhudsontomreyn: yeah we didn't get much done for .223:52
tomreynthere's always the option of switching defaults again until things work well.23:54
tomreyn(i realize this may be a difficult thing to sell both inside and outside the company)23:59

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