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

【Bug问题】: Redis连接issue #334

Open
mazhuowen opened this issue Jan 27, 2025 · 2 comments
Open

【Bug问题】: Redis连接issue #334

mazhuowen opened this issue Jan 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mazhuowen
Copy link

mazhuowen commented Jan 27, 2025

docker镜像版本

laster

MusicTagWeb 版本

V1

bug 描述

等我查看自动刮削的后台任务详情时报错,我把信息贴在最下面。我使用的是外部的mysql和redis,mysql里一已经有数据和表了,但是redis里没有数据,我推测是因为我redis设置了必须要有密码访问,而当前的配置里没有加redis密码、database index等的选项导致?求支持,好多应用都是默认redis database 0,0里数据混杂管理复杂。

@mazhuowen mazhuowen added the bug Something isn't working label Jan 27, 2025
@mazhuowen
Copy link
Author

raise exceptions.PermissionDenied(detail=message)

rest_framework.exceptions.PermissionDenied: 您没有执行该操作的权限。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 462, in handle_exception
response = exception_handler(exc, context)
File "/app/component/drf/generics.py", line 64, in exception_handler
raise exception_mappingexc_class_name
component.utils.exceptions.PermissionDeniedError
] status_code->[40302] & client_message->[您没有执行该操作的权限。] & args->[()]
audit_log_detail_log
捕获主动抛出异常, 具体异常堆栈->[Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 493, in dispatch
self.initial(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 411, in initial
self.check_permissions(request)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 333, in check_permissions
self.permission_denied(
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 175, in permission_denied
raise exceptions.PermissionDenied(detail=message)
rest_framework.exceptions.PermissionDenied: 您没有执行该操作的权限。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 462, in handle_exception
response = exception_handler(exc, context)
File "/app/component/drf/generics.py", line 64, in exception_handler
raise exception_mappingexc_class_name
component.utils.exceptions.PermissionDeniedError
] status_code->[40302] & client_message->[您没有执行该操作的权限。] & args->[()]

@xhongc
Copy link
Owner

xhongc commented Jan 28, 2025

v1 没有这些功能,会提示无权限

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants