Coder Social home page Coder Social logo

Unlink error while uploading about send HOT 5 CLOSED

timvisee avatar timvisee commented on June 30, 2024
Unlink error while uploading

from send.

Comments (5)

davidschuette avatar davidschuette commented on June 30, 2024 2

Hey,
This annotation works, but then I cannot map a volume to the uploads to secure them beyond the container instance as the folder name changes on every restart (see default configuration).
I found another fix which is easy to implement:

Changing the FILE_DIR parameter to some nested folder such as /uploads/send and then using the volume mapping <some local folder>:/uploads to map the parent folder. You might have to fix permissions on the local folders, but otherwise this works as intended.

Thank you all for your feedback.

from send.

davidschuette avatar davidschuette commented on June 30, 2024 1

Hello,

Thank you for your quick reply. This sadly did not fix the problem. Even switching to a newly created dedicated volume (not mapped), does not work. Removing the volume declaration fixes the problem, so it has to do something with docker and its permissions. I will be doing some trouble shooting on my own and post any updates in this thread.

Regards

from send.

zhuan-zhu avatar zhuan-zhu commented on June 30, 2024 1

Hello, I also encountered the same problem as yours. After I annotated the FILE_DIR parameter in docker-compose, everything worked fine for your reference.

from send.

Zaczero avatar Zaczero commented on June 30, 2024 1

Let me post my solution since this is still a problem to some people.

In my docker-compose.yml I have:

      # For local uploads storage
      FILE_DIR: /uploads



    volumes:
      - ./data/send:/uploads

… and then I simply run:

chown 1000:1000 ./data/send

I got the UID:GID from here:
https://github.com/timvisee/send/blob/master/Dockerfile#L45

from send.

timvisee avatar timvisee commented on June 30, 2024

Hi there!

Not sure what is going on here. It may be a permission issue, which is somewhat common with Docker.

To test this, does the same error occur when setting the directory mode to 777?

chmod -R 777 ./uploads

I highly recommend to set it back to an appropriate value after testing, as this setting may be considered insecure.

from send.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.