Comments (4)
This likely happens because the container uses a special user (to prevent running as root). Because of this, I don't think the container user has permission to the directory.
Would you mind to temporarily change the directory permission to 777, to test whether the error still comes up when everyone is allowed?
chmod -R 777 /mnt/hdd/ffsend
Note that this permission setting is considered insecure, and is just used for testing purposes here.
from send.
Yes, changed permissions:
and recreated docker. Same error
{"Timestamp":1618238514711000000,"Logger":"FirefoxSend","Type":"uncaughtException","Severity":0,"Pid":1,"EnvVersion":"2.0","Fields":{"error":"Error: EACCES: permission denied, mkdir '/mnt/hdd'","stack":"\n at Object.mkdirSync (node:fs:1010:3)\n at sync (/app/node_modules/mkdirp/index.js:72:13)\n at Function.sync (/app/node_modules/mkdirp/index.js:78:24)\n at new FSStorage (/app/server/storage/fs.js:12:12)\n at new DB (/app/server/storage/index.js:22:20)\n at Object.<anonymous> (/app/server/storage/index.js:86:18)\n at Module._compile (node:internal/modules/cjs/loader:1108:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)\n at Module.load (node:internal/modules/cjs/loader:973:32)\n at Function.Module._load (node:internal/modules/cjs/loader:813:14)"}}
from send.
Took another look at your command. It looks like you're missing a mount argument for the container.
-e 'FILE_DIR=/mnt/hdd/ffsend/'
just tells Send in the container where to place files (from within the container context), this doesn't actually expose the specified directory from your host inside the container.
You likely have to add -v /mnt/hdd/ffsend:/mnt/hdd/ffsend
to your command in order to mount the directory from the host system into the container. Note that you can specify a different path inside the container, such as /uploads
if you so desire.
from send.
Oh, that was really stupid mistake I made. I really forgot to mount volume, my fault, sorry.
sudo docker create --name send \
-e 'NODE_ENV=production' \
-p 127.0.0.1:1234:1443 \
-e 'PORT=1443:1443' \
-e 'REDIS_HOST=1.2.3.4' \
-e 'BASE_URL=https://url.com' \
-v /mnt/hdd/ffsend:/mnt/hdd/ffsend \
-e 'FILE_DIR=/mnt/hdd/send_data' \
-e 'MAX_FILE_SIZE=10737420000' \
-e 'MAX_EXPIRE_SECONDS=604800' \
registry.gitlab.com/timvisee/send:latest && sudo docker start send
seems to work. Thanks!
from send.
Related Issues (20)
- Fix permission on upload folder in docker HOT 2
- Anyone figured out a way to force dark mode? HOT 4
- Any way to make the upload accessible only for internal users and download for external? HOT 2
- If you click the logo then you're redirected to the homepage. How can I turn this off? HOT 2
- Logo reverse back after npm run build
- Error with redirection because of the # in the last part of the link url
- Add `unlimited` as an option for max downloads when sharing a file
- Uploading a folder not working HOT 2
- CUSTOM_DESCRIPTION does not seem to work
- Using send with password behind apache reverse proxy failed HOT 2
- Uploads fail after Send has been running for a extended period fo time HOT 1
- Can`t install Send
- Is it possible to recover an expired link data? HOT 1
- customizing the text under Simple, private file sharing HOT 2
- Is there a possibility to keep the unexpired send-archive always visible? HOT 1
- [FEATURE REQUEST] Add folder picker option like WeTransfer HOT 3
- [Request] ARM64 Support HOT 1
- Download URL accessible but files won't download. HOT 3
- Docker Compose Install - Customization HOT 1
- Feature Request: View-Only Mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send.