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

Glorfindeluhhhhhhhhhhhhghghghg. so. I created a  xfs filesystem because I ran out of inodes on ext4, but I've also filled the inodes on this xfs disk. is there any other filesystem I could use that has more inodes?00:46
sarnoldwoah, really?? I didn't realize that was possible with xfs. I thought it was dynamic. heh.00:48
Glorfindelwait.... ncdu only reported 16gb used, but df -h shows I used all 20gb?00:50
Glorfindelmaybe I didn't run out inodes, that would be good00:50
sarnoldthat makes more sense to me :)00:50
Glorfindelat the same time though, over 20gb of data to create a tileserver for a map that's kept in a ~200mb database seems a tad excessive00:50
Glorfindel7.9 million inodes.... yeah I'm submitting a bug that's ridiculous00:51
sarnoldI suspect that means whoever made the database design really understood the principles of data normalization! :D00:55
Glorfindellol00:56
RoyKand whoever wrote that software, didn't understand that millions of files is generally a bad idea…00:56
RoyKGlorfindel: keep in mind that metadata also takes up space00:57
sarnoldFilesystem                       Inodes    IUsed       IFree IUse% Mounted on00:58
sarnoldsrv                         12875952530       10 12875952520    1% /srv00:58
sarnoldoh. don't mind me. I can't read.00:59
RoyK12 billion - should be enough for everyone (tm)00:59
sarnold:)00:59
Glorfindelone would think :o00:59
sarnold62 million files on that thing, give or take.01:00
sarnoldsuddenly 8 million for a mineserver map server seems pretty silly01:00
RoyKor someone aught to think that 8 million files in a directory (or tree) just means "you nee to use a database!"01:00
RoyK*need*01:01
Glorfindelsarnold: wow01:01
sarnoldGlorfindel: my ubuntu mirror is ~800k inodes.. the unpacked sources are way bigger :)01:02
Glorfindelheh, makes sense01:05
keithzg[m]Huh, I wonder why multiple VMs of mine (three so far) are running into kernel panics on boot with the latest kernel :/02:29
sarnold:(02:35
RoyKkeithzg[m]: which kernel is that?02:36
keithzg[m]Specifically, I'm seeing `Kernel panic - not syncing: VFS: Unable to moutn root fs on unknown-block(0,0)`. Kernel is "4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:58:23 UTC 2018 i686 athlon i686 GNU/Linux"02:37
masonkeithzg[m]: Ah, sounds like your initramfs files didn't build...?02:38
masonkeithzg[m]: Can you boot into older kernels and rebuild your initramfses?02:38
RoyKupdate-initramfs -a02:38
RoyKperhaps02:38
keithzg[m]mason: Yeah that's what I thought, although `sudo update-initramfs -u -k 4.15.0-38-generic` did not fix it.02:38
keithzg[m]RoyK: "Illegal option -a"02:39
mason-c -k all, isn't it?02:39
masonI confuse platforms sometimes.02:39
masonYeah, try update-initramfs -c -k all02:39
keithzg[m]Shall do...02:40
RoyKkeithzg[m]: out of curiousity - what sort of virtualisation?02:42
keithzg[m]I wonder if this all has to do with grub2, I got the "GRUB upgrade scripts have detected a GRUB Legacy setup in /boot/grub" message last week and accepted chainloading, intending on actually checking things sometime this week. All the VMs in question are quite old ones I inherited from my predecessor, they started out on at least 10.04!02:42
keithzg[m]RoyK: KVM02:42
RoyKok02:42
RoyK10.04 is a wee bit old ;)02:43
keithzg[m]Yup they've had long lifespans, gone to 12.04 then 14.04 then 16.04 and recently finally 18.04 and a move to an entirely different machine a few months back!02:43
keithzg[m]Alas, `update-initramfs -c -k all` did nothing, the VM I tried still kernel panics.02:44
masonkeithzg[m]: Hrm. I'd want to rip apart the initramfs at this point. Unsure what else to do.02:44
keithzg[m]Very oddly, the VM I first noticed this on earlier today worked fine after I rebooted into the prior kernel, applied pending updates, and rebooted again. It's also one of the old VMs.02:45
masonkeithzg[m]: Make sure your /boot isn't out of space, although I'd think you'd see an error message to that effect when building.02:45
masonkeithzg[m]: Another less-intense thing might be to delete the new kernel and reinstall, and capture the session in script(1) for further debugging.02:46
RoyKif it's out of space, remove old kernels - you may have to truncate some of the files to remove before running apt remove/purge, since apt uses some disk space just to remove things02:47
RoyKdon't remove them manually - apt will be upset02:47
RoyKjust run something like02:47
RoyK> /boot/somekernel02:47
RoyKto truncate it02:48
keithzg[m]mason: Yeah, these VMs don't even actually have a separate /boot partition, and / has plenty of space. Funny enough, the VM that recovered *had* run out of space, and I had initially thought that was a problem. Maybe in fact it was a problem on *that* VM and the same panic message is actually from a different underlying cause on the other VMs, although that seems like a *huge* coincidence if so.02:48
masonkeithzg[m]: The initramfs having issues or being invalid is the most common cause of that error message. Kernel tries to load it and fails.02:50
masonkeithzg[m]: Might be worth update-grub as well, with a spelunk into the grub config files to make sure it's specifying the right files.02:51
keithzg[m]mason: yeah already tried `update-grub`.02:51
keithzg[m]Oho, I fixed it on one of the VMs at least; under the presumption that there's some sort of reason why last week that I was still on grub-legacy was flagged during the `apt upgrade` I ran on 'em all, I tried running the suggested `upgrade-from-grub-legacy` and then rebooted. Et voila!02:53
keithzg[m]Thank goodness for virtualization, if I hadn't been able to take a quick snapshot before hand it might have been quite a while before I worked up the courage to try that ;)02:53
masonAh, good.02:54
keithzg[m]Other failing VMs seem to have been fixed by the same approach. Other than "dpkg-maintscript-helper: error: environment variable DPKG_MAINTSCRIPT_NAME is required" as the last output line, `update-from-grub-legacy` seems to have worked fine and resolved this. Phew!02:58
n00beeI upgraded a VPS from 16.04 to 18.04 and now there is no network. The VPS lets me log in via a web console but I can't even ping out from the server. How to troubleshoot?04:02
n00beeThe outputs for some of the commands are here: https://imgur.com/a/cmqGEfE (sorry it's an image rather than text paste but the webconsole doesn't allow text copy)04:03
naccn00bee: try `sudo systemctl status networking` and if it's off, try `sudo systemctl start networking` ?04:05
naccn00bee: your interface has no IP address04:06
n00beenacc: It's probably worse. It says Unit networking.service not found04:07
n00bee*could not be found04:07
nacci might have the wrong service04:07
naccn00bee: try `sudo ifup eth0` ?04:09
n00beenacc: sudo  systemctl restart NetworkManager.service ... also not found04:09
n00beenacc: ifup command not found04:10
naccn00bee: you're not on a desktop, so no NM04:11
naccn00bee: ah it would appear that ifupdown maybe got purged04:11
naccn00bee: you have two options, i think, follow what is written here: https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#New_since_16.04_LTS04:12
naccn00bee: apt-cache policy ifupdown?04:12
n00beenacc: apt-cache policy ifupdown suggests it may be installed04:13
n00beewait..sorry..no04:13
n00beeinstalled: (none)04:13
naccsystemctl status systemd-networkd04:14
n00beecandidate: 0.8.17ubuntu1.104:14
naccmay give you some debugging output04:14
naccyeah, so if you want to keep using /e/n/i you need to have that installed, read the release notes above04:14
n00beenacc: Sorry, what does /e/n/i mean?04:15
naccn00bee: /etc/network/interfaces (which is what ifupown parses)04:15
naccn00bee: sorry, gotta step away, read those docs04:15
n00beenacc: ok. thanks04:15
n00beenacc: So I read the docs and they specify the 18.04 counterparts to 16.04 commands and services. Using that I was able to start systemd-networkd and do the equivalent of ifup eth0. But still no network.04:55
d-rockWhen you say "no network", what do you mean?04:56
d-rockDoes ifconfig show eth0 up and running?04:56
n00beed-rock: I upgraded from 16.04 to 18.04 today and now have not network. Can't SSH in or ping out.04:56
d-rockOK, but "ifconfig eth0" shows that the interface is UP and RUNNING, and shows tx/rx activity?04:57
n00beed-rock: The web console doesn't allow copy paste. Let me take a screenshot of the output of ifconfig eth004:57
genewitchlooking for a package (or whatever) that is like pfsense, a web frontend for NAT/router/gateway/firewall.. the simpler the better. I literally just need NAT/dhcpd and i will be running pihole for DNS04:58
d-rockI'm on a terminal, so I can't view graphics :)04:58
n00beed-rock: :) so it says flags=4098 broadcast, multicast04:58
d-rockThat's not up04:58
n00beed-rock but it doesn't say anythign that indicates up or running. All packets RX, TX are 004:59
genewitchalso, i have eth1, but it's not getting a static IP, i have /etc/network/interfaces.d/eth1 populated04:59
d-rockFor reference, my interface: enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 150004:59
d-rockFirst, let's see if we can manually configure it04:59
d-rockUnless you've already verified that04:59
genewitchhttp://projectftm.com/#pAGR1e0AkCvAlV8xVaYeAA this is the eth1 file05:00
n00beed-rock: OK wait. It is up now. I ran sudo ip link set eth0 up05:00
n00beeafter that ifconfig eth0 shows up, broadcast, running, multicast05:01
d-rockOK, does it have an IP set?05:01
d-rockI suspect you'll need to re-ifup05:01
d-rockI can't remember the networkd command off the top of my head05:01
n00beed-rock I don't know if it has an IP set. ifconfig does have a line for inet6 but ipv6 is not enabled for the server i think05:02
d-rockinet6 will always be set. At the very least, it gets the link-local address05:02
d-rockDo you see a line for just plain "inet"?05:02
JanCRoyK: a filesystem *is* a database05:03
n00beed-rock: No line for inet05:03
* JanC doesn't understand why people don't understand that05:03
d-rockOK, can you re-run the networkd command?05:03
n00beed-rock: you mean sudo systemctl restart systemd-networkd05:04
d-rockThat'll do it05:04
d-rockThere's another, more surgical command, but I can't remember it05:04
n00beed-rock: That didn't do anything :(05:05
n00beeIt didn't throw any errors but I still can't ping out. And ifconfig eth0 still doesn't show an inet05:05
d-rockThen let's just try to bring this up manually05:05
d-rockip addr add <ip/mask> dev eth005:06
buddhirtsome query if anyone knows? i have installed isc-dhcp-server in 18.04. Seems like in 18.04 interface is not auto-up without connecting network cable to client machine, so dhcp server cannot listen to defined interface. Any solution05:06
n00beed-rock: I have the static IP address. and in /etc/network/interfaces the netmast is 255.255.255.0. So you're saying the sommand is ip addr add 192.241.x.x/255.255.255.0 ?05:07
genewitchare you freaking kidding me05:07
genewitchnetwork configuguration is done through YAML?05:07
genewitchcome on, guys, seriously05:07
genewitchubuntu drives me batty05:07
d-rockgenewitch: I kinda had the same reaction when I saw netplan05:07
d-rockn00bee: ip addr add 192.241.x.x/24 dev eth005:08
n00beed-rock: Thanks!05:08
d-rock255.255.255.0 is a 24 bit mask05:08
n00beed-rock: OK so now I see that in ifconfig eth0. Now restart systemd-networkd ?05:09
d-rockNo, let's hold off05:09
d-rockCan you ping your gateway now?05:09
JanCyou don't have to use netplan05:09
n00beed-rock: Web console hung05:10
d-rockn00bee: when you set the ip address?05:11
n00beed-rock: yay! i can ping the gateway05:11
d-rockHuzzah!05:11
d-rockip route add 0/0 via <gateway>05:11
n00beed-rock : done05:12
d-rockShould be able to ping, say, 8.8.8.805:12
n00beeYES!!05:12
JanCand netplan makes lots of sense when you have to do cloud configurations05:12
d-rockShould be able to reach it from outside, as well05:12
n00beed-rock: yes, it's back online and accessible from the outside as well05:13
n00beed-rock: are these changes going to stick after a reboot?05:13
d-rockThey will not05:13
d-rockBut, it does confirm that this is an issue with networkd and/or netplan, not the NIC or network itself05:14
n00beed-rock: hmm...so what should i do05:14
JanCor with the netplan configuration ;)05:14
d-rockSure, it could be the config05:15
d-rockTo be honest, I'm fighting my own battle with 18.04 networking. I ended up just writing a shell script to init things the way I wanted05:15
JanCthere is a #netplan channel to discuss that BTW05:15
n00beed-rock: I could probably just move stuff out of this server and set up a new one from scratch05:16
d-rockI hesitate to project my own experience, but that might be simpler :P05:16
genewitchso is there a simple answer? webgui for all the firewall-y stuff in linux? Like pfsense/monowal/ipcop for BSD05:17
d-rockIn any case, I need to drop off. Good luck!05:17
n00beed-rock: Thanks much. You were a life saver and hero today!05:18
d-rockNP, glad I could repay some of the help I've gotten on this channel :)05:18
JanC(although e.g. cyphermox is in here too it's easier for them to miss discussions of netplan maybe)05:18
genewitchis there a guide to having 3 routable networks under netplan?05:20
genewitchi have 10.0.0.0/8 192.168.1.1/24 and WAN05:20
genewitchwhich is technicaly 192.168.42.1/something05:20
JanCgenewitch: that's exactly the sort of thing you want to ask in the #netplan channel (if it's not in their documentation)  ;)05:23
genewitchGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH05:23
JanCand do you really need a web interface for the firewall? or is a descriptive configuration file also useful?05:24
genewitchubuntu implemented netplan05:24
genewitchthey broke 10 years of working network config05:24
JanCyou don't have to use netplan if you don't want to...05:24
JanCifupdown still works if you prefer that05:24
genewitch/etc/network/interfaces.d/eth105:24
genewitchdoesn't work05:24
genewitchthis used to be stupidly obnoxiously straightforward, it's taken hours out of my night05:25
JanCif you don't have a netplan config and ifupdown is installed, that should still work, I guess?05:26
genewitchi have a netplan config but it is complaining about something05:26
JanCif not, file a bug report   :)05:26
katamogenewitch you should be able to `netplan generate --debug` and get more verbose information on what it errors about05:27
genewitchhttp://projectftm.com/#EfzbyVArZW8ykjaekYCE_w05:28
genewitchexact same output05:28
genewitchError in network definition //etc/netplan/eth1.yaml line 5 column 17: expected sequence05:29
JanCshouldn't addresses take a sequence?05:32
JanCsimply said: put it between []05:33
JanC(I'm not a netplan expert, so this is just a guess, to be fair)05:34
* katamo had a toddler interruption05:34
genewitchyeah that's all working now, but the routes are wrong05:34
JanCyou have "addresses: [10.0.0.1]" instead of "addresses: 10.0.0.1" now?05:36
katamohttp://projectftm.com/#FD5qmugC0YFFuZUHIlvuFQ05:37
katamogenewitch ^05:37
katamodoes that get closer?05:37
katamonote the use of space between addresses & eliminating the genmask/netmask lines in favor of */* address syntax05:38
genewitchJanC: yes05:38
genewitchi had that originally :-) but it doesn't look right, you know?05:38
genewitcha single IP is a /3205:38
genewitchkatamo: i did addresses: [10.0.0.1/9]05:40
genewitcher /8 obviously05:40
katamogenewitch I just ran `netplan generate --debug` after copy paste of the link I shared with you. it completed without error05:41
genewitchkatamo: yes mine works fine too, except i can't ping 10.0.0.2 :-)05:42
katamo`ip r | pastebinit`05:42
genewitchi can't do that, because the internet isn't working now05:43
katamofair enough lol. whats the output?05:44
genewitchhttp://projectftm.com/#n3T06ci4QHs35bHBQYdPWQ05:44
genewitchlemme if down eth1 this is ridic05:44
katamo`ip r del default via 192.168.1.1 dev eth0`05:44
katamofor testing05:44
katamoor that works05:45
genewitchi can ping 192.168.1.1 after running that, but nothing else05:45
genewitchdefault route is for what, internet?05:46
JanCdefault route is for everything that doesn't have a specific route05:46
JanCusually that means the general internet  ;)05:47
katamoOkay, can we get the full output for configs on all interfaces?05:48
katamofor one thing in the "routes", your 192.168.1.1 dev eth0 network has no netmask definition05:48
genewitchhttp://projectftm.com/#ZbbJinc8BCQs-wI-SOKPuQ05:48
genewitch192.168.1.0/24 is going to be out of band, the only two networks that should be routable outbound are 10.0.0.0 and whatever usb0 is05:49
katamoconfig files. either netplan or interfaces(.d)/* ?  sorry I'm not used to reading ifconfig output any more lol. woe is me05:49
genewitchthe yaml?05:49
genewitcheth1.yaml http://projectftm.com/#HKWqhJ0ub1YeoPaZs72tUQ05:50
genewitcheth0.yaml http://projectftm.com/#3fWxIdIZ-5dpFLaSRUr-WQ05:50
genewitchthere's no usb0 in either location05:50
genewitchusb0 is brought up with dhclient usb005:51
genewitchi wanna make sure i can still access the internet if i disable eth1.service05:52
JanCthe output of "ip route" might be relevant...05:52
katamookay. lets do one interface at a time then. that was a good idea. and i'm still hung up on "192.168.1.1 dev eth0"05:52
katamoare you okay with bringing all interfaces down, then raising eth1 first? sounds like you're concerned about that.05:52
genewitchip route with `systemctl disable eth1` http://projectftm.com/#bTUtehwmWwosE68B7sj8_A05:53
katamoJanC I think we have that output here: http://projectftm.com/#n3T06ci4QHs35bHBQYdPWQ05:53
genewitchi can ping both public (4.2.2.2) and private (192.168.1.12) with that setup05:53
JanC(remember 'ifconfig' has been deprecated for over a decade and in theory might disappear any day now :P )05:53
katamoOkay, we should not have multiple default routes.05:53
JanCah, right05:54
genewitchi want eth1 to provide NAT from usb0 to the 192.168.1.1 network05:54
genewitchbut not via this device05:54
genewitchI got a router connected to eth105:54
katamowe're doing routing from this box?05:54
genewitchon the WAN port05:54
genewitchNAT only05:54
genewitchwell i guess routing, but i just want to be able to ping 10.0.0.2, 192.168.1.1, 192.168.1.12, 4.2.2.2, google.com05:55
genewitchonce i am there, i know what to do05:55
katamoOkay. can we bring the eth0 down? `ip link set eth0 down` ?05:56
genewitchkatamo: should i reboot with eth1 enabled first?05:56
genewitchand this is going to slow me down since i have to physically access the machine which is not in this room05:56
katamowait a sec05:57
genewitcheth1 systemd service is disagbled right now05:57
genewitchand everything is working as i'd expect05:57
genewitchi know i am rough05:58
katamookay you specifically mentioned every network except the 192.168.1.0/24 dev eth0 network05:58
katamowhat is the .0/24 network?05:58
katamoand why does .1.0/24 have a netmask/24 whereas the 1.1 network has implied /32?05:59
genewitchinet 192.168.1.6  netmask 255.255.255.0  broadcast 192.168.1.25506:00
genewitch192.168.1.1/24? it's a class C handed out by another router right now06:00
genewitchit's out of band06:00
katamoadmittedly i'm a server engineer not a networking engineer and I deal mostly in virtual networks/servers06:01
genewitchyeah this is a unique thing.06:02
genewitchIt's a SBC with two nics that actually operate at gigabit so i was hoping i could set this up06:02
katamosounds like a fairly complex network for usb nic's?06:02
katamoah06:02
genewitchthe usb nic is a cellphone06:02
genewitchmy cellular modem got taken out by lightning06:02
katamooic. cellular gateway?06:02
genewitchyes06:03
genewitchso usb0 is just going to NAT to eth106:03
katamoI use LXD ubuntu servers as routers with odd nic devices & client wifi radios as wan all day so it should be straightforward06:03
katamohrm06:03
genewitcheth0 is just out of band so i can get in if those are down06:03
genewitchAs i said, i just need to ssh IN to eth0, eth0 doesn't need to route anywhere06:04
katamoOkay, do you ssh into it via the 192.168.1.1 or 192.168.42.129 address?06:04
genewitch192.168.1.606:05
genewitch.42 is cellular06:05
genewitchip a without eth1 http://projectftm.com/#iXR_MMRn9J7DXpLxooHptQ06:05
genewitchall this routes. i can ping google.com and i can ssh in06:06
genewitchlemme reboot with eth1 enabled06:06
genewitchbaby steps06:06
katamoOkay http://projectftm.com/#lmhaVjJrGSozjkZ5hIKL0A06:07
katamothat accurate?06:07
genewitchyes06:08
genewitchworking networking http://projectftm.com/#loQFlNCyXBQso4LWCf84UA06:09
genewitchnot working networking http://projectftm.com/#wnB3yyIcgi4U-81DDvd3SQ06:09
katamookay, please amuse me for a sec. can you cp your eth1.yaml to a safe place, then make a new one with copy paste of http://projectftm.com/#OMMBbGahZEd0nkjU5hvALw ?06:11
genewitchof course06:11
katamothen `ip link set eth1 down; ip link set eth1 up`06:11
katamowait06:11
katamo`ip link set eth1 down; netplan generate --debug && netplan apply && ip link set eth1 up`06:12
genewitchstand by06:13
genewitchok06:14
katamohow's our ping 4.2.2.2 look?06:14
genewitchcan't ping 4.2.2.206:14
katamo:*(06:14
genewitch:-D06:14
genewitchFrom 10.0.0.1 icmp_seq=4 Destination Host Unreachable06:15
genewitchso it thinks 10.0.0.1 is the default route06:15
genewitchwhereas it should be 192.168.42.whatever06:15
katamoif its not a route, than remove the gateway line from your .yaml06:15
genewitch^06:15
katamowait.... this is.... duh. its trying to use its own interface as the default route06:15
katamoshoulda seen that sooner. i'm silly after hours06:16
genewitchi'm just happy ssh always works on reboot right now06:17
katamohaha no doubt. you shouldnt have to reboot between netplan config changes though06:18
genewitchi do anyhow06:18
genewitchit's like 6 seconds06:18
katamofair enough then06:18
genewitchokay now i can ping 192.168.1.12 (that network) and the internet06:18
katamowoohoo!06:19
katamoand everything else?06:19
genewitchso why is gateway not necessary? does that autoconfigure a route or something?06:19
katamogateway tells the OS that it is a route. IE if there's not an obvious alternate, that is where to pass traffic for up stream nat06:20
genewitcheverything else isn't set up yet and i imagine the reason i can't ping 10.0.0.2 is that the router that is connected to has "ignore WAN ping" rofl06:20
katamolikely06:20
katamocell phones are a pita06:20
genewitchif this works it saves me literally $20006:20
genewitchso that's why i am so dedicated06:20
katamoabsolutely! I've used my cell hotspot as WAN for 2 days for fail over06:21
genewitchthat cellular modem costs a bit, and even that is double NAT - if i have to deal with double NAT i'd rather do it on my software06:21
genewitchoh this is my primary internet06:21
katamo:O06:21
genewitchi'm using my personal cellphone for testing, the actual cellphone is on a windows machine, i'm talking to you on an ubuntu VM in Los Angeles while sitting at a windows desktop in louisiana06:22
katamodo what works lol06:22
genewitchindeed.06:23
katamogenewitch given your use-case can I ping you with a thought out of channel? Its not ubuntu-server specific but relevant06:26
genewitchsure06:26
katamoping sent06:27
=== crimastergogo_ is now known as crimastergogo
ahasenackgood morning12:19
ahasenackkstenerud: I still see two issues in d/changelog in https://code.launchpad.net/~kstenerud/ubuntu/+source/tmux/+git/tmux/+merge/357991, not sure if you are still working on that or waiting for another review pass12:46
ahasenackxnox: hey, question about a server seed change you made a while ago12:55
xnoxahasenack, Which one? ^_012:55
ahasenackxnox: you added both gnupg and dirmngr to server seeds, but gnupg has a depends on dirmngr, is the latter really necessary?12:56
* xnox does a lot of seed changes12:56
ahasenackxnox: https://pastebin.ubuntu.com/p/dnDZDwy8Md/12:56
xnoxahasenack, need to check things...... back in the day gnupg and dirmngr got split out and at one point did not have the dep between themselves.12:56
ahasenackcould be12:57
xnoxbut now gnupg is a metapackage effectively12:57
kstenerudahasenack: I've pushed changes to address that. Do I need to write a comment about it?12:57
ahasenackkstenerud: I don't know if just pushing changes sends out an email notification, a ping/comment would be nice12:58
ahasenackkstenerud: but I see two other issues there still, I don't think he commented on them12:58
ahasenackkstenerud: the bug number is missing a #,12:58
ahasenackkstenerud: and the new version number is incorrect12:58
xnoxahasenack, right. So i think the change still stands. Albeit redundant now, but was not much so before.12:58
kstenerudwhat should the version number be?12:59
xnoxahasenack, this could be made lighter, by replacing "gnupg dirmngr" with "gpg dirmngr gpg-agent"12:59
ahasenackkstenerud: check the security team's page with that table12:59
xnoxahasenack, but imho having the full gnupg suite of utils is nice.12:59
ahasenackxnox: I agree with having gpg and dirmngr for the reasons you stated, I was just wondering if I was missing something since gnupg has a depends on dirmngr12:59
xnoxahasenack, any particular reason why you are asking about this? do you want to drop all of gnupg? or does this gnupg-metapackage-of-doom pulling in too much now?12:59
xnoxahasenack, when we still had gnupg2 package and were transitioning to the new one, the dirmngr depends was not there.13:00
xnoxso historical.13:00
ahasenackxnox: ok, thanks13:00
xnoxbut i'd want to keep it there, such that it doesn't regress again13:00
ahasenackagreed13:01
xnoxcause to talk to keyservers one needs dirmngr installed.13:01
ahasenackyes, the network part13:01
y1dsHello14:03
y1dsi`m having some problems with slapd on ubuntu 16.04 and was wondering if someone has some tips14:04
y1dsI want to change my admin password but I keep getting inufficient acces errors, something like this http://www.mehic.info/2014/05/rootdn-ldap_add-insufficient-access-50/14:05
y1dsbut i dont want to go and change those files14:05
y1dsive noticed a few thinfs14:05
y1dsin my olcDatabase={1}hdb,cn=config i have an olcRootDN and olcRootPW, this is the password i want to change14:06
y1dsbut it seems i need to use the creds from olcDatabase={0}config14:06
y1dsbut in there i only see a olcRootDN, no olcRootPW14:06
y1dsi`m reading here https://help.ubuntu.com/lts/serverguide/openldap-server.html14:06
y1dsand in the post install chapter i see this command: sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn14:07
y1dsthis returns No such object (32)14:07
y1dsbut i see the file strucute that is above in the docs14:07
y1dsany clues?14:07
y1dsive tried ldappasswd -Y EXTERNAL -H ldapi:/// -s welkom123 cn=Manager,dc=yo,dc=lo14:09
y1dsive tried making an ldiff and trying to put it in using my admin account but im not allowed14:09
ahasenacky1ds: do you know the existing password for cn=admin?14:31
y1dswell i know the password for manager, wich is the rootdn of the database, but not of the config14:33
ahasenacky1ds: try this example:14:35
ahasenackldappasswd -x -D cn=admin,dc=lxd -w secret -s newsecret cn=admin,dc=lxd14:35
ahasenack-w: existing password14:35
ahasenack-s: new password14:35
y1dsthat doesnt work14:35
ahasenack-D: dn of the admin14:35
ahasenackit does, I just did it14:35
ahasenackcn=admin,dc=lxd: dn whose password you want to change (same as -D for this casE)14:35
ahasenacknote I provided the existing password14:36
y1dsyes i tried that14:36
ahasenackbecause the acl for the userPassword attribute reads, among other things: by self write14:36
ahasenackroot@xenial-foo:~# ldappasswd -x -D cn=admin,dc=lxd -w secret -s newsecret cn=admin,dc=lxd14:36
ahasenackroot@xenial-foo:~# echo $?14:36
ahasenack014:36
ahasenackI jsut did it14:36
y1dssec14:37
ahasenackthere are two admins here, btw14:37
ahasenackone is for the cn=config db, the other is for the dc=lxd (or whatever domain you have) db14:37
ahasenackmy line above changes the pw for the dc=lxd suffix14:38
y1dsldap_bind: Invalid credentials (49)14:39
ahasenackthen -w has the wrong password14:39
ahasenackor -D is incorrect14:39
y1dsit is not14:40
ahasenackto change olcRootPW in the cn=config db (for the olcRootDN "user"), you need ldapmodify, not ldappasswd14:40
ahasenackldappasswd only changes the userPassword attribute14:40
ahasenacktry ldapwhoami with the same -D and -w14:41
y1dsldap_bind: Invalid credentials (49)14:41
y1dsyeah i tried changint it with ldapmodify and an ldiff14:42
y1dsbut i think the problem is that i need to be the root of olcDatabase={0}config14:42
y1dsthere is also a olcRootDN in there, namely cn=config, but not a olcRootPW14:43
y1dsyeah what you say aboce14:43
y1dsabove14:43
ahasenackit's not clear to me which password you want to update14:44
y1dsi think i need  to be the one for the cn-config db, but that one does not have a password14:44
ahasenackRootDN is the admin of the database, and it doesn't have to have an entry in the directory14:44
ahasenackits password is RootPW14:44
ahasenackthat's like the old rootpw setting in the old slapd.conf14:44
ahasenackyou need an ldapmodify operation to change that, authenticated with -Y EXTERNAL14:44
y1dswell, i want to change the password for the admin user of the dc=blabla, but i think i need the password for the admin of the cn=config db14:45
ahasenackyou don't have the existing password corresponding to the userPassword attribute of cn=admin,dc=blabla?14:45
y1dsyes i do14:45
ahasenackthen prove it with ldapwhoami, using that DN and password14:46
y1dsah yeah that works14:47
y1dsmade a typo before14:47
ahasenackin this example, https://pastebin.ubuntu.com/p/QjbPKCSkRZ/, you want to change userPassword from cn=admin,dc=lxd in line 24?14:47
ahasenackfor the example above, it would be: ldappasswd -x -D cn=admin,dc=lxd -w <existingpassword> -s <newpass> cn=admin,dc=lxd14:48
ahasenackthat treats cn=admin,dc=lxd just like any other entry, nothing special about it being admin, because you are binding as the entry itself14:49
ahasenackif you didn't have the existing password, then you would have to bind as the rootdn, and that password is rootpw, defined in the cn=config suffix14:49
ahasenackconfusing, agreed14:49
ahasenackI'm not a super fan of this cn=config structure14:49
y1dsah okay no but its differentin my setup14:52
y1dsthe admin is not a user14:52
y1dsit is the rootdn in the cn=config14:53
ahasenackok, then you need an ldapmodify operation on cn=config14:53
ahasenacksomething like14:53
ahasenacksudo ldapmodify -Y EXTERNAL -H ldapi:///14:53
ahasenackthen feed it14:53
ahasenackdn: cn=config14:53
ahasenackchangetype: modify14:53
ahasenackreplace: olcRootPW14:53
ahasenackolcRootPW: <newhash>14:53
ahasenackI think the dn in this example is wrong, locate the right one by dumping with slapcat -n 014:54
ahasenacky1ds: https://pastebin.ubuntu.com/p/SBZMKGP7Qq/ that set the new password to the plaintext value of "secreT" (no hash: don't do that)14:56
y1dshttps://pastebin.ubuntu.com/p/zdyQvR2xfk/14:57
ahasenackyour rootdn is just cn=config?14:58
y1dsapperently14:58
y1dsi must say i dont know much about ldap, and didnt set this up, im just trying to change some things14:59
ahasenacksee if this works: https://pastebin.ubuntu.com/p/xHYJjPnh9P/15:00
ahasenacknote I used slappasswd to generate a hash for "newsecret"15:00
ahasenackuse whatever password you want15:00
ahasenackah, use sudo ldapmodify, not just ldapmodify, of course15:01
y1dsyes15:01
y1dsinsuficient access15:04
ahasenackcheck if the acls are about uidnumber=0+gidnumber=0, that's when root connects to the ldapi socket and is what we are doing here when calling ldapmodify with sudo and -H ldapi:///15:06
y1dsbut is my assumption that i need to authenticate as the rootdn from olcDatabase={0}config,cn=config incorrect?15:06
ahasenackthe acls under cn=config15:07
ahasenackwell, depends on the acls15:07
y1dsuhm how do I check that15:07
ahasenacklook for attributes olcAccess15:07
ahasenackfor example, this is what allows that uidnumber=0+... to manage the db:15:07
ahasenackolcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=extern15:07
ahasenack al,cn=auth manage by * break15:07
ahasenackin my example db15:08
y1dsokay im gonna check15:08
ahasenackaccess to * by thatgui manage15:08
ahasenack"thatguy" being what ldapwhoami returned, in this case15:08
y1dshm I see olcAccess: {0}to *  by * none under dn: olcDatabase={0}config,cn=config15:09
ahasenackit's the last entry that wins15:15
ahasenackI mean, if there was no match before15:15
ahasenackso I guess it's the first one that wins15:16
ahasenackyou go from specific to generic15:16
y1dshm okay well im calling it a day for now thanks for the tips :)15:24
ahasenacky1ds: cheers, good luck15:25
ahasenackkstenerud: remember you have to explicitly ask for sponsorship in the MP before someone will just tag and upload a package for you16:41
kstenerudahasenack: So I just write "please sponsor this"?17:01
ahasenacksomething like that17:01
ahasenackI'd also add the git hash, confirming that's what you want sponsored17:01
kstenerudok17:01
ahasenackrbasak: looking at https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/1745185 that person could be using that other mysql package that has no "initscripts", right?18:08
ubottuLaunchpad bug 1745185 in mysql-5.5 (Ubuntu) "If apt-get upgrade is run on mysql server when the server is disabled, the upgrade fails." [High,Confirmed]18:08
ahasenackwouldn't be solving the bug, though18:08
rbasakahasenack: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1592669 is related18:09
ubottuLaunchpad bug 1592669 in mysql-5.7 (Ubuntu) "postinst fails when daemon is not running (or is disabled by policy-rc.d)" [High,Fix released]18:09
rbasakahasenack: apart from that bug (which we've fixed now, not sure about what release the reporter is using), I think that correct behaviour and any bugs in postinsts attempting to restart masked services is down to debhelper.18:10
rbasakahasenack: I'd like to know exactly what Ubuntu release and package version the reporter is reporting against, and exactly how (what command) the reporter is disabling the service. Ie. full steps to reproduce. Until then, Incomplete IMHO.18:11
ahasenackthat was mysql 5.5, command was systemctl disable mysqld18:12
ahasenackwhich indicates it was...18:12
ahasenacktrusty18:13
sdezielsystemd and trusty?18:13
* ahasenack wonders that18:13
* ahasenack does a quick check on bionic fwiw18:13
sdezielbionic didn't ship mysql 5.5 AFAIK18:14
rbasakI think that's why he's wondering :)18:14
ahasenackI meant I will try a sequence of disable + upgrade on bionic18:15
sdezieloh upgrades could explain the oddity18:15
ahasenackworked just fine in bionic18:21
ahasenackit got started up again during the pkg upgrade, but was stopped at the end18:22
ahasenackfailed in xenial18:24
ahasenackwhich also has mysql-server-5.718:24
chillageGood time, i wanna wondering maybe someone have appboxes.co server or maybe some one have server something like appbox?18:45
ahasenackI don't18:51
chillageYou know, my friend got rented server for him from him admins.. ant we don't know how open port at that specific "appbox" (Ubuntu 18.10 VNC) for znc, there are not default firewall i think there are specific firewall..19:01
chillagespecific firewall19:02
tewardchillage: well if there's no firewall that you can manage on the server, it'd have to be form the appbox control panel19:08
tewardand if there's not a firewall there you can control then you have to contact the admins19:08
chillagei'll ask him about control panel, he told me that are desktop and terminal window.. contact with admins who give him server it's little bit dificult because they can't know about znc.. se if we don't found control panel then we try write to appboxes.co a19:15
chillageso thank you for help:) nice halloween night then, until19:17
plmHi all19:26
chillagegood time, plm,19:42
chillageok, i'm away, good luck19:44
tewardchillage: if they can't know about ZNC, that suggests that it's not permitted on their infrastructure, so you should avoid running it there.19:59
memphistohi, how do i share printscreen here20:07
sdezielahasenack: I too don't know what acpid is used for these days20:07
sdezielahasenack: I've be purging this on servers since Xenial IIRC20:07
ahasenackheh :)20:07
ahasenackthat's good info :)20:07
memphistoi can't pass the filesystem setup screen , i'm doing manual partition with LVM, /(root)as btrfs , ext4 home...20:10
memphistoi'd like to share screenshot but don't know how/where to uplaod20:10
ahasenackrbasak: (for whenever you read this) is linux-meta (src) a known git-ubuntu import failure? It's a main package, but not imported20:11
ahasenackmemphisto: you should upload it somewhere, there are some free image hosting services20:11
ahasenackor even dropbox and the like20:12
ahasenackgoogle drive20:12
memphistothanks20:12
memphistohttps://imagebin.ca/v/4L1qdANGnY4j20:12
sdezielahasenack: I dig a little and found a commit in my puppet stuff: "remove acpid from Xenial VMs (not needed thanks to systemd)" dated Oct 17 10:15:24 201720:15
ahasenackmemphisto: is this 18.04 or 18.10?20:15
memphistoahasenack: 18.04.120:16
ahasenacksdeziel: I tried a trusty vm, but could still power it off externally without acpid, so I wasn't sure what was going on there20:16
ahasenackmemphisto: that looks like a bug, let me give it a try20:17
memphistoahasenack: yes, it looks like it20:17
ahasenackmemphisto: have you tried 18.10 also?20:18
sdezielahasenack: interesting, found another note where I concluded that 15.04+ only needed the dbus package to properly handle ACPI signals in KVM20:18
ahasenacksdeziel: interesting, I saw dbus messages in the console when I pressed the power button20:18
memphistoahasenack: no, i haven't...i like using only lts20:18
sdezielahasenack: I may have missed that 14.04 was also OK20:18
ahasenackmemphisto: that's fine, just checking if it was perhaps fixed in the 18.10 installer20:18
ahasenackmemphisto: the whole disk is a pv, right20:20
memphistoahasenack: yes20:20
ahasenackmemphisto: yeah, same here20:24
ahasenackmemphisto: let me try 18.10 to compare20:25
memphistoahasenack: great, thanks ... for a moment i thought i'm going crazy20:25
ahasenackI think it might be because /boot (part of / in this case) is not in its own partition20:27
ahasenackverifying that oo20:27
memphistoyesss20:29
memphistodoes it really have to be separate?20:30
ahasenackdon't know yet20:31
ahasenackthe moment I add an actual partition for /boot, I can't setup lvm anymore20:31
ahasenackyeah, it was /boot20:34
memphistook, how did you create /boot and lvm ?20:34
ahasenackso I think it's bug https://bugs.launchpad.net/subiquity/+bug/178533220:34
ubottuLaunchpad bug 1785332 in subiquity "18.04.1 can't put /boot on SW RAID" [High,Triaged]20:34
ahasenackmemphisto: I created a big partition to hold the PV, and left it "unformatted"20:34
ahasenackmemphisto: then created the PV in that unformatted partition20:35
ahasenackafter that I was able to add a /boot partition with the remaining space, outside the pv20:35
ahasenackand add the lvs to the vg as usual20:35
ahasenacklet me share a screenshot20:35
ahasenackbut the order was important, because the moment you create a /boot partition, the lvm option becomes grayed out20:35
memphistono need, got it20:36
memphistodoing it right now20:36
ahasenackmemphisto: http://people.ubuntu.com/~ahasenack/partitioning.png fwiw20:36
UsQUEAnyone did migration from FreeBSD samba dc to Ubuntu Server Samba dc?20:42
ahasenackany sort of samba migration sounds hard on its own20:45
UsQUEnah I think its pretty easy :P20:47
UsQUEjust backing up the correct files and restore them back on the new system20:47
UsQUEanyone got HyperV server + Samba DC constrained deligation working ?21:25
compdocHyper-V is too slow for my guests21:50
naccUsQUE: isn't that  question for either samba or hyperv?21:52
nacc(/ microsoft)21:52
RoyK!ask | UsQUE23:32
ubottuUsQUE: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience23:32
rbasakahasenack: it's blacklisted.23:36

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