STF 安装命令:

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb

sudo apt-get install android-tools-adb

sudo apt-get install graphicsmagick

sudo apt-get install libzmq3-dev

sudo apt-get install libprotobuf-dev

sudo apt-get install yasm

sudo apt-get install pkg-config

sudo apt-get install g++

sudo npm install -g stf

以前都是使用以上命令进行安装的
这两天需要在搭一台进行试验
重装好多次都是一样的报错信息
报错信息如下:

#stf local
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli migrate"
INF/db 2979 [*] Connecting to 127.0.0.1:28015
INF/db:setup 2979 [*] Database "stf" already exists
INF/db:setup 2979 [*] Table "users" already exists
INF/db:setup 2979 [*] Table "accessTokens" already exists
INF/db:setup 2979 [*] Table "vncauth" already exists
INF/db:setup 2979 [*] Table "devices" already exists
INF/db:setup 2979 [*] Table "logs" already exists
INF/db:setup 2979 [*] Index "users"."adbKeys" already exists
INF/db:setup 2979 [*] Index "accessTokens"."email" already exists
INF/db:setup 2979 [*] Index "vncauth"."response" already exists
INF/db:setup 2979 [*] Index "vncauth"."responsePerDevice" already exists
INF/db:setup 2979 [*] Index "devices"."owner" already exists
INF/db:setup 2979 [*] Index "devices"."present" already exists
INF/db:setup 2979 [*] Index "devices"."providerChannel" already exists
INF/db:setup 2979 [*] Waiting for index "users"."adbKeys"
INF/db:setup 2979 [*] Waiting for index "accessTokens"."email"
INF/db:setup 2979 [*] Waiting for index "vncauth"."response"
INF/db:setup 2979 [*] Waiting for index "vncauth"."responsePerDevice"
INF/db:setup 2979 [*] Waiting for index "devices"."owner"
INF/db:setup 2979 [*] Waiting for index "devices"."present"
INF/db:setup 2979 [*] Waiting for index "devices"."providerChannel"
INF/db:setup 2979 [*] Index "users"."adbKeys" is ready
INF/db:setup 2979 [*] Index "accessTokens"."email" is ready
INF/db:setup 2979 [*] Index "vncauth"."responsePerDevice" is ready
INF/db:setup 2979 [*] Index "vncauth"."response" is ready
INF/db:setup 2979 [*] Index "devices"."owner" is ready
INF/db:setup 2979 [*] Index "devices"."present" is ready
INF/db:setup 2979 [*] Index "devices"."providerChannel" is ready
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli triproxy app001 --bind-pub tcp://127.0.0.1:7111 --bind-dealer tcp://127.0.0.1:7112 --bind-pull tcp://127.0.0.1:7113"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli triproxy dev001 --bind-pub tcp://127.0.0.1:7114 --bind-dealer tcp://127.0.0.1:7115 --bind-pull tcp://127.0.0.1:7116"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli processor proc001 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli processor proc002 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli reaper reaper001 --connect-push tcp://127.0.0.1:7116 --connect-sub tcp://127.0.0.1:7111"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli provider --name test0-stf --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip localhost --storage-url http://localhost:7100/ --adb-host 127.0.0.1 --adb-port 5037 --vnc-initial-size 600x800"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli auth-mock --port 7120 --secret kute kittykat --app-url http://localhost:7100/"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli app --port 7105 --secret kute kittykat --auth-url http://localhost:7100/auth/mock/ --websocket-url http://localhost:7110/"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli api --port 7106 --secret kute kittykat --connect-push tcp://127.0.0.1:7113 --connect-sub tcp://127.0.0.1:7111"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli websocket --port 7110 --secret kute kittykat --storage-url http://localhost:7100/ --connect-sub tcp://127.0.0.1:7111 --connect-push tcp://127.0.0.1:7113"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli storage-temp --port 7102"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli storage-plugin-image --port 7103 --storage-url http://localhost:7100/"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli storage-plugin-apk --port 7104 --storage-url http://localhost:7100/"
INF/util:procutil 2973 [*] Forking "/usr/lib/node_modules/stf/lib/cli poorxy --port 7100 --app-url http://localhost:7105/ --auth-url http://localhost:7120/ --api-url http://localhost:7106/ --websocket-url http://localhost:7110/ --storage-url http://localhost:7102/ --storage-plugin-image-url http://localhost:7103/ --storage-plugin-apk-url http://localhost:7104/"
/usr/bin/nodejs /usr/lib/node_modules/stf/lib/cli triproxy [name]

选项:
  -h, --help         Show help.                                           [布尔]
  -V, --version      Show version.                                        [布尔]
  --bind-dealer, -d  The address to bind the ZeroMQ DEALER endpoint to.
                                               [字符串] [默认值: "tcp://*:7112"]
  --bind-pub, -u     The address to bind the ZeroMQ PUB endpoint to.
                                               [字符串] [默认值: "tcp://*:7111"]
  --bind-pull, -p    The address to bind the ZeroMQ PULL endpoint to.
                                               [字符串] [默认值: "tcp://*:7113"]
  --name             An easily identifiable name for log output.
                                                  [字符串] [默认值: "test0-stf"]

Each option can be be overwritten with an environment variable by converting the
option to uppercase, replacing dashes with underscores and prefixing it with
`STF_TRIPROXY_` (e.g. `STF_TRIPROXY_BIND_PUB`).

Could not locate the bindings file. Tried:
 → /usr/lib/node_modules/stf/node_modules/zmq/build/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/compiled/8.3.0/linux/x64/zmq.node
FTL/cli:local 2973 [*] Child process had an error ExitError: Exit code "1"
    at ChildProcess.<anonymous> (/usr/lib/node_modules/stf/lib/util/procutil.js:49:23)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
INF/cli:local 2973 [*] Shutting down all child processes
/usr/bin/nodejs /usr/lib/node_modules/stf/lib/cli triproxy [name]

选项:
  -h, --help         Show help.                                           [布尔]
  -V, --version      Show version.                                        [布尔]
  --bind-dealer, -d  The address to bind the ZeroMQ DEALER endpoint to.
                                               [字符串] [默认值: "tcp://*:7112"]
  --bind-pub, -u     The address to bind the ZeroMQ PUB endpoint to.
                                               [字符串] [默认值: "tcp://*:7111"]
  --bind-pull, -p    The address to bind the ZeroMQ PULL endpoint to.
                                               [字符串] [默认值: "tcp://*:7113"]
  --name             An easily identifiable name for log output.
                                                  [字符串] [默认值: "test0-stf"]

Each option can be be overwritten with an environment variable by converting the
option to uppercase, replacing dashes with underscores and prefixing it with
`STF_TRIPROXY_` (e.g. `STF_TRIPROXY_BIND_PUB`).

Could not locate the bindings file. Tried:
 → /usr/lib/node_modules/stf/node_modules/zmq/build/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
 → /usr/lib/node_modules/stf/node_modules/zmq/compiled/8.3.0/linux/x64/zmq.node

求大佬帮助


↙↙↙阅读原文可查看相关链接,并与作者交流