Code Monkey home page Code Monkey logo

Comments (5)

xiejiulong avatar xiejiulong commented on July 17, 2024

image

from gossa.

pldubouilh avatar pldubouilh commented on July 17, 2024

hey - thanks for the report !
So this happens when ~/LocalDirToShare is not created before calling sudo docker .... Then Docker creates the folder as root, making gossa unable to access it. Just rm -rf ~/LocalDirToShare and then mkdir ~/LocalDirToShare before you run the docker invoke. I'll amend the main docs to reflect this 👍

from gossa.

xiejiulong avatar xiejiulong commented on July 17, 2024

hey - thanks for the report ! So this happens when ~/LocalDirToShare is not created before calling sudo docker .... Then Docker creates the folder as root, making gossa unable to access it. Just rm -rf ~/LocalDirToShare and then mkdir ~/LocalDirToShare before you run the docker invoke. I'll amend the main docs to reflect this 👍

thanks for the replay.
but it does't work for me.
I exec rm -rf ~/LocalDirToShare and then mkdir ~/LocalDirToShare, and then clear all the docker containers.
at last exec:
sudo docker run -v ~/LocalDirToShare:/shared -p 8001:8001 pldubouilh/gossa
the docker logs still show me:
error [upload %2FOffice2Pdf.rar] open /shared/Office2Pdf.rar: permission denied
I don't know why.

from gossa.

pldubouilh avatar pldubouilh commented on July 17, 2024

hm odd, this is working just fine on my setup...
maybe ls -lha ~/LocalDirToShare see who's the owner and what are the perms ?

from gossa.

xiejiulong avatar xiejiulong commented on July 17, 2024

I solved the problem:
after exec
sudo docker run -v ~/LocalDirToShare:/shared -p 8001:8001 pldubouilh/gossa
then, go to the container exec:
chmod 777 /root/shared
then exit the container.
now, I can upload any file to gossa.
thanks a lot.

But unfortunately, I don't know why the docker or gossa has no permission to access the dir named "~/LocalDirToShare" in host machine map to "/root/share" in the container

from gossa.

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.