NCBI FTP - Getting the connection error but I am able to connect the ftp through FileZilla with the same credential
Getting the connection error but I am able to connect the ftp through FileZilla with the same credential.
root@d304a9354443:~# node --harmony-promise-finally server/ncbi-integration/toNcbi
info: ncbi check in 10 ms
info: Sending package EMS90388 to ncbi FTP location.
info: ncbi-integration/toNcbi: closing connection to the database...
error: Unhandled Rejection at Promise: Promise {
<rejected> { Error: Unable to acquire a connection
at doExecute (/home/xpub/node_modules/objection/lib/queryBuilder/QueryBuilder.js:1265:57)
at Bluebird.try.then (/home/xpub/node_modules/objection/lib/queryBuilder/QueryBuilder.js:583:19)
at tryCatcher (/home/xpub/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/xpub/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/xpub/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/xpub/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/xpub/node_modules/bluebird/js/release/promise.js:694:18)
at _drainQueueStep (/home/xpub/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/xpub/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/xpub/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/home/xpub/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
originalStack: 'Error: Unable to acquire a connection\n at Client_PG.acquireConnection (/home/xpub/node_modules/knex/lib/client.js:330:39)\n at Runner.ensureConnection (/home/xpub/node_modules/knex/lib/runner.js:224:24)\n at Runner.run (/home/xpub/node_modules/knex/lib/runner.js:33:41)\n at Builder.Target.then (/home/xpub/node_modules/knex/lib/interface.js:23:43)' } }
error: Reason: message=Unable to acquire a connection, stack=Error: Unable to acquire a connection
at doExecute (/home/xpub/node_modules/objection/lib/queryBuilder/QueryBuilder.js:1265:57)
at Bluebird.try.then (/home/xpub/node_modules/objection/lib/queryBuilder/QueryBuilder.js:583:19)
at tryCatcher (/home/xpub/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/xpub/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/xpub/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/xpub/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/xpub/node_modules/bluebird/js/release/promise.js:694:18)
at _drainQueueStep (/home/xpub/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/xpub/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/xpub/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/home/xpub/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20), originalStack=Error: Unable to acquire a connection
at Client_PG.acquireConnection (/home/xpub/node_modules/knex/lib/client.js:330:39)
at Runner.ensureConnection (/home/xpub/node_modules/knex/lib/runner.js:224:24)
at Runner.run (/home/xpub/node_modules/knex/lib/runner.js:33:41)
at Builder.Target.then (/home/xpub/node_modules/knex/lib/interface.js:23:43)
info: ncbi-integration/toNcbi: closing connection to the database...