/srv/irclogs.ubuntu.com/2018/04/06/#ubuntu-server.txt

rchavikhi, is there an equivalent in to to 'yum history' and 'yum history undo <transaction>' ?02:49
sarnoldI don't know what those do, but /var/log/dpkg.log has some information on what was installed when02:50
rchavikit lists history of package installs, and installed dependencies.   the undo is particularly helpful because it can automatically remove the dependencies too02:53
rchavikpity there's no equivalent in ubuntu02:54
sarnoldoh02:56
sarnoldif you uninstall a package that dragged in dependencies, apt-get autoremove can clean those up02:57
dpb1yummy02:57
sarnoldthe deborphan package can help if apt has lost track of what was installed strictly for dependencies..02:57
rchavikgot it, thanks02:58
JanCapt-get also has the --autoremove option for the remove command, which will do that in one step03:35
sarnoldoh sweet03:35
JanCor you can set APT::Get::AutomaticRemove to make that automatic03:36
sarnold"--auto-remove, --autoremove". dude. <303:36
JanCcareful if you mix several APT tools though, as I'm not sure all of them use the same database to store installed-as-dependency info03:38
JanC(I remember they didn't in the past, not sure they do now)03:38
sarnoldtwenty years of typing apt-get update &&  apt-get -u dist-upgrade has kinda burned that into my fingers03:39
JanCI mean apt-get vs. aptitude vs. ...03:39
sarnoldyou'd think I' shorten that .. but no.03:39
sarnoldso I tend to forget that aptitude even exists.03:39
JanCI guess it's trivial to make an alias for update-then-upgrade  :)03:42
JanCor a bash function if you want to make it somewhat fancier03:43
sarnoldit's been a busy two decades03:43
lyn||orianmuscle memory probably now04:39
=== JanC_ is now known as JanC
lordievaderGood morning07:01
Neo4where is located syslog file in ubuntu?07:52
Neo4I've read it should be in /etc/syslog.conf , but there is nothing07:52
Neo4Has ubuntu syslog.conf file?07:52
Neo4and what does this command ps auxwww | grep syslog ?07:53
Neo4book that I'm reading about Unix, and for 2005 years, but I think changed nothing so far07:54
Neo4who know what is hostname lookup?08:03
lordievaderNeo4: What version of Ubuntu are you running?08:25
lordievaderAnd what is it that you are trying to accomplish? Read the syslog or configure the syslogger?08:26
Neo416.0308:30
Neo4nothing, in book written this is the main log file08:31
Neo4there placed all paths where your system stores logs08:31
Neo4I wanted look at, but didn't find, book old and unix08:32
parlosGood Morning08:40
lordievaderNeo4: Logfiles are typically stored in `/var/log`, though with 16.04 you use systemd which comes with journald. To access those logs you need to use the `journalctl` utility.09:27
lordievaderHey parlos09:28
JanCNeo4: Ubuntu uses rsyslogd instead of some older syslogd, so the syslog configuration is in /etc/rsyslog.conf09:30
Neo4ok09:30
JanCbut as lordievader says, you can see logs with journalctl too09:30
adacIs there a standard way of removing all old kernels?10:10
rbasakadac: "apt autoremove". With --purge if you wish. This will remove everything that apt thinks is unused, including old kernels.10:16
rbasakAt least from Xenial onwards. Not sure about Trusty.10:17
adacrbasak, thanks!11:16
adacis purge needed as well?11:16
adacmean so that the kernels do get removed?11:18
rbasakadac: the payload will get removed just with autoremove. purge also removes config files and knowledge of the package from the package manager.11:21
rbasakI almost never use remove on its own.11:21
adacrbasak, ok yes thanks!11:21
adacrbasak, "apt autoremove" is something different then "apt-get autoremove"?11:27
rbasakapt is a friendlier front-end with some defaults changed.11:28
rbasakSince apt-get is generally locked in to interface and defaults because scripts use it11:28
adacrbasak, ok thanks11:28
adacrbasak, so one should generally use apt now?11:29
tomreynadac: either is fine, apt may be more user friendly11:29
tomreynfor scripting things, use apt-get11:29
adackk11:30
adachmm even tough I did "apt-get autoremove --purge" it stil shows me a lot of images left still11:32
adacdpkg --list | grep image11:32
adachttps://pastebin.com/XxrEeiGA11:32
tomreyn!info linux-image-generic xenial11:34
ubottulinux-image-generic (source: linux-meta): Generic Linux kernel image. In component main, is optional. Version 4.4.0.119.125 (xenial), package size 2 kB, installed size 14 kB11:34
tomreyndo you have update-manager installed?11:34
rbasakadac: the mechanism depends on apt considering the kernel packages "automatically installed".11:35
rbasakThe apt-mark command will tell you what is marked auto and what is marked manual.11:35
adacok have to check thanks guys!11:35
rbasakUsually there's a metapackage like linux-image-generic marked manually installed that depends on the latest actual kernel package11:35
rbasakAnd the actual kernel packages remain marked automatic.11:36
rbasakIf you have your kernels installed in some special way, that may break.11:36
adacok need to go trough this be back in some time surely have some more questions :)11:37
adacI think I forgot --purge on that last host where the *images* are still there11:38
adacon another host where I used --purge now definitely the images are gone11:38
adacno that was not the isue. checking this marked stuff now11:46
adacapt-mark autoshow shows me:11:47
adachttps://pastebin.com/wr8QCfuw11:47
adacrbasak, can i get rid of those old images then somehow?11:48
rbasakadac: you can purge the old package manually11:49
adacrbasak, ok simply by package name11:50
adacworked11:52
adacthanks again rbasak and tomreyn11:52
rbasaknacc: dpb1: https://irclogs.ubuntu.com/2018/03/26/%23ubuntu-server.html#t13:5216:00
naccrbasak: teward: do you have a link to the 16.04 request?16:00
rbasaknacc, dpb1: https://lists.ubuntu.com/archives/ubuntu-server/2015-June/007080.html16:03
JediMasterHey all16:04
JediMasterIs there a tool to migrate from a basic /etc/network/interfaces to the new /etc/netplan/*.yaml file? And yes, I've tried what the ubuntu docs say, "netplan ifupdown-migrate" isn't a valid option (at least in bionic)16:04
dpb1nacc: Hey, in between waiting on reviews, could you please dive down and see if this upgrade to nginx makes sense.  We'll still try to get teward's input, but would help to have your validation16:04
rbasaknacc: dpb1: also https://lists.ubuntu.com/archives/ubuntu-release/2015-July/003310.html16:05
dpb1JediMaster: where do you see the docs saying 'ifupdown-migrate'16:05
dpb1JediMaster: that's not supposed to be there and we don't recommend an automated tool to migrate ATM16:05
JediMasterI'm trying to clone a VM in VMWare using chef's 'knife vsphere' command, and vmware sets the IP, gateway and other bits via the /etc/network/interfaces file as it looks like it's not caught up with netapp on 17.10/18.04 yet. I could easily write a script to run a command to convert the script then run netplan to bring the interfaces up16:05
naccdpb1: ack, will do16:06
naccrbasak: thank you16:06
JediMasterdpb1, https://wiki.ubuntu.com/Netplan under "Commands" near the top16:06
naccdpb1: cough, that should be just a link to netplan.io, no?16:06
nacccyphermox: --^16:06
JediMasterI'm getting to the point that I think I'll have to write a script to do the migration myself lol16:10
JediMasterit's probably not *that* hard, just didn't want to re-invent the wheel16:11
JediMasterStill not entirely sure what it is that writes the /etc/network/interfaces file when VMWare clones the machine, I'm guessing it must be the 'open-vm-tools' package, in which case that probably needs updating to work with netplan16:13
JediMasterdpb1, so I presume I'll need to write one myself then, just while the vmware tools don't support netplan?16:14
JediMasterit's a super simple config, and will always be the same other than different IPs16:15
dpb1nacc: :/16:19
dpb1JediMaster: what vmware tool is that?16:19
dpb1nacc: I'll fix that now, thanks16:20
naccdpb1: i'm *guessing* the wiki page predates netplan.io and was never updated once the other page went live16:21
dpb1yes16:21
JediMasterdpb1: My best guess is that it's the open-vm-tools package in ubuntu that writes to the /etc/network/interfaces file when you clone a VM and specify a new IP/gateway etc16:22
nacccpaelzer: --^ i think you were looking at that package?16:22
dpb1JediMaster: what action do you take from the outside?  *just* pick an ubuntu vm and clone it?16:22
JediMasterdbp1: I've just made an Ubuntu 18.04 (yes beta) template machine, the netplan file was made correctly from the installer and it has network access, I then use chef's 'knife vsphere' integration that talks to VMWare's Vsphere, which clones the machine and sends commands, I believe via vmware tools (open-vm-tools), to set the new IP/gateway and DNS16:24
JediMasterI highly doubt that vmware/vsphere would actually write directly to the disk, so I suspect it's the open-vm-tools package that does the network changes. It's worked perfectly on Ubuntu 14.04 and 16.04, but then gets stuck waiting for the network interface to configure on 18.04, as it's written to the wrong file16:25
naccJediMaster: you also could install ifupdown (iirc) in 18.0416:26
dpb1JediMaster: ok16:26
JediMasternacc.... ah, I didn't know that was an option, but that seems a more dirty hack than writing a script to create a yaml file for netplan somehow ;-)16:27
dpb1JediMaster: see https://netplan.io -> examples -> I really do need ifupdown, can I still use it?16:27
dpb1JediMaster: can you do that?16:27
dpb1JediMaster: also, please take the advice in that first sentence and file your workflow.  The detail that you give in your IRC comments here would be great in a bug.  Say exactly what didn't work.16:28
dpb1sorry, *file a bug16:28
JediMasterdpb1, Sure, I'd be happy to, thanks for your help, nacc too16:29
JediMasterShould I file one in both netplan and open-vm-tools?16:29
naccJediMaster: +1 :)16:30
dpb1JediMaster: that same bug, just *target* it to both projects16:30
JediMasterah yes, of course16:30
dpb1tyvm16:30
JediMasterNo problem, I'll get on to it shortly, thanks16:30
JediMasternetplan is certainly more complex than ifupdown & /etc/network/interfaces syntax, but it's so much more powerful, it'll just take a bit of getting used to =)16:31
bladernrHey gang, while I'm testing a customer config, I wanted to see ask if booting from NVMe is a viable option. System has several platter drives meant for data storage and VM hosting, and an NVMe meant for the root FS.  Is that a valid deployment scenario?16:34
dpb1bladernr: I'd think it would come down to EFI/bios support?  Unless I'm missing something?  it's just a disk to ubuntu.16:35
bladernrdpb1, ok, that's what I thought, I just wanted to validate that. (I've never had my hands on a system with NVMes before now).16:36
bladernrthanks16:36
dpb1bladernr: oh, ok16:36
=== mdeslaur_ is now known as mdeslaur
shibabanditHope I'm in the right channel and apologies if this was already asked... but attempting to figure out why certain configurations of ubuntu cloud image are missing that used to be there. We typically use the endpoint 'http://cloud-images.ubuntu.com/query/trusty/server/released.current.txt' (or xenial instead of trusty). Used to have the image combination of  'us-east-1', 'ebs-ssd', 'amd64', and 'hvm'. Any help is appreciate18:34
sarnoldrcj,Odd_Bloke, ^^ does shibabandit's question sound familiar?18:37
sarnoldshibabandit: I don't spot any hvm in that list ..18:37
rcjfginther: ^18:39
sarnoldthanks rcj18:40
rcjshibabandit: it's broken, we're looking into it18:40
fginthershibabandit, yes, I'm currently working on the issue18:40
shibabanditThank you rjc. I noticed irregularities to what I had seen in the past for both trusty and xenial, which are the LTS endpoints we use. Would you be able to recommend the right place to get updates on their availability? Would it be this chat or is there a web page I should be checking?18:42
rcjshibabandit: https://bugs.launchpad.net/cloud-images/+filebug is the place to file bugs and then you can track updates on fixes18:50
sarnoldoh cool, I don't think I've seen this yet :)18:51
sarnoldOdd_Bloke: ^^ it's been handled, feel free to ignore ;)18:51
rcjshibabandit: We'll put a link on the top page of cloud-images.u.c because they're only on the individual releases where you'll see the bug link (ex. https://cloud-images.ubuntu.com/xenial/current/)18:51
shibabanditThank you for your help!18:52
rcjshibabandit: We're going to revert trusty's released.current.txt to the prior serial which has a full compliment of images until the publication is complete.18:54
zero_shanehi all - I'm testing Bionic Beta 1 via netboot - and all of my VMs or metal installs hang on 'update-grub'.  I searched through launchpad ... but no dice.  Is this a good place to discuss, or should I take my business elsewhere?18:54
sarnoldzero_shane: it's not wrong, but not exactly a high-traffic channel either .. but I don't know if #ubuntu+1 is mostly desktop folks or if there's netbooters there too18:56
sarnoldzero_shane: it's not wrong, but not exactly a high-traffic channel either .. but I don't know if #ubuntu+1 is mostly desktop folks or if there's netbooters there too18:56
zero_shaneok - will check there - they're pretty low user count - but will try there18:56
ahasenackzero_shane: which install image is that, server or desktop? And I presume it's beta2, right? Or one of the ubuntu variants?18:56
zero_shaneserver18:57
zero_shanehttp://releases.ubuntu.com/18.04/ubuntu-18.04-beta2-live-server-amd64.iso18:57
zero_shanethe only server ISO I could find for Bionic18:57
zero_shaneI had to download the Bionic netboot kernel and initrd which isn't bundled in this ISO18:57
ahasenackinteresting, cdimage.u.c has a non-live one18:58
ahasenackmaybe that's with the old installer, I'm not sure18:58
ahasenackhttp://cdimage.ubuntu.com/releases/18.04/beta-2/ubuntu-18.04-beta2-server-amd64.iso18:58
zero_shaneISOs everywhere .... I'll check that one out too - thx for the pointer18:59
dpb1so19:06
dpb1zero_shane: this would be the best: http://cdimage.ubuntu.com/daily-live/current/19:07
dpb1zero_shane: that is the new installer, much faster, less questions, etc19:07
dpb1zero_shane: you can read more about it here: http://blog.dustinkirkland.com/2018/02/rfc-new-ubuntu-1804-lts-server-installer.html19:08
zero_shanehmm @dpb1 - it appears that's just a new interactive installer, right ?   I don't care about those - we deploy 10s of thousands of machines via Preseeds19:11
zero_shaneit definitely looks like a nice overhaul/replacement for the old text based installer, though19:11
dpb1zero_shane: ok, then yes.  for preseed, stick with the old d-i based one19:11
zero_shane:)19:12
sarnoldkirkland`: pretty screenshots on http://blog.dustinkirkland.com/2018/02/rfc-new-ubuntu-1804-lts-server-installer.html  :D thanks! everything needs more screenshots..19:12
dpb1zero_shane: however, I'd use the one from here... http://cdimage.ubuntu.com/ubuntu-server/daily/current/, the beta itself isn't as interesting as the most up to date (it will be closer to what we ship)19:13
dpb1zero_shane: but, I understand you are having issues with what you are trying, so if you repeat the issue and think it's a bug, please do give more details on it, we are very interested in getting that kind of feedback here.19:14
zero_shane@dpb1 - will try the daily images - thx !19:19
shibabanditI see the AMI listings showing up now in 'http://cloud-images.ubuntu.com/query/trusty/server/released.current.txt', thank you this resolves my issue.19:26
=== mikal_ is now known as mikal
=== maxb_ is now known as maxb
ProCycleDoes anyone have experience with using systemd to run multiple instances of mariadb on ubuntu 16.04?22:10
ProCycleI'm looking at https://mariadb.com/kb/en/library/systemd/22:10
roaksoaxProCycle: why not just put them in lxc container s?22:11
dpb1+122:11
dpb1lxd22:11
ProCycleIt has a short blurb about it but I can't seem to find the mariadb@.service file anywhere to figure out how to use it22:11
dpb1you'll save yourself a huge headache22:11
roaksoaxindeed22:11
dpb1lxc launch ubuntu:xenial22:11
TJ-That's a template file ProCycle22:12
TJ-ProCycle: apt-file search reports mariadb-server-10.1: /lib/systemd/system/mariadb@.service22:12
ProCycleI've never used containers before, seems like a whole can of worms22:13
TJ-container of worms? :)22:13
sarnold*groan*22:13
TJ-Hey! I was gardening all day, I had containers of worms :)22:14
ProCycleThankyou TJ- found it22:14
dpb1ProCycle: well, running multiple instances of mysql on the same filesystem surely has it's own challeges22:14
ProCycleI was just running multiple databases on one server instance but that seems to open a can of worms when dealing with mariabackup22:15
ProCycleThey aren't high performance databases, just one main one and a bunch of seldom used databases22:16
TJ-systemd's templating for multiple instances is very useful22:16
TJ-and very elegantly implemented22:17
ProCycledpb1, are you referring to the fact you need separate directories or something else more sinister?22:17
ProCycleTJ-, Okay looks like the template uses /etc/mysql/conf.d/my%I.cnf22:18
TJ-ProCycle: yes22:18
ProCycleInside that cnf file do I still need to do the whole [mysqld1] group naming or just a plain copy with [mysqld] ?22:19
dpb1ProCycle: really a portion of the cattle vs pet argument.  single-purpose your box device with containers.22:19
dpb1then that container is focused on one thing22:20
ProCycleYeah I debated that, typically I would just run multiple VMs for each but seemed wasteful22:20
dpb1that's the nice thing about containers22:22
dpb1density22:22
dpb1you can run 10-100x more per server than vms, really you are just paying for an init system and your application.22:22
ProCycleBut having a separate server instance for each different project makes backups easier than combining all of them into one instance22:22
ProCycleOne of these days I'll learn how to use containers, I just don't have the time to right now22:23
ProCycleThanks for the input though, it's certainly something I considered22:23
=== devil is now known as Guest20480
cocoa117i am trying to create multiple routing table and mark IP packet to certain IP using ppp0 rather then default route22:59
cocoa117however it appears the return packet from remote never reach to the application, e.g. curl timeout23:00
cocoa117i run tcpdump showed the remote IP send packet back, but local app never received them23:00
cocoa117can anyone think any reason this might be?23:01
ProCycleTJ-, I got it working (needed to create data directory and set perms, run mysql_install_db, and run the secure script)23:23
TJ-ProCycle: yes, that'd be expected23:24
ProCycleThat section on multiple instances sorta says that but doesn't really spell it out23:25
TJ-yeah, they're familiar with the program so they forget to mention the hidden assumptions23:26
ProCycleHuh there seems to be problem with the mysql_install_db script23:32
ProCycleI ran it with --user=mysql but there's one directory it didn't set the group to mysql on the install23:33
ProCyclewhich is strange cause the default database when it installs mariadb it does23:33
ProCyclethe mysql directory23:33

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