Wrong number of arguments for mget

1,622 views
Skip to first unread message

Daniel Wittenberg

unread,
Sep 10, 2013, 3:02:00 PM9/10/13
to skyli...@googlegroups.com
I'm trying to do an eval of skyline/elasticsearch/oculus and not sure exactly where this issue is coming from, but when we go to :3000 we get:

Redis::CommandError at /search

ERR wrong number of arguments for 'mget' command


Anyone seen that before?  Any other places to get help with Oculus too?

Jon Cowie

unread,
Sep 10, 2013, 3:12:06 PM9/10/13
to skyli...@googlegroups.com
Daniel,

The same issue has been reported as an issue on github: https://github.com/etsy/oculus/issues/11

I'm still looking into exactly what's causing the issue, as I haven't been able to replicate it yet - keep an eye on that issue for updates :)

Cheers,

Jon

Daniel Wittenberg

unread,
Sep 10, 2013, 3:31:58 PM9/10/13
to skyli...@googlegroups.com
Glad I'm not the only one, mine is an out-of-the-box empty install, just ran the seed_data.py.

Relevant code:
puts "results: #{results.class} #{results.inspect}"
    redis_results = Hash.new
    if @formatted_query == "Drawn Query"
      redis_names = results.map{|r|r.id}
    else
      redis_names = results.map{|r|r.id} << @formatted_query
    end
    puts "redis names: ->#{redis_names.class} ->#{redis_names}"

results: ElasticSearch::Api::Hits #<ElasticSearch::Api::Hits:0x00000003a9e568 @response={"took"=>2, "timed_out"=>false, "_shards"=>{"total"=>5, "successful"=>5, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:per_page=>nil, :page=>nil, :ids_only=>nil}, @total_entries=0, @_shards={"total"=>5, "successful"=>5, "failed"=>0}, @facets=nil, @scroll_id=nil, @hits=[]>
redis names: ->Array ->[]
Redis::CommandError - ERR wrong number of arguments for 'mget' command:


Daniel Wittenberg

unread,
Sep 10, 2013, 3:35:59 PM9/10/13
to skyli...@googlegroups.com
Another minor follow-up, any recommendations for the OS/ruby/python/etc?  I realized that ruby 1.8.7 wasn't going to work, but any other up-front requirements would help too.

Abe Stanway

unread,
Sep 10, 2013, 3:36:18 PM9/10/13
to Daniel Wittenberg, skyli...@googlegroups.com
Yes, I suspect it is because there are no keys in Redis, so there will be nothing passed as an arg to the mget, which would throw that error. Likely we just need a check to make sure at least 1 key is being passed to the mget.


--
You received this message because you are subscribed to the Google Groups "skyline-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skyline-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Abe Stanway
Reply all
Reply to author
Forward
0 new messages