Wednesday, 2008-11-12

nkinkadeWhy is merging in subversion so horrificly slow?00:06
paulproteusIf it's any consolation, that's not the only thing that's so horrifically slow in Subversion.00:07
nkinkadesvn log --verbose is horrendous as well.00:12
nkinkadeMaybe I really need to get on the git ship and stop bobbing around in water under it's stern.00:12
paulproteusThese days I use git-svn for most interactions with svn projects because svn is now fun anymore.00:13
paulproteusEr, no fun.00:13
*** easyboy has joined #CC00:21
*** easyboy has left #CC00:21
nkinkadepaulproteus: Would you have any good ideas about how to debug the API?00:28
paulproteusnkinkade, Maybe - what do you mean?00:29
paulproteusIs it raising an exception, or giving invalid output?00:29
nkinkadehttp://api.creativecommons.org/rest/1.5/details?license-uri=http://creativecommons.org/licenses/by/2.5/es/00:29
nkinkadeFor example.  Other parts seem to be working.00:29
paulproteuseep.00:30
paulproteus500s should be logged wherever it keeps logs.00:30
nkinkadeSadly it's causing every international page to not work.00:30
paulproteusDouble eep.00:30
paulproteusI wonder if this is new.00:30
nkinkadeI looked around in the logs and nothing.00:30
paulproteusI would think it's new.00:30
nkinkadeI wonder too.  This may need to be a new Nagios monitor.00:30
paulproteusAnd then I wonder what change caused it.00:30
nkinkadeI'm launching the 3.0 Spain licenses, so I did an svn up about 20 minutes ago.00:31
nkinkadeBut it only updated an external.00:31
paulproteusI installed fortunes-off on a8.00:31
nkinkadeIt seems to be failing for 3.0, 2.5, any jurisdiction.00:31
paulproteusD'oh.00:31
paulproteusLemme see.00:31
paulproteusPath to its log?00:32
nkinkadeJust thought you might have some better insight into debugging a python deal, since there's nothing the normal logs.00:32
nkinkade/var/www/api.creativecommons.org/api-1.500:32
paulproteus/var/www/api.creativecommons.org/api-1.5 ?00:32
* paulproteus nods00:32
paulproteusGreat.00:32
*** tryggvib has quit IRC00:32
paulproteus/var/www/api.creativecommons.org/api-1.5/support.py:247: UserWarning: This versi00:32
paulproteuson of libxml2 has a known XPath bug. Use it at your own risk.00:32
paulproteusThat's awesome.00:32
nkinkadepaulproteus: That's been there for a long time.00:33
paulproteusAlso awesome.00:34
nkinkadenathany knows about it.00:34
nkinkadeThe last time the api was updated was quite a while ago by Frank.00:34
paulproteusWhat was the external it updated, X      license_xsl/i18n/i18n_po00:34
paulproteus ?00:34
nkinkadeI don't see why updating some external should cause such a severe error.00:34
nkinkadeThat was one of them.00:34
nkinkadeand also license_xsl.00:34
nkinkadeAnd why it should generally work, except for those particular queries.00:35
* paulproteus tries something00:35
paulproteusa8:/var/www/api.creativecommons.org/api-1.5/license_xsl/i18n/i18n_po# svn update -r11084 .00:35
paulproteusThat did not help.00:35
paulproteushttp://api.creativecommons.org/rest/1.5/details?license-uri=http://creativecommons.org/licenses/by/1.0/ is also broke.00:36
paulproteusDoes anything work?00:36
paulproteusCan you demo to me an API query that does work?00:36
nkinkadehttp://api.creativecommons.org/rest/1.5/locales00:37
nkinkadepaulproteus: for example ^^00:37
paulproteusYay.00:37
nkinkadeYou'll have to view source.00:37
nkinkadeAnd just plain old: http://api.creativecommons.org/rest/1.5/00:37
nkinkadeThat works, too.00:37
nkinkadeI tried running zdaemon in the foreground, but nothing showed up.00:38
nkinkadehttp://api.creativecommons.org/rest/1.5/support/jurisdictions00:38
* paulproteus nods00:39
nkinkadeMost things seem to work, except the details? part.00:39
paulproteusI just did a8:/var/www/api.creativecommons.org/api-1.5# chown -R nathan .00:39
paulproteusto no avail.00:39
nkinkadeHmmm.00:39
nkinkadeHow to get log info out of it is the question.00:39
paulproteusWhat's the HTTP route?00:40
nkinkadeapi.log  and zdaemon.log are silent on the issue.00:40
paulproteusThese go over to Varnish to a zdaemon that runs its own HTTP daemon - on what port?00:40
nkinkade7015?00:40
nkinkade7000?00:40
nkinkade7015 is api-1.5 and 7000 is api-dev, I believe.00:40
paulproteusnathan@a8:/etc/varnish$ grep 70 *00:41
paulproteusnathan@a8:/etc/varnish$00:41
paulproteusI find that curious.00:41
paulproteusIt's via Apache first, okay.00:41
paulproteus/var/www/api.creativecommons.org/api-apache.conf00:42
nkinkadeIt must be happending through mod_proxy.00:42
paulproteusYa.00:42
nkinkadeRight.00:42
paulproteusIs api-dev broken similarly?'00:42
nkinkadeI'm not inclined to think it's Varnish or Apache since most things work.00:42
nkinkadeapi-dev seem to be broken in the same way.00:43
paulproteushttp://api.creativecommons.org/rest/dev/details?license-uri=http://creativecommons.org/licenses/by/1.0/00:43
paulproteusYay.00:43
paulproteusI'm going to take that down and fiddle.00:43
nkinkadedev?00:43
paulproteusYes, dev!00:43
nkinkade:-)00:43
nkinkadeI hope this hasn't been like this for too long.00:43
nkinkadeSeems that someone would have brought it to our attention by now if it had.00:44
paulproteus/var/log/apache2/api.creativecommons.org/error.log has some logs.00:46
nkinkadepaulproteus: Yeah, I saw those.00:47
paulproteus[Wed Nov 12 00:44:09 2008] [error] [client 71.134.241.225] client denied by serv00:47
paulproteuser configuration: proxy:http://localhost:7000/details00:47
nkinkadeBut they seem to be unrelated to the present problem.00:47
paulproteusThose freak me out.00:47
nkinkadetail -f it and then access that URL.  Nothing shows up.00:48
nkinkadeAnd the error message is being generated by CherryPy.00:48
paulproteusOh, that's for direct access.00:48
paulproteusIf you go to api port 8080.00:49
paulproteusOkay.00:49
nkinkadeAnd 7000 is dev, and 7015 is 1.5.00:49
paulproteusWhat's the official way to stop and start the API?00:49
paulproteusMaybe we should just call NY.00:49
nkinkadeIt's in /etc/rc.local00:49
nkinkadeI may call Nathan.00:50
nkinkadeI'm not even sure how to get the thing to log the error.00:50
paulproteusOh, as root?  Geez.00:50
paulproteusre: rc.local00:50
nkinkadeYeah.00:50
Bovinity:q00:50
nkinkadepaulproteus: Do you think I should give Nathan a call.  No more ideas?00:50
Bovinitydoh00:50
nkinkadeBovinity: Tell me you know the answer.00:51
paulproteusGive me 3 more minutes I guess, then yeah.00:51
Bovinitynope, sorry. i did find my vim process, though.00:52
nkinkadepaulproteus: I think I just found it.00:54
paulproteusYes?00:54
nkinkadeI F'ed up support.xsl in license_xsl.00:55
paulproteusOh, okay.00:55
nkinkadeThere a syntax error that I introduced.00:55
nkinkadeInterduced, I mean.00:55
paulproteusOf quorse.00:55
nkinkadeInterdeuced.00:55
paulproteusD'oh, I should have reverted more of license_xsl!00:56
paulproteusThen we would have found this 30m ago.00:56
paulproteusI only reverted the parts that *I* had changed recently. (-:00:56
paulproteus(the .po files I enriched with msgctxt, "message context")00:56
nkinkadeI'm just glad I don't have to bother Nathan on his break, especially with a small error that probably would have taken a while to find.00:56
nkinkadeBut it does bring up the issue that error reporting is a bit opaque in the api.00:57
paulproteusYa.00:57
paulproteusYa!00:57
*** is4 has quit IRC00:59
nkinkadeThere's great irony in this svn commit message: http://code.creativecommons.org/viewsvn?view=rev&revision=1116601:00
paulproteusNice.01:03
*** kaithecat has joined #cc01:13
*** kaithecat has left #cc01:13
Bovinitydo you have to restart varnish to get cc.engine changes to take effect?01:13
paulproteusWaiting ca. 90s should be enough anyway.01:14
paulproteusI think that's all it caches for.01:14
Bovinityaha01:19
*** is4 has joined #cc01:36
nkinkadeBovinity: It's not necessary to restart Varnish for cc.engine stuff.01:36
Bovinitynkinkade: i noticed01:36
nkinkadeIn fact I'm not aware that it's necessary to restart Varnish for anything except when it wedges, which isn't often.01:37
nkinkadeBovinity: What do you know about deed.pt and TAL.01:37
nkinkade?01:37
Bovinitywhat do you need to know?01:38
nkinkadeI need to add another exception for the 3.0 Spain licenses.01:38
nkinkadeI think I've got it in there correctly.01:38
nkinkadeI think I'm just going to commit it and hope for the best.01:38
nkinkadein macros_templates/deed.pt.01:38
Bovinityoh, hmm01:39
Bovinitynot so sure, if you're adding another exception, you should be fine01:39
nkinkadeI assume that when something inside of a <span> with a tal:condition=, if the condition fails then the <span> isn't displayed.01:39
nkinkadeDoes that sound right?01:39
Bovinitycorrect01:39
nkinkadeOkay, then I'm safe.  Thanks.01:40
*** Bovinity has quit IRC01:43
*** jgay has joined #cc01:52
*** mlinksva has quit IRC02:39
*** nkinkade has quit IRC03:37
*** K`Tetch_ is now known as K`Tetch03:38
*** tanjir has joined #cc04:00
*** tanjir_ has joined #cc04:30
*** tanjir has quit IRC04:30
*** Sonja has joined #cc04:46
Sonjahi!04:47
*** jgay has quit IRC04:48
*** tanjir_ is now known as tanjir05:12
*** stevel has quit IRC05:20
*** rohitj has quit IRC05:21
*** cacimar has quit IRC05:21
*** bustaplz has joined #cc05:26
*** tanjir has quit IRC05:39
*** bustaplz has left #cc05:42
*** Sonja has quit IRC07:03
*** jgay has joined #cc09:31
*** sama has joined #cc09:31
*** NotADJ has quit IRC10:00
*** NotADJ has joined #cc10:02
*** hdworak has joined #cc10:30
hdworakhello :)10:30
hdworakit's been a long time no see10:30
hdworakpaulproteus: remember when I've told you I need to take a break because I need to finish a GSoC-sized project that had a deadline much earlier than GSoC? I've completed it10:32
hdworakpaulproteus: validator-beta DOT creativecommons.org is down for a month or so? why is that?10:32
*** sama has quit IRC10:46
*** hdworak has quit IRC11:16
*** adjohn__ has joined #cc11:29
*** adjohn has quit IRC11:36
*** balor has joined #cc11:53
*** adjohn__ has quit IRC11:55
*** adjohn has joined #cc12:01
*** jgay has quit IRC12:02
*** adjohn__ has joined #cc12:28
*** adjohn has quit IRC12:39
*** Roderick__ has quit IRC13:28
*** tvol has joined #CC14:10
*** balor has quit IRC14:58
*** parkerhiggins has joined #cc15:36
*** mlinksva has joined #cc15:39
*** nkinkade has joined #cc15:48
*** hdworak has joined #cc15:52
*** parkerhiggins has quit IRC15:53
*** stevel has joined #cc16:20
*** balor has joined #cc16:22
*** mlinksva_ has joined #cc16:23
*** mlinksva has quit IRC16:37
*** Bovinity has joined #cc17:21
*** is4 has quit IRC17:24
*** hdworak has quit IRC17:37
*** jgay has joined #cc17:48
*** rohitj has joined #cc17:49
nkinkadeBovinity: Do you happen to know when the announcements for summers interns usually get posted?18:45
nkinkadegreg-g: You might know too. :-) ^^18:45
Bovinitynkinkade: march i think18:45
nkinkadeThanks.18:45
Bovinityfeburary18:46
Bovinitynkinkade: cc.org is getting varnish/503 errors18:49
mlinksva_nkinkade: varnish guru18:49
nkinkademlinksva_: Bovinity: I just got an SMS too.18:50
nkinkadeI'll look.18:50
greg-gnkinkade/bovinity: yeah, feb sounds right for the initial announcement18:57
nkinkadeSeems that it was Apache that was having a problem, though it's not clear why.  There were quite a lot of Apache processes, but Varnish seemed to not be able to connect to Apache.18:57
nkinkadegreg-g: Thanks.18:57
*** rohitj has quit IRC19:31
*** is4 has joined #cc19:34
paulproteusnkinkade, To let Subversion commits set arbitrary properties in the commits, it looks like I have to use svn 1.5 on the server.19:41
paulproteusIf I promise that what I do will not interfere with an upgrade to lenny, which is coming soon, may I upgrade to svn 1.5 on a7?19:42
nkinkadepaulproteus:  I assume you're sure it won't affect code.CC.org.19:42
paulproteusWell, the *point* is to affect code.cc!19:43
paulproteusJust not *damage* it.19:43
nkinkadeBut I'm fine with the change.19:43
nkinkadeHow will you install it?  apt-src?19:43
paulproteusI'm investigating now.19:43
paulproteusThat's the vague plan.19:43
nkinkade:-)19:43
nkinkadepaulproteus: Do I also assume that 1.5 is totally backward compatible with older versions?19:44
paulproteusYes.19:44
paulproteusIt has smarter merge support, too.19:44
paulproteusSo it's a win in other ways, too.19:44
nkinkadeNice.19:44
paulproteusBTW, I suggest you take a moment to learn about Subversion 1.5's merge support.19:50
paulproteusSince you hate 1.4's so much. (-:19:50
paulproteusThere, compiling svn package now.19:58
paulproteusOur Subversion on a7 won't have Java bindings enabled because I didn't feel like getting those dependencies.19:59
* paulproteus reads http://subversion.tigris.org/svn_1.5_releasenotes.html19:59
paulproteusIt links to http://svnbook.red-bean.com/nightly/en/svn.branchmerge.advanced.html#svn.branchmerge.advanced.finalword as a users' guide, and http://www.collab.net/community/subversion/articles/merge-info.html as a "How it works" guide on svn 1.5 merging.20:02
paulproteusI think the long and short of it is that svnmerge.py semantics are part of svn core.20:03
Bovinityhmm20:03
*** mikahl has joined #CC20:11
mikahlHey does anybody here know the licensing terms of Colourlovers.com content?20:11
Bovinitymikahl: by-nc-sa, as it says in the footer.20:14
mikahlright, but is that only for the web page, not necessarily the content?20:14
Bovinityare you concerned abotu the implications of using a palette?20:16
nkinkademikahl: Maybe a Google search for "creative commons site:colourlovers.com" would return something useful.20:17
mikahlyes I want to use a Pattern in my film as wallpaper20:17
mikahlthanks nkinkade20:17
greg-gpaulproteus: any news on liblicense?20:29
paulproteusgreg-g, No, I'm afraid not yet.20:42
paulproteusnkinkade, Upgrade seems to have gone smoothly.20:44
nkinkadepaulproteus: That's good to hear.20:44
greg-gpaulproteus: k, just checking and all20:51
* paulproteus nods20:52
*** veeliam has joined #cc20:59
*** balor_ has joined #cc21:17
*** adjohn has joined #cc21:18
nkinkadeBovinity: I notice there is JS in the CiviCRM template for auto-selecting the right premium.21:23
nkinkadeIt's not working, and I've worked up something else, but I just wanted to see if you knew anything about it.21:23
Bovinitynkinkade: nope, i wasn't sure if such a thing existed.21:24
nkinkadeI wonder if that JS comes with CiviCRM.21:24
*** is4 has quit IRC21:25
*** is4 has joined #cc21:26
*** adjohn has quit IRC21:27
*** veeliam has quit IRC21:27
*** mlinksva_ has quit IRC21:27
*** balor has quit IRC21:27
*** stevel has quit IRC21:27
*** greg-g has quit IRC21:27
*** balor_ has quit IRC21:27
*** jgay has quit IRC21:27
*** NotADJ has quit IRC21:27
*** mecredis has quit IRC21:27
*** amorel has quit IRC21:27
*** adjohn__ has quit IRC21:27
*** tvol has left #CC21:27
*** Roderick_ has joined #CC21:28
*** K`Tetch has quit IRC21:45
*** adjohn_ has joined #cc21:45
*** adjohn has joined #cc21:45
*** veeliam has joined #cc21:45
*** mlinksva_ has joined #cc21:45
*** stevel has joined #cc21:45
*** greg-g has joined #cc21:45
*** adjohn has quit IRC21:47
*** balor_ has joined #cc21:47
*** jgay has joined #cc21:47
*** mecredis has joined #cc21:47
*** amorel has joined #cc21:47
*** NotADJ has joined #cc21:53
*** veeliam has left #cc22:03
*** balor_ has quit IRC22:08
*** [mharrison] has joined #cc22:57
*** [mharrison] has quit IRC23:17
Bovinitynkinkade: did you get to teh bottom of that premium selection javascript?23:18
nkinkadeBovinity: It works now.23:19
nkinkadeI didn't worry about the other code in the template.23:19
nkinkadeI put my updates in support.js23:19
Bovinitynkinkade: aha, lookng at support.js diffs now23:20
nkinkadeIt required addition of a new function and edits to another.23:20
nkinkadeBovinity: I haven't checked in the changes.  By the way, are we using svnmerge on that between trunk and production?23:20
Bovinityfld_ttl.innerHTML = "<<span style='color: red'>0</span>>"; are the double angle brackets supposed to be that way?23:21
Bovinitynkinkade: the theme is in its own git module23:22
nkinkadeAnd support.js is part of the theme?23:22
Bovinityyes23:23
nkinkadeDamn.  The latest changes I've made have been directly to the support.js file.23:23
nkinkadeI guess I should try to fix that up.23:23
nkinkadeIn fact, any changes I've made in the last month have been directly to support.js.23:23
Bovinityi have some theme changes to push live, so i can tidy that up if you'd rather23:23
nkinkadeThat would be awesome.23:24
paulproteusThat's weird re: double brackets23:24
nkinkadeI guess it would be a matter of making a backup of that file, reverting the file to some earlier state and then drop my file back and in place and commit.23:25
nkinkadeYeah, I'm not sure about those double brackets.23:25
Bovinityi imagine they should be &lt; ... &gt; or fat fingers were involved.23:25
paulproteuscout << span << endl;23:27
nkinkadeBovinity: It must have been a fat finger mistake on my part.  I might have cut-n-pasted something.23:27
nkinkadeI've made numerous edits to that file, and it's a shame I wasn't doing it through version control.23:28
nkinkadeOh, Bovinity, now I remember.23:28
Bovinityoh!23:28
nkinkadeI added those there on purpose, but you're right, they should be &lt; &gt;23:29
nkinkadeAt one point I had angle brackets around the word "error", but later changed my mind and just put in 0, and now I don't want the angle brackets.23:29
Bovinityheh23:29
paulproteusMy most-frequent svn commit command-line:23:30
paulproteussvn ci -m ...23:30
nkinkadeBovinity: I just clone the support_cc_org_theme.git, so I guess I could try to piece together my changes and commit them individually.23:32
nkinkadeUnless you'd rather do it now in bulk.23:32
Bovinityoh, sure, go ahead. in the 2008 branch.23:33
nkinkadeBovinity: I'll see what I can do.  Be prepared to have to restore that git repository from backup.23:34
nkinkade;-)23:34
Bovinitylol23:34
*** cacimar has joined #cc23:45
paulproteusGood thing every clone is a backup!23:49
nkinkadeBovinity: Awww.  to heck with it.23:50
nkinkadeI think I'm just going to submit all the changes wholesale.23:50
nkinkadeIt'll be much easier than trying to pick what I've done apart and doing it more incrementally.23:50
nkinkadeSome of the stuff I did was cosmetic.23:50
Bovinityyay, AOL hates us again!23:53
*** parkerhiggins has joined #cc23:53
nkinkadepaulproteus: How does git handle it when there are local modifications in a checkout, but not added or committed?23:53
paulproteusnkinkade, Then "git diff" shows them.23:53
paulproteusI don't get what is the exciting part of this question.23:54
nkinkadeWill git give me conflicts when I update?23:54
paulproteusgit status will also show information about.23:54
paulproteusIt may, unless upstream didn't touch those files.23:54
paulproteusYou're best-off committing your local changes, and then doing "git pull" to merge in the other changes.23:54
nkinkadeI made changes to the clone on a7, not using git, now I'm going to apply those changes to a my local clone the repository.23:54
Bovinityi've been <3 git fetch ; git merge origin/BRANCH lately.23:54
nkinkadeI'm worried that when I got to pull on a7 that I'll get lots of conflicts.23:55
paulproteusBovinity's saying "git pull" the long way, which is fine.23:55
paulproteusnkinkade, Then you should:23:55
nkinkadeShould I just revert the checkout copy.23:55
paulproteusdo your commit locally, and then do the merge.23:55
paulproteusAnd if you get conflicts, you run git mergetool, and you get a nice Emacs-based merge tool, or kdiff3 if you have a GUI.23:55
nkinkadepaulproteus: What I'd rather do is revert the file on a7 to where git last had a commit, then commit my local changes, then do a pull on a7.23:56
paulproteusI don't understand.23:56
paulproteusIsn't that what I suggested?23:56
nkinkadeYour way will give me conflicts.23:57
Bovinityi think he means some form of git reset23:57
nkinkadeI want to undo the changes I made on a7 .23:57
paulproteusgit checkout $file23:57
nkinkadeBut reset will reset the index rigth.23:57
nkinkadeNothing has been added to the index, unless someone else did it.23:57
nkinkadeThen I'll redo the changes on local git-ed version, and then commit them and then do a pull on a7.23:58
nkinkadeI don't want to pull on a7 and get all sorts of conflicts that I have to resolve, if I can avoid it.23:58
* paulproteus nods23:59
paulproteusnkinkade, Something else you could do is:23:59
nkinkadeAh.23:59
paulproteuscp -a /path/to/place/with/commits/ /tmp/playground23:59
nkinkadeNow that makes sense.  Cool.23:59
paulproteuscd /tmp/playground23:59

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