Git Product home page Git Product logo

Comments (2)

hugetiny avatar hugetiny commented on June 16, 2024

+1

root@HUAWEI:~/serverless/aws-node-express-dynamodb-api-project# sls dynamodb start
Running "serverless" from node_modules
Environment: linux, node 16.15.1, framework 3.22.0 (local) 3.22.0v (global), plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: Unable to start DynamoDB Local process!
    at Object.start (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/dynamodb-localhost/dynamodb/starter.js:52:19)
    at Object.start (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/dynamodb-localhost/index.js:20:32)
    at ServerlessDynamodbLocal.startHandler (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless-dynamodb-local/index.js:264:29)
    at PluginManager.runHooks (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
    at PluginManager.invoke (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/lib/classes/plugin-manager.js:564:20)
    at async PluginManager.run (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
    at async Serverless.run (/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/lib/serverless.js:174:5)
    at async /root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/scripts/serverless.js:771:9
✖ Uncaught exception
/root/serverless/aws-node-express-dynamodb-api-project/node_modules/serverless/scripts/serverless.js:51
        throw error;
        ^

Error: spawn java ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn java',
  path: 'java',
  spawnargs: [
    '-Xms200m',
    '-Xmx1g',
    '-Djava.library.path=/root/serverless/aws-node-express-dynamodb-api-project/.dynamodb/DynamoDBLocal_lib',
    '-jar',
    'DynamoDBLocal.jar',
    '-port',
    8001,
    '-inMemory',
    '-sharedDb'
  ]
}

from serverless-dynamodb-local.

AlexErrant avatar AlexErrant commented on June 16, 2024

I'm on Windows but not using wsl2 and got the same error. Running serverless dynamodb start in one terminal then serverless offline in another worked for me. No idea why.

from serverless-dynamodb-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.