jkirkcaldy Posted October 14, 2021 Share Posted October 14, 2021 (edited) Application Name: Plex-Utills Docker Hub: https://hub.docker.com/r/jkirkcaldy/plex-utills Github: https://GitHub.com/jkirkcaldy/plex-utills Please post any questions/issues relating to this docker you have in this thread. If you are not using Unraid then please do not post here, instead post an issue on github. Edited October 16, 2021 by jkirkcaldy spelling Quote Link to comment
drsparks68 Posted October 15, 2021 Share Posted October 15, 2021 Getting this error after installing with the defaults. Plex Library is pointed to my movies share (/mnt/user/movies) and access is set to Read/Write. I left PUID and PGID set to the default: 1000 2021-10-15 14:26:55,031 - Plex-Utills - ERROR - 4k Posters: Movies The 4k poster for this film could not be created. Quote Link to comment
jkirkcaldy Posted October 15, 2021 Author Share Posted October 15, 2021 Have you set the Plex library in the config to /mnt/users/movies? Quote Link to comment
Josh.5 Posted October 16, 2021 Share Posted October 16, 2021 I'm a little sus that your GitHub does not exist anymore... Where did it go? Quote Link to comment
jkirkcaldy Posted October 16, 2021 Author Share Posted October 16, 2021 Link was broken. It’s fixed now. Quote Link to comment
jkirkcaldy Posted October 18, 2021 Author Share Posted October 18, 2021 Try changing the uid to 99 and the gid to 100 and see if that works. Quote Link to comment
qw3r7yju4n Posted October 19, 2021 Share Posted October 19, 2021 (edited) Error 2021-10-19 06:45:59,668 - app - ERROR - Exception on /posters4k [GET] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request return self.finalize_request(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1535, in finalize_request response = self.make_response(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1698, in make_response raise TypeError( TypeError: The view function for 'run_posters4k' did not return a valid response. The function either returned None or ended without a return statement. Set new movies path, too. This is coming from system logs. Any ideas as to what this means? Edited October 19, 2021 by qw3r7yju4n additonal info Quote Link to comment
drsparks68 Posted October 19, 2021 Share Posted October 19, 2021 On 10/18/2021 at 2:20 AM, jkirkcaldy said: Try changing the uid to 99 and the gid to 100 and see if that works. This resolved my issue. I'm getting the same errors as qw3r7yju4n, always after a script runs. Quote Link to comment
qw3r7yju4n Posted October 20, 2021 Share Posted October 20, 2021 (edited) 7 hours ago, drsparks68 said: This resolved my issue. I'm getting the same errors as qw3r7yju4n, always after a script runs. Thank god its not only me Edited October 20, 2021 by qw3r7yju4n Quote Link to comment
jkirkcaldy Posted October 20, 2021 Author Share Posted October 20, 2021 Does this error message come after you click the run script button? if so, does the script run? I think it’s a bug in the way the buttons are set to run the scripts currently. Quote Link to comment
drsparks68 Posted October 20, 2021 Share Posted October 20, 2021 12 hours ago, jkirkcaldy said: Does this error message come after you click the run script button? if so, does the script run? I think it’s a bug in the way the buttons are set to run the scripts currently. Yep, always runs after I click one of the script buttons. The scripts seem to be completing successfully except for the Disney collection script. It scans movies and lists the correct movies but never actually creates the collection in Plex. Quote Link to comment
kaiguy Posted October 21, 2021 Share Posted October 21, 2021 Here's the error I'm getting: 2021-10-21 10:54:37,876 - apscheduler.scheduler - INFO - Scheduler started 2021-10-21 10:54:37,878 - root - INFO - Setup Helper: Going though the setup helper. 2021-10-21 10:55:06,388 - app - ERROR - Exception on /posters4k [GET] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/app/./app/routes.py", line 29, in run_posters4k return posters4k() File "/app/./app/scripts.py", line 349, in posters4k films = plex.library.section(config[0][3]) UnboundLocalError: local variable 'plex' referenced before assignment Quote Link to comment
Bobb18 Posted October 22, 2021 Share Posted October 22, 2021 (edited) Ok...what did I screw up here. Downloaded from community apps and it WebUI won't launch edit: This works -- deleted my config and loaded up the app. Not sure what I did to screw it up originally. Ran the script and it worked great, loving the look of my 4k moviies Edited October 25, 2021 by Bobb18 1 Quote Link to comment
qw3r7yju4n Posted October 22, 2021 Share Posted October 22, 2021 (edited) On 10/20/2021 at 4:45 AM, jkirkcaldy said: Does this error message come after you click the run script button? if so, does the script run? I think it’s a bug in the way the buttons are set to run the scripts currently. Mines not running. I press the button the error shows and the 4k poster script doesnt run. Just got Dune and it did not update the poster Edited October 22, 2021 by qw3r7yju4n Quote Link to comment
MickUnraid Posted October 26, 2021 Share Posted October 26, 2021 (edited) Hello, Same Issue, got the "Cannot Create Poster" Issue. Things I've done : - Tried to change Uid & Gid - Tried to change Custom network to bridged. - Tried to change the plexpath in __init__.py (see in github) - Try to elevate the docker container. - Try to recreate container from scratch. - Try a Chmod 777 in the movie folder. My movies path is set in the docker config (/mnt/user/6To/Films/). Plex URL and token etc... set in config Got a ping from plex server from Plex-Utills docker console and I can see my movies in the films folder in the console too. Script work for Tv shows, not for movies Below, a sample of the end of Application Log : Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request return self.finalize_request(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1535, in finalize_request response = self.make_response(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1698, in make_response raise TypeError( TypeError: The view function for 'run_posters4k' did not return a valid response. The function either returned None or ended without a return statement. I don't know what else to do... If someone got an idea. I Appreciate your help. Thanks. Edited October 26, 2021 by MickUnraid Quote Link to comment
TheCarlough Posted October 26, 2021 Share Posted October 26, 2021 Has anyone actually gotten this to work? Quote Link to comment
qw3r7yju4n Posted October 27, 2021 Share Posted October 27, 2021 4 hours ago, TheCarlough said: Has anyone actually gotten this to work? I don't think so. Looks like its been down since the UI update. I cant get 4k posters to work Quote Link to comment
MickUnraid Posted October 27, 2021 Share Posted October 27, 2021 7 hours ago, qw3r7yju4n said: I don't think so. Looks like its been down since the UI update. I cant get 4k posters to work I Confirm, It was working perfectly before the UI version. Quote Link to comment
jkirkcaldy Posted October 27, 2021 Author Share Posted October 27, 2021 Weird. it's working for me in the background and when I press the buttons. There are a few bugs that I'm trying to work out but it should work. What does the rest of your config file look like? Quote Link to comment
MickUnraid Posted October 27, 2021 Share Posted October 27, 2021 1 hour ago, jkirkcaldy said: Weird. it's working for me in the background and when I press the buttons. There are a few bugs that I'm trying to work out but it should work. What does the rest of your config file look like? Hello jkirkcaldy, Thanks for your answer. When you talk about config file, you are talking about the config tab in the web ui ? If yes, you will find screen shots in attachment. I have tried to change the name of my library and in config file in case of, same issue. Below a sample of the log file. 2021-10-27 12:02:57,931 - Plex-Utills - INFO - Warm Bodies 4K HDR 2021-10-27 12:02:57,996 - Plex-Utills - ERROR - 4k Posters: LesFilms The 4k HDR poster for this film could not be created. It's weird. When you read the error line in the log file, it is not the name of the movie but the name of the library : "LesFilms". Don't know if it is normal. In the screen shot, the API key is not set, but i've got the same issue when I put my own key. Quote Link to comment
wgstarks Posted October 27, 2021 Share Posted October 27, 2021 Trying to install this docker on unraid but the install instructions on the GitHub page don't provide much info. 1. What do I set for Plex Library? I tried setting that to the Plex library folder in appdata. Don't know if that's right or not? 2. What's the format for TZ? I used America/New_York but once again I don't know if that's right. I see two entries in the run command for TZ. I can open the webui but none of my configurations get saved. The browser loses connection when I click save. Run Command- root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='plex-utills' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'TZ'='utc-5' -e 'PUID'='99' -e 'PGID'='100' -p '5000:5000/tcp' -v '/mnt/user/appdata/plexmediaserver/Library/':'/films':'rw' -v '/mnt/cache/appdata/plex-utills':'/config':'rw' -v '/mnt/user/appdata/plex-utills/logs':'/logs':'rw' 'jkirkcaldy/plex-utills' 2aa4d4f5b9aca3b57df184afef8ea3b56795e0ed0b7b167d387a02f0dfd5a07a The command finished successfully! Log- Checking for script in /app/prestart.sh Running script /app/prestart.sh Running inside /app/prestart.sh, you could add migrations to this file, e.g.: #! /usr/bin/env sh # Let the DB start ; # Run migrations alembic upgrade head /usr/lib/python2.7/dist-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. 'Supervisord is running as root and it is searching ' 2021-10-27 10:24:10,473 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. 2021-10-27 10:24:10,473 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing 2021-10-27 10:24:10,483 INFO RPC interface 'supervisor' initialized 2021-10-27 10:24:10,483 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2021-10-27 10:24:10,483 INFO supervisord started with pid 1 2021-10-27 10:24:11,485 INFO spawned: 'quit_on_failure' with pid 10 2021-10-27 10:24:11,486 INFO spawned: 'nginx' with pid 11 2021-10-27 10:24:11,487 INFO spawned: 'uwsgi' with pid 12 2021-10-27 10:24:11,489 INFO success: nginx entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2021-10-27 10:24:11,489 INFO success: uwsgi entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) [uWSGI] getting INI configuration from /app/uwsgi.ini [uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini ;uWSGI instance configuration [uwsgi] cheaper = 2 processes = 16 ini = /app/uwsgi.ini http = :5000 module = main:app processes = 5 single-interpreter = true enable-threads = true master = true die-on-term = true socket = main.sock chmod_socket = 660 ini = /etc/uwsgi/uwsgi.ini socket = /tmp/uwsgi.sock chown-socket = nginx:nginx chmod-socket = 664 hook-master-start = unix_signal:15 gracefully_kill_them_all need-app = true die-on-term = true show-config = true ;end of configuration *** Starting uWSGI 2.0.19.1 (64bit) on [Wed Oct 27 10:24:11 2021] *** compiled with version: 8.3.0 on 02 October 2021 18:28:03 os: Linux-5.10.28-Unraid #1 SMP Wed Apr 7 08:23:18 PDT 2021 nodename: 2d27d9a701f1 machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 8 current working directory: /app detected binary path: /usr/local/bin/uwsgi your processes number limit is 63337 your memory page size is 4096 bytes detected max file descriptor number: 40960 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on :5000 fd 3 uwsgi socket 0 bound to UNIX address main.sock fd 6 uwsgi socket 1 bound to UNIX address /tmp/uwsgi.sock fd 7 uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** Python version: 3.9.7 (default, Sep 28 2021, 18:49:53) [GCC 8.3.0] Python main interpreter initialized at 0x5569d1fb2080 uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 437520 bytes (427 KB) for 5 cores *** Operational MODE: preforking *** 2021-10-27 10:24:12,590 INFO success: quit_on_failure entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x5569d1fb2080 pid: 12 (default app) uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** spawned uWSGI master process (pid: 12) spawned uWSGI worker 1 (pid: 23, cores: 1) spawned uWSGI worker 2 (pid: 24, cores: 1) spawned uWSGI http 1 (pid: 25) running "unix_signal:15 gracefully_kill_them_all" (master-start)... [pid: 24|app: 0|req: 1/1] 10.0.1.80 () {38 vars in 3721 bytes} [Wed Oct 27 10:25:16 2021] GET / => generated 12300 bytes in 101 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) [pid: 24|app: 0|req: 2/2] 10.0.1.80 () {38 vars in 3771 bytes} [Wed Oct 27 10:25:16 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 59344 bytes in 5 msecs via sendfile() (HTTP/1.1 200) 6 headers in 240 bytes (0 switches on core 0) [pid: 23|app: 0|req: 1/3] 10.0.1.80 () {38 vars in 3737 bytes} [Wed Oct 27 10:25:16 2021] GET /static/css/sb-admin-2.min.css => generated 210721 bytes in 7 msecs via sendfile() (HTTP/1.1 200) 6 headers in 248 bytes (0 switches on core 0) |app: 0|req: 3/4] 10.0.1.80 () {38 vars in 3780 bytes} [Wed Oct 27 10:25:16 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 78196 bytes in 2 msecs via sendfile() (HTTP/1.1 200) 6 headers in 234 bytes (0 switches on core 0) [pid: 24|app: 0|req: 4/5] 10.0.1.80 () {38 vars in 3686 bytes} [Wed Oct 27 10:25:17 2021] GET /favicon.ico => generated 4999 bytes in 10 msecs (HTTP/1.1 404) 2 headers in 88 bytes (1 switches on core 0) [pid: 24|app: 0|req: 4/5] 10.0.1.80 () {38 vars in 3686 bytes} [Wed Oct 27 10:25:17 2021] GET /favicon.ico => generated 4999 bytes in 10 msecs (HTTP/1.1 404) 2 headers in 88 bytes (1 switches on core 0) [pid: 24|app: 0|req: 5/6] 10.0.1.80 () {40 vars in 3769 bytes} [Wed Oct 27 10:25:31 2021] GET /index => generated 12300 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) [pid: 24|app: 0|req: 6/7] 10.0.1.80 () {40 vars in 3831 bytes} [Wed Oct 27 10:25:31 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (0 switches on core 0) [pid: 24|app: 0|req: 7/8] 10.0.1.80 () {40 vars in 3797 bytes} [Wed Oct 27 10:25:31 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 8/9] 10.0.1.80 () {40 vars in 3840 bytes} [Wed Oct 27 10:25:31 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (0 switches on core 0) [pid: 24|app: 0|req: 9/10] 10.0.1.80 () {40 vars in 3785 bytes} [Wed Oct 27 10:25:44 2021] GET /run_scripts => generated 16841 bytes in 11 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) [pid: 24|app: 0|req: 10/11] 10.0.1.80 () {38 vars in 3745 bytes} [Wed Oct 27 10:25:44 2021] GET /static/css/bootstrap.min.css => generated 219274 bytes in 2 msecs via sendfile() (HTTP/1.1 200) 6 headers in 247 bytes (0 switches on core 0) [pid: 24|app: 0|req: 11/12] 10.0.1.80 () {40 vars in 3802 bytes} [Wed Oct 27 10:25:44 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 23|app: 0|req: 2/13] 10.0.1.80 () {40 vars in 3836 bytes} [Wed Oct 27 10:25:44 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (0 switches on core 0) [pid: 23|app: 0|req: 3/14] 10.0.1.80 () {40 vars in 3845 bytes} [Wed Oct 27 10:25:44 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (0 switches on core 0) [pid: 24|app: 0|req: 12/15] 10.0.1.80 () {40 vars in 3779 bytes} [Wed Oct 27 10:25:50 2021] GET /index => generated 12300 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 82 bytes (2 switches on core 0) [pid: 23|app: 0|req: 4/17] 10.0.1.80 () {40 vars in 3796 bytes} [Wed Oct 27 10:25:50 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 13/17] 10.0.1.80 () {40 vars in 3830 bytes} [Wed Oct 27 10:25:50 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (1 switches on core 0) [pid: 24|app: 0|req: 14/18] 10.0.1.80 () {40 vars in 3839 bytes} [Wed Oct 27 10:25:50 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 15/19] 10.0.1.80 () {40 vars in 3785 bytes} [Wed Oct 27 10:26:16 2021] GET /run_scripts => generated 16841 bytes in 2 msecs (HTTP/1.1 200) 2 headers in 82 bytes (2 switches on core 0) [pid: 24|app: 0|req: 16/20] 10.0.1.80 () {40 vars in 3800 bytes} [Wed Oct 27 10:26:16 2021] GET /static/css/bootstrap.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 148 bytes (1 switches on core 0) [pid: 24|app: 0|req: 17/21] 10.0.1.80 () {40 vars in 3800 bytes} [Wed Oct 27 10:26:16 2021] GET /static/css/bootstrap.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 148 bytes (1 switches on core 0) [pid: 23|app: 0|req: 5/22] 10.0.1.80 () {40 vars in 3836 bytes} [Wed Oct 27 10:26:16 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (0 switches on core 0) [pid: 24|app: 0|req: 18/23] 10.0.1.80 () {40 vars in 3802 bytes} [Wed Oct 27 10:26:16 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 19/24] 10.0.1.80 () {40 vars in 3845 bytes} [Wed Oct 27 10:26:16 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (0 switches on core 0) [pid: 24|app: 0|req: 20/25] 10.0.1.80 () {40 vars in 3775 bytes} [Wed Oct 27 10:27:10 2021] GET /posters4k => generated 5053 bytes in 5 msecs (HTTP/1.1 500) 2 headers in 100 bytes (1 switches on core 0) [pid: 24|app: 0|req: 21/26] 10.0.1.80 () {40 vars in 3780 bytes} [Wed Oct 27 10:27:18 2021] GET /index => generated 12300 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) [pid: 24|app: 0|req: 22/27] 10.0.1.80 () {40 vars in 3831 bytes} [Wed Oct 27 10:27:18 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (1 switches on core 0) [pid: 24|app: 0|req: 23/28] 10.0.1.80 () {40 vars in 3797 bytes} [Wed Oct 27 10:27:18 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 24/29] 10.0.1.80 () {40 vars in 3840 bytes} [Wed Oct 27 10:27:18 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (0 switches on core 0) [pid: 24|app: 0|req: 25/30] 10.0.1.80 () {40 vars in 3778 bytes} [Wed Oct 27 10:28:21 2021] GET /migrate => generated 5464 bytes in 10 msecs (HTTP/1.1 200) 2 headers in 81 bytes (2 switches on core 0) [pid: 24|app: 0|req: 26/31] 10.0.1.80 () {40 vars in 3799 bytes} [Wed Oct 27 10:28:21 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 23|app: 0|req: 6/32] 10.0.1.80 () {40 vars in 3833 bytes} [Wed Oct 27 10:28:21 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (0 switches on core 0) [pid: 24|app: 0|req: 27/33] 10.0.1.80 () {40 vars in 3842 bytes} [Wed Oct 27 10:28:21 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 28/34] 10.0.1.80 () {40 vars in 3778 bytes} [Wed Oct 27 10:28:28 2021] GET /config => generated 16581 bytes in 43 msecs (HTTP/1.1 200) 4 headers in 247 bytes (1 switches on core 0) [pid: 24|app: 0|req: 29/35] 10.0.1.80 () {40 vars in 3953 bytes} [Wed Oct 27 10:28:28 2021] GET /static/vendor/fontawesome-free/css/all.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 142 bytes (1 switches on core 0) [pid: 23|app: 0|req: 7/36] 10.0.1.80 () {40 vars in 3919 bytes} [Wed Oct 27 10:28:28 2021] GET /static/css/sb-admin-2.min.css => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (1 switches on core 0) [pid: 24|app: 0|req: 30/37] 10.0.1.80 () {40 vars in 3962 bytes} [Wed Oct 27 10:28:28 2021] GET /static/vendor/fontawesome-free/webfonts/fa-solid-900.woff2 => generated 0 bytes in 1 msecs (HTTP/1.1 304) 3 headers in 149 bytes (0 switches on core 0) invalid request block size: 4236 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 25802] hr_instance_write(): Broken pipe [plugins/http/http.c line 522] [pid: 24|app: 0|req: 31/38] 10.0.1.80 () {38 vars in 4085 bytes} [Wed Oct 27 10:38:39 2021] GET /config => generated 16581 bytes in 6 msecs (HTTP/1.1 200) 3 headers in 96 bytes (1 switches on core 0) invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 27594] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 28106] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 28362] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 28618] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 29130] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 29386] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4236 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 54474] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] [pid: 24|app: 0|req: 32/39] 10.0.1.80 () {38 vars in 4085 bytes} [Wed Oct 27 10:40:31 2021] GET /config => generated 16581 bytes in 6 msecs (HTTP/1.1 200) 3 headers in 96 bytes (1 switches on core 0) invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 55242] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 55498] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 55754] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 56010] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4184 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 56266] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4150 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 56522] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4235 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 9419] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] [pid: 24|app: 0|req: 33/40] 10.0.1.80 () {38 vars in 4073 bytes} [Wed Oct 27 10:41:44 2021] GET / => generated 12300 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 21707] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 21963] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22219] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22475] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22731] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22987] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 23499] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 23755] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 24267] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 24523] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] [pid: 24|app: 0|req: 34/41] 10.0.1.80 () {38 vars in 4089 bytes} [Wed Oct 27 10:41:44 2021] GET /static/css/sb-admin-2.min.css => generated 210721 bytes in 1 msecs via sendfile() (HTTP/1.1 200) 6 headers in 248 bytes (1 switches on core 0) invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 25035] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 25291] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] [pid: 24|app: 0|req: 33/40] 10.0.1.80 () {38 vars in 4073 bytes} [Wed Oct 27 10:41:44 2021] GET / => generated 12300 bytes in 3 msecs (HTTP/1.1 200) 2 headers in 82 bytes (1 switches on core 0) invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 21707] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 21963] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22219] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22475] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22731] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4178 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 22987] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 23499] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4144 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 23755] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 24267] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4187 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 24523] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] [pid: 24|app: 0|req: 34/41] 10.0.1.80 () {38 vars in 4089 bytes} [Wed Oct 27 10:41:44 2021] GET /static/css/sb-admin-2.min.css => generated 210721 bytes in 1 msecs via sendfile() (HTTP/1.1 200) 6 headers in 248 bytes (1 switches on core 0) invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 25035] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 25291] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 26315] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 26571] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] invalid request block size: 4123 (max 4096)...skip [uwsgi-http key: 10.0.1.20:5000 client_addr: 10.0.1.80 client_port: 26827] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 647] No idea if I have something misconfigured or if it's a problem with the docker. Quote Link to comment
wgstarks Posted October 28, 2021 Share Posted October 28, 2021 10 hours ago, wgstarks said: I can open the webui but none of my configurations get saved. The browser loses connection when I click save. I think I've managed to correct this by setting PUID 999 and PGID 1000. Seemed worth trying since this is the setting used by all my other unraid dockers. Settings are now being saved in the config but script still fails. PLEX-UTILLS 2021-10-27 10:24:12,658 - apscheduler.scheduler - INFO - Scheduler started 2021-10-27 10:27:10,606 - Plex-Utills - INFO - 4k Posters: 4K/HDR Poster Script has finished. 2021-10-27 10:27:10,607 - app - ERROR - Exception on /posters4k [GET] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request return self.finalize_request(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1535, in finalize_request response = self.make_response(rv) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1698, in make_response raise TypeError( TypeError: The view function for 'run_posters4k' did not return a valid response. The function either returned None or ended without a return statement. 2021-10-27 21:40:33,058 - apscheduler.scheduler - INFO - Scheduler started 2021-10-27 21:40:33,061 - root - INFO - Setup Helper: Going though the setup helper. 2021-10-27 21:46:30,168 - app - ERROR - Exception on /posters4k [GET] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/app/./app/routes.py", line 29, in run_posters4k return posters4k() File "/app/./app/scripts.py", line 349, in posters4k films = plex.library.section(config[0][3]) UnboundLocalError: local variable 'plex' referenced before assignment Quote Link to comment
wgstarks Posted October 28, 2021 Share Posted October 28, 2021 Adding screenshots of current configuration in case that helps- Quote Link to comment
wgstarks Posted October 29, 2021 Share Posted October 29, 2021 Also current run command (not sure why TZ is configured twice???) and logs since configs have changed slightly- root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='plex-utills' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'TZ'='America/New_York' -e 'PUID'='999' -e 'PGID'='1000' -p '5000:5000/tcp' -v '/mnt/user/appdata/plexmediaserver/Library/':'/films':'rw' -v '/mnt/cache/appdata/plex-utills':'/config':'rw' -v '/mnt/user/appdata/plex-utills/logs':'/logs':'rw' 'jkirkcaldy/plex-utills' fcabe67f2e1666ac59e0d90e3553b2e5582f7dcb261c96eb2d664309f2899c05 The command finished successfully! 2021-10-28 20:16:23,596 - app - ERROR - Exception on /posters4k [GET] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/app/./app/routes.py", line 29, in run_posters4k return posters4k() File "/app/./app/scripts.py", line 349, in posters4k films = plex.library.section(config[0][3]) UnboundLocalError: local variable 'plex' referenced before assignment The Disney and Pixar scripts are working but 4k fails. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.