2014-02-15 138 views
2

虽然我执行的场景突然我得到了错误信息如下:如何避免变量Errno :: ECONNREFUSED:(连接被拒绝 - (2)连接

Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265)) 
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265)) 
Failing... Errno::ECONNREFUSED 
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265)) 
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265)) 
Failing... Errno::ECONNREFUSED 
Connection refused - connect(2) (http://localhost:37265) (Errno::ECONNREFUSED) 
/usr/local/rvm/gems/ruby-1.9.3-p429/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `initialize' 

如何解决和克服这。问题是我用来执行

评论是:

  • 黄瓜功能/ APP_PATH = ...../.../../test.app DEVICE = iPad的SDK_VERSION = 6.1
+1

确保你实际上有一个进程正在侦听你想连接的端口(错误意味着你没有)。 –

+0

你还在遇到这个问题吗?它在像詹金斯这样的环境中?请参阅http://stackoverflow.com/a/24448375/1565615 – StackRunner

回答

0

您是否试图在模拟器上启动应用程序?确保模拟器正在运行并且-cal应用程序已启动。这应该打开通讯端口。

4

我面临同样的错误,这是因为elasticsearch服务没有运行。简单地做: sudo service elasticsearch start

相关问题