Coder Social home page Coder Social logo

Comments (5)

jlesage avatar jlesage commented on August 13, 2024

Is /mnt/prox-share/docker/makemkv/config mounted with a specific user/group id ? Looks like the container doesn't have permission to write to it. Note that by default, the container runs with user/group ID 1000/1000. This can be changed via USER_ID and GROUP_ID environment variables if needed.

from docker-makemkv.

niko86 avatar niko86 commented on August 13, 2024

Thank you for the response. I’m very much an amateur when using Linux but I checked the user I’m running portainer under and it’s uid and gid are both 1000.

I got things working using a config and user location in a docker volume. But I couldn’t locate the SMB share for ripping to so was obviously still a permissions problem.

TRUENAS which is serving the share has the SMB user setup with suitable permissions, but no SUDO ability. I can confirm the docker images can write folders and some files like a .conf (forget the name as I’m not at my PC, not in the log as it has been generated on a previous boot of the container). So I assume your docker container requires the ability to make some files with SUDO? I’ll try adding SUDO permission in TRUENAS as well.

from docker-makemkv.

jlesage avatar jlesage commented on August 13, 2024

I can confirm the docker images can write folders and some files like a .conf

How did you test that ? Writing as root from the container might work, but not from user 1000/1000.

So I assume your docker container requires the ability to make some files with SUDO?

sudo is not needed. The problems seems that writing as user 1000/1000 is not allowed by the SMB mount on truenas. Usually, when you mount a share on linux, you have the ability to specify the associated user/group id. For example, see https://serverfault.com/a/49238.

from docker-makemkv.

niko86 avatar niko86 commented on August 13, 2024

How did you test that ? Writing as root from the container might work, but not from user 1000/1000.

It worked just with the default 1000/1000, which is why I was surprised it failed on the services. I'm finding Linux permissions are a very steep learning curve! In TrueNAS the user and group ids are 3000/3000, videos on YouTube show others with 1000/1000 so definitely is something i have configured incorrectly.
I will read over that article this evening, thank you for your help.

from docker-makemkv.

niko86 avatar niko86 commented on August 13, 2024

Ok got to the bottom of the issue, my mistake in setting the share in fstab, i used the UID and GID from TRUENAS e.g. 3000/3000 rather than the local user UID and GID of 1000/1000. Once it was changed its all working.

So not a bug in the container, but hopefully my mistake might help someone else.

A huge thank you jlesage for the guidance in the right direction and this great container :)

from docker-makemkv.

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.