Comments (4)
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.
Quick test of
docker exec -it --user $PUID sonarr bash
shows that I am successfully logged in as abc
abc@f9b0df2211ce:/$
from sonarr-sma.
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.
No prob, easy fix
from sonarr-sma.
Related Issues (20)
- NVENC capable FFMPEG build for alpine HOT 27
- Enabling vaapi HOT 8
- Error in "/usr/local/sma/resources/mediaprocessor.py", line 261, in videoStreamTitle HOT 4
- Unable to Perform Local Rename & Conversion Prior to Moving/Sorting on NAS HOT 1
- ffmpeg vaapi error HOT 3
- kubernetes HOT 1
- Script exited with error code: 1 HOT 4
- Latest stable version of sonaar v3.0.9.1549 HOT 3
- vaapi hardware encode not working HOT 1
- postSonarr.sh doesn't have executable permission HOT 9
- Question: Using videotoolbox for Hardware Acceleration Encoding w/Docker on MacOS HOT 2
- SMA Config not abiding by environmental variables HOT 2
- Perform conversion prior to transferring file to NAS HOT 7
- Support linuxserver/ffmpeg for building HOT 38
- Enhancement Request: Vaapi support HOT 2
- ffmpeg and ffprobe don't work since update to Sonarr 4 HOT 5
- Post Processing Not Working HOT 4
- NVENC still possible? HOT 1
- Permission issue? or something else? HOT 23
- Plex Notifications Not working HOT 6
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 sonarr-sma.