mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-06 23:42:17 +00:00
Uploading empty file: Permission denied #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zurborg on GitHub.
I started transfer.sh in a container with this arguments:
--provider=local,--basedir=/data/When I upload an empty file, I got this error:
Same message appears in log.
Tested with this command:
curl -sST /dev/null -i http://localhost/nullImage used:
dutchcoders/transfer.sh:latest-norootImage ID:
4d51e3998a08@scolandrea commented on GitHub:
I fixed the issues by mapping the volume from host to container.
Example:
docker run --publish 8080:8080 --volume "./tmp:/data" dutchcoders/transfer.sh:latest-noroot --provider local --basedir "/data"@DrackThor commented on GitHub:
Same problem here - I tried the simple example from the README.md docs:
image ID:
92f2b0b2f3ffCURL:
Container LOG:
@DrackThor commented on GitHub:
I also tried the same thing with the
:latest(root) image - this works fine.So this very much looks like a
-norootimage issue@paolafrancesca commented on GitHub:
thanks for the report, I'll check on it
@zurborg commented on GitHub:
I've tried adding
/tmpas volume, and now I get this error:Logfile says:
@scolandrea commented on GitHub:
If you run as I posted, first, you must create a directory "tmp" in your current directory. My reply is just trying to explain that you need to make sure the directory exists in the container and you have mapped it on the host.
Good luck
@zurborg commented on GitHub:
I created the directory before and set the uid and gid both to 5000. Permission is 0775. I can upload any non-empty file. Except for empty files I got the mentioned error.
I think this is fine. Sharing empty files is a bit of useless, so this error don't need to be fixed. Besides, with this setup the error code changed from 500 to 400.