Open xn opened 12 years ago
@xn Did you try deleting the generated directory and retrying? Also note that the test server will not work per-se with LevelDB. Unless you've monkey-patched the drop
method, it expects the test backends to be used.
Another thing to check is to see if you already have a test beam process running; if you do, try killing it and then re-running.
Thanks for the comments. Deleted sudo rm -rf /tmp/.identity.riak Then re-ran the tests...
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
/home/xn/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -I"lib:lib:test" -I"/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib" "/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb"
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/soap4r-24601670d998/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/soap4r-24601670d998/lib/soap/property.rb:68: warning: encoding option is ignored - u
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/soap4r-24601670d998/lib/soap/property.rb:69: warning: encoding option is ignored - u
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/soap4r-24601670d998/lib/soap/property.rb:70: warning: encoding option is ignored - u
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/util/tcp_socket_extensions.rb:54:in `wait_for_service_termination_with_timeout': Socket did not terminate within 10 seconds (SocketError)
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/node/control.rb:202:in `wait_for_shutdown'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/node/control.rb:37:in `stop'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/test_server.rb:47:in `stop'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/node/generation.rb:44:in `delete'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/node/generation.rb:12:in `recreate'
from /home/xn/sites/att-identity/test/support/ripple_test_server.rb:17:in `setup'
from /home/xn/sites/att-identity/test/test_helper.rb:22:in `<top (required)>'
from /home/xn/sites/att-identity/test/lib/oauth2/models/application_test.rb:2:in `require'
from /home/xn/sites/att-identity/test/lib/oauth2/models/application_test.rb:2:in `<top (required)>'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
from /home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [/home/xn/.rvm/rubies/ruby-1.9.2-p290/bin/r...]
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:in `ruby'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/testtask.rb:99:in `block (2 levels) in define'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/testtask.rb:98:in `block in define'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/home/xn/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/home/xn/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bin/rake:19:in `load'
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bin/rake:19:in `<main>'
Tasks: TOP => default => test
I do see that the test is trying to connect @ /tmp/.identity.riak and the console attaches to: /tmp/riak/erlang.pipe.1
@xn did you get this working? If not, can you create a small test project that shows the issue?
I'm having the same issue in an app I just started. so I created this small test project here: https://github.com/rafaelss/riak_issue_278 and here is the console output: https://github.com/rafaelss/riak_issue_278/blob/master/README.rdoc
I'm using ripple
from git
since latest release requires activemodel 3.0.x
let me know if you need something else.
I had this issue after running the ripple rspec suite. To recover, I ran
ps aux | grep riak
and killed every process. I also deleted /tmp/usr and deleted _./tmp/riak_testserver. I could then run my app's rspec suite again.
I ran into a similar problem and the way I was able to fix the problem was to, from the rails app root, rm -rf tmp/riak_test_server/
then kill the process called beam.smp. After I did these things, I did not encounter the problem.
Yes, this is a recurring issue that I haven't had a chance to investigate yet; I think it has to do with things not getting shut down properly if/when the machine reboots, but I'm not sure. Regardless of what's causing it, we need to add some code to recognize the situation when the test server is starting up and clean out the broken artifacts if necessary.
I can verify that this does still occur with beta2. Not sure which one of the above steps finally fixed the problem
For what it's worth I'm also seeing this issue with beta2 and riak 1.2.1 on Mac OSX.
I fixed it by doing:
rm -rf tmp/riak_test_server/
rake riak:stop
andWe experience intermittent test failures running tests:
Linux themachinename 2.6.32-220.7.1.el6.x86_64 #1 SMP Fri Feb 10 15:22:22 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
riak (1.2.1 2012-10-15) RedHat x86_64
jruby 1.7.1 (1.9.3p327) 2012-12-03 30a153b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_09-b05 [linux-amd64]
gem 'rails', '3.2.9' gem 'riak-client', '1.1.0' gem 'ripple', :git => 'http://github.com/basho/ripple.git', :ref => '676cf259590ad000511202a7fa95cd0327ac8d9d'
test: http_port: 46270 min_port: 46271 host: 127.0.0.1 source: /usr/sbin root: /tmp/riak_test_server js_source_dir: <%= Rails.root + "app/mapreduce" %>
1) Error:
test_foo:
RuntimeError: Could not find or open pipes for Riak console in /tmp/riak_test_server/pipe.[ Broken pipe - Broken pipe ]
/vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/console.rb:72:in initialize' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/console.rb:22:in
open'
/vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/node/control.rb:71:in attach' /vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/test_server.rb:69:in
maybe_attach'
/vendor/bundle/jruby/1.9/gems/riak-client-1.1.0/lib/riak/test_server.rb:40:in start' /vendor/cache/ripple-676cf259590a/lib/ripple/test_server.rb:14:in
setup'
/test/test_helper.rb:11:in _callback_before_43' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:443:in
_run589859293setup2084328715callbacks'
org/jruby/RubyBasicObject.java:1659:in __send__' org/jruby/RubyKernel.java:2086:in
send'
/vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in**run_callback' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:390:in
_run_setup_callbacks'
org/jruby/RubyBasicObject.java:1659:in__send**' org/jruby/RubyKernel.java:2086:in
send'
/vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:inrun_callbacks' /vendor/bundle/jruby/1.9/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in
run'
crash.log and error.log are empty...
run_erl [32389] Fri Dec 7 18:59:00 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=2) run_erl [32389] Fri Dec 7 18:59:00 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=2) run_erl [32389] Fri Dec 7 18:59:00 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=1) run_erl [32389] Fri Dec 7 18:59:00 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=1) run_erl [32389] Fri Dec 7 18:59:00 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=1) run_erl [32389] Fri Dec 7 18:59:08 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=2) run_erl [32389] Fri Dec 7 18:59:08 2012 Client expected on FIFO /tmp/riak_test_server/pipe/erlang.pipe.1.r, but can't open (len=1)
(riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> (riak129268@127.0.0.1)34> ok. ok (riak129268@127.0.0.1)35> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)36> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)37> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)38> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)39> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)40> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)41> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)42> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)43> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)44> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)45> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)46> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)47> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)48> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)49> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)50> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)51> riak_kv_memory_backend:reset(). ok (riak129268@127.0.0.1)52> riak_search_test_backend:reset(). ok (riak129268@127.0.0.1)53>
2012-12-07 18:58:59.769 [info] <0.7.0> Application lager started on node 'riak129268@127.0.0.1' 2012-12-07 18:58:59.806 [warning] <0.149.0>@riak_core_ring_manager:reload_ring:231 No ring file available. 2012-12-07 18:58:59.861 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_core,vnode_routing} = proxy 2012-12-07 18:58:59.864 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_core,staged_joins} = true 2012-12-07 18:58:59.879 [info] <0.7.0> Application riak_core started on node 'riak129268@127.0.0.1' 2012-12-07 18:58:59.903 [info] <0.262.0>@riak_core:wait_for_application:425 Waiting for application riak_pipe to start (0 seconds). 2012-12-07 18:58:59.904 [info] <0.7.0> Application riak_pipe started on node 'riak129268@127.0.0.1' 2012-12-07 18:58:59.927 [info] <0.271.0>@riak_core:wait_for_service:445 Waiting for service riak_kv to start (0 seconds) 2012-12-07 18:58:59.948 [info] <0.283.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.283.0>) 2012-12-07 18:58:59.953 [info] <0.284.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.284.0>) 2012-12-07 18:58:59.959 [info] <0.285.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.285.0>) 2012-12-07 18:58:59.965 [info] <0.286.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.286.0>) 2012-12-07 18:58:59.972 [info] <0.287.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.287.0>) 2012-12-07 18:58:59.978 [info] <0.288.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.288.0>) 2012-12-07 18:58:59.983 [info] <0.289.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.289.0>) 2012-12-07 18:58:59.989 [info] <0.290.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_map) host starting (<0.290.0>) 2012-12-07 18:58:59.995 [info] <0.292.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.292.0>) 2012-12-07 18:58:59.999 [info] <0.293.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.293.0>) 2012-12-07 18:59:00.003 [info] <0.294.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.294.0>) 2012-12-07 18:59:00.005 [info] <0.262.0>@riak_core:wait_for_application:419 Wait complete for application riak_pipe (0 seconds) 2012-12-07 18:59:00.009 [info] <0.295.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.295.0>) 2012-12-07 18:59:00.013 [info] <0.296.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.296.0>) 2012-12-07 18:59:00.017 [info] <0.298.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_reduce) host starting (<0.298.0>) 2012-12-07 18:59:00.020 [info] <0.391.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_hook) host starting (<0.391.0>) 2012-12-07 18:59:00.030 [info] <0.428.0>@riak_kv_js_vm:init:76 Spidermonkey VM (thread stack: 16MB, max heap: 8MB, pool: riak_kv_js_hook) host starting (<0.428.0>) 2012-12-07 18:59:00.133 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_kv,vnode_vclocks} = true 2012-12-07 18:59:00.137 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_kv,legacy_keylisting} = false 2012-12-07 18:59:00.141 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_kv,listkeys_backpressure} = true 2012-12-07 18:59:00.205 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_kv,mapred_system} = pipe 2012-12-07 18:59:00.211 [info] <0.155.0>@riak_core_capability:process_capability_changes:529 New capability: {riak_kv,mapred_2i_pipe} = true 2012-12-07 18:59:00.231 [info] <0.525.0>@riak_core:wait_for_application:425 Waiting for application riak_kv to start (0 seconds). 2012-12-07 18:59:00.236 [info] <0.7.0> Application riak_kv started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.240 [info] <0.7.0> Application merge_index started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.241 [info] <0.538.0>@riak_core:wait_for_service:445 Waiting for service riak_kv to start (0 seconds) 2012-12-07 18:59:00.332 [info] <0.525.0>@riak_core:wait_for_application:419 Wait complete for application riak_kv (0 seconds) 2012-12-07 18:59:00.432 [info] <0.271.0>@riak_core:wait_for_service:439 Wait complete for service riak_kv (0 seconds) 2012-12-07 18:59:00.443 [info] <0.538.0>@riak_core:wait_for_service:439 Wait complete for service riak_kv (0 seconds) 2012-12-07 18:59:00.460 [info] <0.1583.0>@riak_core:wait_for_application:425 Waiting for application riak_search to start (0 seconds). 2012-12-07 18:59:00.462 [info] <0.7.0> Application riak_search started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.466 [warning] <0.1590.0>@riak_api_pb_listener:get_port:99 The config riak_kv/pb_port has been deprecated and will be removed. Use riak_api/pb_port in the future. 2012-12-07 18:59:00.466 [warning] <0.1590.0>@riak_api_pb_listener:get_ip:117 The config riak_kv/pb_ip has been deprecated and will be removed. Use riak_api/pb_ip in the future. 2012-12-07 18:59:00.473 [info] <0.7.0> Application riak_api started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.476 [info] <0.7.0> Application cluster_info started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.479 [info] <0.7.0> Application riak_control started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.479 [info] <0.7.0> Application erlydtl started on node 'riak129268@127.0.0.1' 2012-12-07 18:59:00.562 [info] <0.1583.0>@riak_core:wait_for_application:419 Wait complete for application riak_search (0 seconds)
I ran the tests again and included the debug flags
DEBUG_RIAK_CONSOLE=1 DEBUG_RIAK_TEST_SERVER=1 DEBUG_RIAK_NODE=1 jruby -I:"test" test/unit/foo_test.rb"
Opening write pipe. Opening read pipe. Broken pipe - Broken pipe Opening write pipe. Opening read pipe. Sending command "ok." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>Initialized console: #File:/tmp/riak_test_server/pipe/erlang.pipe.1.r #File:/tmp/riak_test_server/pipe/erlang.pipe.1.w Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>ESending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>.Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>.Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)53>.
Finished tests in 0.511000s, 7.8278 tests/s, 13.6986 assertions/s.
Finished tests in 0.511000s, 7.8278 tests/s, 13.6986 assertions/s.
1) Error: test_foo:...
DEBUG_RIAK_CONSOLE=1 DEBUG_RIAK_TEST_SERVER=1 DEBUG_RIAK_NODE=1 jruby -I:"test" test/unit/foo_test.rb
*\ Mocha deprecation warning: Change require 'mocha'
to require 'mocha/setup'
.
Run options:
Opening write pipe. Opening read pipe. Sending command "ok." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>Initialized console: #File:/tmp/riak_test_server/pipe/erlang.pipe.1.r #File:/tmp/riak_test_server/pipe/erlang.pipe.1.w Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>.Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>.Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>.Sending command "riak_kv_memory_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>Sending command "riak_search_test_backend:reset()." Scanning for /(riak129268@127.0.0.1)\d+>\s*/
(riak129268@127.0.0.1)62>.
Finished tests in 0.641000s, 6.2402 tests/s, 17.1607 assertions/s.
4 tests, 11 assertions, 0 failures, 0 errors, 0 skips
We have decided to move away from using Riak::TestServer until we can dedicate some time to debugging this issue.
This started appearing sporadically in our travis builds since we upgraded to one of the latest SHAs that use riak-client 1.1.0 instead of 1.0.0.
Has there been any progress on this issue? I'm also getting this error. I can get around it sometimes but it continues to occur occasionally. It'd be really great if there was some way to catch when this error happens and fix whatever is causing it.
I've tried all of the above but still get this everytime:
/Users/administrator/.rvm/gems/ruby-1.9.3-p125/gems/riak-client-1.4.1/lib/riak/util/tcp_socket_extensions.rb:42:in
wait_for_service_with_timeout': Socket did not open within 10 seconds (SocketError)"
/home/xn/.rvm/gems/ruby-1.9.2-p290@identity/bundler/gems/ripple-6b5ac7fe139c/riak-client/lib/riak/node/console.rb:49:in `initialize': Could not find or open pipes for Riak console in /tmp/.identity.riak/pipe. (ArgumentError)
any ideas?