Skip to content

Conversation

vkim
Copy link

@vkim vkim commented Sep 15, 2015

Docker does not allow to "move" file as part of the rename procedure as it shown in exception for what ever reasons json-server needs to do it.
It throws exception:

/usr/local/lib/node_modules/json-server/node_modules/lowdb/src/disk.js:14
      if (err) throw err
               ^
Error: EBUSY: resource busy or locked, rename '/data/.~db.json' -> '/data/db.json'
    at Error (native)

However when docker mounts directory from a host to container then any files within directory can be "moved".

Docker does not allow to "move" file as part of the rename procedure.  For what ever reasons json-server needs to do it. 
It  throws exception:
/usr/local/lib/node_modules/json-server/node_modules/lowdb/src/disk.js:14
      if (err) throw err
               ^
Error: EBUSY: resource busy or locked, rename '/data/.~db.json' -> '/data/db.json'
    at Error (native)

However when docker mounts directory from host to the container then any files within directory can be "moved".
@RoniSapirstein
Copy link

👍 Also got this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants