Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python app won't start - Blob storage issue? #13

Open
PedanXr opened this issue Oct 22, 2023 · 0 comments
Open

Python app won't start - Blob storage issue? #13

PedanXr opened this issue Oct 22, 2023 · 0 comments

Comments

@PedanXr
Copy link

PedanXr commented Oct 22, 2023

Is it possible that the new blob storage may be a problem?
I get the following output from the console. Breaking due to image.py
Looks like the connection to Stash works (it receives the tags) but it is stopping beceause it cannot open an image

*** Starting uWSGI 2.0.20 (64bit) on [Sun Oct 22 17:37:06 2023] *** compiled with version: 8.3.0 on 05 June 2023 13:41:22 os: Linux-6.1.49-Unraid #1 SMP PREEMPT_DYNAMIC Wed Aug 30 09:42:35 PDT 2023 nodename: 5e352c498216 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 uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** WARNING: you are running uWSGI without its master process manager *** your processes number limit is 127871 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 4 spawned uWSGI http 1 (pid: 7) uwsgi socket 0 bound to TCP address 127.0.0.1:42823 (port auto-assigned) fd 3 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.8.16 (default, May 23 2023, 14:31:02) [GCC 8.3.0] Python main interpreter initialized at 0x55558ae66ed0 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 72920 bytes (71 KB) for 1 cores *** Operational MODE: single process *** Loading config from stash: {"config_studio": 190, "filters": [{"name": "Recent", "type": "BUILTIN", "filter_name": "default", "sort_name": "date", "enabled": false}, {"name": "VR", "type": "BUILTIN", "filter_name": "3d", "sort_name": "date", "enabled": true}, {"name": "2D", "type": "BUILTIN", "filter_name": "2d", "sort_name": "date", "enabled": true}, {"name": "5star", "type": "BUILTIN", "filter_name": "star", "sort_name": "date", "enabled": true}, {"name": "Random", "type": "BUILTIN", "filter_name": "random", "sort_name": "random", "enabled": false}, {"name": "Interactive", "type": "BUILTIN", "filter_name": "interactive", "sort_name": "date", "enabled": true}, {"name": "Markers", "type": "BUILTIN", "filter_name": "markers", "sort_name": "date", "enabled": false}]} final config:{'config_studio': 190, 'filters': [{'name': 'Recent', 'type': 'BUILTIN', 'filter_name': 'default', 'sort_name': 'date', 'enabled': False}, {'name': 'VR', 'type': 'BUILTIN', 'filter_name': '3d', 'sort_name': 'date', 'enabled': True}, {'name': '2D', 'type': 'BUILTIN', 'filter_name': '2d', 'sort_name': 'date', 'enabled': True}, {'name': '5star', 'type': 'BUILTIN', 'filter_name': 'star', 'sort_name': 'date', 'enabled': True}, {'name': 'Random', 'type': 'BUILTIN', 'filter_name': 'random', 'sort_name': 'random', 'enabled': False}, {'name': 'Interactive', 'type': 'BUILTIN', 'filter_name': 'interactive', 'sort_name': 'date', 'enabled': True}, {'name': 'Markers', 'type': 'BUILTIN', 'filter_name': 'markers', 'sort_name': 'date', 'enabled': False}]} Cache currently contains 0 refreshing cache Fetching 100 scenes Cache currently contains 28 scenes, checking image cache **Replacing image: http://192.168.1.16:9999/scene/16112/screenshot?t=1697205298 unknown image format fetching image: 20971 Traceback (most recent call last): File "app.py", line 2383, in <module> refreshCache() File "app.py", line 1824, in refreshCache with Image.open(BytesIO(r.content)) as im: File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 3186, in open raise UnidentifiedImageError( PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x14ef6565a2c0>** unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode *** uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI worker 1 (and the only) (pid: 1, cores: 1) --- no python application found, check your startup logs for errors --- [pid: 1|app: -1|req: -1/1] 192.168.1.34 () {36 vars in 590 bytes} [Sun Oct 22 17:37:56 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) --- no python application found, check your startup logs for errors --- [pid: 1|app: -1|req: -1/2] 192.168.1.34 () {36 vars in 558 bytes} [Sun Oct 22 17:37:56 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant