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

theborgerhey everyone i sm having all kinds of issues with yaml. when i add the 2 networks and then run netplan apply it just keeps saying the same error over and over02:21
theborger/etc/netplan/50-cloud-init.yaml:7:11: Error in network definition: bond0: interface 'enp0s25' is not defined02:21
theborger- enp0s2502:21
theborger          ^02:21
theborgererm the ^ is pointing at the e02:22
Havenstancerunning into an odd issue using cifs-utils to mount a share from Windows Server on my Ubuntu Server. I can access just fine, but I cannot seem to for whatever reason delete any files, and some programs are saying they can't access the folders. Is there some way of mounting that would fix this? or has anyone in here ever tried this type of setup? I'm thinking it's a permission issue between windows/ubuntu svr yet I'm not even sure where to03:49
Havenstancelook for it03:49
HavenstanceI may have found the solution to this issue, sharing a root drive is something windows flat will not do, I moved the library to a folder inside the drive, shared that, and will know in a moment if it fixed it03:55
lordievaderGood morning07:18
=== cpaelzer__ is now known as cpaelzer
TJ-Is there a specific channel for Canonical kubernetes (install) issues?14:55
masonTJ-: https://wiki.ubuntu.com/IRC/IrcTeam/Scope15:06
masonTJ-: Then again, there are channels that aren't listed, like #netplan, so maybe there's an unofficial channel.15:07
TJ-mason:  indeed; with snaps its got stuipidly difficult to figure out where support should be15:08
masonTJ-: Ah, https://ubuntu.com/kubernetes/docs/get-in-touch notes #cdk8s15:10
TJ-mason:  nice find! thanks15:11
TJ-I tried querying alis but without result15:12
hggdhQ: I am lookinv for docs on what modules come in linux-modules-extra. I knew (of old) of some sort of docs, but I cannot find it anymore. Anyone has a pointer?15:12
=== hggdh is now known as hggdh-msft
sdezielhggdh-msft: something like this https://packages.ubuntu.com/focal/amd64/linux-modules-extra-5.4.0-14-generic/filelist maybe?15:14
masonhggdh-msft: There's always https://packages.ubuntu.com/ or just downloading the package and breaking it open.15:14
hggdh-msftyes, I looked at it (and this is how I found bout the module I needed). But what I am missing, for the client is some wording on why, and how it was split into tewo packages15:18
hggdh-msft(actually I found it via apt-file search gtp.ko first)15:19
masonhggdh-msft: For "why" you'd need to maintain the package maintainer.15:24
masonor email him15:24
masonENOCOFFEE15:25
hggdh-msftapw, methinks... will ping him15:26
hggdh-msftoh, already done :-)15:26
thelounge5173I've got a headless ubuntu server runninng. ISP has gone out twice in the past week and both times the network will not recover on this machine. Has never been an issue before and restarting systemd-networkd does not solve the issue. Full reboot required. Any way to troubleshoot for a solution?20:09
masonthelounge5173: Did you try ifdown/ifup ?20:10
thelounge5173mason I didn't. I can try and replicate this issue to see if that solves it. But I'm hoping it's a configuration issue causing it to not come back automatically.20:11
masonThen again, I'm only probably 90% certain those exist for netplan.20:11
thelounge5173yeah, ifdown "command not found"20:11
TJ-thelounge5173: firstly, if SD-ND restart doesn't bring it back up, and it's a regular wired Ethernet that suggest a hardware/link issue20:12
masonHrm. I don't think 'netplan apply' matters here since you're not changing the config. What happens when you... do you say "restart systemd-networkd" or do you say "stop" and then "start"?20:12
thelounge5173mason I tried both20:13
masonTJ-: Aren't there cases where restart won't work but stop/start will? ISTR reading something to that effect recently.20:13
masonkk20:13
thelounge5173TJ- I tried swapping out the cable before restarting thinking it could have been a connection issue. also tried different switch port. no luch20:13
TJ-mason: I think those only apply to the semantics of how SD tries to restart a service20:13
thelounge5173luck*. Only system reboot fixed it so far20:13
TJ-thelounge5173:  how about checking the kernel log? seeing what 'ethtool' reports... could be a power-save issue. would help to know the exact hardware "lspci -nn -d ::0200"20:14
thelounge5173Intel Corporation Ethernet Controller 10-Gigabit X540-AT220:15
masonTJ-: Are there any relevant logs from the ineffective restart attempts?20:15
TJ-thelounge5173:  "journalctl -b -1" would show the log from the last boot. -2 -3 -4 the previous boots and so on20:15
thelounge5173Only think in syslog with 'ethtool' in it: https://pastebin.com/YUfusQrf20:16
TJ-thelounge5173: what is the [vendor:device] that lspci -nn reports at end of line20:16
thelounge5173full line: 05:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)20:16
TJ-thelounge5173: so the driver for that is "grep -i '8086.*1528' /lib/modules/$(uname -r)/modules*" => " /lib/modules/5.3.0-25-lowlatency/modules.alias:alias pci:v00008086d00001528sv*sd*bc*sc*i* ixgbe "20:18
TJ-thelounge5173: try to identify a boot where the link didn't come back up from "journalctl --list-boots" ... then, if for example you decide it was -4, do 'pastebinit <( journalctl -b -4 -u systemd-networkd)" and give us the link20:20
thelounge5173well it's not that it doesn't come back from boot, it just doesn't come back when the internet goes down and comes back up (ISP outage)20:21
thelounge5173not sure if that's different.20:21
TJ-thelounge5173: I know... what I'm hoping you can find is a boot where that happened, so we can find clues in the logs when the link doesn't come back up20:24
thelounge5173ah20:25
thelounge5173well FWIW it's not that SD-ND never came back, its status was showing as running, but there was no network on my interface20:26
thelounge5173does that matter?20:26
TJ-thelounge5173:  no... we're hunting clues. if the SD-ND log doesn't help we'll widen the scope and grab the kernel log for that boot, instead20:27
thelounge517310-420:28
TJ-thelounge5173: it could be the link comes back up but fails to gain an IP address, for example, which would point to a DHCP issue20:28
thelounge5173ah20:28
thelounge5173got it20:28
TJ-ooo... CB speak, good-buddy :)20:28
thelounge5173:P20:29
thelounge5173Ok, so nothing wrong that i can tell with journalctl's boot logs20:29
TJ-thelounge5173: if the ISP link does down, presumably the PC itself is connected to a gateway/router on your LAN, so the wired link shouldn't change in any respect20:31
TJ-thelounge5173: in which case the issue could be in the gateway device20:31
thelounge5173So my router?20:31
thelounge5173Possible. I've been meaning to increase the DHCP range in case I do hit the limit since I do have a good chunk blocked off for static IPs20:31
thelounge5173well, although this server has a static IP20:32
thelounge5173but could be another issue with it I suppose (the gateway I mean)20:32
TJ-thelounge5173: so when the ISP drops does the server lose its IP address? is it IPv4, IPv6, or both? how are you determining the network doesn't recover - what tests are you doing20:33
TJ-thelounge5173: e.g. is it only name resolution that fails, which would point to DNS not connectivity20:33
thelounge5173no. I'm unable to shell into it from the same network or outsite, opening a console on the physical machine I'm unable to 'ping google.com' OR 'ping 8.8.8.8'20:34
thelounge5173'ip addr' shows no IP set for that interface either20:34
TJ-thelounge5173:  so it loses the IPv4 address, yet you say it is set to static?20:35
thelounge5173yes20:35
thelounge5173unless I didn't set that up properly20:35
TJ-thelounge5173:  is it 'static' as in set on the server via netplan or systemd-networkd config, or 'static' in the DHCP server?20:35
thelounge5173but it does have the proper IP address :P20:35
thelounge5173here's my /etc/netplan/50-cloud-init.yml: http://paste.ubuntu.com/p/hJYyBkjGQk/20:36
thelounge5173so on the host itself20:36
TJ-thelounge5173: the weird part is the interface losing the IPv4 ... that would generally only happen if the Ethernet link itself drops. When the ISP link fails does the gateway device reboot or do anything else 'weird' ?20:38
thelounge5173nope20:38
thelounge5173checking uptime of the gateway just to be sure...20:38
thelounge5173well.. maybe something happened: uptime: 4h 50m 44s20:39
thelounge5173so yeah, something did happen with the gateway20:39
TJ-thelounge5173: so let's imagine a scenario. Server starts, link to router/gateway comes up, everything fine. ISP link drops, for some reason the gatway device powers off/restarts, which means the Ethernet link to server drops, so SD-ND removes the IP address... link comes back up but for some reason SD-ND doesn't reset the IPv420:42
TJ-thelounge5173:  is the ISP device the same as the LAN gateway?20:42
thelounge5173no20:43
thelounge5173Got a USG for the gateway20:43
thelounge5173Interesting it rebooted. My server or Pi didn't, but there is a UPS. I would swear that the USG is on that UPS but can't confirm until I get home.20:46
thelounge5173which is curious why the gateway rebooted....20:46
thelounge5173But regardless, still unusual that SD-ND didn't reset the IPv4. Even after I restarted its service.20:47
TJ-thelounge5173: if the link dropped the IPv4 would be removed... not sure if it'd be re-added on link returning I'd have to test that, but I think it does. What is weirder is restarting SD-ND not restoring it20:48

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