/srv/irclogs.ubuntu.com/2021/07/05/#ubuntu-server.txt

=== mybalzit1h is now known as mybalzitch
=== masACC is now known as maswan
lordievaderGood morning07:16
sveinseWhat should I put in /etc/fstab to prevent 20.04 from locking up the boot? I have "nfs defaults,bg 0 0" in it, and it locked the boot for over 10 hours as the remove was unavailable :( Had to forcibly reboot the machine and use recovery mode to remote the fstab entry.08:42
sveinseThe ssh server prevented me from logging in, so I couldn't fix it remotely either08:46
lordievadersveinse: Is the mount necessary for boot or can it be an automount (mount on first access)?09:08
fricklersveinse: the other solution would be to setup a systemd service that fires only after the network setup is done, see e.g. https://cloudnull.io/2017/05/nfs-mount-via-systemd/09:23
sveinselordievader: its not directly necessary for boot. The boot must not halt if it cannot be accessed09:23
lordievadersveinse: I typically have `noauto,_netdev,x-systemd.automount` in my fstab for NFS entries. `_netdev` tells systemd it is a networked file system and therefore requires the network-online.target. `noauto,x-systemd.automount` make sure it is not mounted at boot, but rather the first time it is accessed.09:28
sveinselordievader: yeah, I thought one didn't need the '_netdev' any more, but I might be mistaking09:29
=== axino` is now known as axino
=== leftyfb_ is now known as leftyfb
=== genii-core is now known as genii
facefacehello17:50
facefaceA colleague of mine disabled DNS on a server (I think). Now I don't know how to reconfigure it to defaults.17:50
faceface/etc/dnsmasq.d is in cruft output... I guess they removed dnsmasq17:52
facefaceWhat is the ip address of the apt server?17:53
facefaceor.. do I need dnsmasq?17:53
bigpodfaceface: what version of ubuntu server do you hve18:08
facefacebigpod: DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"19:09
bigpodmaybe systemd-resolved needs to be enabled19:11
ouzel8_Hi! I performed a do-release-upgrade on 18.04.4 to upgrade to 18.04.5 in the last few days. I note to you that the server had a static ip set using netplan, and the configuration seen under section "Static IP Address Assignment" found on https://ubuntu.com/server/docs/network-configuration. After rebooting the server, there was no network connectivity.22:20
ouzel8_I tried to systemctl restart networking.service22:21
ouzel8_But the tool said the unit file did not exist22:21
ouzel8_I have since found that the netplan configuration file (with details about the static ip was deleted through the transfer) /etc/netplan/99_config.yaml. I have recreated the file, and run netplan apply.22:23
ouzel8_However, with no effect to the networking after rebooting the server.22:23
ouzel8_As a temporary measure I have assigned a static ip to the server using the ip tool as per "Temporary IP Address Assignment" on the same webpage given above.22:25
ouzel8_Does anybody have any suggestions on how to solve this problem.22:25
patdk-lapthat is really od22:29
patdk-lapdo-release-upgrade doesn't upgrade you from 18.04.4 to 18.04.5, it upgrades you to 20.0422:29
patdk-lapdoing a *normal update* upgrades you do 18.04.x22:29
ouzel8_I see22:29
ouzel8_Well, I started do-release-upgrade via ssh22:29
ouzel8_Despite the warnings.22:30
patdk-lapya, I don't have time to figure out the issue22:30
patdk-lapbut the problem was you where running in 18.04 and upgraded to 20.04 and some config files that where modified by hand need to be adjusted22:31
patdk-lapand your going have to locate each one and update it to work with 20.0422:31
ouzel8_I encountered some issues, then do-release-upgrade said do an upgrade through apt-get upgrade22:31
patdk-lapI normally do this during the upgrade, since it tells you each time it hits one of those files22:31
patdk-lapapt-get upgrade will get you to 18.04.5 without installing new dependencies22:31
ouzel8_Then after this upgrade finished, then I rebooted the system, I then encountered the error.22:31
patdk-lapapt-get dist-upgrade will fully update you including kernel updates22:32
ouzel8_After apt-get upgrade the system was upgraded to this version "Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-77-generic x86_64)"22:34
ouzel8_As you have detailed, the configuration files were deleted through the upgrade22:34
ouzel8_I have regenerated the configuration file, however, now the networking.service unit file does not exist.22:35
ouzel8_So systemd networking services do not start when the system firsts boots.22:36
patdk-lapya, I do not know that, files don't just get deleted during the update22:36
ouzel8_I was not prompted at all.22:36
patdk-lapbut then I had migrated all of my systems to netplan awhile ago22:36
ouzel8_Well as I have regenerated the netplan configuration. I now need to get the networking system renderer to actually use the configuration file.22:48
ouzel8_I will await anybody whom can help with this.22:48
sdezielouzel8_: on 18.04, were you using netplan?23:03
ouzel8_@sdeziel yes I am23:10
=== genii is now known as genii-core

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