Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting FTL Error when we run stf local #521

Open
madangopal918 opened this issue Jan 4, 2017 · 3 comments
Open

Getting FTL Error when we run stf local #521

madangopal918 opened this issue Jan 4, 2017 · 3 comments

Comments

@madangopal918
Copy link

FTL/reaper 19485 [reaper001] Unable to load initial state { ReqlOpFailedError: Database stf does not exist in:
r.table("devices").getAll(true, {"index": "present"})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at ReqlOpFailedError.ReqlError [as constructor] (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/errors.js:23:13)
at ReqlOpFailedError.ReqlRuntimeError [as constructor] (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/errors.js:90:51)
at ReqlOpFailedError.ReqlAvailabilityError [as constructor] (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/errors.js:167:56)
at new ReqlOpFailedError (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/errors.js:178:52)
at mkErr (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/util.js:177:10)
at TcpConnection.Connection._processResponse (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/net.js:152:16)
at TcpConnection.Connection._data (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/net.js:122:12)
at Socket. (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/net.js:689:32)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)
From previous event:
at GetAll.TermBase.run (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/rethinkdb/ast.js:135:12)
at /Users/qualitest/Desktop/Shreyas083/stf/lib/db/index.js:110:14
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)
From previous event:
at db.run (/Users/qualitest/Desktop/Shreyas083/stf/lib/db/index.js:109:23)
at dbapi.loadPresentDevices (/Users/qualitest/Desktop/Shreyas083/stf/lib/db/api.js:333:13)
at loadInitialState (/Users/qualitest/Desktop/Shreyas083/stf/lib/units/reaper/index.js:80:18)
at module.exports (/Users/qualitest/Desktop/Shreyas083/stf/lib/units/reaper/index.js:122:3)
at Object.module.exports.handler (/Users/qualitest/Desktop/Shreyas083/stf/lib/cli/reaper/index.js:42:39)
at Object.self.runCommand (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/yargs/lib/command.js:170:22)
at parseArgs (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/yargs/yargs.js:920:28)
at Object.get [as argv] (/Users/qualitest/Desktop/Shreyas083/stf/node_modules/yargs/yargs.js:860:16)
at Object. (/Users/qualitest/Desktop/Shreyas083/stf/lib/cli/index.js:40:3)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
name: 'ReqlOpFailedError',
msg: 'Database stf does not exist.',
frames: [],
message: 'Database stf does not exist in:\nr.table("devices").getAll(true, {"index": "present"})\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^' }
FTL/util:lifecycle 19485 [reaper001] Shutting down due to fatal error
FTL/cli:local 19479 [] Child process had an error ExitError: Exit code "1"
at ChildProcess. (/Users/qualitest/Desktop/Shreyas083/stf/lib/util/procutil.js:49:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
INF/cli:local 19479 [
] Shutting down all child processes
INF/util:lifecycle 19481 [app001] Winding down for graceful exit
INF/util:lifecycle 19482 [dev001] Winding down for graceful exit
INF/util:lifecycle 19484 [proc002] Winding down for graceful exit
INF/util:lifecycle 19483 [proc001] Winding down for graceful exit
WRN/db 19484 [proc002] Connection closed
INF/db 19484 [proc002] Connecting to 127.0.0.1:28015
WRN/db 19483 [proc001] Connection closed
INF/db 19483 [proc001] Connecting to 127.0.0.1:28015

How to proceed further?

@fabiomeyra
Copy link

If you don't did, run 'rethinkdb' command to create the stf database, if you already did, run 'stf migrate' once before 'stf local'. This may solve your problem.

@goddess520
Copy link

I still will prompt this,How to solve?
Could not locate the bindings file. Tried:
→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/Debug/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/Release/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/out/Debug/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/Debug/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/out/Release/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/Release/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/build/default/zmq.node
→ /usr/local/lib/node_modules/stf/node_modules/zmq/compiled/8.9.1/darwin/x64/zmq.node
FTL/cli:local 4405 [*] Child process had an error ExitError: Exit code "1"
at ChildProcess. (/usr/local/lib/node_modules/stf/lib/util/procutil.js:49:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
INF/cli:local 4405 [*] Shutting down all child processes
/usr/local/lib/node_modules/stf/lib/cli triproxy [name]

@rakib-amin
Copy link

@goddess520 npm install zmq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants