Skip to content

TannerWeb 500 errors and TannerAPI errors #439

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

Open
repohg opened this issue Mar 16, 2025 · 0 comments
Open

TannerWeb 500 errors and TannerAPI errors #439

repohg opened this issue Mar 16, 2025 · 0 comments

Comments

@repohg
Copy link

repohg commented Mar 16, 2025

We are using these tools for a project and have run into some issues getting these tools to actually show any data past just showing that the snare is connected.

When going to tanner_web and going to a snare-stats page the following is seen:
Image

And in the terminal of the docker instance, the error is printed as:
tanner_web | Error handling request from 192.168.65.1 tanner_web | Traceback (most recent call last): tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request tanner_web | resp = await request_handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_app.py", line 569, in _handle tanner_web | return await handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp_jinja2/__init__.py", line 224, in wrapped tanner_web | context = await func(*args) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/web/server.py", line 39, in handle_snare_stats tanner_web | snare_stats = await self.api.return_snare_stats(snare_uuid) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 26, in return_snare_stats tanner_web | sessions = await self.return_snare_info(snare_uuid) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 42, in return_snare_info tanner_web | query_res = await self.redis_client.zrevrangebyscore(uuid, offset=0, count=count) tanner_web | TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset' tanner_web | Error handling request from 192.168.65.1 tanner_web | Traceback (most recent call last): tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request tanner_web | resp = await request_handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_app.py", line 569, in _handle tanner_web | return await handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp_jinja2/__init__.py", line 224, in wrapped tanner_web | context = await func(*args) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/web/server.py", line 60, in handle_sessions tanner_web | sessions = await self.api.return_sessions(applied_filters) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 71, in return_sessions tanner_web | result = await self.return_snare_info(snare_id) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 42, in return_snare_info tanner_web | query_res = await self.redis_client.zrevrangebyscore(uuid, offset=0, count=count) tanner_web | TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset' grafana | logger=infra.usagestats t=2025-03-14T19:18:38.699663543Z level=info msg="Usage stats are ready to report" tanner_web | Error handling request from 192.168.65.1 tanner_web | Traceback (most recent call last): tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request tanner_web | resp = await request_handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp/web_app.py", line 569, in _handle tanner_web | return await handler(request) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/aiohttp_jinja2/__init__.py", line 224, in wrapped tanner_web | context = await func(*args) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/web/server.py", line 60, in handle_sessions tanner_web | sessions = await self.api.return_sessions(applied_filters) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 71, in return_sessions tanner_web | result = await self.return_snare_info(snare_id) tanner_web | File "/opt/tanner/tanner-env/lib/python3.9/site-packages/Tanner-0.6.0-py3.9.egg/tanner/api/api.py", line 42, in return_snare_info tanner_web | query_res = await self.redis_client.zrevrangebyscore(uuid, offset=0, count=count) tanner_web | TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset'

This seems to be the same errors that were seen in #429 and #428 that were both closed without any resolution. We are runner tanner via docker and cannot get any of the pages that require communicating with the api.py file to work. The issue is the same when trying to use the actual tanner API, which leads me to believe that there is something wrong with the api.py file itself. Looking for guidance on potential solutions or if anyone else has ran into these issues and resolved them.

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