rynop / dynamodb-local

A wrapper for AWS DynamoDB Local, intended for use in testcases
MIT License
53 stars 30 forks source link

launch() fails on Linux #5

Closed charleswhchan closed 9 years ago

charleswhchan commented 9 years ago

OS: Linux Mint 17

Code:

var DynamoDbLocal = require('dynamodb-local');
DynamoDbLocal.launch(dynamoLocalPort, null, ['-sharedDb']); 

Result:

Checking for  /tmpdynamodb-local
DyanmoDb Local not installed. Installing...
## aborted

I think there might be a problem with in the following code:

var tmpDynamoLocalDirDest = os.tmpdir() + 'dynamodb-local'

Since os.tmp() returns /tmp, tmpDyamoLocalDirDest becomes /tmpdynamodb-local instead of /tmp/dynamodb-local.

Seems like an easy fix for Linux, but I don't know the impact on other OSes.

charleswhchan commented 9 years ago

I should also mentioned that I tried to created the /tmpdynamodb-local directory manually and re-ran the node script. However it still end up aborting without any indication of what the error is and the /tmpdynamodb-local directory is empty as well.

doapp-ryanp commented 9 years ago

Should be fixed in https://github.com/doapp-ryanp/dynamodb-local/commit/1a3563b7932600ec8f2a5a645d56544acd138460

npmjs.com is giving me 500 errors so i cant update it in the regtistry ATM.

Once u see it bump to 0.0.11, please upgrade, re-test and close if it fixes. Thanks

charleswhchan commented 9 years ago

@doapp-ryanp: Thanks for the update. 0.0.11 works! :+1:

I will close the ticket.