Code Monkey home page Code Monkey logo

Comments (4)

mdhiggins avatar mdhiggins commented on May 24, 2024

You just need to not launch manual.py as root which is probably what you're doing. The Python logging system doesn't allow you to specify alternative users when it's doing its file creation or rotation and if you're executing it using docker exec this defaults to using root

Not sure exactly what command you're doing to run manual.py but you can probably solve it using

docker exec -it --user abc <container id> <command>

abc is the user used by the linuxserver containers for everything and setting the environment variable just matches abc's UID and GID with the external UID and PID set by the environment variables but doesn't impact log file creation if you execute the script from a different user (in this case root)

You can also just use the PUID as well to achieve the same result

docker exec -it --user $PUID <container id> <command>

Reference:
https://docs.docker.com/engine/reference/commandline/exec/

from sonarr-sma.

mdhiggins avatar mdhiggins commented on May 24, 2024

Quick test of

 docker exec -it --user $PUID sonarr bash

shows that I am successfully logged in as abc

abc@f9b0df2211ce:/$

from sonarr-sma.

KaHooli avatar KaHooli commented on May 24, 2024

Thank you, I was leaving out the --user option from the docker exec, dah!

I thought I was missing something obvious... that's what happens when you've been up all night then try and troubleshoot something.

I'll try that. Thanks again.

from sonarr-sma.

mdhiggins avatar mdhiggins commented on May 24, 2024

No prob, easy fix

from sonarr-sma.

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.