question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start DynamoDB Local process!

See original GitHub issue

Any help/idea would be very much appreciated, I’m new to all this serverless thing and want to learn. Thank you in advance!

Actual Behaviour

I’m unable to start DynamoDB locally and general error: Unable to start DynamoDB Local process!, I followed the steps in multiple tutorials, none will make it start.

Expected Behaviour

DynamoDB should be running smoothly on port 8000

Steps to reproduce it

Running the commands “sls dynamodb install” and “sls dynamodb start -p 8000”

LogCat for the issue

`Serverless: Load command config Serverless: Load command config:credentials Serverless: Load command create Serverless: Load command install Serverless: Load command package Serverless: Load command deploy Serverless: Load command deploy:function Serverless: Load command deploy:list Serverless: Load command deploy:list:functions Serverless: Load command invoke Serverless: Load command invoke:local Serverless: Load command info Serverless: Load command logs Serverless: Load command metrics Serverless: Load command print Serverless: Load command remove Serverless: Load command rollback Serverless: Load command rollback:function Serverless: Load command slstats Serverless: Load command plugin Serverless: Load command plugin Serverless: Load command plugin:install Serverless: Load command plugin Serverless: Load command plugin:uninstall Serverless: Load command plugin Serverless: Load command plugin:list Serverless: Load command plugin Serverless: Load command plugin:search Serverless: Load command config Serverless: Load command config:credentials Serverless: Load command rollback Serverless: Load command rollback:function Serverless: Load command create_domain Serverless: Load command delete_domain Serverless: Load command dynamodb Serverless: Load command dynamodb:migrate Serverless: Load command dynamodb:seed Serverless: Load command dynamodb:start Serverless: Load command dynamodb:noStart Serverless: Load command dynamodb:remove Serverless: Load command dynamodb:install Serverless: Load command offline Serverless: Load command offline:start Serverless: Invoke dynamodb:start

Error --------------------------------------------------

Unable to start DynamoDB Local process!

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Stack Trace --------------------------------------------

Error: Unable to start DynamoDB Local process! at Object.start (/Users/alexraducu/work/serverless/ssr-react-next/node_modules/dynamodb-localhost/dynamodb/starter.js:45:19) at Object.start (/Users/alexraducu/work/serverless/ssr-react-next/node_modules/dynamodb-localhost/index.js:20:32) at ServerlessDynamodbLocal.startHandler (/Users/alexraducu/work/serverless/ssr-react-next/node_modules/serverless-dynamodb-local/index.js:226:25) at BbPromise.reduce (/Users/alexraducu/.node/lib/node_modules/serverless/lib/classes/PluginManager.js:400:55) From previous event: at PluginManager.invoke (/Users/alexraducu/.node/lib/node_modules/serverless/lib/classes/PluginManager.js:400:22) at PluginManager.run (/Users/alexraducu/.node/lib/node_modules/serverless/lib/classes/PluginManager.js:431:17) at variables.populateService.then.then (/Users/alexraducu/.node/lib/node_modules/serverless/lib/Serverless.js:114:33) at processImmediate (timers.js:632:19) at process.topLevelDomainCallback (domain.js:120:23) From previous event: at Serverless.run (/Users/alexraducu/.node/lib/node_modules/serverless/lib/Serverless.js:101:6) at serverless.init.then (/Users/alexraducu/.node/lib/node_modules/serverless/bin/serverless:43:28) at /Users/alexraducu/.node/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:111:16 at /Users/alexraducu/.node/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:45:10 at FSReqCallback.args [as oncomplete] (fs.js:147:20) From previous event: at initializeErrorReporter.then (/Users/alexraducu/.node/lib/node_modules/serverless/bin/serverless:43:6) at processImmediate (timers.js:632:19) at process.topLevelDomainCallback (domain.js:120:23) From previous event: at /Users/alexraducu/.node/lib/node_modules/serverless/bin/serverless:28:46 at Object.<anonymous> (/Users/alexraducu/.node/lib/node_modules/serverless/bin/serverless:67:4) at Module._compile (internal/modules/cjs/loader.js:721:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:732:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Function.Module.runMain (internal/modules/cjs/loader.js:774:12) at executeUserCode (internal/bootstrap/node.js:342:17) at startExecution (internal/bootstrap/node.js:276:5) at startup (internal/bootstrap/node.js:227:5) at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Issues: forum.serverless.com

Your Environment Information ----------------------------- OS: darwin Node Version: 11.6.0 Serverless Version: 1.37.1`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:32 (2 by maintainers)

github_iconTop GitHub Comments

79reactions
iamjoshuacommented, Feb 21, 2019

0.2.35 worked for me only after removing the latest version and then running through the complete setup again:

yarn remove serverless-dynamodb-local
yarn add serverless-dynamodb-local@0.2.35
sls dynamodb install

Also perhaps worth noting that if the java sdk isn’t installed, an error will occur with a link just to java and not the sdk and so installing it will not help. Google java sdk for latest versions/OS.

19reactions
barroyocommented, Feb 25, 2019

In case you want to use the latest version (0.2.36) check this issue https://github.com/99xt/serverless-dynamodb-local/issues/195.

after upgrading running the install command like this fixed the issue for me (on MacOS) sls dynamodb install --localPath ./bin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unable to start DynamoDB Local process
Error occuring when trying to start a Local offline DynamoDB instance, often appearning when using Serverless Framework. First, make sure you have Java...
Read more >
Serverless framework won't start with dynamodb local
So it turns it was an issue, registered and solved here: https://github.com/99xt/serverless-dynamodb-local/issues/120.
Read more >
Serverless Dynamodb Local Plugin
Install DynamoDB Local (unless using docker setup, see below) sls dynamodb install · Start DynamoDB Local and migrate (DynamoDB will process incoming requests ......
Read more >
Deploying DynamoDB locally on your computer
Learn how to download and deploy Amazon DynamoDB locally on your computer, ... To start DynamoDB on your computer, open a command prompt...
Read more >
99xt/serverless-dynamodb-local
I have previously installed npm install --save serverless-dynamodb-local@0.2.10 and added - serverless-dynamodb-local to the serverless.yml plugins section.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found