Comments (2)
+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.
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)
- DynamoDB Local throwing NetworkingError HOT 5
- Windows: Serverless command "dynamodb install" not found. HOT 8
- Deprecation warning: CLI options definitions were upgraded with "type" property HOT 6
- Global Secondary Index is not working HOT 3
- Cannot launch DynamoDB on Mac M1 architecture HOT 15
- Getting "UnknownError: Service Unavailable" while trying to run the local server using command "sls dynamodb start"
- Plugin not working after upgrading to SLS v3 HOT 2
- Can I upgrade schemas?
- Issue with default region on Localstack 1.1
- CLI_OPTIONS_SCHEMA_V3 deprecation support
- Semantic version inconsistency HOT 1
- Create table for offline mode only
- Unexpected key `ContributorInsightsSpecification` HOT 2
- migrate does not work with higher version of node over 16 HOT 4
- sls dynamodb install failing to download HOT 1
- Error getting DynamoDb local latest tar.gz location undefined: 403 HOT 30
- Please deploy the new version that fixes the http -> https thing on the dynamodb-local package. HOT 1
- Invalid AWS Mock Access Key ID through a new AWS-SDK version HOT 5
- The latest version installed by npm is different than what is in the repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-dynamodb-local.