99x / 99x/serverless-dynamodb-local

Cannot launch DynamoDB on Mac M1 architecture

Open
#277 15 comments 9 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

**Actual Behaviour**

When running dynamodb locally on my Macbook M1 Pro 2021 I get an unsatisifed link due to sqlite libs not being available for my archiecture:

```
Caused by: java.lang.UnsatisfiedLinkError: /foo/.dynamodb/DynamoDBLocal_lib/libsqlite4java-osx.dylib:
dlopen(/foo/.dynamodb/DynamoDBLocal_lib/libsqlite4java-osx.dylib, 0x0001): tried:
'/foo/.dynamodb/DynamoDBLocal_lib/libsqlite4java-osx.dylib'
(fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e')),
'/usr/local/lib/libsqlite4java-osx.dylib' (no such file), '/usr/lib/libsqlite4java-osx.dylib' (no such file)
```
**Expected Behaviour**

Should start DynamoDB java program

**Steps to reproduce it**

Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code.

**LogCat for the issue**

Provide logs for the crash here

**Screenshots of the issue**

Where-ever possible attach a screenshot of the issue.

**Would you like to work on the issue?**

Please let us know if you can work on it or the issue should be assigned to someone else.

Contributor guide

Open the contributing guide

Research direction

Start with the reported UnsatisfiedLinkError and the DynamoDBLocal_lib/libsqlite4java-osx.dylib path, then inspect the plugin's launcher and dependency configuration for architecture assumptions. Done means the DynamoDB Java program launches successfully on a Mac M1 without the incompatible native-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java, javascript, sqlite
Domain
databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.