Camelia, the Perl 6 bug

IRC log for #darcs, 2013-06-10

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:05 mizu_no_oto joined #darcs
00:47 mizu_no_oto joined #darcs
01:02 mizu_no_oto joined #darcs
01:28 intripoon_ joined #darcs
01:48 carter joined #darcs
02:15 mizu_no_oto joined #darcs
02:29 dolio joined #darcs
03:05 preflex_ joined #darcs
03:32 mizu_no_oto joined #darcs
04:03 lambdabot joined #darcs
04:56 edwardk joined #darcs
05:07 edwardk joined #darcs
05:09 mizu_no_oto joined #darcs
05:31 edwardk joined #darcs
06:00 adnap joined #darcs
06:19 preflex joined #darcs
06:30 lelit joined #darcs
07:10 raichoo joined #darcs
09:14 alexei_ joined #darcs
09:58 lambdabot joined #darcs
10:18 owst joined #darcs
10:22 kmels_ joined #darcs
10:29 donri joined #darcs
12:11 mizu_no_oto joined #darcs
12:15 edwardk joined #darcs
12:16 preflex_ joined #darcs
12:21 preflex joined #darcs
12:42 preflex joined #darcs
12:55 mizu_no_oto joined #darcs
13:08 uniquenick joined #darcs
13:15 konundra joined #darcs
13:58 mizu_no_oto joined #darcs
14:50 konundra joined #darcs
15:23 kmels_ joined #darcs
15:31 raichoo joined #darcs
15:39 dolio joined #darcs
16:04 bsrk joined #darcs
16:49 lelit joined #darcs
16:51 alexei_ joined #darcs
16:52 mizu_no_oto joined #darcs
17:01 * Heffalump appears
17:03 Heffalump bsrk: how's it going?
17:03 bsrk Hi
17:03 bsrk I am in the middle of implementing google login/reg/sync
17:03 Heffalump is that google or openid?
17:04 bsrk google oauth
17:04 Heffalump does that differ from using openid with google credentials?
17:04 * Heffalump doesn't understand the architecture very clearly
17:04 bsrk yes, it is different
17:05 bsrk however, google recommends oauth over openid so I am using oauth
17:07 Heffalump is there a clear interface inside the code for how to write one of this authentication providers?
17:07 bsrk https://developers.google.co​m/accounts/docs/OAuth2Login
17:08 bsrk by the way, can you help me out with debugging http-streams :-)
17:09 Heffalump no idea, I don't know anything about it right now :-)
17:09 Heffalump (HTTP is the package I maintain)
17:09 Heffalump my question about a clear interface was about the darcsden code - i.e. is there a single interface that github and google auth will implement
17:09 Heffalump in the broad sense of "interface"
17:10 Heffalump tunnel imminent, back in ~20 mins
17:10 gh_ joined #darcs
17:10 bsrk they are approximately same. :-)
17:11 bsrk https://gist.github.com/bsrkaditya/5750492
17:11 bsrk this is a simple program, which just makes a https connection to accounts.google.com and then quits
17:12 bsrk it works for other sites (specifically github)
17:12 bsrk but not for google
17:12 bsrk it gives an error
17:12 bsrk connect: unsupported operation (Address family not supported by protocol)
17:12 bsrk what am I doing wrong?
17:16 mtp joined #darcs
17:21 bsrk Hmm, it seems to be working when I run the code on my desktop
17:22 bsrk so, I guess that means that some server config is causing the error.
17:24 bsrk the exact error: http://www.wlug.org.nz/EAFNOSUPPORT
17:26 konundra joined #darcs
17:28 bsrk running this with strace, I got
17:29 bsrk connect(3, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, "2404:6800:400a:801::1012", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EAFNOSUPPORT (Address family not supported by protocol)
17:35 * Heffalump reappears
17:35 mtp bsrk: what does the socket() call say, offhand
17:35 Heffalump is it trying to connect over IpV6 first and failing?
17:35 Heffalump see if you can force it to IPv4
17:36 Heffalump re github/google, you should make sure there's a clear way of adding extra ones and a common API/hook/interface/whatever that they all use
17:36 Heffalump it's important for code maintenance, testability, future authors
17:37 xymox joined #darcs
17:37 bsrk heffalump: yes, I would say that the way of adding a new oauth provider is clear
17:38 Heffalump ok, what is it? :-)
17:39 preflex_ joined #darcs
17:39 bsrk http://www.darcsden-gsoc.biz:8900/aditya_original​/darcsden-gsoc/browse/src/DarcsDen/State/User.hs
17:40 bsrk 1) create a constructor to OAuthID corresponding to your provider
17:40 bsrk 2) modify JSON User interface, adding a field for your provider
17:41 bsrk http://www.darcsden-gsoc.biz:8900/aditya_origin​al/darcsden-gsoc/browse/src/DarcsDen/Handler.hs
17:41 bsrk 2) Add handles for whatever services you are going to provide (register, login, sync)
17:41 bsrk 4) write the handles
17:42 bsrk ah, that will be it
17:45 Heffalump IMO hat's too many places
17:51 Heffalump too easy to forget one
17:51 bsrk Heffalump: what is hat's?
17:52 Heffalump sorry, typoed "that's" :-)
17:55 bsrk Hmm, I will see what I can do to collase changes. Still, I would point out that there is only 1 data structure change
18:01 Heffalump but also multiple places in the code you could forget to update and have it silently fail to work
18:01 Heffalump also, the code would be very verbose if we had 10 providers
18:05 bsrk mtp: the socket call seems to be socket(PF_INET, SOCK_STREAM, IPPROTO_IP)
18:05 mtp that's a v4 socket, so yeah, getting 'address family not supported' when you feed it an ipv6 address in connect() is expected :)
18:06 * mtp captain obvious
18:06 Heffalump bsrk: did you get my email about trying out the github integration, btw?
18:06 bsrk heffalump: yes
18:06 Heffalump ok, no major rush, but it's something to look at
18:06 bsrk Github's recommened approach is environment variables. :-)
18:07 bsrk And yes, the installation process is opaque, I need to create some documentation.
18:11 Heffalump bsrk: also, don't forget a blogpost is due by weds
18:11 Heffalump what's google's recommended approach?
18:12 Heffalump Amazon s3 seems to be similar, so perhaps it is something of a standard
18:13 konundra joined #darcs
18:17 bsrk hmm, google does not say anything about where to store the client id and secret. (I guess they left it for us to decide)
18:17 Heffalump got a link for gthe github recommendation? I'd like to understand it
18:18 Heffalump
18:18 bsrk http://developer.github.com/gu​ides/basics-of-authentication/
18:19 Heffalump train arriving shortly - when shall we meet next?
18:19 bsrk "Your client ID and client secret keys come from your application’s configuration page. You should never, ever store these values in GitHub–or any other public place, for that matter. We recommend storing them as environment variables–which is exactly what we’ve done here."
18:19 bsrk How about friday?
18:20 Heffalump no, I was about to say any day but Friday :-)
18:20 Heffalump Friday is Legoland day.
18:20 bsrk Thursday?
18:20 Heffalump yep, that should be fine. 1730 -> 1850 as last week, I'll try to actually remember at 1730 this time...
18:21 bsrk okay, thursday it is.
18:21 bsrk mtp: it seems to have tried
18:21 bsrk socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 8
18:21 bsrk connect(8, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, "2404:6800:400a:801::1013", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
18:21 * Heffalump disappears - see yuo then
18:21 bsrk first, but it did not work?
18:23 bsrk hmm, the man page says that zero means that it worked..
18:23 bsrk after this, it gave:
18:23 bsrk getsockname(8, {sa_family=AF_INET6, sin6_port=htons(50813), inet_pton(AF_INET6, "2400:8900::f03c:91ff:fe70:6135", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
18:23 bsrk close(8)                                = 0
18:23 bsrk connect(7, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, "2404:6800:400a:801::1013", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EAFNOSUPPORT (Address family not supported by protocol)
18:27 gal_bolle joined #darcs
18:54 mizu_no_oto joined #darcs
19:28 carter joined #darcs
19:34 raichoo joined #darcs
19:42 donri joined #darcs
20:13 gh_ gal_bolle, any regrets about http://bugs.darcs.net/patch1052 ?
20:14 edwardk joined #darcs
20:23 gal_bolle gh_: why would that be?
20:23 gh_ gal_bolle, I'm asking you because I can't wrap my head around it and wondered if you could self accept it :)
20:24 gal_bolle i see
20:24 gal_bolle i think it should be safe to accept
20:24 gal_bolle but I haven't looked at it for a while
20:25 alexei_ joined #darcs
20:32 madjestic joined #darcs
20:33 gh_ gal_bolle, maybe have a quick look now if you can
20:34 gal_bolle ok
20:58 dleverton joined #darcs
21:07 * lispy had a weird dream the other day where he was trying to make a 'mutationless' version of commute.
21:17 madjestic hey guys, I am trying to begin using darcs with darcs hub.  I think I read enough to be able to figure it out, but I keep getting this error: http://hpaste.org/89721
21:17 mtp do you have SSH ControlMaster on?
21:18 mtp darcshub's software really, really  dislikes that option in ways that don't cause obvious failure modes
21:32 madjestic hmm.  I probably do not have ssh configured to work with darcs hub
21:33 mtp i have the following in ~/.ssh/config:
21:33 mtp http://hpaste.org/89722
21:35 madjestic I learnt how to work with git and now looking into darcs.  It's rather easy with git - I don't remember setting up ssh for git specifically at all.  Maybe I am confusing things though
21:35 madjestic git+git.hub that is
21:38 Heffalump there shouldn't be anything special for darcs either - but there may be a bug
21:39 Heffalump mtp: is there an open bug somewhere about the ControlMaster thing? I recall you mentioning it before, but I'm afraid I didn't follow up.
21:39 mtp i think there is
21:39 mtp madjestic: you also have to create the repo on the website before pushing to it will work iirc
21:40 madjestic I did create a remote on git hub: http://hub.darcs.net/madjestic13/home
21:40 madjestic in the window opened, at hub darcs, I read: push your code to madjestic13@hub.darcs.net:home to get started
21:40 madjestic which I am trying to do, but fail with this error
21:41 mtp okay
21:41 mtp so my question is, do you have your ssh client configured to do any of these three things by default: ForwardAgent, ForwardX11, or ControlMaster?
21:41 mtp because, as previously mentioned, i have had issues with darcshub's sshd disliking my ssh client's attempts to negotiate these things
21:42 mtp and i would get the strangest inexplicable errors, like pushing would ALMOST work and then go Apply Failed
21:43 madjestic mtp: I created the config file for ssh as you described above, the behavior persists
21:44 mtp okay then.
21:45 Heffalump madjestic: what does ssh -v madjestic13@hub.darcs.net report?
21:45 Heffalump it shouldn't work, but it should get a long way before producing something like
21:45 Heffalump PTY allocation request failed on channel 0
21:45 Heffalump shell request failed on channel 0
21:47 madjestic Heffalump: http://hpaste.org/89723
21:47 madjestic the last line looks suspicious
21:48 madjestic >_>
21:48 Heffalump madjestic: ah, that's the problem then - it doesn't like your public key
21:48 Heffalump can you double-check that the public key block is pasted into the web interface
21:48 * Heffalump makes a note to try to improve the error message...
21:49 madjestic Heffalump: I will look again into my ssh configuration, it looks like the issue is there
21:49 madjestic thanks guys, I will get back to this
22:18 sm hi madjestic.. your pubkey in hub.darcs.net settings looks like "ssh-rsa AAAAB3Nza..more..== you@your.host", right ?
22:21 dolio joined #darcs
22:39 mizu_no_oto joined #darcs

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary