[FIXED] Syncing via command-line results in CacheKey error

Subscribe to [FIXED] Syncing via command-line results in CacheKey error 5 post(s), 3 voice(s)

 
Avatar kabooga 8 post(s)

So my fix doesnt go un-noticed with all of the text below.

FIX: add

require ‘cache_key’

to top of lib/tasks/importer.rake

PROBLEM:

I just installed WH and tried to my initial sync via the command line and got this error.

foo@web10 warehouse $ rake warehouse:sync RAILS_ENV=production
(in /u/apps/warehouse)
Syncing revisions for “svn”
Syncing Revisions #1 – #11164 #100 #200 #300
...snip…snip… #10700 #10800 #10900 #11000 #11100
{“keaka”=>Wed Jul 18 21:12:43 UTC 2007, “cody”=>Wed Jul 18 21:12:43 UTC 2007, “evan”=>Wed Jul 18 21:12:40 UTC 2007, “dmerino”=>Wed Jul 18 21:12:43 UTC 2007, “nathan”=>Wed Jul 18 21:08:09 UTC 2007, “ramsey”=>Wed Jul 18 21:07:27 UTC 2007, “vhuberts”=>Wed Jul 18 21:11:45 UTC 2007, “enguyen”=>Wed Jul 18 21:10:10 UTC 2007, “ooga”=>Wed Jul 18 21:12:43 UTC 2007, “iwhite”=>Wed Jul 18 21:07:59 UTC 2007, “bigo”=>Wed Jul 18 21:12:42 UTC 2007, “lklots”=>Wed Jul 18 21:09:46 UTC 2007, “dago”=>Wed Jul 18 21:12:20 UTC 2007, “oliver”=>Wed Jul 18 21:06:53 UTC 2007, “root”=>Wed Jul 18 21:06:27 UTC 2007, “nolan”=>Wed Jul 18 21:06:20 UTC 2007, “adanieli”=>Wed Jul 18 21:12:43 UTC 2007, “cchan”=>Wed Jul 18 21:12:43 UTC 2007}
{}
11164
rake aborted!
uninitialized constant CacheKey

(See full trace by running task with—trace)

 
Avatar Jeff Smith 8 post(s)

I’m receiving the exact same error kabooga. It’s killing my post-commit hook as well.

 
Avatar kabooga 8 post(s)

Did you add in my fix? That is,

require ‘cache_key’

to the top of lib/tasks/importer.rake

This solves my problem. I can run the sync command via command line, no problem.

However, my post-commit isnt working, but that could be a separate issue…

 
Avatar Jeff Smith 8 post(s)

I did, just wanted to echo that you weren’t the only one having the problem.

My post commit is working fine for me, so must be something different.

 
Avatar rick Administator 546 post(s)

Sorry about that, everyone. Here’s a patch for it. It also removes some extra puts lines I had in there.

curl "http://pastie.caboo.se/80132.txt?key=0isl7yyetembxbzth6" | patch -p0