/srv/irclogs.ubuntu.com/2020/02/26/#ubuntu-server.txt

deadevilboyhi there guys01:52
deadevilboyI am using ubuntu server on raspberry01:52
deadevilboybut when I was upgrading kernel01:52
deadevilboyan error occurred.. now I can't install or remove anything using apt01:52
sarnoldcan you pastebin the terminal output of the error?01:53
deadevilboyyes01:53
deadevilboyubuntu@ubuntu:/boot$ sudo apt autoremove01:54
deadevilboyfreed.01:54
deadevilboy(--remove):01:54
tomreyn!pastebin01:54
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.01:54
deadevilboysorry guys01:54
deadevilboyI was using webchat freenode01:55
deadevilboyI forgot u may be using mIRC01:55
deadevilboysarnold https://paste.ubuntu.com/p/4nvdKGcsBT/01:56
sarnoldwow, I don't think I've ever seen that one before01:57
* TJ- puts hand up ... I have!01:58
sarnoldEUCLEAN 117 Structure needs cleaning01:58
deadevilboyI tried to remove old kernels01:58
deadevilboybut the error is always the same01:58
sarnoldwell whattayaknow...01:58
sarnoldTJ-: hopefully in the context of this error? :)01:58
TJ-If I recall correctly its due to the 'newish' creation of the symlinks in /boot/{vmlinux,initrd.img}{,.old}01:59
sarnolddeadevilboy: is there anything in your dmesg about your storage? somehow I think of arms as always using sdcards and those usually seem to turn to garbage pretty quick02:00
sarnold    if (!rename("$dest.$rand", $dest)) {02:00
sarnoldthat's the syscall that failed02:00
deadevilboymaybe this:  EXT4-fs error (device mmcblk0p2): ext4_lookup:1702: inode #13: comm linux-update-sy: deleted inode referenced: 287802:01
deadevilboy?02:01
TJ-deadevilboy: can you show us "pastebinit <( ls -latr /boot/ )"02:01
sarnolddeadevilboy: yeah that looks like it. maybe that just needs a fsck after a reboot to set everything straight; maybe it's failing media.. are there other lines in the logs that look like block storage problems?02:02
TJ-deadevilboy: actually, add in the inode flag: can you show us "pastebinit <( ls -ilatr /boot/ )"02:02
deadevilboyhttps://paste.ubuntu.com/p/FSXKjRgKB6/02:02
sarnoldoww02:03
TJ-there's the issue, a hanging symlink from vmlinuz and no updated kernel version02:04
deadevilboyhttps://paste.ubuntu.com/p/NBMrBZWTwR/02:04
deadevilboyI guess with -i won't change the result02:04
deadevilboyyes, I ran sudo apt upgrade02:05
deadevilboyand was upgrading from version 1017 to 101802:05
deadevilboythen it stopped02:05
TJ-deadevilboy: you'll need to run an fsck -f on that file-system02:05
deadevilboyI can't remember the error02:05
sarnoldall those ??? bits means there's something pretty wrong02:06
sarnoldI don't know how to get the machine to fsck itself, maybe it'll do that when booting; if not it might be worth pulling to storage and fscking from another machine02:06
deadevilboythis is a problem when using sd cards I guess02:07
deadevilboyeverytime the power goes off02:07
deadevilboysomething gets f*02:07
TJ-deadevilboy: what does "mount | grep boot" report? a 'vfat' file system?02:07
sarnoldyeah they seem really brittle02:07
deadevilboyI will have to try an M.202:08
deadevilboyor an ssd02:08
deadevilboyyep, I can't fsck from here02:09
deadevilboyI am connected through ssh at the moment02:09
deadevilboyaway from home02:09
deadevilboyI will try to do it later on then02:09
deadevilboyand I will give u my feedback02:09
TJ-deadevilboy: you can "sudo umount /boot" then "sudo fsck -f /dev/mmcblk0p2" then "sudo mount -a"02:10
deadevilboyumount: /boot: not mounted.02:11
tomreynand maybe replace some of the zeroes in the fstab pass_no column, too02:11
TJ-deadevilboy: ok, so /boot/ isn't a separate FS?02:12
deadevilboyI guess not02:12
TJ-deadevilboy: I stick with the Raspbian distro for a reason when it comes to the Pis ... I found the Ubuntu install brittle and half-baked and hard to reason about its layout02:13
deadevilboyTJ- maybe u are right02:14
deadevilboywhen there is a new update02:14
deadevilboysomething may get broken02:14
deadevilboyusing raspbian, everything is tested for raspberry02:14
TJ-The whole Ubuntu-core vs regular Ubuntu confused me for some reason, and that is HARD to do :P02:15
TJ-We're deploying lots of Pis as office automation controllers, with ZigBee etc., and Raspbian is much more stable and predictable02:16
deadevilboyI will follow TJ- advice02:23
deadevilboythks guys02:37
deadevilboyfor everything02:37
sarnoldbye deadevilboy :)02:38
deadevilboysarnold ;)  thank u02:38
lordievaderGood morning07:22
ferrusHi.  Is anyone online with experience installing Ubuntu to multipath volumes?09:57
ferrusWas referred here from the main #ubuntu channel09:57
ferrusI'm trying to install Ubuntu onto a diskless Cisco UCS blade, with a multipath FC SAN boot volume presented to it.  This has worked fine for RHEL/CentOS many times - but the Ubuntu installer doesn't appear to natively detect multipath.09:58
mwhudsonferrus: which version?10:25
ferrus18.04.4.  Veeam (Enterprise backup product) have started supporting XFS with fast clones, and they're only recommending Ubuntu for it - not RHEL/CentOS, because of the release schedules.10:30
ferrusI've installed Ubuntu a thousand time at home and on work VMs, and RHEL/CentOS a lot at work - but this is my first Ubuntu Bare-Metal install.10:31
mwhudsonferrus: hm well it ought to work but it's very late for me :/10:34
mwhudsonferrus: could you try the latest focal daily from http://cdimage.ubuntu.com/ubuntu-server/daily-live/pending/?10:35
mwhudsonferrus: not necessarily to install but to see if the disks show up at least10:35
mwhudsonferrus: oh wait, don't think multipath-tools is installed by default in bionic10:35
mwhudsonferrus: open a shell and "sudo apt install multipath-tools; sudo systemctl restart snap.subiquity.subiquity-service.service" and see if that helps?10:36
ferrusSorry - got disconnected.  Back online.10:37
lordievaderLast time I tried the server install (long time back, mind you) the alternate version had much more tools along this line. As in LVM wasn't supported by the regular installed, in the alternate version it was supported.10:38
ferrusYeah - I've already dropped down from the desktop installer because of LVM.  I could understand the lack of multipath on a desktop home installer (though not necessarily manual LVM config) - but it's a suprising ommision on an installer sepcifically marked as 'server'.10:40
ferrusI followed the - brief, instruction here - https://ubuntu.com/server/docs/device-mapper-multipathing-setup, and put 'install disk-detect/multipath/enable=true' in the boot options, but it doesn't appear to make any difference.  There's no /dev/mapper/mpath volumes presented, they still appear as four distinct devices.10:42
ferrusI've not much experience with editing the boot options though - so I'm not sure of I've got the syntax/placement correct.10:43
lordievader<ferrus "Yeah - I've already dropped down"> Are you now using the 'live-server' image or the 'server' image? (http://cdimage.ubuntu.com/releases/19.10/release/)10:44
ferrusGood point - let me check ...10:47
ferrusAha - just checking the differences between the two ISO's, and this is in the release notes - "N.B., If you require multipath you will want to continue to use the alternate installer"10:53
ferrusGood find - thanks!10:53
lordievaderHey, there you go 😉10:58
unrecoveredheya! i have an odd problem. i'm trying to set up an ubuntu 16.04 on a virtual machine. host is fedora, networking is done via bridge. so my problem is that ubuntu cannot get an IP. i have several CentOS7 vms on this host and they work fine, so i kind of puzzled what the issue could be13:47
unrecoveredVM is qemu13:47
cpaelzerunrecovered: if you log into the guest console and explicitly refresh dhcp like "sudo dhclient -r" what does it get/report?13:56
cpaelzeralso if you happen to have control about your dhcp server it is often useful to trace the log there - e.g. check if the dhcp request is coming in and if it is answered13:57
unrecoveredcpaelzer i tried manually start dhclient and result is the same - it cannot get address13:58
unrecoveredthough if i manually assign address it seem to work somehow13:58
cpaelzerunrecovered: so do you have control (or know the admin who does) of the dhcp server and check if the request arrives there?13:59
unrecoveredi have control over dhcp but i highly doubt any request ever reached it... never hurt to check though13:59
unrecovered...no, nothing14:02
cpaelzerok so nothing reaches dhcp, does the guest say it has a link (throw 'ip link' and 'ip addr' to a pastebin maybe)?14:03
unrecoveredcan i throw a screenshot? no network on it (:14:04
cpaelzersure14:04
cpaelzerI mean we just compar the common things one by oen -  a screenshot will do as well14:04
unrecoveredhttps://ibb.co/54fpkB8 this one is from ifup14:05
unrecoveredcpaelzer https://ibb.co/qMSJxzm ip addr14:08
unrecoveredcpaelzer https://ibb.co/RpMvsYB ip link14:09
unrecoveredi'm not fully familiar with ubuntu networking - i'm more of a rhel guy :D  can something block those requests? or can there be some default routes or something?14:11
cpaelzernot in a default install14:11
cpaelzerand nothing on your screenshots looks suspicious yet14:11
unrecoveredproblem seem really odd, since i can manually add an address and it kind of works14:11
cpaelzerand I assume on the host/bridge side it is bridged "the same" as the other guests?14:12
unrecoveredof course14:12
cpaelzerlbivirt can add iptables rules to things, but I don't see why it would do so different for this particular guest14:12
unrecoveredno iptables rules on a guest...14:14
cpaelzerthe ones by libvirt woudl be on the host14:14
cpaelzerI'd not expect any on the guest14:14
unrecoveredhum14:14
unrecoveredlet's see14:14
unrecovereddamn that firewalld makes iptables unreadable :D14:15
cpaelzerI'm on the run soon, but the next step in debugging would be to assign it to libvirts default network instead of the bridge14:16
cpaelzerin case it works there you can ignore the guest portion and focus on the host (at least)14:16
unrecoveredah14:17
unrecoveredcpaelzer damn, dns also won't work... =\14:30
unrecoveredsomething's fishy14:30
coreycbjamespage: thoughts on adding libvirt-qemu to the nova group?15:45
coreycbjamespage: that would allow libvirt to access /var/lib/nova/instances and we can keep the umask tight15:47
coreycbmight be brittle with other hypervisors though15:48
jamespagecoreycb: in principle I think that's fine15:51
jamespagewould we add that from nova-compute-libvirt?15:51
jamespagemight be tricky as I think the libvirt daemon runs as a specific group15:52
jamespagebut probably do-able still15:52
coreycbjamespage: I think we could do it in nova-compute-libvirt.postinst15:53
jamespage+115:54
tewardrbasak: powersj: fail2ban doesn't have any default nginx logging enabled, but it has some patterns in there that should "just work" given that <HOST> still works.  I have not tested IPv6 *but* the system seems like it was able to convert ::ffff:1.2.3.4 into 1.2.3.4 for the banlist and properly added it to `iptables` directly (not `ip6tables`).  Forgot that I don't have v6 enabled on my containers in testing so I'm going ...15:54
teward... to set up a test subnet with IPv6 on my system here to actually *test* if it works right for v615:54
tewardrbasak: powersj: this is *with* sdeziel's suggestion in place15:54
tewardso specifically wrt f2b this 'should work' sdeziel's suggestion15:55
tewardnot making any suggestions to change 20.04 just giving you research results so far15:55
powersjteward, nice - thanks for the update15:55
tewardPITA to get configured right15:55
tewardbut otherwise... :P15:55
rbasakThanks!15:55
sdezielyeah, thanks, might worth adding to the LP15:56
tewardsdeziel: currently digging into my email gateway so can't check atm15:56
tewardor add to it15:56
teward(E:EmailDead)15:56
sdezielI just checked and logcheck doesn't have rules for nginx so it wouldn't cause any spam due to those embedded v4 in v6 ;)15:57
=== nolan__ is now known as nolan_
shubjeroAnyone know how to roll back a package update in Ubuntu 18.04? For example I upgraded to neutron-common 14.0.4-0ubuntu1~cloud1 from 14.0.2-0ubuntu1~cloud0 and would like to go back. This was just a testing system. I tried "apt-get install neutron-plugin-ml2=14.0.2-0ubuntu1~cloud0" but that doesnt seem to work.20:22
shubjeroMaybe you know coreycb ? :)20:23
shubjeroI came across this bug which has coreycb's name all over it: https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/185964920:23
ubottuLaunchpad bug 1859649 in Ubuntu Cloud Archive "networking disruption on upgrade from 14.0.0 to 14.0.3" [Undecided,Confirmed]20:23
shubjeroThe jist of it is the control plane must not be running an older minor version of neutron.20:24
coreycbshubjero: that should work, what you tried20:27
shubjeroI get "E: Version '14.0.2-0ubuntu1~cloud0' for 'neutron-plugin-ml2' was not found"20:28
coreycbshubjero: for the bug I think server-side just needs to get upgraded before client-side20:28
shubjerocoreycb: yeah I was just trying to proactively test some updates im applying to the whole cluster tomorrow.. i like to test on a vacant/test compute node beforehand..20:28
coreycbshubjero: ah right because 14.0.2 isn't available anymore once you update your cache20:34
shubjeroyeah, shit out of luck20:35
shubjerorepo's dont keep that version at all?20:35
shubjeroI should rethink my package management strategy, haha20:37
coreycbshubjero: not ideal at all but if you really needed to you could get debs from the staging PPA https://launchpad.net/~ubuntu-cloud-archive/+archive/ubuntu/stein-staging/+packages?field.name_filter=neutron&field.status_filter=superseded&field.series_filter=20:45
shubjerothat could come in handy here, thanks coreycb20:52
=== JanC_ is now known as JanC
sarnoldshubjero: if the archives have removed the version you were using, check /var/cache/apt/archives -- you may still have the old version laying around21:58
theborgerhello guys need help. trying to add a second nic card to 18.04 and setup bonding. but i cant get the 2nd nic card to show up in ifconfig. all the googling says to issue auto "InterfaceName" that does not work23:20
sarnoldthat sounds a bit like an /etc/network/interfaces directive, but 18.04 LTS uses netplan to render systemd-networkd configuration by default, no? did you disable that?23:21
theborgeri have not done anything. like i said all the sites say to issue auto "InterfaceName"23:22
genii!netplan23:24
ubottuNetplan is a network configuration abstraction renderer which uses YAML descriptions of a network to work with either a NetworkManager or Systemd-networkd "renderer". More information at https://netplan.io/23:24
oerhekshttps://netplan.io/examples#configuring-interface-bonding ~~~ https://www.snel.com/support/how-to-set-up-lacp-bonding-on-ubuntu-18-04-with-netplan/23:26
theborgeroerheks: that first link is what i am using for the bonding. but when i issues the clear && echo command only one interface shows up23:28
theborgerenp0s2523:28
theborgerlotec25@hellgate_dell:~$23:28
sarnoldyou may need to use ip l to see the other nic23:29
theborgerthat is what i get with the command23:29
sarnoldwhat does ip l say?23:30
theborgerso i just add the 2 interfaces enp0s25 and enp2s0 ?23:30
oerheksdoes lspci give a clue?23:30
sarnoldheh, that guide assumes there are exactly two NICs on the machine. not a great guide.23:31
theborgerhttps://pastebin.com/GgjkUWhg23:31
theborgerso i just set it up with those 2 interfaces? right?23:33
oerheksthe interface is just down.23:33
theborgeroerheks: how can i bring it up?23:33
theborgerthat is what i was trying to do23:33
theborgerit all has to be through netplan?23:34
sarnoldif you choose to write systemd-networkd configs yourself, or use ifupdown, you'll have to make sure netplan doesn't overwrite your configs; and there's a handful of packages that don't work with ifupdown23:35
theborgerok ill follow this guide see if i can get it working23:35
theborgerone ?23:41
theborgerdo i need to set the card up first before doing the bonding?23:41
sarnoldI don't have enough network equipment to do bonding myself, but I think you don't set up the individual nics, just set up the bond23:43
theborgerok23:43

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