pkunkHow do I configure netplan to work in "server mode". i.e interfaces are expected to be Always up if they are detected11:00
pkunkI would like to disable the link detection so that any configured interfaces are always assigned IP's. This is a server so I know how to handle the routing etc.11:01
pkunkRight now if I pull the network cable in my ubuntu server, all the IP's for that interface get removed11:01
blackflowpkunk: netplan is using the systemd-networkd backend by default and you can of course force specific interface name, match-by, and almost every other param, via netplan12:14
blackflowpkunk: examples: https://netplan.io/examples12:14
blackflowI wouldn't know what happens to ifaces when you unplug the cable, when networkd is in charge, but if they disappear, it's networkd doing it, not netplan. netplan is just configuration abstraction tool.12:15
pkunkblackflow: Thanks, so if I change the renderer to ifupdown then I can skip the "feature" of systemd ?12:42
blackflowpkunk: no. netplan only supports networkd or NetworkManager backends. if you want ifupdown, you need to install the pakcage, configure it, and remove any files under /etc/netplan/ so it doesn't mess up with your ifupdown stanzas12:43
blackflowI'm curious, though, what are you trying to achieve tho? netplan (And networkd) definitely do support static network config.12:44
pkunkThanks, I'm passing the ball to #systemd now12:44
blackflowI mean when the cable is unplugged, there's no network over those ifaces, so what's the matter if the ifaces disappear?12:45
tnewmanis there a way to install ubuntu-server without an internet connection?13:53
tnewmanat least without an internet connection during install13:54
tomreyntnewman: the alternative installer will do it. maybe also the 18.04.2 standard installer.13:54
tnewmancould i get a link to the alternative installer?13:57
tomreynlooks like the 18.04.2 installer still has some issues with it if you a NIC with no cable connected.13:57
tnewmanhttp://cdimage.ubuntu.com/releases/18.04.2/release/ubuntu-18.04.2-server-amd64.iso this one?13:57
tomreyn-> server -> see our alternative downloads13:58
tomreyn-> Alternative Ubuntu Server installer13:58
tnewmanlink me to an iso13:58
tnewmani'm looking at that webpage13:58
tnewmanand it just looks like a linkn to regular 18.04 server iso13:59
tnewmanis that just a different wizard on the normal server install iso?13:59
tomreynyes thats the alternative installer13:59
tomreynalso known as debian-installer13:59
tnewmangotcha, i'll give that a whirl <314:00
tnewmanthanks for the help :)14:00
tomreynyou're welcome.14:00
tomreyntnewman: fwiw, i just verified that you can not yet install 18.04.2 using the standard server installer if a NIC was detected but no cable connected / no pyhsical link detected.14:43
tomreynso indeed you'd need to keep using the alternative installe rin this scenario14:43
tnewmanthats a little poopy tomreyn14:44
tomreyni'm sure we can all agree on this.14:45
tnewmanwonder when internet connectivity started being a requirement for ubuntu server like that :<14:46
rbasakIt's bug 175081914:47
ubottubug 1750819 in subiquity "Impossible to install without network" [High,Fix released] https://launchpad.net/bugs/175081914:47
rbasakI believe (but haven't verified) that this is fixed in the upcoming 19.04 release next week.14:47
rbasakThe next point release for 18.04 should have it.14:47
tomreynoh right there was this workaround, i had forgotten14:51
tomreyncomment #1014:51
tomreynbut then the boot process is also delayed because snapd can't reach the internet14:52
pkunkIs there any way for make netplan emit "ConfigureWithoutCarrier=yes" for a particular connection even though it isn't of type ND_VIRTUAL ?15:18
DeleriumGood afternoon guys - hoping I have an easy one... I've just upgraded my home ubuntu server to Bionic Beaver but since the upgrade all programs will not accept incoming connections (apache, mysql.. even teamviewer). I have disabled ufw and this has no impact. I can actually ssh into the box without an issue. I've amended the application config files to have the correct ip address in as17:22
Deleriumthe upgrade reset them but still no luck. Really pulling my hair out at this stage - anyone have any pointers?17:22
tomreynDelerium: can you locally connect to those tcp ports?17:25
tomreyndoes     iptables -L    show remaining rules?17:26
tomreynDelerium: and please don't cross post.17:27
Deleriumtomreyn: oh sorry i was just following advice from the other guy to post in here17:28
Deleriumtomreyn: i can locally connect to the apache and mysql server no problem at all17:29
tomreynok, i noticed you also asked and kept discussing it there, but notice now it's also the other volunteer who didn't let you go. ;)17:29
Deleriumtomreyn: <tomreyn> does iptables -L show remaining rules? - Unsure what you mean here?17:32
tomreynDelerium: 'iptables -L' lists all iptables firewall rules in all chains.17:34
tomreynyou said you disabled ufw. this probably means that most rules are gone, but some may still remain. either way it's best to check with iptables directly than with the ufw 'frontend'17:35
tomreynjust to rule out that disabling ufw did not work, or not entirely17:35
Deleriumtomreyn: the iptables command comes up with a lot of entries - is it possible to reset it all?17:36
tomreynyou can flush all rules using -F. this *may* impact your existing ssh session.17:37
tomreynso don't do it unless you have a way to physically access the system or have some form of out of band access17:38
Deleriumits a local machine in my house :)17:38
tomreynyou said home server, you did not say where you are now, so i had to bring it up. ;)17:39
Deleriumtomreyn: as if by magic everything is working again - thank you so much buddy - i've litterally spent about 5-6 hours today trying to fix this machine17:40
tomreyninteresting :-/17:40
Deleriumall i can think of is some sort of corruption during the upgrade process17:41
tomreynyou should probably undo the fixed configuration son those daemon configuration files, though.17:41
tomreynalso have a look at the output of    ubuntu-support-status --show-unsupported17:41
tomreynthis can be useful especially after a release upgrade.17:41
Deleriumthanks :) Ill take a look17:42
tomreyn...and may hint on packages which are giving apt's package depednency resolver a difficult time.17:43
Deleriumtomreyn: this is interesting....and frustrating.... after a short while after i've flushed those iptables the issue comes back18:04
tomreynDelerium: a short while, in which you did nothing at all? or a short while in which you rebooted it, reconnected the ethernet wire, restarted or reconfigured networking?18:06
tomreyni recommend having a look at the release notes regarding networking if you haven't done so, yet.18:06
Deleriumthe only thing i configured was the ufw to accept only local network connections and it was fine then.... pooof gone18:07
Deleriumactually scratch that - in my latest test i did NOT even config/activate the ufw so literally did nothing18:08
tomreynhave a look at the systemd journal, see if you can correlate the time18:09
Deleriumseems stable now18:30
Deleriumproblem 2 - looks like the update corrupted one of my mounts - the mount it corrupted is one that has a space in one of the directory names which the previous ubuntu version allowed by putting 040 as the spaced character. Any ideas whats changed?18:31
Deleriumerror is no such file or directory now18:31
tomreynDelerium: maybe the locale changed from non-utf-8 to utf-8? but this should actually have happened before 16.0418:44
tomreynuse single quotes around the full absolute path and tab completion to have the shell help you enter the path in an acceptable way.18:45
Deleriumtomreyn: "use single quotes around the full absolute path and tab completion to have the shell help you enter the path in an acceptable way." <--- Can you explain what you mean here - i have the entry in the fstab18:46
tomreyntype: ls /path/to/directory/i/can/still/enter/fine/18:48
tomreynthe directory name you cannot enter properly is below "fine/" in this example18:48
tomreynthen juyt go to the end of the line and double tap the TAB key.18:48
tomreynthis should print contained / sub directories18:49
tomreynnow type the first character of the otherwise unspellable subdirectory (the one with the special character in it)18:49
tomreynthen double-TAB again. add more single characters until it fully completes the name18:50
tomreynthis may actually be optional then:  once it fully completed the name, put a single quote to the beginning and end of the full path on this command line.18:51
tomreynand press enter, you shoould now have a way to enter the full path.18:51
Deleriumhmmm ok i think i tried this the first time round and fstab didnt like it18:52
tomreynthere is also    ls --escape18:52
Deleriumok so the method you have advised to create the path just added a \ before each space in the directory. Navigating to the directory that method works a treat but when trying to put his into the fstab for a mount command it gives a parse error and ignores the line :(18:54
tomreynyou need to escape blank spaces by backslashes on fstab18:55
tomreynit may also be possible to enter those paths in quotes there, i never tried18:55
Deleriumso as an example entry i have // account/status18:56
Deleriumive tried //\ account/status but its not worked - it worked prior to the upgrade with //
tomreynso that's a network mount then? cifs?18:57
Deleriumfstab comes back with a parse error if you try quotes18:57
Deleriumyes its a cifs mount18:57
tomreyn040 sounds like @18:57
tomreynthat'd be hex18:58
tomreynsince cifs mounts are specified as URI's, you'd probably need ot use URL escaping18:58
tomreynso %4018:59
Deleriumno dice18:59
tomreyn\@ might also work, or just @ (but i assume not)18:59
Delerium:( nada19:01
tomreyn"smbclient -L ip_of_net_interface -U your_user_name" should list available services19:01
tomreynthe unspellable thing seems to be a 'service' in the samba nomenclature.19:02
Deleriumhmmm im tempted to rename the directory and then go through all of the scripts underneath to ensure ive not broken any - seems to be the path of least resistance at this point haha19:05
tomreynoh i think you can specify a codepage as a mount option, too19:07
Meadso this has been bugging me since I installed ubuntu server in my lab, my startup hangs at this https://paste.ubuntu.com/p/VgGFZHsq2r/  how can I get it to NOT hang for a few minutes?19:08
tomreynDelerium: here's the man page, in case you have some time ;-) http://manpages.ubuntu.com/manpages/bionic/en/man8/mount.cifs.8.html19:08
Deleriumtomreyn: ill give it a whirl - thanks for all your help tom19:08
cryptodan_mobileMead is it setup via dhcp19:08
tomreynyou're welcome, good luck.19:09
Meadcryptodan_mobile: you mean it is hanging to get a DHCP lease?19:10
cryptodan_mobileMead it is hanging because it cant configure networking19:10
Meadstrange, cause networking works and configures via netplan config19:17
tomreynDelerium: more text here, with some good hints https://www.kernel.org/doc/Documentation/filesystems/cifs/README19:17
cryptodan_mobileMead but is there a net plan config file19:25
Meadcryptodan_mobile: yes, and I and I have even added lines to it.19:30
Meaderr - one of those "and I"19:30
cryptodan_mobileWhen it was created did sudo netplan apply to see if it worked19:40
Meadyes, infact I just reapplied it and rebooted my server to make sure,19:41
cryptodan_mobileIs it set to render via networkd19:41
Meadhttps://paste.ubuntu.com/p/W6XPTg63Qf/  this is my /etc/netplan/*.yaml config19:45
tomreynwhat does     systemctl status systemd-networkd-wait-online.service    say about it?19:47
cryptodan_mobileMead https://termbin.com/0vga19:48
Meadcryptodan_mobile: what is up with that config?19:51
tomreynhmm so maybe enp3s6 is failing to get a dhcp lease19:51
tomreynif you look at those  "systemd-networkd-wait-online[696]: managing: enp3s6" messages on your journal, does it provide more contextual information?19:52
Meadwell, nothing is plugged into it yet19:52
cryptodan_mobileRemove it then19:53
tomreyn...may be related (i know, not static)19:55
Meadnope I was wrong, it is enp3s5 with nothing plugged into it, enp3s6 is plugged into the gateway and has a DHCP lease right now19:56
cryptodan_mobileIs the gateway also serving dhcp619:58
Meadyeah, so the port with the error message in that pastebin is functioning19:58
Meadcryptodan_mobile: yes, I've got ipv6 service20:00
Meadhurm, strange.  I know my netplan yaml doesn't have the dhcp6: true line, but the "ip a" output shows an ipv6 address and gateway20:02
Meadwelp adding the dhcp6: no to the interface didn't stop this.  Funny thing is that it was having this issue before I messed with the netplan yaml file and I was using whatever the default install configuration is20:12
Meadnow this is even more strange,  after reboot and including the dhcp6: the "ip a" output still shows ipv6 address assigned20:17
cryptodan_mobileMead might want to see if your cables are in the right ports20:19
Meadthey are20:20
cryptodan_mobileThen I'm out of ideas20:20
Meadshould I go ask the fine folks in ##linux or #netplan for the best results?20:21
tomreyni suggest you review the systemd-networkd configuration netplan wrote for you, too. just in case.20:35
Meadtomreyn:  you mean the ones in /run/systemd/network?22:26
rockyfelleHey, im running a cloud service sync (megacmd) with a symlink there from www/html so apache2 can access it, ive given the megacmd folder the proper permissions so apache2 can use them, but every time a file is updated on behalf on megacmd the permissions are reset which makes apache2 unable use the files22:35
tomreynMead: yes23:23
MeadIt looked fine to me, there was no differnece between enp3s5 and enp3s6 ports23:26
tomreynrockyfelle: either change the umask "megacmd" (i do not actually know what this is and what impact this change might have) operates with, or join www-data to megacmds' primary group (the previous note applies here, too).23:27

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