paroneayea | nathany, nkinkade, JED3: okay, I got it to work! | 00:00 |
---|---|---|
nkinkade | Cool. | 00:00 |
nkinkade | What did you do different? | 00:00 |
paroneayea | Well for one thing I set it so that it wrote index.html instead of __index.html, which was silly to do in the first place | 00:01 |
paroneayea | second, I set the apache conf up like this: | 00:01 |
paroneayea | RewriteCond %{REQUEST_URI} ^/licenses | 00:01 |
paroneayea | RewriteCond /cc.engine-cache/%{REQUEST_FILENAME} -f | 00:01 |
paroneayea | RewriteRule ^/licenses/(.*) /cc.engine-cache/\1 [L,P] | 00:01 |
paroneayea | 00:01 | |
paroneayea | RewriteRule ^/licenses/(.*) http://127.0.0.1:9080/licenses/$1 [L,P] | 00:01 |
paroneayea | and that seems to work great. | 00:01 |
paroneayea | proof that it is using the cached-on-disk version when possible, because I abused this one's cached copy: http://staging.creativecommons.org/licenses/by/3.0/deed.zh | 00:02 |
paroneayea | holla! | 00:02 |
paroneayea | thx for your help everyone. | 00:02 |
nkinkade | I'm still a little confused as to why rewrite rules are necessary at all. I thought nathany's cache shim was be more or less transparent. | 00:03 |
paroneayea | it is, if you want to allow it to drop to python | 00:03 |
paroneayea | so, if the request *does* hit python, it will serve the cached-on-disk file from python instead of going through the logic | 00:03 |
paroneayea | the idea is though that it shouldn't even have to if the file is there | 00:03 |
paroneayea | because apache can serve it directly, and apache is faster at that kind of thing. | 00:04 |
paroneayea | this was nathany's plan from the start btw, I am not just tacking on extra complexity because I think it is a good idea. Though I do think it is a good idea. :) | 00:05 |
nkinkade | Ah, now I see what you mean. Thanks for the explanation. | 00:05 |
paroneayea | yep | 00:06 |
nkinkade | If it hits python, then cc.engine will write the file. | 00:06 |
paroneayea | right | 00:06 |
paroneayea | and if it hits python and the file is there, python will do the same thing that apache is doing currently, but the thing is why bother when apache can do that kind of thing faster | 00:07 |
paroneayea | oh :< | 00:08 |
nkinkade | Makes good sense. | 00:08 |
paroneayea | I may be wrong. It might be being served by cc.engine atm. Damn. | 00:08 |
nkinkade | Let's just be sure that Varnish is caching all those files ... cookie stuff, etc. | 00:08 |
paroneayea | RewriteCond %{REQUEST_URI} ^/licenses | 00:08 |
paroneayea | RewriteCond /cc.engine-cache/%{REQUEST_FILENAME} -f | 00:08 |
paroneayea | RewriteRule ^/licenses/(.*) /cc.engine-cache/\1 [L,P] | 00:08 |
paroneayea | I think that second rule doesn't work maybe? | 00:08 |
nkinkade | $1 | 00:09 |
nkinkade | Not \1 | 00:09 |
paroneayea | ah | 00:09 |
paroneayea | yes that is one thing | 00:09 |
paroneayea | although that still doesn't fix it | 00:09 |
paroneayea | observe: | 00:09 |
paroneayea | http://staging.creativecommons.org/licenses/by-sa/3.0/deed.ko <- works this second | 00:10 |
paroneayea | but if I kill the server... | 00:10 |
paroneayea | http://staging.creativecommons.org/licenses/by-sa/3.0/deed.ko no longer loads | 00:10 |
paroneayea | it should load because apache should be serving the cached file right now even though paster is down | 00:10 |
paroneayea | oh... duh. | 00:11 |
paroneayea | okay, closer: | 00:11 |
paroneayea | missed the ! in front of the -f | 00:12 |
paroneayea | now it works but has a permission error. | 00:12 |
paroneayea | "works" | 00:12 |
paroneayea | that's probably easily fixed. | 00:12 |
paroneayea | hm. | 00:14 |
paroneayea | cwebber@a7:/var/www/staging.creativecommons.org/cc.engine-git/cache/licenses$ ls by-sa/3.0/ -l | 00:14 |
paroneayea | total 24 | 00:14 |
paroneayea | -rw-r--r-- 1 cwebber cwebber 21358 2010-02-25 00:03 deed.ko | 00:14 |
paroneayea | it *should* have permission I think.. | 00:14 |
paroneayea | in fact it opens when loaded like so: http://staging.creativecommons.org/cc.engine-cache/licenses/by-sa/3.0/deed.ko | 00:14 |
*** nathany has quit IRC | 00:16 | |
paroneayea | nkinkade: any thoughts on that permission error? | 00:18 |
nkinkade | paroneayea: One sec. | 00:22 |
*** luisv has quit IRC | 00:24 | |
nkinkade | paroneayea: Where are you getting the perm error? | 00:38 |
nkinkade | From your Apache via your browser? | 00:38 |
paroneayea | yes | 00:39 |
nkinkade | paroneayea: Example URL? | 00:40 |
paroneayea | http://staging.creativecommons.org/cc.engine-cache/licenses/by-sa/3.0/deed.ko | 00:41 |
paroneayea | er, | 00:41 |
paroneayea | http://staging.creativecommons.org/licenses/by-sa/3.0/deed.ko | 00:41 |
paroneayea | which should route the same as above actually | 00:41 |
akozak | nkinkade, around? | 00:44 |
nkinkade | akozak: Yes. | 00:44 |
akozak | could I get you to add one line into the cc wiki LocalSettings? $egMapsDefaultGeoService = 'geonames'; | 00:44 |
akozak | I'd do it but I don't think I have access | 00:44 |
akozak | errr | 00:45 |
akozak | maybe that should be google... | 00:45 |
akozak | no let's not rely on them | 00:45 |
mralex | geonames' data is CC licensed | 00:45 |
akozak | ah excellent | 00:46 |
nkinkade | akozak: Added. | 00:47 |
akozak | thanks nkinkade | 00:47 |
nkinkade | paroneayea: Can we look at this tomorrow? It's nearly 8PM here and I'm thinking about getting some dinner. | 00:50 |
nkinkade | staging:/choose is down, too. | 00:50 |
nkinkade | Related to this stuff? | 00:50 |
paroneayea | nkinkade: yeah, I took it down to see if caching would work without cc.engine up | 00:50 |
paroneayea | I'll put it back up for now then | 00:50 |
akozak | nkinkade, man I keep forgetting about est :/ | 00:50 |
paroneayea | brought it back up | 00:50 |
nkinkade | paroneayea: Thanks. I look more into first thing tomorrow. | 00:51 |
paroneayea | cool, talk to you then | 00:51 |
paroneayea | I'm gonna head out too | 00:51 |
*** JED3 has quit IRC | 01:03 | |
*** JoiIto has quit IRC | 01:32 | |
*** mralex has quit IRC | 01:35 | |
*** pyrak has quit IRC | 01:38 | |
*** pyrak_ has quit IRC | 01:39 | |
*** akozak has quit IRC | 02:12 | |
*** jgay has quit IRC | 02:23 | |
*** augustinas has quit IRC | 02:25 | |
*** Odemia has joined #cc | 02:41 | |
*** pyrak has joined #cc | 02:57 | |
*** pyrak has quit IRC | 03:11 | |
*** pyrak_ has joined #cc | 03:14 | |
*** pyrak_ is now known as pyrak | 03:22 | |
*** pyrak_ has joined #cc | 04:35 | |
*** pyrak_ has quit IRC | 04:37 | |
*** luisv has joined #cc | 04:41 | |
*** pyrak has quit IRC | 04:48 | |
*** JoiIto has joined #cc | 05:19 | |
*** luisv has quit IRC | 05:35 | |
*** JoiIto has quit IRC | 06:02 | |
*** wormsxulla has quit IRC | 06:39 | |
*** Odemia has quit IRC | 06:47 | |
*** Odemia has joined #cc | 06:49 | |
*** wormsxulla has joined #cc | 06:58 | |
*** JED3 has joined #cc | 07:02 | |
*** Kaetemi has joined #cc | 07:09 | |
*** Kaetemi has joined #cc | 07:09 | |
*** JoiIto has joined #cc | 08:08 | |
*** JoiIto has quit IRC | 08:14 | |
*** JoiIto has joined #cc | 08:16 | |
*** JoiIto has quit IRC | 08:21 | |
*** sama has joined #cc | 08:32 | |
*** JED3 has quit IRC | 09:08 | |
*** Kaetemi has quit IRC | 09:28 | |
*** shellac has joined #cc | 09:46 | |
*** Anotia50 has joined #cc | 10:01 | |
*** Anotia50 has left #cc | 10:09 | |
*** shellac has quit IRC | 10:27 | |
*** shellac has joined #cc | 10:29 | |
*** TDJACR has quit IRC | 10:57 | |
*** TDJACR has joined #cc | 10:58 | |
*** TDJACR has quit IRC | 11:05 | |
*** TDJACR has joined #cc | 11:08 | |
*** TDJACR has quit IRC | 11:15 | |
*** TDJACR has joined #cc | 11:21 | |
*** TDJACR has quit IRC | 11:27 | |
*** TDJACR has joined #cc | 11:28 | |
*** TDJACR has quit IRC | 11:35 | |
*** TDJACR has joined #cc | 11:36 | |
*** shellac has quit IRC | 11:42 | |
*** TDJACR has quit IRC | 11:42 | |
*** shellac has joined #cc | 11:43 | |
*** TDJACR has joined #cc | 11:51 | |
*** BjornW has joined #cc | 12:09 | |
*** terraces has quit IRC | 12:10 | |
*** lotia has quit IRC | 12:10 | |
*** terraces has joined #cc | 12:15 | |
*** lotia has joined #cc | 12:15 | |
*** Kaetemi has joined #cc | 12:29 | |
*** Kaetemi has joined #cc | 12:29 | |
*** k1k0 has joined #cc | 12:58 | |
*** k1k0 has left #cc | 12:59 | |
*** shellac has quit IRC | 13:01 | |
*** anttil has quit IRC | 13:56 | |
*** shellac has joined #cc | 14:26 | |
*** tvol has joined #cc | 14:33 | |
*** shellac has quit IRC | 14:59 | |
*** shellac has joined #cc | 15:00 | |
*** paroneayea has quit IRC | 15:03 | |
*** anttil has joined #cc | 15:25 | |
*** Kaetemi has quit IRC | 15:33 | |
*** paroneayea has joined #cc | 15:34 | |
*** shellac has quit IRC | 15:51 | |
*** shellac has joined #cc | 16:00 | |
*** wormsxulla has quit IRC | 16:17 | |
*** wormsxulla has joined #cc | 16:37 | |
*** nathany has joined #cc | 16:45 | |
*** oshani has joined #cc | 16:46 | |
paroneayea | nkinkade: ping | 16:49 |
*** oshani has joined #cc | 16:49 | |
*** JED3 has joined #cc | 17:23 | |
nkinkade | paroneayea: Hi. | 17:25 |
nathany | nkinkade, thanks for double checking that validation thing | 17:26 |
nkinkade | nathany: No problem. At first I assumed it would validate and that he was doing something wrong, but his wording made me sense that perhaps he knew what he was doing, so I did that test to be sure. | 17:27 |
nathany | right | 17:27 |
nathany | i'm pushing a fix to production now, going to test and reply | 17:27 |
*** Kaetemi has joined #cc | 17:27 | |
nkinkade | paroneayea: Were you pinging about the rewrite stuff? | 17:27 |
nkinkade | I'll look at that now, unless you've already fixed it? | 17:27 |
nathany | paroneayea, nkinkade, do you still need my eyes on that? | 17:28 |
nkinkade | nathany: I don't believe so. | 17:28 |
nathany | ok, great :) | 17:28 |
JED3 | so i guess this is why style="border:none" is used in the standard licenses? | 17:29 |
nathany | JED3, probably | 17:30 |
*** Kaetemi has quit IRC | 17:32 | |
*** Kaetemi has joined #cc | 17:34 | |
nathany | paroneayea, I think you'll get an email, but I just created a ticket for you in roundup re: CC0 metadatra | 17:51 |
nathany | paroneayea, also, can you make sure that roundup has your cc.org email address as an alternate? I'm assuming it doesn't right now, which is why you weren't auto-assigned | 17:52 |
nathany | (er, auto-nosied) | 17:52 |
*** mralex has joined #cc | 17:54 | |
*** shellac has quit IRC | 17:54 | |
*** oshani has quit IRC | 17:57 | |
*** oshani has joined #cc | 17:59 | |
paroneayea | hey (was at lunch) | 18:16 |
paroneayea | nathany: ok, looking | 18:16 |
paroneayea | nkinkade: so yeah, that's what I was pinging you about earlier | 18:17 |
paroneayea | I've marked the specific part in creativecommons.conf with # nkinkade, look here | 18:18 |
paroneayea | RewriteCond %{REQUEST_URI} ^/licenses | 18:20 |
paroneayea | RewriteCond /var/www/staging.creativecommons.org/cc.engine-git/cache/%{REQUEST_FILENAME} !-f | 18:20 |
paroneayea | RewriteRule ^/licenses/(.*) /cc.engine-cache/licenses/$1 [L,P] | 18:20 |
paroneayea | 18:20 | |
paroneayea | RewriteRule ^/licenses/(.*) http://127.0.0.1:9080/licenses/$1 [L,P] | 18:20 |
paroneayea | so if you see, that first block should be catching files that have been cached | 18:21 |
paroneayea | and the second should direct it to cc.engine's process if not | 18:21 |
paroneayea | however, currently the first *always* catches | 18:21 |
paroneayea | unless you comment it out | 18:21 |
paroneayea | then the second does pick it up at least | 18:21 |
paroneayea | so I'm not sure why it catches when there's a case where there's no file, like so: | 18:21 |
paroneayea | http://staging.creativecommons.org/licenses/by/3.0/deed.es_CL | 18:21 |
nkinkade | paroneayea: I'll look now. | 18:22 |
paroneayea | nkinkade: thx | 18:23 |
*** sama has quit IRC | 18:24 | |
nkinkade | paroneayea: Did you uncomment the RewriteLog rules? | 18:25 |
paroneayea | oh, they look uncommented, though I didn't do it myself | 18:26 |
paroneayea | I didn't know those were there | 18:26 |
nkinkade | paroneayea: Ugh. They were uncommented, and a RewriteLogLevel of 7 is pretty intensive. I wonder how long it's been uncommented. :-/ | 18:28 |
nkinkade | paroneayea: In any case, !-f matches in this case, but you send it to fetch the static file anyway. | 18:29 |
nkinkade | I think you need to remove the negation for this to work the way you want. | 18:29 |
nkinkade | You only want to fetch the cached file if ^/licenses && exists($file) | 18:30 |
paroneayea | right | 18:30 |
paroneayea | ! negates it then? | 18:30 |
nkinkade | Yes, ! is a negation operator. | 18:30 |
paroneayea | urk. | 18:30 |
nkinkade | I'll remove it now since I've already go the file open. | 18:30 |
nkinkade | paroneayea: ^^ | 18:30 |
paroneayea | I just did | 18:30 |
nkinkade | What are you using to edit? Emacs? | 18:31 |
paroneayea | yes | 18:31 |
nkinkade | Ah no wonder we aren't getting errors that someone has the file open. | 18:31 |
nkinkade | It fetches the file now. | 18:31 |
nkinkade | Can you verify now that the cached file is actually be fetched and not being retrieved from cc.engine? | 18:32 |
paroneayea | looks like actually it's failing in the opposite way now | 18:35 |
paroneayea | well | 18:35 |
paroneayea | okay, yes, when you see it, that's because it's hitting cc.engine | 18:35 |
paroneayea | but | 18:35 |
paroneayea | once it writes the file and caches it | 18:35 |
paroneayea | it won't open the file | 18:35 |
paroneayea | http://staging.creativecommons.org/licenses/by/3.0/deed.ko <- note that this won't open, but the file is there | 18:35 |
paroneayea | oops, I think you may have just removed it then I refreshed | 18:37 |
nkinkade | paroneayea: Try it now. | 18:53 |
paroneayea | nkinkade: :) | 18:54 |
paroneayea | looks good | 18:54 |
paroneayea | I need to fix the encoding it looks like, but other than that looks great | 18:54 |
nkinkade | paroneayea: Check the [PT] directive here: | 18:54 |
nkinkade | http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond | 18:55 |
nkinkade | They specifically mention using mod_rewrite in conjunction with mod_alias and other such aliasing modules. | 18:55 |
paroneayea | ahhh | 18:55 |
paroneayea | thanks so much for your help nkinkade :) | 18:56 |
nkinkade | No problem. mod_rewrite problems can be really difficult to solve. | 18:57 |
paroneayea | it has been a learning experience for sure :) | 18:57 |
nkinkade | nathany: The path-based auth for subversion seem that it will carry along with it the need for us to update the auth file every time we add a new svn user. Not a huge deal, but one more thing to do and keep track of. Does that bother you at all? | 19:06 |
nathany | nkinkade, is that the auth file just for that branch, or for the whole repo? | 19:07 |
nkinkade | nathany: It can be for pretty much anything. | 19:07 |
nkinkade | But once you decide to use path-based auth, you are locked into it, from what I can tell. | 19:07 |
nathany | nkinkade, got it | 19:08 |
nathany | nkinkade, you know, that sounds annoying | 19:08 |
nathany | i think we should just give him write access | 19:08 |
nathany | it's version control, after all -- we can always roll back | 19:08 |
nkinkade | That means we'll need to create a group called something like 'full-access' then add all of us to that group, then dole out other perms to others. | 19:08 |
nathany | (and we get commit emails) | 19:08 |
nathany | nkinkade, I say let's not create another layer to deal with | 19:08 |
nkinkade | Do we get commit emails for all subversion commits? | 19:09 |
nkinkade | http://svnbook.red-bean.com/en/1.4/svn.serverconfig.pathbasedauthz.html | 19:09 |
nathany | nkinkade, yes | 19:09 |
nathany | cc-commits list | 19:09 |
nkinkade | The top of that page has a large section on why not to use path-based auth. | 19:09 |
nkinkade | They also point out that spurious or malicious commits are easy to roll back. | 19:09 |
nathany | right | 19:09 |
nkinkade | I'll just give Leo full access. | 19:10 |
nathany | nkinkade, thanks | 19:10 |
nkinkade | We'll go from there. | 19:10 |
nathany | sounds good | 19:10 |
*** greg-g has quit IRC | 19:15 | |
*** paulproteus has quit IRC | 19:16 | |
*** oshani has quit IRC | 19:27 | |
*** greg-g has joined #cc | 19:58 | |
*** oshani has joined #cc | 20:00 | |
*** paulproteus has joined #cc | 20:06 | |
*** paulproteus has quit IRC | 20:11 | |
*** paulproteus has joined #cc | 20:11 | |
*** tvol has quit IRC | 20:12 | |
paroneayea | arg | 20:13 |
paroneayea | a package is down, and it is preventing me from running buildout | 20:13 |
paroneayea | time to switch to virtualenv mode | 20:15 |
*** cB- is now known as CharelB | 20:26 | |
*** Kaetemi__ has joined #cc | 20:33 | |
*** Kaetemi has quit IRC | 20:34 | |
*** Kaetemi__ has quit IRC | 20:36 | |
nkinkade | nathany: What are the dates you will be gone in last April, again? | 20:46 |
nkinkade | I'm looking at booking my travel for CiviCon. | 20:46 |
nkinkade | Nevermind, I just looked at your calendar and referred back to the thread with Dave Greenberg. | 20:50 |
*** Kaetemi__ has joined #cc | 21:00 | |
*** Kaetemi__ is now known as Kaetemi | 21:03 | |
nathany | nkinkade, great; basically right up to CiviCon | 21:08 |
nkinkade | nathany: So I'm thinking that in that case it's less important that I try to be in the office for longer since you won't be there anyway, right? | 21:08 |
nathany | nkinkade, civicon is on a thursday iirc, right? | 21:09 |
nkinkade | nathany: Yeah. | 21:09 |
nathany | yeah, so if you're able to be in the office friday, that'd be great | 21:09 |
nkinkade | Is there anything we need to cover on Friday, for example? | 21:09 |
nkinkade | I can do that. | 21:09 |
nathany | not that i know of now, but i'm sure it'd be good to check in f2f | 21:09 |
*** pyrak has joined #cc | 21:21 | |
*** Kaetemi__ has joined #cc | 21:55 | |
*** Kaetemi has quit IRC | 21:56 | |
*** oshani has quit IRC | 21:58 | |
*** BjornW has quit IRC | 22:29 | |
nkinkade | In the CiviCRM bug tracker: CRM-5866 WON'T FIX Google Maps broken in IE6 | 22:39 |
nkinkade | nathany: Did something change in the config of code/issues? When I reply via email to an issues, I myself get my own reply sent back to me. Do you know offhand if there is a config to not mail a nosy person if they were the ones who sent/submitted the message? | 22:43 |
nathany | nkinkade, i don't know of any config change; i noticed that as well... | 22:44 |
nkinkade | Not a big deal, and sometimes it's useful when I submit the comment directly through issues. | 22:44 |
nathany | i thought there was a config flag, and that we had it set to not send the submitter an email... now i'm not certain | 22:44 |
nkinkade | I guess I want it when I submit a comment via the interface, but don't when I submit one via email. | 22:45 |
nkinkade | I want it all how I want it when I want it! Dammit. | 22:45 |
*** TDJACR has quit IRC | 23:16 | |
*** TDJACR has joined #cc | 23:16 | |
paroneayea | JED3: I uploaded a new cc.license with get_valid_jurisdictions | 23:28 |
JED3 | awesome, thx | 23:28 |
*** gbraad has joined #cc | 23:30 | |
nathany | mralex, http://parislemon.com/2010/02/i-will-honor-your-fucking-embargo.html | 23:45 |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!