Appium socket hang up

Jake · 2017年05月08日 · 最后由 Stepthen 回复于 2017年06月17日 · 2370 次阅读

autotest-ios:~ admin$ app-inspector -u xxxxxxxxxxxxx -p 8888 --verbose

port: 8888 was occupied, changed port: 8896
server.js:16:12 [master] pid:70240 server start with config:
{ port: 8896,
verbose: true,
udid: '9e9325e5e7168842fce6b36ebd21712cf4e1c579',
ip: '10.10.5.145',
host: 'autotest-ios.local',
loaded_time: '2017-05-08 11:08:57' }
app-inspector.js:43:12 [master] pid:70240 server start at: http://10.10.5.145:8896
xctest-client.js:56:14 [master] pid:70240 project path: /usr/local/lib/node_modules/app-inspector/node_modules/._webdriveragent@1.1.6@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client start with port: 8001
xctest-client.js:238:14 [master] pid:70240 xcode version: 8.3
WebDriverAgent version: 1.1.6
xctest-client.js:175:14 [master] pid:70240 2017-05-08 11:08:59.352 xcodebuild[70246:3742477] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-gtdpzllurbdiwcbjutikwrjrsatr/Logs/Test/0E3FA5BF-06E3-4005-976E-D9A7408B3C74/Session-WebDriverAgentRunner-2017-05-08_110859-aX4FOd.log

xctest-client.js:176:14 [master] pid:70240 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/._webdriveragent@1.1.6@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:175:14 [master] pid:70240 2017-05-08 11:08:59.353 xcodebuild[70246:3742475] [MT] IDETestOperationsObserverDebug: (4503EAC2-63B8-43A9-8A1E-D167FEC69D9C) Beginning test session WebDriverAgentRunner-4503EAC2-63B8-43A9-8A1E-D167FEC69D9C at 2017-05-08 11:08:59.353 with Xcode 8E162 on target {
deviceSerialNumber: F2MNX1F1G5QQ
identifier: 9e9325e5e7168842fce6b36ebd21712cf4e1c579
deviceClass: iPhone
deviceName: “admin” 的 iPhone
deviceIdentifier: 9e9325e5e7168842fce6b36ebd21712cf4e1c579
productVersion: 10.3.1
buildVersion: 14E304
deviceSoftwareVersion: 10.3.1 (14E304)
deviceArchitecture: arm64
deviceTotalCapacity: 12082294784
deviceAvailableCapacity: 9890500608
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType:
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:

hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
bootArgs:
} (10.3.1 (14E304))

xctest-client.js:176:14 [master] pid:70240 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/._webdriveragent@1.1.6@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:175:14 [master] pid:70240 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/b2/xryd_gbj04b2g5_r1yxsv7cm0000gp/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/6759fa05b08b6b3bcdc2aab58d16d249/9e9325e5e7168842fce6b36ebd21712cf4e1c579/ManifestCache.plist

xctest-client.js:176:14 [master] pid:70240 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/._webdriveragent@1.1.6@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
proxy.js:56:14 [master] pid:70240 Proxy: /session:POST to http://127.0.0.1:8001/session:POST with body: {"desiredCapabilities":{}}
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
proxy.js:62:22 [master] pid:70240 xctest client proxy error with: Error: socket hang up
xctest-client.js:262:14 [master] pid:70240 Fail to start xctest: Error: socket hang up
xctest-client.js:270:14 [master] pid:70240 killing deviceLogProc pid: 70243
xctest-client.js:275:14 [master] pid:70240 killing runnerProc pid: 70246
xctest-client.js:281:14 [master] pid:70240 killing iproxyProc pid: 70245
{ Error: socket hang up
at createHangUpError (_http_client.js:302:15)
at Socket.socketOnEnd (_http_client.js:394:23)
at emitNone (events.js:91:20)
at Socket.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9) code: 'ECONNRESET' }
iOS device started: 9e9325e5e7168842fce6b36ebd21712cf4e1c579
inspector start at: http://10.10.5.145:8896
xctest-client.js:150:16 [master] pid:70240 deviceconsole exit with code: null, signal: SIGKILL
xctest-client.js:214:14 [master] pid:70240 iproxy exit with code: null, signal: SIGKILL
xctest-client.js:186:14 [master] pid:70240 xctest client exit with code: null, signal: SIGKILL
<-- GET /
helper.js:97:16 [master] pid:70240 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001

Error: connect ECONNREFUSED 127.0.0.1:8001
at Object.exports._errnoException (util.js:1034:11)
at exports._exceptionWithHostPort (util.js:1057:20)
at TCPConnectWrap.afterConnect as oncomplete

各位怎么解?

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 2 条回复 时间 点赞

同问,遇到了同样的问题

@cherrycumtb ,@jake20001 遇到同样问题,解决了吗?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册