Last Command Starting Command Proxy

The last line Appium prints is “Starting command proxy.” and then hangs. The next command should be “e[36minfoe[39m: Instruments is ready to receive commands”. This happens on the following command:

appium -p 4721 --full-reset --command-timeout 7200 --session-override --address 127.0.0.1 --tmp /Users/user/test/11/iPhone6/

All the previous commands work, where the number 11 is less than 10. Any idea on why this is happening?

e[36minfoe[39m: [debug] Parsed app Info.plist (as XML)
e[36minfoe[39m: [debug] Creating instruments
e[36minfoe[39m: [debug] Preparing uiauto bootstrap
e[36minfoe[39m: [debug] Dynamic bootstrap dir: bootstrap dir
e[36minfoe[39m: [debug] Dynamic env: env params
e[36minfoe[39m: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

e[36minfoe[39m: [debug] Dynamic bootstrap path: /Users/user/Library/Application Support/appium/bootstrap/bootstrap-8ed09f0734d13b35.js
e[36minfoe[39m: [debug] Reusing dynamic bootstrap: /Users/user/Library/Application Support/appium/bootstrap/bootstrap-8ed09f0734d13b35.js
e[36minfoe[39m: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog
e[36minfoe[39m: [debug] Creating iDevice object with udid 7b321f967a34fc91fd2afb581fce4087ad8ef7c3
e[36minfoe[39m: [debug] App is installed.
e[36minfoe[39m: [debug] Starting command proxy.

EDIT: It appears to be this error:
Unhandled error: Error: listen EADDRINUSE /Users/user/workspace/instruments_sock
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at Server._listen2 (net.js:1225:19)
at listen (net.js:1274:10)
at Server.listen (net.js:1364:5)
at /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/lib/command-proxy.js:228:20
at /usr/local/lib/node_modules/appium/node_modules/mkdirp/index.js:48:26

There is no /tmp/instruments_sock file.

@cnotgo - Did you get any solution for this problem? I am facing the same issue.

No, part of the time it’s because the port was taken by something.