/srv/irclogs.ubuntu.com/2019/01/24/#ubuntu-server.txt

Deihmoswinscp looks interesting. trying it out now00:36
Deihmosyep this is perfect00:39
Deihmosis there a command to see resources used?01:38
sarnoldhundreds :)01:39
sarnoldDeihmos: this is a decent very fast introduction http://www.brendangregg.com/blog/2015-12-03/linux-perf-60s-video.html01:39
killownwhat does that mean AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 74: syntax error, unexpected TOK_CLOSE, expecting TOK_END_OF_RULE06:10
killownerror after apt upgrade06:10
killowninvoke-rc.d: initscript apparmor, action "reload" failed.06:10
killownisn't ubuntu server supposed to be stable?06:11
killownit's just a fresh install without update for two months06:11
killownubuntu 18.04...06:12
lotuspsychjekillown: without update?06:43
lordievaderGood morning08:35
=== cpaelzer__ is now known as cpaelzer
ahasenackgood morning11:05
ahasenackI forget, the installation tests done in the migration step, are they done with -proposed enabled overall, or just for the package that is undergoing migration?11:20
evitDoes anyone know if the Ubuntu Repo PHP PEAR package is affected by this https://www.grahamcluley.com/poisoned-pear-php-extension-repository-download-infected-for-up-to-six-months/14:47
rbasakevit: I expect so, yes, based on that article. It sounds like the compromise was in the repository. The point of the Ubuntu Repo PHP PEAR package is to connect to that external repository.14:56
evitrbasak, Should I remove the package till it is updated? What are others doing?14:59
rbasakevit: the package isn't the vulnerable part.15:04
rbasakYou'll need to track what others are doing upstream. You aren't any different from those on other distributions or installing from upstream sources who use PEAR.15:04
evitIs it just the single go-pear.phar file?15:05
evitThe tightlipped (lacking in details) response from the PHP/Pear team doesn't help15:21
kstenerudsome investigation into openvpn service: "service openvpn start" changes state to "active (exited)", regardless of whether --daemon is specified or not.15:58
kstenerudThe "state" of the openvpn service doesn't affect nmcli behavior. You can start and stop VPN connections regardless of whether it's active or not.15:58
kstenerudThere are also no processes running when the service is "active"15:59
rbasakIt sounds like there's a general problem if it still stays active, but not related to the --daemon bug report I think then?15:59
kstenerudFrom what I can tell, it doesn't need a service at all...16:00
kstenerudEverything works regardless16:00
kstenerudOr maybe that's just with network manager?16:00
kstenerudThe only time an openvpn process opens is when you nmcli start a VPN connection16:01
sdezielkstenerud: "systemctl cat openvpn" shows that it only calls /bin/true so probably not what one wants16:03
sdezielkstenerud: on the CLI, the new way is to call "service openvpn@$foo start" or "service openvpn-{client,server}@$foo" where foo is the name of the .conf file16:04
Deihmoswhy would ubuntu use swap when there is so much ram16:07
kstenerudsdeziel: Where would these .conf files be?16:11
sdezielkstenerud: for the openvpn@ version they are in /etc/openvpn/*.conf. for the openvpn-{client,server}@ ones, in /etc/openvpn/{client,server}/*.conf16:11
ahasenackcareful, there is an hierarchy16:12
ahasenackthere's /lib/systemd, /etc/systemd, and /run/systemd (not 100% about the path for the last one)16:12
sdezielahasenack: those path are for the unit definition not the config of the OpenVPN instance16:13
ahasenacksdeziel: ah, right16:13
ahasenacksorry16:13
sdezielkstenerud: try "systemctl cat openvpn{,-client,-server}@" and you'll see they set a workingdir and tune execstart16:13
kstenerudso is that the same as the .sesame dir in the homedir?16:14
sdezielahasenack: hehe, always good to make people aware of those multiple hierarchy being in play16:14
sdezielkstenerud: sorry, never heard about a .sesame dir16:14
rbasakThat's a Canonical-internal thing for our VPN configuration.16:14
sdezielhmm16:15
sdezielkstenerud: I'm not familiar with the above but if it resides in $HOME, openvpn-client@ will by default not have access to files in there due to the ProtectHome=true it has. Dunno if that's relevant for you but I'd though I'd mention this little gotcha16:16
sdezielerr, this ^ applies to all openvpn instance units in fact16:17
sdezielDeihmos: what's the output of "free -mt"?16:26
=== lotuspsychje__ is now known as lotuspsychje
Ark74Hello guys!17:19
teward*sits on Ark74*  (I'm in here too LOL)17:20
teward@Ark74: FYI that on Xenial HTTP/2 support is spotty because of OpenSSL lib versions and such17:20
Ark74I'm looking forward http2, I've build apache2 (2.4.34) from disco, but seems it doesn't have http2 enable17:20
tewardArk74: a2enmod http2 does nothing?17:20
Ark74teward, yeah, I had to backport several packages openssl 1.1.1a included17:21
Ark74it does, I mean it links to /usr/lib/apache2/modules/mod_http2.so17:22
Ark74I've configured h2 in apache17:22
tewardI know that in Bionic it's got HTTP2 support via nghttp2 package.17:22
tewardand Cosmic and assumingly Disco, but that's not in my radar typically17:22
Ark74but it keeps serving http/1.117:23
tewardbackporting that to Xenial will meet you with mixed results (you're probably better off just upgrading)17:23
tewardArk74: how're you testing?17:23
tewardArk74: do you have HTTPS enabled?17:23
tewardwhich is part of http2's requirements?17:23
tewardmost browsers don't support HTTP/2 without HTTPS enabled as well17:23
Ark74loading the browser page with DevTools and also using nghttp client17:24
Ark74I've tried apache2 ppa with http2 support17:24
Ark74and it worked17:24
Ark74I'm trying to backport form oficial packages17:25
Ark74yeah, https is used17:25
* Ark74 points -> https://launchpad.net/~ondrej/+archive/ubuntu/apache217:27
tewardon DIsco or on Xenial?17:31
tewardPretty sure trying to do this on Xenial will fail without some workl17:31
tomreynalso there's no disco builds on this ppa17:36
masonLXD question if anyone knows - if I want to point LXD to a local dataset when I run lxd init, it sees that and makes some datasets under it, but then "lxc profile show default" says "path: /" and "pool: local" and I see /var/lib/lxd on root being populated. Do I need to have my target dataset mount on /var/lib/lxd? Is the fact that I didn't define a mountpoint problematic, and it'd have been happy17:39
masonplanting itself anywhere as long as it had a mountpoint? I'm brand new to LXD and curious about this.17:39
Ark74teward, the ppa is for Xenial.17:40
Ark74I'm using apache2 shipped on disco (2.4.34)17:40
Ark74hoping it is included there, but seems it doesn't17:41
rbasakmason: try #lxcontainers (IIRC)17:41
masonrbasak: ty17:41
masonIt seems to exist. Thank you. Asked there.17:42
masonOf course, they're all quiet in there. I guess I'll test on a VM later and let it create a pool, and see how it handles the mountpoint.17:47
rbasakThe lxd developers do hang out in there, but perhaps they're not available right now.17:49
masonMm, no idea what timezones they inhabit.17:49
sdezielmason: AFAIK, no need to have anything mounted in the host, lxd takes care of that17:52
Ark74the question remains, does apache2 (2.4.34)on disco have http2 support?17:57
Ark74thanks!17:57
masonsdeziel: Hm, it seems not to do that, though - the init clearly creates datasets below the one I specify, but then everything populates inside /var/lib/lxd and the dataset is left untouched.17:58
masonsdeziel: What you're describing is what I'd have expected.17:59
sdezielmason: what's the storage backend you are using?17:59
masonsdeziel: ZFS, specifying a dataset that's part of an existing pool.17:59
sdezielmason: OK great, so that matches my setup. So to be sure I understand your problem, if you stop a container then manually mounts it's fs, you have nothing?18:00
masonThe tutorials all show the admin letting LXD create pool, so it's easy enough to do that and see what it sets up.18:00
masonsdeziel: I am at the very beginning. Didn't notice this until I didn't see the dataset untouched as I was downloading a container.18:01
sdezielmason: the downloading doesn't touch the storage pool18:01
sdezielmason: IIRC, it stores temporary files in /var/lib/lxd18:01
masonHrm.18:02
masonMaybe I've misread the lxc profile show default output then. That's possible too.18:03
tewardArk74: let me spin a container and test.18:18
tewardi'm still doing stuff at work lol18:18
Ark74teward, Thanks!, please take the time you need, I'll be around the whole day if necessary18:22
Ark74:)18:22
tomreyndisco is: /join #ubuntu+118:28
tomreynhttps://httpd.apache.org/docs/2.4/howto/http2.html#building states you need to ./configure with --enable-http2 during build time to create the mod_http2 module, and this module is included in disco packages: https://packages.ubuntu.com/disco/amd64/apache2-bin/filelist18:30
tomreynthe other requirements of "at least version 1.2.1 of libnghttp2", at least version 1.0.2 of openssl" are also satisfied.18:31
tewardArk74: #ubuntu+118:31
tewardtomreyn: Ark74: in the interim, confirmed it works.  https://paste.ubuntu.com/p/JN6q3n7F3j/18:32
tewarddisco container, bionic host with cURL calls and verbose output, showing the SSL negotiation and the use of HTTP/218:32
tomreyni haven't checked whether "LoadModule http2_module modules/mod_http2.so" is included by default, may require "a2enmod http2"18:32
tewardArk74: so you've got a misconfigure somewhere most likely.18:32
tewardtomreyn: it needs a2enmod http2 which i said above18:32
tewardtomreyn: it also needs enabled with a Protocols directive to include h218:32
tewardi included an example ssl config that works with http2 as well using the default site/docroot/welcome page18:33
tomreynright makes sense18:33
Ark74teward, hmmm, yeah then I'll make the same test as you to confirm on my side then go back in my footsteps see where it broke18:36
tewardArk74: note you'll need ssl-cert as well to use the template I gave.18:38
tewardwhich generates snakeoil certs18:38
tewardand now to put better thermal pads on my laptop's mosfets.  back later.18:38
Ark74yeah, don't worry I got that covered18:38
Ark74thank you very mush teward18:39
teward*returns*19:45
tewardArk74: you're welcome.  Sorry to constantly claim you did it wrong, but yeah with the tests provided it should give you the ability to test yourself :)19:45
teward(sorry I had to go into a meeting right after I got the thermal pads on my MOSFETs to help with cooling)19:45
Deihmoshttps://usercontent.irccloud-cdn.com/file/GxXwrqhv/IMG_0149.JPG19:58
Deihmossdeziel: see pic19:59
sdezielDeihmos: pastebinit for next time20:30
sdezielDeihmos: looks like some tasks needed a lot of RAM in the past pushing some unused chunks to be put to swap to free RAM20:31
sdezielDeihmos: you may want to use "vmstat" to check if there is some I/O traffic to/from swap. This will tell you when something is actively causing swap to occur20:32
Ark74teward, no problem, I'm aware of the high chances getting something wrong. It's great to have the confirmation, though20:54
Ark74teward, yep. Confirmed (yet again). apache2 2.4.34 has http2 capabilities ;) my backport compilation surely was broken.21:36
silentfuryHi there. Setting up an ubuntu linux lab on an old ibm systemx server i have. Would I be better to go with the latest release 18.10 or or the 18.04 lts?22:37
benharrilts22:38
benharrigenerally preferable to use lts releases on servers22:38
silentfuryeven if it's just a test lab?22:39
benharri18.10 will have some newer packages22:39
sdezielsilentfury: none LTS releases are only supported for 9m so probably worth it if you need something not in the previous LTS and also want to upgrade your lab frequently22:39
sdeziels/none LTS/non-LTS/22:40
silentfuryi'll try out 18.10 then. we'll see if it even likes this old hw i have22:40
benharriif you don't mind upgrading with each non-lts release, then go for it22:40
silentfuryyeah, im mostly a windows server guy, so that's par for the course22:42
sarnoldsilentfury: LTS releases if you just want things to work, non-lts releases if you like filing bug reports :D23:02
silentfuryi'll keep that in mind23:04
lunaphyteis there a dpkg mechanism or such that controls the contents of /etc/initramfs-tools/conf.d/driver-policy ?23:15

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