Fix Casdoor login URL issue and enhance user experience. Updated organization name in environment variables, improved error handling for login failures, and added automatic redirection to Casdoor login page. Enhanced user interface with new styles for user display in the navigation bar. Updated logging to capture detailed user actions and application events.

This commit is contained in:
2025-12-11 22:24:20 +08:00
parent 539a981567
commit 2d5c5d4c0d
15 changed files with 2189 additions and 523 deletions
+255 -253
View File
@@ -1,13 +1,229 @@
[2025-12-11 22:21:50,347] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:51,162] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:53,765] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:55,427] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:56,245] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:57,458] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:58,265] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:21:59,973] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[2025-12-11 22:22:01,191] ERROR in error_handlers: 未处理异常: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
Traceback (most recent call last):
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/4an/app/views/auth.py", line 17, in login
return redirect(url_for('casdoor_login'))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/helpers.py", line 239, in url_for
return current_app.url_for(
^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1121, in url_for
return self.handle_url_build_error(error, endpoint, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/flask/app.py", line 1110, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/v6ole/pyproject/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'casdoor_login'. Did you mean 'casdoor_callback' instead?
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
gateway "uWSGI http 1" has been buried (pid: 1742819)
gateway "uWSGI http 1" has been buried (pid: 2840701)
...gracefully killing workers...
Gracefully killing worker 1 (pid: 1742806)...
Gracefully killing worker 4 (pid: 1742815)...
Gracefully killing worker 3 (pid: 1742810)...
Gracefully killing worker 2 (pid: 1742809)...
Gracefully killing worker 1 (pid: 2840688)...
Gracefully killing worker 3 (pid: 2840692)...
Gracefully killing worker 4 (pid: 2840695)...
Gracefully killing worker 2 (pid: 2840691)...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
@@ -18,7 +234,7 @@ closing all non-uwsgi socket fds > 2 (max_fd = 1024)...
found fd 9 mapped to socket 0 (/home/v6ole/pyproject/4an/uwsgi.sock)
running /home/v6ole/pyproject/venv/bin/uwsgi
[uWSGI] getting INI configuration from /home/v6ole/pyproject/4an/app/uwsgi.ini
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:31:51 2025] ***
*** Starting uWSGI 2.0.31 (64bit) on [Thu Dec 11 22:23:17 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
@@ -41,7 +257,7 @@ uWSGI http bound on 0.0.0.0:18019 fd 7
probably another instance of uWSGI is running on the same address (0.0.0.0:18019).
bind(): Address already in use [core/socket.c line 769]
VACUUM: pidfile removed.
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:31:53 2025] ***
*** Starting uWSGI 2.0.31 (64bit) on [Thu Dec 11 22:23:18 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
@@ -68,7 +284,7 @@ uWSGI running as root, you can use --uid/--gid/--chroot options
Python version: 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
PEP 405 virtualenv detected: /home/v6ole/pyproject/venv
Set PythonHome to /home/v6ole/pyproject/venv
Python main interpreter initialized at 0x71c06d2a3668
Python main interpreter initialized at 0x78df1aea3668
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
@@ -76,32 +292,31 @@ your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 703440 bytes (686 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
[2025-12-10 16:31:53,941] INFO in app: 应用启动
[2025-12-10 16:31:53,943] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x71c06d2a3668 pid: 1746324 (default app)
[2025-12-11 22:23:19,123] INFO in app: 应用启动
[2025-12-11 22:23:19,124] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x78df1aea3668 pid: 2854900 (default app)
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 master process (pid: 1746324)
spawned uWSGI worker 1 (pid: 1746507, cores: 2)
spawned uWSGI worker 2 (pid: 1746510, cores: 2)
spawned uWSGI master process (pid: 2854900)
spawned uWSGI worker 1 (pid: 2855094, cores: 2)
Python auto-reloader enabled
spawned uWSGI worker 3 (pid: 1746513, cores: 2)
spawned uWSGI worker 4 (pid: 1746516, cores: 2)
spawned uWSGI worker 2 (pid: 2855098, cores: 2)
spawned uWSGI worker 3 (pid: 2855101, cores: 2)
spawned uWSGI worker 4 (pid: 2855102, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 22 ***
spawned uWSGI http 1 (pid: 1746518)
spawned uWSGI http 1 (pid: 2855106)
unable to stat() uwsgi.reload, events will be triggered as soon as the file is created
unable to stat() true, events will be triggered as soon as the file is created
[2025-12-11 22:23:29,628] INFO in auth: 重定向到 Casdoor 授权页面
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
gateway "uWSGI http 1" has been buried (pid: 1746518)
gateway "uWSGI http 1" has been buried (pid: 2855106)
...gracefully killing workers...
Gracefully killing worker 1 (pid: 1746507)...
Gracefully killing worker 4 (pid: 1746516)...
Gracefully killing worker 3 (pid: 1746513)...
Gracefully killing worker 2 (pid: 1746510)...
Gracefully killing worker 2 (pid: 2855098)...
Gracefully killing worker 3 (pid: 2855101)...
Gracefully killing worker 4 (pid: 2855102)...
Gracefully killing worker 1 (pid: 2855094)...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
@@ -112,7 +327,7 @@ closing all non-uwsgi socket fds > 2 (max_fd = 1024)...
found fd 9 mapped to socket 0 (/home/v6ole/pyproject/4an/uwsgi.sock)
running /home/v6ole/pyproject/venv/bin/uwsgi
[uWSGI] getting INI configuration from /home/v6ole/pyproject/4an/app/uwsgi.ini
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:32:43 2025] ***
*** Starting uWSGI 2.0.31 (64bit) on [Thu Dec 11 22:23:36 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
@@ -135,7 +350,7 @@ uWSGI http bound on 0.0.0.0:18019 fd 7
probably another instance of uWSGI is running on the same address (0.0.0.0:18019).
bind(): Address already in use [core/socket.c line 769]
VACUUM: pidfile removed.
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:32:44 2025] ***
*** Starting uWSGI 2.0.31 (64bit) on [Thu Dec 11 22:23:37 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
@@ -162,7 +377,7 @@ uWSGI running as root, you can use --uid/--gid/--chroot options
Python version: 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
PEP 405 virtualenv detected: /home/v6ole/pyproject/venv
Set PythonHome to /home/v6ole/pyproject/venv
Python main interpreter initialized at 0x7410a7ea3668
Python main interpreter initialized at 0x7121faaa3668
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
@@ -170,236 +385,23 @@ your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 703440 bytes (686 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
[2025-12-10 16:32:45,024] INFO in app: 应用启动
[2025-12-10 16:32:45,026] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7410a7ea3668 pid: 1747945 (default app)
[2025-12-11 22:23:38,073] INFO in app: 应用启动
[2025-12-11 22:23:38,074] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7121faaa3668 pid: 2857150 (default app)
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 master process (pid: 1747945)
spawned uWSGI worker 1 (pid: 1748124, cores: 2)
spawned uWSGI master process (pid: 2857150)
spawned uWSGI worker 1 (pid: 2857296, cores: 2)
spawned uWSGI worker 2 (pid: 2857300, cores: 2)
Python auto-reloader enabled
spawned uWSGI worker 2 (pid: 1748127, cores: 2)
spawned uWSGI worker 3 (pid: 1748128, cores: 2)
spawned uWSGI worker 4 (pid: 1748130, cores: 2)
spawned uWSGI worker 3 (pid: 2857303, cores: 2)
spawned uWSGI worker 4 (pid: 2857304, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 22 ***
spawned uWSGI http 1 (pid: 1748137)
spawned uWSGI http 1 (pid: 2857309)
unable to stat() uwsgi.reload, events will be triggered as soon as the file is created
unable to stat() true, events will be triggered as soon as the file is created
[2025-12-10 16:36:04,465] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:36:13,335] INFO in auth: Casdoor 用户信息: {'sub': '798f4436-fbb6-45f4-bf0c-6e1cf4add605', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'groups': ['dahua/yunzhongtai']}
[2025-12-10 16:36:13,361] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-10 16:36:13,364] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-10 16:36:13,452] INFO in dashboard: 用户 韦矍森 访问仪表盘页面
[2025-12-10 16:36:16,325] INFO in auth: 用户 韦矍森(19977899008) 登出
[2025-12-10 16:38:28,194] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:38:29,004] INFO in auth: Casdoor 用户信息: {'sub': '798f4436-fbb6-45f4-bf0c-6e1cf4add605', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'groups': ['dahua/yunzhongtai']}
[2025-12-10 16:38:29,008] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-10 16:38:29,010] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-10 16:38:29,099] INFO in dashboard: 用户 韦矍森 访问仪表盘页面
[2025-12-10 16:38:31,444] INFO in auth: 用户 韦矍森(19977899008) 登出
[2025-12-10 16:42:35,542] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:42:45,468] INFO in auth: Casdoor 用户信息: {'sub': '798f4436-fbb6-45f4-bf0c-6e1cf4add605', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'groups': ['dahua/yunzhongtai']}
[2025-12-10 16:42:45,473] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-10 16:42:45,475] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-10 16:42:45,542] INFO in dashboard: 用户 韦矍森 访问仪表盘页面
[2025-12-10 16:42:47,439] INFO in auth: 用户 韦矍森(19977899008) 登出
[2025-12-10 16:42:52,685] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:43:21,587] INFO in auth: Casdoor 用户信息: {'sub': '798f4436-fbb6-45f4-bf0c-6e1cf4add605', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'groups': ['dahua/yunzhongtai']}
[2025-12-10 16:43:21,590] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-10 16:43:21,591] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-10 16:43:21,651] INFO in dashboard: 用户 韦矍森 访问仪表盘页面
[2025-12-10 16:43:23,490] INFO in auth: 用户 韦矍森(19977899008) 登出
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
gateway "uWSGI http 1" has been buried (pid: 1748137)
...gracefully killing workers...
Gracefully killing worker 2 (pid: 1748127)...
Gracefully killing worker 4 (pid: 1748130)...
Gracefully killing worker 1 (pid: 1748124)...
Gracefully killing worker 3 (pid: 1748128)...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
binary reloading uWSGI...
chdir() to /home/v6ole/pyproject/4an
closing all non-uwsgi socket fds > 2 (max_fd = 1024)...
found fd 9 mapped to socket 0 (/home/v6ole/pyproject/4an/uwsgi.sock)
running /home/v6ole/pyproject/venv/bin/uwsgi
[uWSGI] getting INI configuration from /home/v6ole/pyproject/4an/app/uwsgi.ini
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:46:45 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
machine: x86_64
clock source: unix
detected number of CPU cores: 22
current working directory: /home/v6ole/pyproject/4an
detected binary path: /home/v6ole/pyproject/venv/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /home/v6ole/pyproject/4an/app
your processes number limit is 63617
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:18019 fd 7
probably another instance of uWSGI is running on the same address (0.0.0.0:18019).
bind(): Address already in use [core/socket.c line 769]
VACUUM: pidfile removed.
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:46:46 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
machine: x86_64
clock source: unix
detected number of CPU cores: 22
current working directory: /home/v6ole/pyproject/4an
writing pidfile to /home/v6ole/pyproject/4an/uwsgi.pid
detected binary path: /home/v6ole/pyproject/venv/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /home/v6ole/pyproject/4an/app
your processes number limit is 63617
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:18019 fd 6
uwsgi socket 0 bound to UNIX address /home/v6ole/pyproject/4an/uwsgi.sock fd 9
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.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
PEP 405 virtualenv detected: /home/v6ole/pyproject/venv
Set PythonHome to /home/v6ole/pyproject/venv
Python main interpreter initialized at 0x7c0234ea3668
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 703440 bytes (686 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
[2025-12-10 16:46:46,862] INFO in app: 应用启动
[2025-12-10 16:46:46,864] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7c0234ea3668 pid: 1757751 (default app)
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 master process (pid: 1757751)
spawned uWSGI worker 1 (pid: 1757894, cores: 2)
spawned uWSGI worker 2 (pid: 1757897, cores: 2)
Python auto-reloader enabled
spawned uWSGI worker 3 (pid: 1757900, cores: 2)
spawned uWSGI worker 4 (pid: 1757903, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 22 ***
spawned uWSGI http 1 (pid: 1757906)
unable to stat() uwsgi.reload, events will be triggered as soon as the file is created
unable to stat() true, events will be triggered as soon as the file is created
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
[uwsgi-python-reloader] module/file /home/v6ole/pyproject/4an/app/views/auth.py has been modified
gateway "uWSGI http 1" has been buried (pid: 1757906)
...gracefully killing workers...
Gracefully killing worker 2 (pid: 1757897)...
Gracefully killing worker 1 (pid: 1757894)...
Gracefully killing worker 4 (pid: 1757903)...
Gracefully killing worker 3 (pid: 1757900)...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
binary reloading uWSGI...
chdir() to /home/v6ole/pyproject/4an
closing all non-uwsgi socket fds > 2 (max_fd = 1024)...
found fd 9 mapped to socket 0 (/home/v6ole/pyproject/4an/uwsgi.sock)
running /home/v6ole/pyproject/venv/bin/uwsgi
[uWSGI] getting INI configuration from /home/v6ole/pyproject/4an/app/uwsgi.ini
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:47:45 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
machine: x86_64
clock source: unix
detected number of CPU cores: 22
current working directory: /home/v6ole/pyproject/4an
detected binary path: /home/v6ole/pyproject/venv/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /home/v6ole/pyproject/4an/app
your processes number limit is 63617
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:18019 fd 7
probably another instance of uWSGI is running on the same address (0.0.0.0:18019).
bind(): Address already in use [core/socket.c line 769]
VACUUM: pidfile removed.
*** Starting uWSGI 2.0.31 (64bit) on [Wed Dec 10 16:47:46 2025] ***
compiled with version: 13.3.0 on 26 November 2025 03:29:52
os: Linux-6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025
nodename: fnubserver
machine: x86_64
clock source: unix
detected number of CPU cores: 22
current working directory: /home/v6ole/pyproject/4an
writing pidfile to /home/v6ole/pyproject/4an/uwsgi.pid
detected binary path: /home/v6ole/pyproject/venv/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /home/v6ole/pyproject/4an/app
your processes number limit is 63617
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:18019 fd 6
uwsgi socket 0 bound to UNIX address /home/v6ole/pyproject/4an/uwsgi.sock fd 9
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.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
PEP 405 virtualenv detected: /home/v6ole/pyproject/venv
Set PythonHome to /home/v6ole/pyproject/venv
Python main interpreter initialized at 0x7ed4400a3668
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 703440 bytes (686 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
[2025-12-10 16:47:46,964] INFO in app: 应用启动
[2025-12-10 16:47:46,966] INFO in error_handlers: 错误处理器初始化完成
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7ed4400a3668 pid: 1759947 (default app)
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 master process (pid: 1759947)
spawned uWSGI worker 1 (pid: 1760128, cores: 2)
spawned uWSGI worker 2 (pid: 1760131, cores: 2)
spawned uWSGI worker 3 (pid: 1760133, cores: 2)
Python auto-reloader enabled
spawned uWSGI worker 4 (pid: 1760135, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 22 ***
spawned uWSGI http 1 (pid: 1760140)
unable to stat() uwsgi.reload, events will be triggered as soon as the file is created
unable to stat() true, events will be triggered as soon as the file is created
[2025-12-10 16:50:50,047] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:50:57,304] INFO in auth: Casdoor 用户信息: {'sub': '798f4436-fbb6-45f4-bf0c-6e1cf4add605', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'groups': ['dahua/yunzhongtai']}
[2025-12-10 16:50:57,323] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-10 16:50:57,325] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-10 16:50:57,422] INFO in dashboard: 用户 韦矍森 访问仪表盘页面
[2025-12-10 16:50:59,221] INFO in auth: 用户 韦矍森(19977899008) 登出
[2025-12-10 16:50:59,354] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-10 16:51:25,161] INFO in auth: 重定向到 Casdoor 授权页面
[2025-12-11 22:23:51,348] INFO in auth: Casdoor 用户信息: {'sub': '66d04f8e-e663-4ee1-a2e9-5777901c6df7', 'iss': 'https://casdoor.dhdx.fun', 'aud': '8f323670e073612794ef', 'preferred_username': 'weijuesen', 'name': '韦矍森', 'email': 'voole@vip.qq.com', 'email_verified': True, 'picture': 'https://cdn.casbin.org/img/casbin.svg', 'phone': '19977899008', 'real_name': '韦矍森', 'roles': ['admin']}
[2025-12-11 22:23:51,367] INFO in auth: 更新用户信息: 韦矍森(19977899008)
[2025-12-11 22:23:51,368] INFO in auth: 用户 韦矍森(19977899008) 通过 Casdoor 登录成功
[2025-12-11 22:23:51,772] INFO in dashboard: 用户 韦矍森 访问仪表盘页面