-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
fs.copyFile not working with docker volumes #21329
Copy link
Copy link
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.
Metadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Expected behaviour - it copies the file
Actual behaviour - it fails to copy but no error is reported. This is not a file permissions issue as the command line
cpcommand works as the same user. Also if the destination exists, it gets deleted, but the overwriting file doesn't get written.The above code works if the files are not on a docker volume. The old method using
createReadStreamandcreateWriteStreamalso works.The docker image I am using is the heroku buildpack. https://github.com/heroku/heroku-buildpack-nodejs. (with dokku)