/srv/irclogs.ubuntu.com/2017/08/03/#ubuntu-server.txt

Faux-PaIs anyone actually active here?03:58
Faux-PaI know that IRC can be hit-or-miss at times, but I'm only asking because I need some help.03:59
Faux-PaHello? Anyone?04:25
lordievaderGood morning06:08
=== Curiontice is now known as Capprentice
smosernacc, i added dropbear to the list and pushed.12:01
=== tinwood is now known as tinwood-afk
=== tinwood-afk is now known as tinwood
hosasI know this sounds dump, but how do I execute this command the instructions says: `CTL+B, C` to open a new tmux window14:41
sdezielhosas: 1) start tmux, 2) create new tmux windows by pressing the key combo Ctrl+B then C14:43
sdezielhosas: you should then notice the multiple windows listed at bottom of the tmux session14:44
hosassdeziel: thanks- I it meant on same window. thanks again14:44
hosassdeziel: please be patient with me: is it Ctrl +B+C  or Ctrl +B then followed by Ctrl+C14:47
sdezielhosas: yes, it's in the same window. tmux is a terminal multiplexor so it's by design :)14:48
hosasbecause Ctrl +C is exiting the app as expected but not what I want14:48
sdezielhosas: it's Ctrl+B, then C (those are all lowercase in fact)14:49
drabit's not ctrl-c, it's ctrl-b then precc c14:49
drabpress*14:49
drabno shft, they are not intended to be uppercase14:49
drabit's a keystroke-chain14:49
drabctrl-b enters "command mode", like ":" enters command mode in vim14:49
hosasokay mahn14:49
drabthen "c" is "new window" command ("create")14:50
spm_dragetI am unable to find 'mod_privileges' for apache on ubuntu 16.04. Could it be that it is not shipped with apache nor in the repository?14:50
drabhosas: https://gist.github.com/afair/348975214:50
drabI have that printed next to my monitor, always comes handy, especially in the early period of tmux14:51
hosasdrab: I got it thanks a thousand times14:51
hosasit works14:51
drabjust pass the favor on, that's the real thank you14:51
hosasdrab: :) okay14:52
naccspm_draget: https://httpd.apache.org/docs/trunk/mod/mod_privileges.html implies it's a solaris thing?15:14
naccspm_draget: i don't know much about it, but i do see in 17.10 it's in the documentation of apache2, which means it might be bundled with the main binary package (not its own module package)15:14
hashwagonI'm needing to place a one-time script to run at system boot and delete itself after. Where is the best place to put this? A cron can't delete itself right?16:41
geniihashwagon: A shell script can delete itself16:51
hashwagonBest practice would be to place it in /etc/init.d/ for ubuntu 16.04?16:52
geniihashwagon: Just put one that does whatever in rc.local, have it remove the reference to itself in that file after, then rm itself16:52
hashwagonThanks for the suggestion, I'll give it a go.16:54
PosterI do something like that on disk images, it's something to the effect of17:18
Posterif [ -x /usr/local/bin/firstboot ] ; then /usr/local/bin/firstboot ; rm -f /usr/local/bin/firstboot ; fi17:18
Posterif the file is present and executable, it will run, if it is not (missing or not executable) it will not run17:19
=== arooni_team_b is now known as arooni
tewardjgrimm: alive?19:10
naccrbasak: do you think you're going to get the pristine-tar branch MP comments to me today? or should i pivot to other things?19:48
naccrbasak: also, do you recall what was needed to adjust in https://code.launchpad.net/~racb/usd-importer/+git/usd-importer/+merge/324476 ?19:51
naccpowersj: thanks for the MP updates19:51
naccpowersj: i think, if you haven't already, you can move the trello card back to review19:52
powersjnacc: will do, and thank you for the reviews :)19:52
jgehey all, good afternoon. I have this strange problem where I have a user trying to synchronize a repo remotely from an Ubuntu laptop. He's connecting to a VPN, then issuing a synchronize repo command, but seeing:  ssh_exchange_identification: read: Connection reset by peer20:06
naccjge: i'd check the ssh server's logs20:06
jgewhen he VPNs through a separate appliance we have, he doesnt see that problem20:07
jgeI'm thinking some firewall filter, or something in between resetting his connection20:08
jgehe's connecting to the same server though20:09
naccjge: not sure (brb)20:09
drabjge: msot likely something on the path, yeah, can you describe the vpn end point and the two different paths to the repo?20:14
drabif he sees a connection reset right away, ie not a timeout, then it's most likely a firewall sending an explicit RST20:15
drabmaybe something that is not expecting traffic to the repo from that ip/vpn20:15
drab(generally vpns are on a different net)20:15
jgehey drab, the vpn end point is an ubuntu laptop, when he connects through one of my vpn servers, he reaches the repo just fine, if he connects to another vpn server, he connects fine but after he starts to synchronize his repos, the connection gets reset20:16
jgesame server, different vpn servers20:17
jge(same repo server that is)20:17
drabboth vpn servers have interfaces on the same network as the repo?20:18
drabone vpn server, the one that works, is an appliance or something Vs the one that doesn't is ubuntu with openvpn ?20:18
jgedrab: they are Palo Alto appliances, I'm checking to see if they both have interfaces on the same network20:19
drabin other words, what I'm looking to find out is if both vpn servers will talk directly to the repo or not20:20
drabso the path in both cases is laptop -> vpn -> repo server20:20
jgegot it, let me find out20:27
jgejss21:02
jgedrab: so yeah, user traverses many other hops when he connects to the vpn server that we are seeing this problem21:03
jgehe goes from firewall - switch - router - router - switch - server21:03
jgeon the other vpn that works, he goes from firewall - switch - server21:04
drabjge: ok so that's a pretty strong clue21:05
drabjge: I'd confirm the clue in two ways: 1) do what nacc already suggested, do yuo see any logs in syslog on the repo server for ssh? you should see an attempt to auth at the very least 2) tcpdump on the repo host, do you see ssh traffic at all from the laptop?21:06
drabif you don't then you'll have confirmed that the problem is on another node on the path21:07
drabis the switch is a dumb L2 switch, that's out of the picture. if it's a L3, routing might be an sisue there too21:07
drabtcpdump on intermediate nodes would again tell you where the pkt stops21:07
jgedrab: agree, but the problem seems to happen after he authenticates fine to repo server, and starts synchronizing21:07
rbasaknacc: it's going to take me somewhat longer I think. I expect tomorrow.21:08
drabjge: is the auth through ssh?21:08
jgeyep, and ssh keys21:08
rbasaknacc: details of the adjustments we agreed in the Trello card.21:08
jgeand authenticates fine21:08
drabjge: can he ssh to the repo server?21:08
drablike get a shell21:08
drabor can he scp?21:08
jgeyep21:08
drabwhat repo are we talking about, git?21:09
jgewhen he syncs, it starts to synchronize and somewhere after it resets21:09
jgegerrit server21:09
drabdoes the sync operation do something different than the auth in terms of port used? or is it always just a tunnel?21:10
draband you confirm he can scp, yes? like a large file, 10MB or so (how much does he need to sync btw?)21:10
jgedrab: he uses the same exact command to synchronize, hitting the same server21:11
jgei haven't confirmed large file transfers though, just ssh login21:11
DammitJimon Ubuntu 16.04 LTS, if I install Tomcat8, why does it not set a tomcat8.service file to use with systemd, but instead it still uses /etc/init.d/tomcat8?21:32
drabjge: if he can ssh and can auth, I'd check for larger file transfer with scp and see if that works21:40
drabI'd also run tcpdump on the repo server while he tries to sync21:40
drabto see if it's that machine that actualyl sends the RST21:41
draband look at the auth.log to see if ssh is indeed terminating the connection21:41
drabjge: or if it's being dropped on the path21:41
drabjge: the fact that it works on a simple path with vpn directly talking to the server and not the other to me suggests something on traffic type that gets dropped21:44
drabjge: another question is, do the 2 vpn servers serve the same vpn subnet?21:45
drabaltho if the ssh traffic goes through there shouldn't really be any reason why the sync traffic gets routed differently21:45
drabjge: so I'd test with scp and maybe netcat with a large file transfer (or http if you have a webserver running and can drop a file on it)21:46
drabjust make a random file with dd21:46
jgedrab: will do, to answer your previous question, yes, the two vpn servers serve a different subnet21:50
naccrbasak: np, thanks and i'll check the trello card22:07
naccrbasak: was the A/B testing the idea that we'd keep the old implementation around and assert for some time that they produced the same results?22:34
rbasaknacc: right22:44
rbasaknacc: bad choice of words, sorry.22:44
naccrbasak: ok, will Tests be covered by your spike?22:44
naccrbasak: and not sure on the last one -- to be honest, i think we can drop that special case, I think it was only necessary in an older version of the code, I'm testing now without it22:44
drabDasoren[m]: not everything has been migrated to systemd ime22:45
drabnm, damnitjim no more22:45
rbasaknacc: I suppose the tests would be for checking the output of parsing known changelog files.22:46
rbasaknacc: I can add that to my spike though it's a separate piece really, as the code should already be isolated enough to be testable when the changelog parsing branch lands.22:46
naccrbasak: yeah, that's true -- where/how do you want me to store 'known' changelog files?22:46
rbasaknacc: I think we should check minimal changelogs into the tree. I'm not sure about wholesale ones though.22:50
naccrbasak: in a tests/ directory or something? what's the pythonic standard for that?22:52
rbasaknacc: I'm not aware of a standard. How about tests/changelogs at the top level as a start?22:53
naccrbasak: +122:53
=== nacc_ is now known as nacc
naccrbasak: may be totally off-base, but here's a first run at adding some tests. I had to change our Changelog class to allow to get the contents from a file (as well as from a treeish in a repo). But it does pass here (with the version from your branch, rebased and fixed): http://paste.ubuntu.com/25236260/23:30
naccrbasak: do you think it's worth trying to add unit tests to the code we have now, in order to verify if our changes are good? I started down that path and it would take quite a bit of refactoring, I think23:47
rbasaknacc: for the changelog parsing, or generally? For the former, I think we should perhaps start with just a couple to test the parsing, that's all. Do you think that would still need significant refactoring?23:52

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