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.

Not starting DDB-local when running sls offline

See original GitHub issue

Actual Behaviour

Not starting local dynamo when running sls offline

Steps to reproduce it

  - serverless-plugin-typescript
  - serverless-plugin-optimize
  - serverless-pseudo-parameters
  - serverless-dynamodb-local
  - serverless-offline

    useChildProcesses: true
    start: # why doesn't this automatically start?
      port: 4455
      # inMemory: true
      migrate: true
      - dev

LogCat for the issue

Provide logs for the crash here

❯ sls offline
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Serverless: Watching typescript files...
offline: Starting Offline: dev/eu-west-1.
offline: Offline [http for lambda] listening on http://localhost:3002

   β”‚                                                                                 β”‚
   β”‚   POST | http://localhost:3000/dev......  β”‚                                                                                 β”‚

offline: [HTTP] server ready: http://localhost:3000 πŸš€
offline: Enter "rp" to replay the last request

Would you like to work on the issue?

Not sure where to start

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

itsUnsmartcommented, Feb 15, 2021

Yeah, same issue here… you can start it with sls dynamodb start but really needs to auto start with serverless-offline.

Edit: it seems I have found the solution… run serverless offline with the command: serverless offline start

say8425commented, Oct 10, 2021
# βœ… works
sls offline start
serverless offline start
# ❌ not work
sls offline
serverless offline

sls offline and serverless offline dose not start dynamodb-local automatically. But sls offline start and serverless offline start dose start dynamodb-local automatically.

Because serverless-dynamodb-local has hook with before:offline:start.

So you need to add start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not starting DDB-local when running sls offline #256 - GitHub
Actual Behaviour Not starting local dynamo when running sls offline Steps to reproduce it plugins: - serverless-plugin-typescriptΒ ...
Read more >
[Solved] Unable to start DynamoDB Local process - Dynobase
If DynamoDB Offline is still not running, it might be failing to do so because ... port by specifying -p option to the...
Read more >
node.js - Serverless framework won't start with dynamodb local
the console should display Offline as one of the plugins now available in your Serverless project. then In your project root run: serverlessΒ ......
Read more >
serverless-dynamodb-local - npm
Start using serverless-dynamodb-local in your project by running `npm i ... You can use this with 'serverless-offline' Plugin.
Read more >
Serverless Dynamodb Local Plugin
Start : sls dynamodb start. This starts the DynamoDB Local instance, either as a local Java program or, if the --docker flag is...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found