/srv/irclogs.ubuntu.com/2018/10/17/#ubuntu-server.txt

plmTJ-: hey =D00:11
xnoxRoyK, no, because it blocks releasing / finalising ticket across all series, yet when one publishes SRUs verification and publication w.r.t. each release can happen in parallel01:29
xnoxhence we actively stopped adding more multi-release combos, as per archive/sru team decision.01:30
cpaelzergood morning04:55
muhaha/foo.file.core.windows.net/bar /data/sadisk/foo/bar cifs noauto,nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,vers=3.0,credentials=/etc/smbcredentials/foo.cred,dir_mode=0700,file_mode=0700,serverino does it makes sense?08:00
muhahaI am not sure about systemd.requires=network-online.target and automount.... This is network device. It has dependecy on cloud-init.service after (de)provisioning VM08:01
blackflowIs the certbot package broken in Ubuntu? Why is there a snap of it now?10:04
rbasakblackflow: it shouldn't be broken, but it is old.10:43
rbasakIt's a huge amount of work to SRU it turns out, due to package renames and the dependency tree. So I've put up an experimental snap.10:44
rbasakblackflow: if you prefer the deb, the SRU welcomes volunteers. There are others interesting in the SRU bug too.10:46
rbasakothers interested10:46
MrMojit0I have an Ubuntu 18.04 and I tried to do the following command: sudo apt install php-mbstring, but it says: E: Unable to locate package php-mbstring. How can I resolve this, it isn't for production but for my homelab10:54
rbasakMrMojit0: that might be because you don't have universe enabled. Try "sudo add-apt-repository universe", then "sudo apt update" and try again.11:01
MrMojit0rbasak: 'universe' distribution component is already enabled for all sources11:32
avuMrMojit0: beware when enabling universe, especially on servers, though. It doesn't receive security updates (or any updates) from the Ubuntu developers. And if and when the community acts and supplies these updates is sketchy at best11:34
MrMojit0avu: Thank you for the info, this is valuable for me. So never enable universe.11:35
avuMrMojit0: at least keep track of the packages you install from universe and beware of potentially unfixed security issues there11:35
MrMojit0avu: Well since I am new its better to aviod those options unless I get more experienced with that field.11:36
RoyKmuhaha: add _netdev to the options in fstab11:39
muhaha_netdev works only for nfs12:23
muhahanot for cifs12:23
muhahaRoyK: ^12:23
ahasenackcpaelzer: hi, I could use some bileto help12:32
ahasenackcpaelzer: I don't understand why my trusty and xenial runs are like that12:32
ahasenackcpaelzer: https://bileto.ubuntu.com/excuses/3487/xenial.html stuck like that since yesterday12:32
ahasenackcpaelzer: and the trusty ones didn't even run: https://bileto.ubuntu.com/excuses/3486/trusty.html12:32
ahasenackis it some quirk of bileto with older releases of ubuntu?12:33
cpaelzerahasenack: how is the test history of these in those releases?12:39
ahasenackthere is none, I'm adding dep8 tests12:39
RoyKmuhaha: oh - didn't know that12:39
cpaelzerahasenack: I didn't run into the latter issue yet12:40
cpaelzerahasenack: I have seen what you have on your xenial results12:40
cpaelzerahasenack: my case was dying testers12:41
ahasenackhm12:41
cpaelzerso the tests got started, but something on the workload scheduling dies12:41
cpaelzerdied12:41
ahasenackand the tests not running, in the trusty case?12:41
cpaelzerone of the infra team helped me to identify that, so eventually I just set it up again and it worked12:41
cpaelzerahasenack: I didn't have the latter (=trusty) case yet12:41
ahasenackok12:42
RoyKmuhaha: on the other side, it's somewhat weird that nfs shold need the _netdev option, since, well, you don't really run nfs off a disk12:45
muhahaRoyK: btw I forgot to run daemon-reload and restart remote-fs.target ... to activate fstab gerenarot12:58
RoyKmuhaha: does it work now?13:08
muhahayes13:09
RoyKgood :)13:09
muhaha*fstab generator13:09
tewardrbasak: just an FYI since I see you're seeing all bug notices for the --with-compat bug, the PPAs have it now, so if anyone has any issues with it PPA users can report before we even turn it on for NGINX in Ubuntu :P14:12
rbasakteward: nice, thanks!14:14
tewardyep.  There's some defaults I'm thinking about tweaking as well, because of the recent outbreak of security vulns that I find in the 'default' setups with Nessus and OpenVAS scanners14:15
tewardbut that's a discussion for another time (more or less disable certain protos, set certain SSL parameters)14:15
tewards/vulns/'risks'14:15
ahasenackI'm testing the server iso, the traditional one, not the new live one,14:44
ahasenackin the guided partitioning with lvm case, it's complaining that I don't have a /boot partition14:44
ahasenackwhy won't it create one for me, since it's "guided"?14:44
ahasenackpowersj: do you remember that? ^14:44
=== logan_ is now known as logan-
=== Spydar is now known as Spydar007
powersjahasenack, I don't recall needing to do that. Let me try that once I get the latest ISO14:52
ahasenackpowersj: this is on powerpc, aka, uefi-like14:53
ahasenacknot mbr14:53
ahasenackmaybe that's the difference14:53
adamretterI just updated (apt-get dist-upgrade && shutdown -r now) my KVM host (Ubuntu 18.04) and now two of my KVM guest vm's (also 18.04) that were running perfectly fine before won't start up. I looked in the logs in /var/log/libvirt/qemu/ and there are no errors. How do I start fixing this?15:00
ahasenackdo you get anything back from "virsh start <name>"?15:01
ahasenackor in virt-manager (the gui)15:02
RoyKadamretter: is the vm set to start automatically?15:07
adamretterRoyK: hehe yes15:07
RoyKjust asking - first things first :)15:08
adamretterRoyK: totally agree15:08
RoyKadamretter: as ahasenack said - try to start it manually to see if you get any error message15:09
adamretterahasenack: so `virsh start web` just returns15:09
adamretterahasenack: `virsh list --all` then lists `web` as "running"15:09
ahasenackadamretter: sounds good?15:10
adamretterahasenack: yeah except that it isn't running15:10
RoyKcan you see it in "ps axf"?15:10
ahasenackis there a qemu process for it?15:10
adamretterahasenack: if I try `virsh console web` then I get nothing. Also if I try to SSH or access the services from that VM I get nothing15:10
ahasenackthat^15:10
adamretterahasenack: yes there is a qermu process for it15:11
adamretterahasenack: s/qermu/qemu/15:11
RoyKtry to start virt-manager15:11
adamretterRoyK: I only have virtsh15:11
RoyKwell, install virt-manager, then15:11
RoyKremote x works well15:12
ahasenackmaybe it's stuck in boot somewhere15:12
ahasenackyeah, try to get a console somehow15:12
ahasenackI don't know if "virsh console" shows everything correctly, I also always use virt-manager for the console15:12
adamretterahasenack: I would have thought so, but I get NOTHING on the console - i.e. `virsh console web` just shows:15:12
adamretterConnected to domain web15:12
adamretterEscape character is ^]15:12
masonvirsh requires a serial console to be set up, doesn't it?15:13
masonwhereas virt-manager defaults to SPICE, unless I'm confused.15:13
adamrettermason: hmm good question. One moment.15:14
masonSo, if you don't have a serial console set up, I imagine 'virsh console web' is working, but not connected to an actual getty.15:14
adamrettermason: okay so, I just tried accessing it via vncdisplay. I can see the console via VNC and can see that it crashed during boot15:18
adamretterSo the error on boot is: "VFS: Unable to mount root fs on unknown-block(0,0)"15:21
adamretterany idea why this would happen after updating the host15:22
ahasenackhm15:23
ahasenackcan  you try booting into the previous kernel by intercepting the boot and using the grub menu? That would be one thing15:24
ahasenackmaybe,15:24
ahasenackhm15:24
ahasenackmaybe your /boot got full with kernels and the initramfs generation failed because of a disk full error, which you didn't notice?15:24
ahasenackI would check things like that15:25
adamretterahasenack: when you say, booting into previous kernel, do you mean the host or the guest15:33
masonadamretter: The box that can't find its root.15:36
=== emerson is now known as 07IAAJ8B3
masonadamretter: The guest.15:36
adamrettermason: hmm I don't think I can intercept the boot menu over VNC as by time VNC connects the boot menu timeout has already passed15:36
masonadamretter: Boot the VM with rescue media then, and explore from there I think.15:41
adamrettermason: Wooohoo! okay cool. I managed to get to the boot menu via VNC and yeah seems to be a kernel bug. So the older 4.15.0-23-generic works fine. But the latest installed 4.15.0-33-generic causes the hang at startup.15:43
masonadamretter: It's probably not a kernel bug. You probably didn't get an initramfs properly generated.15:43
adamrettermason: hmm interesting15:43
adamrettermason: well i will try updating to the latest kernel etc via apt-get dist-upgrade and see if that fixes it15:44
adamrettermason: thanks for your help so far :-)15:44
adamretterahasenack: thanks for your help too15:44
masonadamretter: See ahasenack's advice about looking at free space, also.15:44
adamretterI have to go get some dinner, back in an hour or so15:44
adamrettermason: I have 10GB of free disk space. Disk is only 20GB15:44
adamretterbbl15:45
=== kierank_ is now known as kierank
plmHi all16:39
tewardhow did I get parted from here :|17:13
RoyK?17:27
tewardnevermind >.>17:31
tomvolekanybody here has installed Openstack with Ubuntu ? Like to talk on sideline17:36
ahasenackpowersj: so I ignored that prompt about /boot (in the guided lvm partitioning on ppc64el), told it to continue, and the installation finished just fine17:38
powersjhmm was the prompt a red warning?17:40
powersjor just asking?17:40
RoyKahasenack: what sort of machine is this?17:49
ahasenackRoyK: ppc64el17:50
ahasenackpowersj: a warning defaulting to "do not proceed"17:50
ahasenackI should have gotten a screenshot, hang on, give me aminute17:50
ahasenackpowersj: I tried with amd64 and uefi (in a vm), and it didn't bug me about a missing /boot17:50
RoyKahasenack: an old mac?17:51
ahasenackRoyK: no, a ppc64el vm inside a power8 big iron machine17:52
ahasenackRoyK: powersj: http://people.ubuntu.com/~ahasenack/guided-lvm-missing-boot.png17:57
powersjah! I believe that message is fine as it is a final check to be sure you really didn't mean to have a /boot17:58
powersjbut someone with more power/di experience can correct me17:59
RoyKahasenack: is this thing using grub?17:59
ahasenackpowersj: yeah, but I haven't seen it elsewhere, just ppc64el so far17:59
ahasenackRoyK: yes17:59
RoyKgrub can boot from lvm18:00
RoyKat least on x86/x6418:00
ahasenackpowersj: if /boot is needed, I would have expected the "guided" experience to create it for me. If it's not needed, then I would expect to not see this warning18:00
ahasenackRoyK: yes, and it works, my complaint is about the (seemingly useless) warning specially when I selected a "guided" style of partitioning, i.e., "please partition this whole disk for me"18:00
powersjahasenack, right I forgot about the guided part18:00
* RoyK prints out a small apatosaurs in almost natural size18:01
powersjthat is worth a bug18:01
ahasenackagreed, just not a blocker one I think18:01
ahasenackI'll file it18:01
adamretterback18:02
adamretterSo I have something very strange going on with this Ubuntu 18.04.1 VM. I did an `apt-get dist-upgrade` on it to get the latest kernel. I can see /boot/vmlinuz-4.15.0-36-generic. But 4.15.0-36 doesn't appear in the boot menu, and previously trying to boot 4.15.0-33  would crash at boot, but now boots fine.18:05
RoyKwhat sort of virtualisation?18:08
adamretterRoyK: KVM18:09
adamretterRoyK: Host is also Ubuntu 18.04.118:10
ahasenackadamretter: maybe the update-grub step failed when you did the dist-upgrade18:10
ahasenackrun this to verify nothing was left pending: "sudo apt update && sudo apt -f install"18:11
adamretterahasenack: It said there was nothing to be done18:18
ahasenackcheck if the kernel package is really installed (dpkg -l|grep linux-image), and ls -la / and look for the vmlinuz symlink18:20
ahasenackif all checks out, just run sudo update-grub18:20
ahasenackthat is what constructs the grub menu based on what is installed18:21
adamretterii  linux-image-4.15.0-36-generic18:25
adamretterlrwxrwxrwx   1 root  root     30 Oct 17 18:53 vmlinuz -> boot/vmlinuz-4.15.0-36-generic18:25
adamretterlrwxrwxrwx   1 root  root     30 Oct 17 18:53 vmlinuz.old -> boot/vmlinuz-4.15.0-33-generic18:25
ahasenackpowersj: just lacking arm tests now, as usual18:33
powersjahasenack, 64 or hf?18:33
ahasenackboth18:33
ahasenacker, hold18:33
ahasenackarm64 is done18:33
powersjok18:34
ahasenackjust "Ubuntu Server armhf+raspi2"18:34
ahasenackis missing18:34
powersjwe had testing on it earlier this week18:34
adamretterahasenack: so I don't quite understand why it is saying that /vmlinuz is linked to /boot/vmlinuz-4.15.0-36-generic. But uname -av reports: Linux web 4.15.0-33-generic #36-Ubuntu18:51
ahasenackadamretter: the /vmlinuz link points at the kernel that you should boot into the next reboot, it's the "default" kernel18:51
adamretterahasenack: okay I just ran "sudo grub-update" and rebooted. I still only see 4.15.0-33 in the Grub boot menu, when booted, uname -av still reports 4.15.0-33, but /vmlinuz still points to /boot/vmlinuz-4.15.0-36-generic --- super weird!18:59
ahasenackadamretter: it's update-grub19:00
ahasenackadamretter: and it will tell you which kernel images it is processing. Check if 4.15.0-36 is in its output19:01
adamretterahasenack: ah right yeah, sorry, I did run `update-grub`19:01
ahasenackexample: https://pastebin.ubuntu.com/p/dWZHfqkr4B/19:01
adamretterahasenack: yes 4.15.0-36 is in the output19:01
ahasenackadamretter: then maybe you are selecting another kernel in /etc/default/grub, check GRUB_DEFAULT=0 there (0 means the first kernel from the list)19:02
ahasenackadamretter: or, the grub you are booting from is not the grub that is being updated. Maybe you have grub installed in another disk19:02
adamretterahasenack: it isn't in the grub menu list at all19:02
adamretterahasenack: this is grub2 is that any different?19:02
adamretterahasenack: also the VM only has 1 disk19:05
ahasenackadamretter: I don't know at this point19:05
ahasenackadamretter: you could try booting into the grub menu, and editing it live19:05
ahasenackchange the kernel and initramfs lines to point to the new kernel, and then reboot19:06
ahasenacksee if that works19:06
adamretterahasenack: okay let's try that19:06
masonahasenack: Did you see a disk layout? I'm wondering if he has /boot separate and it's not mounting or somesuch.19:06
ahasenackI didn't see it19:06
ahasenack(didn't ask for it)19:07
adamretterahasenack: so live editing the boot menu in Grub does then cause it to boot 4.15.0-36 correctly19:08
adamretterahasenack: so i guess the question is, why is my grub boot menu not being updated19:08
masonAh, discard my idea then. Not relevant.19:08
ahasenackso maybe it's what mason suggested19:08
ahasenackor not? :)19:08
masonahasenack: I don't think it's my idea. If he can edit grub to boot, then the correct initramfs is available.19:09
ahasenackit looks like whatever update-grub is updating, it's not being used by the grub you are booting19:09
TJ-adamretter: can you show us "pastebinit <( lsblk; mount; ls -latr /boot/ /boot/grub/; cat /etc/fstab /etc/default/grub /boot/grub/grub.cfg )"19:11
ahasenackfancy :)19:12
mason<( ) is bash's "cartoon tell me" syntax19:12
sarnoldlol19:13
TJ-mason: I thought it was bash's party hat19:13
masonTJ-: Only if you turn your head the right way.19:13
adamretterhttp://paste.ubuntu.com/p/WVytQqbz5b/19:13
TJ-mason: asleep zzzzz <( )-[=]<19:13
masonheh19:14
adamretterI wonder if I have a weird Grub 1 vs Grub 2 thing going on. I have a feeling this VM was upgraded some time about from Ubuntu 16 to Ubuntu 1819:14
TJ-ooo I see grub v1 there19:14
mason16.04 used grub219:15
TJ-adamretter: show us "pastebinit <( apt list --installed grub* )"19:15
ahasenackI see menu.lst, is that still used?19:16
adamretterhttp://paste.ubuntu.com/p/82xVWbThrq/19:16
ahasenackwhat happens when there are both menu.lst and grub.cfg files?19:16
adamretterI vaguely recall the dist-upgrade tool in the past telling me it was going to chain-load grub 1 from grub 2 and that a proper upgrade to grub 2 could be done later19:16
TJ-ahasenack: it depends on which grub has it's core image in the boot sectors I guess, looks like grub v1 won19:16
ahasenackadamretter: what's in that menu.lst file?19:17
adamretterahasenack: /boot/grub/menu.lst looks like the menu I see when I reboot and Grub loads19:17
TJ-adamretter: so the installed packages from the distro are all grub v2 but the system has a residual grub v1 boot config. I'd suggest replaceing grub v1 boot-loader with v2, using "sudo grub-install /dev/sda"19:17
ahasenackmaybe grub-install /dev/sda is what's needed?19:17
ahasenackthat^19:17
TJ-adamretter: this command subject to other's agreement19:18
adamretterTJ-: okay well I have a backup of the VM's qcow2 image... so if it all goes wrong ;-)19:18
TJ-adamretter: we might want to ensure "grub-install" is the one from grub219:18
adamrettergrub-install (GRUB) 2.02-2ubuntu8.619:18
adamretteralready checked ;-)19:18
TJ-adamretter: check with "pushd /; md5sum -c /var/lib/dpkg/info/grub-common.md5sums | grep -v OK; popd"19:19
TJ-adamretter: that should not report any FAILED19:20
adamretterTJ-: I just get weird output from that like:19:20
adamretter~19:20
adamretter\/ ~19:21
adamretterand then ~19:21
TJ-oh silly me I missed out the 2!19:21
adamretterif I just cd /19:21
TJ-adamretter: check with "pushd /; md5sum -c /var/lib/dpkg/info/grub2-common.md5sums | grep -v OK; popd"19:22
adamretterand then run the md5sum bit - then yes everuthing is "OK"19:22
TJ-grub2-common not grub-common :)19:22
TJ-adamretter: in which case go ahead with "sudo grub-install /dev/sda"19:22
adamrettersure.19:22
adamretterstill OK19:22
adamretterokay - rebooting19:22
adamretterokay cool19:23
adamretterAll is good. It booted into the new kernel 4.15.0-3619:24
adamretterOnly thing to report is that whatever menu graphic Grub2 is trying to display at boot, does not export well over VNC - you just get coloured garabge19:25
TJ-adamretter: in /etc/default/grub uncomment "#GRUB_TERMINAL=console" and "sudo update-grub"19:25
adamretterTJ-: I find the fact that that is not the default setting just terrifying19:27
adamretterokay can I uninstall grub1 now?19:28
TJ-adamretter: the packages were not installed according to apt, or if they are, apt/dpkg lost track of them at some point. You'd need to identify which package they originally came from and get a copy of that package to identify the files/checksums, to remove them safely.19:29
adamretterTJ-: okay never mind then19:30
adamretterOkay TJ-, ahasenack, and mason. Many thanks for all your help and patience, we got there in the end19:30
TJ-adamretter: the files are dated "Mar 16  2012" which may suggest they came from the package in 12.0319:31
TJ-12.04 even19:31
adamretterTJ-: could be, I have had this VM for many years and just dist-upgraded it from time to time19:31
sarnoldyou'd probably be better served to use do-release-upgrade instead19:32
TJ-adamretter: I'd guess it'll be http://old-releases.ubuntu.com/ubuntu/pool/main/g/grub/grub_0.97-29ubuntu66_amd64.deb since that is timestamped 2012-03-16 20:0319:32
adamrettersarnold: that might have been what I did. sorry I forget now, but that sounds familiar19:33
plmTJ-: hey, Can I to test the script? =D20:04
plmTJ-: Did you finished?20:04
TJ-plm: no, it requires more work. Although it can work for me it's not in supportable state. I'm looking for an alternate approach that ensures regular package upgrades don't break it fatally20:06
plmTJ-: hmm.. understood. Well, when you have a better approach, I would like to use/test the script! =D20:16
plmTJ-: do you think next week has something? =D20:17
=== 07IAAJ8B3 is now known as emerson

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