-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Describe the bug
For some reason I find myself doing docker restart the more I use search throughout the day. The container is just sitting pretty there, no load. Nothing in NPM's logs other than timeout connecting to whoogle container. Private instance, I see nothing in NPM logs to make me think someone anyone else is hitting it outside of me.
2024/06/26 13:24:21 [error] 878044#878044: *597529 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 1.1.1.1, server: whoogle.domain, request: "GET /search?q=Lumen HTTP/2.0", upstream: "http://172.17.0.1:18084/search?q=Lumen", host: "whoogle.domain"
Container sitting pretty, not choked, all the while ignoring incoming requests. Normally PIDS are about 8 when idle, so there's a few hanging for sure.
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
4be21cef5885 whoogle-search 0.15% 128.6MiB / 1GiB 12.56% 102MB / 75MB 108MB / 168kB 15
To Reproduce
Steps to reproduce the behavior:
- Run whoogle via docker, place it behind NPM
- Use as you would normally
- Bump into 504 errors
Deployment Method
- Heroku (one-click deploy)
- Docker
-
run
executable - pip/pipx
- Other: [describe setup]
Version of Whoogle Search
- Latest build from [Docker Hub, benbusby/whoogle-search]
- Version [Whoogle Search v0.8.4]
Desktop (please complete the following information):
- OS: [Debian GNU/Linux 12 (bookworm)]
- Browser [any]
- Version [any]
Smartphone (please complete the following information): NOT applicable.
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
The container either recovers by itself after a while (is it single threaded and it waits for something to time out?), or it never does and I have to manually restart it.
It's not NPM, I checked logs, it passes the request along. I SSHed into the box, and ran a curl against whoogle container's locally exposed port, and it times out. It's 100% whoogle.
There's no useful errors logs in docker logs except this repeating issue with simple-theme.css
:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1348, in handle_user_exception
return self.ensure_sync(handler)(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 624, in internal_error
return render_template(
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/templating.py", line 151, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/templating.py", line 132, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/templates/error.html", line 8, in top-level template code
<link rel="stylesheet" href="{{ cb_url(config.theme + '-theme.css') }}"/>
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/__init__.py", line 179, in <lambda>
cb_url=lambda f: app.config['CACHE_BUSTING_MAP'][f])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
KeyError: 'simple-theme.css'