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

* genii notes no leading slash before home00:00
truelairsync -az "backups\/daily.0\/MTL_fileSrv\/home\/Users\/amasse\/AM Desktop\/Apex.*" "root@10.1.1.74:/home/Users/amasse/AM Desktop"00:01
truelairsync: change_dir "/backups/daily.0/MTL_fileSrv//backups\/daily.0\/MTL_fileSrv\/home\/Users\/amasse\/AM Desktop\" failed: No such file or directory (2)00:01
truelaidoesn't matter00:02
sarnoldtruelai: start with this:   ls -l  /backups/daily.0/MTL_fileSrv//backups\/daily.0\/MTL_fileSrv\/home\/Users\/amasse\/AM Desktop\01:00
sarnoldtruelai: it'll probably fail01:00
sarnoldtruelai: start removing directory components from the end until you find where it succeeds01:00
truelaiThanks sarnold01:00
truelaihaving a new issue now01:00
truelaiI want to prefix every line of a file with the following:01:00
truelairsync -az -e "ssh -i /root/.ssh/id_ed25519" -s01:01
truelaiAny ideas?01:01
truelaiI'm failing with both awk and sed01:01
sarnoldawk '{print "hello " $_; }' /etc/passwd01:03
sarnoldworked for me on a *simple* input file01:03
truelaiawk '{print "rsync -az -e "ssh -i /root/.ssh/id_ed25519" -s" $_; }' encrypted-files-full-path-escaped.txt out.txt01:05
truelaiawk: cmd. line:1: {print "rsync -az -e "ssh -i /root/.ssh/id_ed25519" -s" $_; }01:05
truelaiawk: cmd. line:1:                                    ^ syntax error01:05
sarnoldneed more \  :)01:05
truelaifor the period?01:06
sarnoldthe "ssh01:06
truelaican you show me the line?01:06
truelaiawk '{print "rsync -az -e "ssh -i /root/\.ssh/id_ed25519" -s" $_; }' encrypted-files-full-path-escaped.txt out.txt01:06
truelaithis does not work01:06
sarnoldtry: awk '{print "rsync -az -e \"ssh -i /root/.ssh/id_ed25519\" -s" $_; }' encrypted-files-full-path-escaped.txt01:08
sarnoldI'm guessing you wanted the out.txt to contain this output -- if so, use > out.txt at the end01:08
truelaioh snap!!!01:08
truelai:-*01:08
truelaiThanks much, man!01:08
sarnoldsed -ifoo  is also awesome01:09
truelaiso are you01:09
sarnoldthat does an in-place edit on the file, creating a backup file with 'foo'01:09
sarnold<3 :) thanks01:09
sarnoldI almost always use sed -i without a backup, but that's a bit dangerous unless it's something you *can't* mistype :)01:09
rbasakteward: on bug 174359201:35
ubottubug 1743592 in nginx (Debian) "NGINX fails to start/install/upgrade if IPv6 is completely disabled." [Unknown,New] https://launchpad.net/bugs/174359201:35
rbasakI wasn't paying close attention, but I'm really surprised that you disabled IPv6 support by default in nginx in Focal. That does seem like a regression to me.01:35
rbasakslashd: ^01:36
rbasakIMHO, the default should be to focus on working on a default installation which would have IPv6 enabled.01:36
rbasakThe real fix would be for nginx to support listening properly on all interfaces on port 80 whether they are 4 or 6 and regardless of whether one is disabled.01:37
rbasakMy SRU opinion was just "don't change stable release behaviour". Sorry I didn't write up any suggestions for development release behaviour change at the time (AFAICT - I'm not contradicting myself, am I?)01:39
tewardrbasak: we can revert that easy but the discussion was with others to disable it because that's what upstream has - feel free to revert that, or I will tomorrow02:56
tewardthis being said... that doesnt solve the ipv6 missing problem02:56
tewardI was intending to revert it after thinking on it this evening02:57
tewardI'll revert in the morning.  You want to summarize that we agreed collectively to not cater to v6-disabled cases?02:57
teward(I'm a little busy...)02:58
rbasakteward: I asked some colleagues their opinion. I appreciate you being so responsive, but let's make sure everyone is agreed to avoid reverting a revert :)03:22
rbasakSure, I'm happy to summarize following discussion03:23
rbasak(also I'm technically out until Monday)03:23
tewardrbasak: i think this was because there are some specialized deployments that disable v6 but... thats going to be a larger discussion.  Comment on the bug as well and indicate we are discussing more internally before a revert.  Todays been s*** to a high degree so I’m trying to NOT deal with stress at the moment03:51
tewardOr rather, avoid some stress03:51
lordievaderGood morning07:30
ruben23hi there guys anyone can help08:55
ruben23i got myself lockout on my ubuntu server i login as user ruben23 but when i do sudo it ask for password even i did not set any, problem i disable root access08:57
lordievaderruben23: What are you trying to do exactly?09:00
ruben23 lordievader: i got user ruben23 then i disable root login on my ssh server and this user i did not set a password, problem i cant do sudo with my user coz it ask for password09:01
lordievaderHow did you disable the root login?09:02
lordievaderWere you able to use sudo before?09:02
ruben23so im pretty lockout.? i cant do anything.?  i disable it on sshd_config  ( permit root login - no09:02
ruben23lordievader: this is my first reboot to try it after setting up, problem its asking for password even i did not set09:03
lordievaderYou never used sudo before? It asks for your user's password.09:04
ruben23lordievader: yes09:05
lordievaderruben23: Does it work with your user password?09:08
ruben23lordievader: its working now, thanks a lot09:15
=== Wryhder is now known as Lucas_Gray
=== V7 is now known as nopm
=== nopm is now known as [88]
=== [88] is now known as |88|
=== |88| is now known as V7
weedmicHow likely is plugging in a pci-e bluetooth card going to work?  my kids what to get bluetooth headsets for the living room16:07
weedmicis this something easy, or a pandora's box?16:07
pragmaticenigmaIs this on a desktop or server?16:07
weedmicit is ubuntu 18.04 running on a dual linux 4u  convertible (tower).16:08
pragmaticenigmaOther than bluetooth doesn't transmit well through walls... I'm not sure how robust the support is for the various chipsets on the market.16:09
weedmicif it's going to be a bother, is there a brand I should try to find - perhaps intel?16:09
weedmicok, the only wall would be the case ?wrapper? as it is visible/open to air16:09
weedmici guess it doesn't matter, i see the price is very very cheap - less than a snack/lunch - ty tho16:10
pragmaticenigmacheep may mean less support... but cheep means can't hurt to try16:11
pragmaticenigmajust make sure it has an external antenna16:11
weedmic:D support - i've not had support since 1995 - i mention linux and they hang up16:11
weedmicgood - i did not see an antenna in the advert - this is for bluetooth (not wifi).  looking at others16:12
pragmaticenigmawell, I was referring to kernel supporting the chipset... but I think you knew that16:12
pragmaticenigmabluetooth through a metal case is going to be iffy... better if the card has at least some sort of co-axil port to hook an external antenna to. I'm not sure if all cards would come with the external antenna with the unit16:13
weedmico oic, kernel support - still looking for one with antenna16:13
pragmaticenigmaweedmic: I'd look for a "port" on the card, that lets you attach an antenna... Might be easier to find, and the card documentation should tell you what type of antenna connector and specs are supported16:18
weedmicty16:22
tewardrbasak: can you review the latest items?  Because I think trying to handle 'all cases' with customising postinst, etc. is a catch 2216:37
tewardas is just going back to having v6 support out of the box16:37
tewardneed a second opinion16:37
tewardpreferably with a Canonical opinion/twist to it16:37
sdezielteward: to add to possible solutions, using "listen [::]:80 default_server ipv6only=off;" alone seems to do the right thing no matter what is present, v4 only, v6 only or both16:43
tewardsdeziel: i think we're still on a double edged sword.  Because if v6 is completely disabled I don't think that'll work16:44
tewardthat's the reason for the original 'bug' being filed16:44
sdezielteward: maybe not a perfect test but I nuked all v6 on my test container and it worked16:44
tewardi'm tempted to drop that delta from Debian and then go back to the original Listen lines and argue that the lack of v6 in a configuration is a nonstandard edge case that the 'defaults' cannot necessarily adapt to16:44
tewardsdeziel: propose it on the bug then?16:45
tewardthe problem I see is16:45
tewardif we keep catering things to these edge cases16:45
tewardwe're going to have such insane complexity it's not going to be a good thing16:45
sdezielteward: yes, I'll add this to the bug16:45
sdezielteward: I think that probing for available inet family is crazy ;)16:46
sdezielI don't want dynamic variable configs ;)16:46
rbasakI know that there's a way in general on Linux for a single socket bind to listen on both and just dtrt.17:05
rbasakMaybe sdeziel's suggestion is exactly that.17:05
sdezielit's what I'm trying to find, now trying other variations17:05
tewardto be fair18:04
tewardi'm OK with it displaying IPv6 addresses in there18:04
tewardfor logs18:04
tewardas long as it has the addresses.  But that brings into question a larger question: do we really want v4 to show up as v6 translated in the logs?18:04
tewardby default18:04
tewardbecause that's what the change sdeziel proposed would make.18:05
sdezielteward: yeah, I'm not too keen on having IPv4-mapped IPv6 (with the "::ffff:" prefix) but I never use the default vhost myself so I don't really care18:22
tewardif the choice is between "Support no-v6 and no-v4 systems" and "ipv6 mapped v4" i'll choose the second, but the default fallback is "You guys are using non-standard configurations so just write your own configuration and deploy that"18:24
tewardwhich would revert the changes I did to remove the v6 components and drop a delta18:24
tewardgiven that FF comes up next week, I'd like to make a decision sooner than later, rbasak and sdeziel18:35
tewardthoughts?18:35
rbasakteward: I think we should revert, but I think what to replace it with is perhaps still under discussion?18:46
sdezielagreed on both counts18:46
rbasakBut I think revert-and-do-nothing-else is still a better option than the current situation.18:46
tewardi think leaving it without a replacement is satisfactory18:46
tewardsince not having ipv4 or not having ipv6 is not a 'normal' configuration18:46
rbasakI agree - the only question is if we can do any better18:47
tewardat least, not what we would consider 'normal' for typical behavior of a system18:47
tewardrbasak: I can think of a dozen things we can check - but that makes the complexity increase substantially18:47
tewardthis close to FF I don't want to introduce breakage, so I'm more inclined to revert and leave it alone, and then deal with *that* come 20.10 cycle18:47
sdezielteward: having too clever postinst is dangerous IMHO18:47
rbasakWhat I'd like is a simple nginx configuration that will always listen on all available addresses on both 4 and 6 as available.18:47
tewardsdeziel: *points at last statement*18:47
tewardrbasak: that's only available if we use sdeziel's approach18:47
rbasakIf that's not possible, we should file an upstream bug requesting that as a feature.18:47
tewardthere's no 'dynamic' listening that way18:48
rbasakAnd I'd be happy to leave it at that.18:48
tewardwell for the time being18:48
rbasak"listen [::]:8018:48
rbasak                default_server ipv6only=off;"18:48
rbasak^ that approach?18:48
tewardyes, but that makes the logs all log IPv6 addresses ::ffff:10.1.2.3 as an example18:48
tewardwhich adds a *different* problem into the mix18:49
tewardlogs no longer match expected format18:49
tewards18:49
tewardDAMN YOU LAGGY INTERNET *throws a wrench at the work internet*18:49
rbasakThat's not good either - especially as users would likely only find out too late.18:49
rbasakSo in that case, I think revert and do nothing further for now is the best option.18:49
tewardi agree18:49
rbasakAnd ask nginx to fix upstream, assuming that's possible with a listen on [::].18:49
rbasak(surely it is?)18:50
tewardrbasak: you'd have to ask them :p18:50
rbasakOh, I just saw the bug comment18:50
sdezielthe "::ffff:" can be confusing users and log parsers (those should be fixed though)18:51
tewardrbasak: sdeziel: changes are revered in 1.17.8-0ubuntu2 which i'm uploading now18:57
tewardi left the bug as 'Opinion' as we can discuss later.18:57
sdezielsounds good to me, thanks teward18:58
teward(Opinion's what I use when the issue remains under discussion but no real solution has come from it yet to 'fix' the issue, or if it even is an issue)18:58
rbasakteward: thanks!18:58
rbasakteward: I think the bug is valid, but Wishlist. Perhaps no action without upstream support. But by default we should listen on both 4 and 6 as available, not fail if one is disabled, and log properly.18:59
sarnoldI haven't been following closely but that sounds like a good outcome to me19:00
rbasakI think that's a reasonable position so Triaged is fine - awaiting someone to implement that upstream as required, or find some other acceptable solution.19:00
tewardrbasak: i don't disagree (If you want to set it as Wishlist you can, but right now the requested functionality doesn't track with the goal for this cycle which is why I chose Opinion.  That said, I've got my own headaches with migrating mail between IP ranges right now, so I can't send that email at the moment to the mailing lists - any chance you can email in to nginx-devel@nginx.org for that discussion?19:01
tewardsince moving IP ranges also means complete mail system reconfiguratiosn >.<19:01
sdezielIn my opinion, upstream already supports what you described rbasak. I think that ipv4-mapped IPv6 should be considered valid to put in logs, even if it may be confusing to some19:01
tewardi don't disagree with sdeziel19:01
tewardbut lets make that logging change a 20.10 'target'.19:01
tewardrather than for 20.0419:01
tewardthis close to FF I don't want to break logging parsing19:02

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