error while starting 2.0 server
See original GitHub issueHere I am getting following error when I start the server, though my postgres and redis is running. Can you help ?
C:\ONX\Speckle\speckle-server-master\packages\server>npm run dev
@speckle/server@2.1.0 dev C:\ONX\Speckle\speckle-server-master\packages\server cross-env NODE_ENV=development DEBUG=speckle:* nodemon ./bin/www --watch . --watch ./bin/www -e js,graphql,env
[nodemon] 2.0.6
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): . bin\www
[nodemon] watching extensions: js,graphql,env
[nodemon] starting node ./bin/www
speckle:db-startup Loaded knex conf for development +0ms
speckle:www KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
speckle:www at Client_PG.acquireConnection (C:\ONX\Speckle\speckle-server-master\packages\server\node_modules\knex\lib\client.js:348:26)
speckle:www at async listCompleted (C:\ONX\Speckle\speckle-server-master\packages\server\node_modules\knex\lib\migrate\migration-list-resolver.js:12:3)
speckle:www at async Promise.all (index 1)
speckle:www at async Migrator.latest (C:\ONX\Speckle\speckle-server-master\packages\server\node_modules\knex\lib\migrate\Migrator.js:64:29)
speckle:www at async exports.init (C:\ONX\Speckle\speckle-server-master\packages\server\app.js:38:3) +0ms
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
Hey @riteshonx, it’s probably the node version - which one are you using? Otherwise, please give it a shot with node v12! If you’ve installed it with nvm should be easy to switch between them.
You have to build the viewer package first and initialize the monorepo dependency linking via
$ lerna init
.An alternative method is to run the whole server via docker and docker-compose. Check out the root readme for instructions. Make sure to pull the latest changes from master, cause this feature just got merged.