/srv/irclogs.ubuntu.com/2019/03/29/#ubuntu-server.txt

patz0rhey guys, I have a Ubuntu server running 18.04 and I just noticed that timedatectl is not running and fails to start05:40
patz0rthis is what I see in the logs, any idea what I can try to fix this?05:41
patz0r# timedatectl05:41
patz0rFailed to query server: Connection timed out05:41
patz0r# tail /var/log/syslog05:41
patz0rsystemd[1]: systemd-timedated.service: Failed with result 'exit-code'.05:41
patz0rsystemd[1]: Failed to start Time & Date Service.05:41
patz0rdbus-daemon[16875]: [system] Activating systemd to hand-off: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.76' (uid=0 pid=20578 comm="timedatectl " label="unconfined")05:41
patz0rI think this is actually my issue.. [system] Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)06:35
patz0rany ideas on how to fix it without a reboot?06:36
patz0rhaven't touched this machine for a few months, logs like that go back to at least december06:36
=== aditya_ is now known as aditya
=== aditya_ is now known as aditya
lordievaderGood morning07:43
=== cpaelzer__ is now known as cpaelzer
=== aditya_ is now known as aditya
=== lotuspsychje_ is now known as lotuspsychje
DammitJimdefinitely not the right channel, but I don't know where else to ask... do you guys know of the proper technology/tool to continuously transfer files @ 5 files per second over WAN? I think at this point, the files are about 56KB14:46
lordcirthDammitJim, are these files coming in constantly, and need to be synced across when they do?14:49
DammitJimthey are coming in constantly14:50
DammitJimwhat do you mean by synced?14:50
lordcirthI mean you want to immediately start copying them over WAN, best-effort, non-blocking14:51
lordcirthFirstly I suspect you'll want inotify to trigger the copy14:51
DammitJimI see what you are saying. Yes, I'd like for something in the stack to ensure the delivery of the files14:52
DammitJimin this sceneario, I'm looking for what kinda transport/protocol to use14:52
DammitJimWe'll be the receivers fo this data14:52
lordcirthYeah, this is an interesting question actually.14:52
lordcirthDammitJim, what's the latency between sites?14:53
DammitJimI'm not sure about the latency14:53
lordcirthAlso, are the files compressible?14:53
DammitJimI actually don't know how to measure that right now14:53
lordcirthDammitJim, do you have a sample file?14:54
lordcirthOr have any idea about their format>?14:54
DammitJimthe files are already compressed, but I'm sure we can try more compression... my fear is just the amount of files and the fact that they are constantly being sent14:54
DammitJimno, no sample, yet14:54
lordcirthok, if they are already compressed, and 56kb, there's probably no point14:54
lordcirthDammitJim, at 5/s, you might be able to just have inotify trigger an scp.14:56
lordcirthdepending on latency.14:56
lordcirthHowever, if you lose connection, reboot, etc, you want a good way to catch up, possibly while more stuff is coming in. That might be the hard part.14:57
DammitJimdon't worry about inotify (that's the client's issue)14:58
DammitJimI'm worried about picking the right implementation so that there isn't all this over head for connections14:58
lordcirthYeah, scp isn't an *efficient* way, but a 5/s it might work14:59
DammitJimso, perform 5 connections every second?14:59
DammitJimI guess that could work....14:59
lordcirthIt's far from optimal, but probably functional14:59
DammitJimhhmmmm15:00
DammitJimgotta go to a meeting15:00
DammitJimbbl.. thanks for your input15:00
=== techmagus_ is now known as techmagus
UssatGuys...srsly......Disco Dingo ?16:35
andolYepp, that's the part I look forward to most about Ubuntu 19.04.16:36
UssatThere was a time I was wonderiong how people came up with these names...now..I really dont wanna know16:39
UssatGuess I should test the beta, but its not LTS so....16:42
blizzowI installed an ubuntu 18.04 zerver using a ZFS root. After the installation was complete, I added a second disk as a completely new pool and set mountpoint=/path/to/my/dir newpool/newzfs. Now the machine hangs during boot because the new pool is not imported automagically. How do I get the zpool imported on boot?17:30
lordcirthblizzow, did you use /dev/sd* device names? That can cause problems17:33
blizzowlordcirth: I did because this is a qemu based VM. The disk is actually a ceph based rbd image.17:33
blackflowblizzow: there's some race condition with systemd, so I'm mounting all datasets on boot via legacy17:34
blackflowotehrwise, the zfs-mount.service is responsible for automounting17:34
blackflowblizzow: which path are you trying to mount it? that's important. if it's a path in charge by tmpfiles, it won't work17:35
blizzowblackflow: I'm trying to mount /var/lib/graphite/whisper/17:35
blackflowblizzow: is that directory (supposed to be) empty on boot?17:36
blizzowcurrently I have this line in /etc/fstab:17:36
blizzowsdb/stats /var/lib/graphite/whisper zfs nodev,noatime,x-systemd.requires-import-sdb.service0 017:36
blackflowah no, use the dataset name17:36
blizzowblackflow: definitely not supposed to be empty.17:36
blackflownewpool/whateve  /var/lib/.../  zfs .... 0 017:36
blizzowblackflow: I named my newpool "sdb" :(17:37
blackflowblizzow: I meant is there anything on boot that predefines any files in there, like tmpfiles17:37
blackflowoh k. so is the sdb/stats have mountpoint=legacy attribute?17:37
blackflow*does the17:37
blizzownothing should happen on boot that adds to that directory, no.17:37
blizzowblackflow: no, it doesn't.17:38
blackflowit should17:38
blizzowokay, so I did zfs set mountpoint=legacy sdb/stats17:39
blackflowif you're using fstab, then teh ds needs mountpoint=legacy, or else zfs-mount.service will try to mount it which may enter into race conditions. in particular, is /var or /var/lib also a zfs dataset? you said this was root on ZFS17:39
blackflowI separate /var/log, /var/tmp and /tmp  from the root pool so I can rollback root without affecting those dirs, which usually should NOT roll back along with root.17:40
blizzowIt's ZFS root and I did not break out any subdirectories onto other pools.17:40
blackflowwell you should. if you rollback to fix botched update, you'll rollback logs and whatever else. /var/lib databases should also be separate17:41
blackflow(of specific programs, not /var/lib itself, and definitely not apt's)17:41
sarnoldblizzow: have you tried dhe's advice yet?17:41
blizzowsarnold: trying it now.17:41
blizzowWhen I boot, it goes into default mode. I press enter for maintenance and do not see the zpool in there. I do a zpool import -a , then I do a mount /var/lib/graphite/whisper17:46
blizzowThen I exit and things are up.17:46
blizzowIt's like the zpool is not being picked up during boot.17:47
blackflowblizzow: did you set mountpoint=legacy?17:52
blackflowbtw, are you also asking in #zfsonlinux? I'd like to not waste my time here if you are :)17:53
blizzowblackflow: I didn't even think to look for #zfsonlinux, I did ask in #zfs though ;).17:57
blackflowah, k17:58
plsuhWould this be the right place to ask about trying to run a pfSense(FreeBSD) domU on Ubuntu Server using Xen?18:30
sdezielplsuh: do you have to use Xen? I believe you'd get a better experience with KVM instead18:32
sdezielplsuh: that said, if your question is about setting up that domU in the dom0 context, it's not pfSense specific so feel free to ask here18:33
plsuhwill FreeBSD run on top of KVM?18:33
sdezielyes18:33
sdezielI am myself running OpenBSD inside KVM for years now18:33
plsuhok, I will try that18:34
plsuhI can get the HVM domU to execute, but cannot get any kind of response out of the domU whether via VNC or serial console18:34
sdezielplsuh: it's been a while since I played with Xen but I believe you still need to pass a cmdline arg to get a serial console on the Xen device (don't remember the name)18:40
sdezielah found it, console=/dev/hvc018:41
codefriarHello! I've an ubuntu 18.10 server reporting 'temporary failure in name resolution' whenever I try to ping a subdomain running on it.18:41
plsuhI did that with a linux guest -- Alpine Linux specifically18:42
codefriarI'm wondering if it could have something to do with setting up the bond on 3 of the 4 ethernet ports?18:42
plsuhbut that was in the Alpine init, not the HVM setup18:42
sdezielplsuh: by cmdline I mean kernel boot arg18:43
codefriarany idea what might cause the 'temporary failure in name resolution' error?18:43
sarnoldcodefriar: try pastebinning some dig output that shows what you're trying, where it fails, and maybe someone will be able to spot something18:44
codefriarsarnold https://pastebin.com/3rHezetg this is ping output. I'm on the server hydra.local. their is a running docker service that supposed to be attached to plex.hydra.local. However, I can't ping it, because of the name resolution error18:45
sdezielcodefriar: are you using systemd-resolved? If yes, please share /etc/resolv.conf content18:46
codefriarhttps://pastebin.com/58Aw9z39 here's the pastebin with dig info18:46
codefriarsdeziel i'm using 18.10, does that use systemd-resolved?18:47
sdezielcodefriar: yes, and your dig output confirmed18:47
sdezielcodefriar: I suspect that your search domain doesn't include 'local' in it so systemd-resolved tries mDNS to resolve this name18:47
codefriarsdeziel this contains the only two uncommented lines in resolv.conf18:49
codefriarhttps://pastebin.com/miw87PaU18:49
sdezielcodefriar: you can check systemd-resolved config with "systemd-resolve --status"18:50
codefriarsdeziel wow so much info here. Any clue what I'm looking for? How can I add .local ?18:52
sdezielcodefriar: the domain name used18:52
sdezielcodefriar: as to how to add .local to the list, it depends on how your network is configured. It's probably done using netplan as the config generator so please pastebin the /etc/netplan/*.yaml files18:53
codefriarhere's the output of the status command. I don't see a top level domain listed? https://pastebin.com/skwZBYW118:54
codefriarsdeziel here's my netplan: https://pastebin.com/HeWvb9Qu18:55
codefriarsdeziel the netplan information was created by the installer.18:55
sarnoldif you picked .local yourself, you'd probably be better served by picking a different tld entirely.18:57
sdezielcodefriar: hmm, I am not knowledgeable enough with netplan but I think you can achieve what you want by adding Domain=hydra.local to /etc/systemd/resolved.conf and restarting systemd-resolved18:58
sarnoldif you're trying to use mdns as it was designed, of course, I don't know why it's not going well.18:58
codefriarsarnold well hostname returns 'hydra'18:58
sdezielcodefriar: right, avoid abusing .local is the right way18:58
codefriarsdeziel how am I abusing local? (not a combattive question, just ignorant)18:58
sdezielcodefriar: understood. .local is reserved for mDNS resolution18:59
sdezielcodefriar: technically, this mDNS thing is supposed to only be applicable to single labels under .local but many resolver/stub libs get this wrong, systemd-resolved included19:00
codefriarsdeziel ok... so adding the domain bit should help?19:00
sdezielcodefriar: adding .local to the domain list used by systemd-resolved disables mDNS for the said domain19:01
codefriar will that cause other machines on the network to fail to find hydra.local?19:02
codefriarhmm, well that didn't end up fixing the 'temporary failure in name resolution' issue19:03
sdezielcodefriar: did you restart systemd-resolved?19:04
codefriarsdeziel Yep!19:04
codefriar(twice)19:04
sdezielcodefriar: pastebin the /etc/systemd/resolved.conf and systemd-resolve --status output please19:04
codefriar--status now shows hydra.local as the DNS Domain19:04
sdezielhmm19:04
codefriarhttps://pastebin.com/7CgzCrhv19:05
codefriarthis is /etc/systemd/resolved.conf https://pastebin.com/KwZQENnq19:05
sdezielcodefriar: could you try with Domain=local instead?19:06
codefriarsdeziel sure thing, one second19:06
codefriarno dice.19:07
codefriarsdeziel i did restart systemd-resolved19:07
sdezielcodefriar: can you "dig @auth-server plex.hydra.local" ?19:10
sdezielor "dig @upstream-resolver plex.hydra.local"19:11
codefriardig: couldn't get address for 'auth-server': failure19:12
codefriarsame for upstream19:12
sarnoldyou've got the give the ip address for those nameservers19:12
sdezielthat was meant to be replaced with I think 192.168.1.6519:12
sdezielas this is the IP systemd-resolved will turn to for DNS resolution that it cannot fulfill from its cache19:13
plsuhsdeziel: thanks, yeah I mis-typed -- it was in the kernel args. Thanks for the assistance.19:15
codefriarsdeziel sorry, I mis understood. one second. (also, sorry, wife's car wouldn't start, had to fix)19:58
codefriarsdeziel  no A record returned. resultedin SERVFAIL19:59
sdezielcodefriar: OK so the upstream server has an issue, you'd need to fix this as it's what systemd-resolved would ask for the A record20:00
sdezielcodefriar: assuming I really understood what you really want to achieve ;)20:00
codefriarsdeziel that's fair. here's the dime tour of the goal. brand new (4hr) old ubuntu-server 18.10 install on dell r710. 3 of 4 nic's bonded to bond0, one left alone. bond pulls 192.168.1.80. En4 pulls 192.168.1.81. Server name is Hydra. Avahi installed, mac can ssh in via hydra.local . I've attempted to use homelabos (an anisble script) to setup a bunch of docker services that are supposed to be available on20:04
codefriar servicename.host.domain aka: plex.hydra.local however, none of the subdomains are functional, and whenever i try to ping one of them, I get nothing but the temp failure to resolve name error. That error seems un-related to the docker based stuff, so I was trying to work on resolving that issue.20:04
codefriarOOC, is there a big networking change between 18.04lts and 18.1020:04
sarnoldnothing that I can recall20:05
sdezielcodefriar: so you seem to need/want mDNS/avahi to work20:05
sdezielbut only for the first label under .local20:05
sdezielcodefriar: who/what publishes the "servicename.host.domain aka: plex.hydra.local" ?20:06
sdezielI'd hope for a dnsmasq or something ;)20:06
sdezielhttps://gitlab.com/NickBusey/HomelabOS says: "A domain configured with a A type DNS record of *.yourdomain.com pointed at your server's IP address."20:13
sdezielcodefriar: maybe you should go to #homelabos20:14
codefriarsdeziel no one there.20:15
codefriarsdeziel the instructions say just put a whatever.local there20:16
sarnoldthere's at least six people there now :)20:16
codefriarsarnold thats new20:16
sarnoldnow whether or not anyone is at their keyboard, good question..20:17
sdezielcodefriar: since you don't seem to have an authoritative source of information to resolve plex.hydra.local, you can probably put it under /etc/hosts as a quick and dirty hack20:17
sdezielcodefriar: I haven't look closely at the project but it seems that all the HTTP(S) traffic needs to be directed to a reverse proxy (traefik) that hopefully knows how to reach the actual backend20:19
codefriarsdeziel yeah, traefik is up and running20:19
gbkerseyDoing a pxe install of 16.04lts and it is hanging because there is a dependency problem with the kernel...  Seems that the net installer installs linux-generic which pulls linux-image-generic 4.4.0.143 but that version of the kernel depends on linux-base >= 4.1, but linux-base 4.0 is being installed by the installer....22:32
sarnoldgbkersey: let me look around a bit22:38
sarnoldgbkersey: this looks like your bug .. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/182041922:40
ubottuLaunchpad bug 1820419 in linux (Ubuntu Xenial) "linux-generic should depend on linux-base >=4.1" [High,Fix committed]22:40
sarnoldgbkersey: comment #9 may help https://bugs.launchpad.net/ubuntu/+source/linux/+bug/182075522:43
ubottuLaunchpad bug 1820419 in linux (Ubuntu Xenial) "duplicate for #1820755 linux-generic should depend on linux-base >=4.1" [High,Fix committed]22:43
keithzg[m]My co-worker spent aaaaaages trying to figure out why nullmailer wasn't working on one Ubuntu instance atop Windows but was on another; turns out the working one was 16.04 while the non working one was 18.04, and nullmailer apparently no longer ships with a SysV init script for /etc/init.d and the WSL builds of Ubuntu don't use systemd for some reason?23:25
tomreyn!wsl23:27
ubottuWindows 10 has a feature called Windows Subsystem for Linux, which allows it to run Ubuntu (and other Linux distro) userspace programs without porting/recompliation. For discussion and support, see #ubuntu-on-windows or ##windows. For installation instructions, see https://msdn.microsoft.com/en-us/commandline/wsl/install_guide23:27
keithzg[m]tomreyn: I mean, I'm not surprised to see that WSL is weird, my comment in many respects was more about the lack of SysV init support in the current packaging of nullmailer (which would affect more than just WSL builds)23:44
gbkerseysarnold: Thanks...23:49
tomreynkeithzg[m]: according to https://github.com/systemd/systemd/issues/8036 systemd works on WSL, but then this is the wrong channel to discuss WSL specifics, as you read above.23:49
keithzg[m]tomreyn: Yeah, I'm not too worried about that, I was just surprised by it. The only thing I really care about, which is why I bothered commenting here in #ubuntu-server, is that nullmailer apparently no longer ships with a script for `/etc/init.d` (as far as I can tell, using the one from the old package works just fine in 18.04 too).23:51
tomreynwhy would it, if the init system is systemd23:51
sarnoldI really wish we'd kill all the old sysv scripts from packages that support both sysv-init and systemd unit files23:52
sarnoldit doesn't feel like a cohesive system to have files for N different service managers in each package23:52
tomreynyes that'd be more than nice. probably also means a lot of work.23:53
sarnoldyeah23:54
sarnoldI mean, I haven't volunteered to do it :)23:54
tomreynif you had, i had asked you to share your scientific advances in human cloning and / or time travelling.23:58
sarnoldalas I keep hoping a future-me will show up with some good news but that bastard hasn't done it yet23:58

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