diff --git a/__pycache__/gunicorn_tab.cpython-38.pyc b/__pycache__/gunicorn_tab.cpython-38.pyc index 10e6cd3..91fbac0 100644 Binary files a/__pycache__/gunicorn_tab.cpython-38.pyc and b/__pycache__/gunicorn_tab.cpython-38.pyc differ diff --git a/app.log b/app.log index be88ddd..05264f3 100644 --- a/app.log +++ b/app.log @@ -7237,3 +7237,361 @@ gunicorn.errors.HaltServer: 2025-09-07 22:19:18.096 | INFO | remote_commands_tab:request_password:394 - 请求输入sudo密码 2025-09-07 22:19:18.096 | ERROR | remote_commands_tab:run:132 - 命令执行失败,退出状态: -1 2025-09-07 22:19:18.097 | ERROR | django_threads:run:205 - 命令错误: Traceback (most recent call last): +2025-09-12 21:03:06.707 | INFO | __main__::189 - 启动应用程序 +2025-09-12 21:03:06.770 | INFO | __main__:__init__:17 - 初始化主窗口 +2025-09-12 21:03:06.832 | INFO | __main__:__init__:32 - 设置状态栏显示当前目录: C:\Users\xiaji\Documents\个人文件夹\夏骥\桌面部署 +2025-09-12 21:03:06.832 | INFO | server_connection_tab:__init__:14 - 初始化服务器连接标签页 +2025-09-12 21:03:06.845 | INFO | server_connection_tab:init_ui:93 - 服务器连接标签页UI初始化完成 +2025-09-12 21:03:06.845 | INFO | server_connection_tab:load_config:96 - 加载配置文件 +2025-09-12 21:03:06.846 | INFO | server_connection_tab:load_config:103 - 成功加载配置文件: c:\Users\xiaji\Documents\个人文件夹\夏骥\桌面部署\config.json +2025-09-12 21:03:06.849 | INFO | server_connection_tab:on_alias_changed:122 - 选择别名: 测试机 +2025-09-12 21:03:06.855 | INFO | remote_commands_tab:__init__:151 - 初始化远程命令标签页 +2025-09-12 21:03:06.860 | INFO | remote_commands_tab:init_ui:299 - 远程命令标签页UI初始化完成 +2025-09-12 21:03:06.863 | INFO | __main__:__init__:57 - 主窗口初始化完成 +2025-09-12 21:03:10.757 | INFO | server_connection_tab:connect_to_server:188 - 尝试连接服务器 +2025-09-12 21:03:10.920 | INFO | server_connection_tab:connect_to_server:207 - 成功连接到服务器: 192.168.3.157 +2025-09-12 21:03:13.148 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 1 +2025-09-12 21:03:13.149 | INFO | remote_commands_tab:set_ssh_client:322 - 设置SSH客户端 +2025-09-12 21:03:13.150 | INFO | remote_commands_tab:set_server_config:357 - 设置服务器配置: git_url=http://192.168.3.241:3000/xiaji/webstatus.git, remote_dir=/home/xiaji +2025-09-12 21:03:13.150 | INFO | remote_commands_tab:refresh_directory:619 - 刷新目录列表 +2025-09-12 21:03:13.150 | INFO | remote_commands_tab:refresh_directory:631 - 使用用户输入目录: /home/xiaji +2025-09-12 21:03:13.151 | INFO | remote_commands_tab:set_server_info:303 - 设置服务器信息: {'ip': '192.168.3.157', 'username': 'xiaji', 'password': 'xiaji', 'port': 22, 'project': 'statuspage', 'git_url': 'http://192.168.3.241:3000/xiaji/webstatus.git', 'remote_dir': '/home/xiaji'} +2025-09-12 21:03:13.152 | INFO | __main__:on_tab_changed:88 - 状态栏更新为远程服务器目录: 测试机: /home/xiaji +2025-09-12 21:03:13.152 | INFO | remote_commands_tab:run:53 - 执行远程命令: cd /home/xiaji && pwd && ls -la +2025-09-12 21:03:13.160 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:03:13.163 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: 当前目录: /home/xiaji +2025-09-12 21:03:13.210 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: /home/xiaji +2025-09-12 21:03:13.213 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: total 84 +2025-09-12 21:03:13.214 | INFO | remote_commands_tab:run:129 - 命令执行成功: cd /home/xiaji && pwd && ls -la +2025-09-12 21:03:13.214 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 6 xiaji xiaji 4096 Aug 31 12:39 . +2025-09-12 21:03:13.215 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 3 root root 4096 Aug 31 17:55 .. +2025-09-12 21:03:13.216 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 220 Aug 20 2024 .bash_logout +2025-09-12 21:03:13.217 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 3771 Aug 20 2024 .bashrc +2025-09-12 21:03:13.217 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 10:56 .cache +2025-09-12 21:03:13.217 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 3 xiaji xiaji 4096 Aug 31 10:59 django.remote +2025-09-12 21:03:13.217 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 807 Aug 20 2024 .profile +2025-09-12 21:03:13.219 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 17:55 .ssh +2025-09-12 21:03:13.219 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 0 Aug 31 12:39 .sudo_as_admin_successful +2025-09-12 21:03:13.219 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 7 xiaji www-data 4096 Sep 12 20:59 webstatus +2025-09-12 21:03:13.219 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-rw-r-- 1 xiaji xiaji 47664 Aug 31 11:33 xiaji +2025-09-12 21:03:13.220 | INFO | remote_commands_tab:on_dir_refresh_finished:651 - 目录列表刷新成功 +2025-09-12 21:03:13.918 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 2 +2025-09-12 21:03:13.918 | INFO | django_tab:set_ssh_client:142 - Django标签页已设置SSH客户端 +2025-09-12 21:03:13.918 | INFO | django_tab:set_username:147 - Django标签页已设置用户名: xiaji +2025-09-12 21:03:13.918 | INFO | __main__:on_tab_changed:123 - 状态栏更新为Django项目: statuspage, 目录: /home/xiaji +2025-09-12 21:03:14.347 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:03:14.348 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:03:14.348 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:03:14.349 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:03:14.349 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:03:14.352 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:03:14.353 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:03:20.328 | INFO | gunicorn_tab:run:419 - 查看Gunicorn服务日志: bash -c 'echo "xiaji" | sudo -S journalctl -u gunicorn_statuspage -n 100' +2025-09-12 21:03:20.439 | INFO | gunicorn_tab:run:429 - Gunicorn服务日志查看成功 +2025-09-12 21:03:20.445 | INFO | gunicorn_tab:on_log_result:1068 - Gunicorn服务日志查看成功 +2025-09-12 21:16:21.231 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 1 +2025-09-12 21:16:21.231 | INFO | remote_commands_tab:set_ssh_client:322 - 设置SSH客户端 +2025-09-12 21:16:21.232 | INFO | remote_commands_tab:set_server_config:357 - 设置服务器配置: git_url=http://192.168.3.241:3000/xiaji/webstatus.git, remote_dir=/home/xiaji +2025-09-12 21:16:21.232 | INFO | remote_commands_tab:refresh_directory:619 - 刷新目录列表 +2025-09-12 21:16:21.232 | INFO | remote_commands_tab:refresh_directory:631 - 使用用户输入目录: /home/xiaji +2025-09-12 21:16:21.232 | INFO | remote_commands_tab:set_server_info:303 - 设置服务器信息: {'ip': '192.168.3.157', 'username': 'xiaji', 'password': 'xiaji', 'port': 22, 'project': 'statuspage', 'git_url': 'http://192.168.3.241:3000/xiaji/webstatus.git', 'remote_dir': '/home/xiaji'} +2025-09-12 21:16:21.233 | INFO | __main__:on_tab_changed:88 - 状态栏更新为远程服务器目录: 测试机: /home/xiaji +2025-09-12 21:16:21.233 | INFO | remote_commands_tab:run:53 - 执行远程命令: cd /home/xiaji && pwd && ls -la +2025-09-12 21:16:21.247 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:16:21.248 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: 当前目录: /home/xiaji +2025-09-12 21:16:21.298 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: /home/xiaji +2025-09-12 21:16:21.302 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: total 84 +2025-09-12 21:16:21.302 | INFO | remote_commands_tab:run:129 - 命令执行成功: cd /home/xiaji && pwd && ls -la +2025-09-12 21:16:21.303 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 6 xiaji xiaji 4096 Aug 31 12:39 . +2025-09-12 21:16:21.303 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 3 root root 4096 Aug 31 17:55 .. +2025-09-12 21:16:21.304 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 220 Aug 20 2024 .bash_logout +2025-09-12 21:16:21.305 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 3771 Aug 20 2024 .bashrc +2025-09-12 21:16:21.305 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 10:56 .cache +2025-09-12 21:16:21.306 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 3 xiaji xiaji 4096 Aug 31 10:59 django.remote +2025-09-12 21:16:21.306 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 807 Aug 20 2024 .profile +2025-09-12 21:16:21.306 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 17:55 .ssh +2025-09-12 21:16:21.306 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 0 Aug 31 12:39 .sudo_as_admin_successful +2025-09-12 21:16:21.307 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 7 xiaji www-data 4096 Sep 12 20:59 webstatus +2025-09-12 21:16:21.307 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-rw-r-- 1 xiaji xiaji 47664 Aug 31 11:33 xiaji +2025-09-12 21:16:21.307 | INFO | remote_commands_tab:on_dir_refresh_finished:651 - 目录列表刷新成功 +2025-09-12 21:16:48.727 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:16:48.729 | INFO | remote_commands_tab:run:53 - 执行远程命令: ls -d /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:16:48.738 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:16:48.788 | INFO | remote_commands_tab:run:129 - 命令执行成功: ls -d /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:17:15.792 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:17:15.792 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:17:19.013 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo mkdir -p /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:17:19.022 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:17:19.069 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:17:19.086 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo mkdir -p /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:17:27.621 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:17:27.622 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:17:30.119 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo ls -d /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:17:30.126 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:17:30.175 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:17:30.190 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo ls -d /home/xiaji/webstatus/logs 2>/dev/null +2025-09-12 21:17:47.470 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:17:47.470 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:17:52.420 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo chown -R xiaji:xiaji /home/xiaji/webstatus/logs +2025-09-12 21:17:52.428 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:17:52.475 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:17:52.490 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo chown -R xiaji:xiaji /home/xiaji/webstatus/logs +2025-09-12 21:18:03.929 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:18:03.930 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:18:09.049 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo chmod -R 755 /home/xiaji/webstatus/logs +2025-09-12 21:18:10.554 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:18:10.600 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:18:10.614 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo chmod -R 755 /home/xiaji/webstatus/logs +2025-09-12 21:18:15.009 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:18:15.010 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:18:17.338 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo ls -ld /home/xiaji/webstatus/logs +2025-09-12 21:18:17.344 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:18:17.391 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:18:17.406 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo ls -ld /home/xiaji/webstatus/logs +2025-09-12 21:18:32.690 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:18:32.693 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:18:37.331 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo systemctl restart gunicorn_statuspage.service +2025-09-12 21:18:37.339 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:18:37.387 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:18:37.760 | INFO | remote_commands_tab:run:129 - 命令执行成功: sudo systemctl restart gunicorn_statuspage.service +2025-09-12 21:18:40.788 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:18:40.789 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:18:40.789 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:18:40.789 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:18:40.790 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:18:40.791 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:18:40.791 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:18:45.837 | INFO | gunicorn_tab:run:419 - 查看Gunicorn服务日志: bash -c 'echo "xiaji" | sudo -S journalctl -u gunicorn_statuspage -n 100' +2025-09-12 21:18:45.870 | INFO | gunicorn_tab:run:429 - Gunicorn服务日志查看成功 +2025-09-12 21:18:45.872 | INFO | gunicorn_tab:on_log_result:1068 - Gunicorn服务日志查看成功 +2025-09-12 21:19:05.016 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 1 +2025-09-12 21:19:05.017 | INFO | remote_commands_tab:set_ssh_client:322 - 设置SSH客户端 +2025-09-12 21:19:05.017 | INFO | remote_commands_tab:set_server_config:357 - 设置服务器配置: git_url=http://192.168.3.241:3000/xiaji/webstatus.git, remote_dir=/home/xiaji +2025-09-12 21:19:05.017 | INFO | remote_commands_tab:refresh_directory:619 - 刷新目录列表 +2025-09-12 21:19:05.017 | INFO | remote_commands_tab:refresh_directory:631 - 使用用户输入目录: /home/xiaji +2025-09-12 21:19:05.018 | INFO | remote_commands_tab:set_server_info:303 - 设置服务器信息: {'ip': '192.168.3.157', 'username': 'xiaji', 'password': 'xiaji', 'port': 22, 'project': 'statuspage', 'git_url': 'http://192.168.3.241:3000/xiaji/webstatus.git', 'remote_dir': '/home/xiaji'} +2025-09-12 21:19:05.018 | INFO | __main__:on_tab_changed:88 - 状态栏更新为远程服务器目录: 测试机: /home/xiaji +2025-09-12 21:19:05.019 | INFO | remote_commands_tab:run:53 - 执行远程命令: cd /home/xiaji && pwd && ls -la +2025-09-12 21:19:05.027 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:19:05.027 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: 当前目录: /home/xiaji +2025-09-12 21:19:05.076 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: /home/xiaji +2025-09-12 21:19:05.077 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: total 84 +2025-09-12 21:19:05.078 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 6 xiaji xiaji 4096 Aug 31 12:39 . +2025-09-12 21:19:05.078 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 3 root root 4096 Aug 31 17:55 .. +2025-09-12 21:19:05.078 | INFO | remote_commands_tab:run:129 - 命令执行成功: cd /home/xiaji && pwd && ls -la +2025-09-12 21:19:05.079 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 220 Aug 20 2024 .bash_logout +2025-09-12 21:19:05.079 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 3771 Aug 20 2024 .bashrc +2025-09-12 21:19:05.080 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 10:56 .cache +2025-09-12 21:19:05.080 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 3 xiaji xiaji 4096 Aug 31 10:59 django.remote +2025-09-12 21:19:05.080 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 807 Aug 20 2024 .profile +2025-09-12 21:19:05.083 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 17:55 .ssh +2025-09-12 21:19:05.083 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 0 Aug 31 12:39 .sudo_as_admin_successful +2025-09-12 21:19:05.084 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 7 xiaji www-data 4096 Sep 12 20:59 webstatus +2025-09-12 21:19:05.084 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-rw-r-- 1 xiaji xiaji 47664 Aug 31 11:33 xiaji +2025-09-12 21:19:05.084 | INFO | remote_commands_tab:on_dir_refresh_finished:651 - 目录列表刷新成功 +2025-09-12 21:19:08.499 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:19:08.503 | INFO | remote_commands_tab:run:53 - 执行远程命令: ls /home/xiaji/webstatus/logs/ +2025-09-12 21:19:08.511 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:19:08.565 | INFO | remote_commands_tab:run:129 - 命令执行成功: ls /home/xiaji/webstatus/logs/ +2025-09-12 21:19:18.778 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:19:18.791 | INFO | remote_commands_tab:run:53 - 执行远程命令: cat /home/xiaji/webstatus/logs/gunicorn_error.log +2025-09-12 21:19:18.801 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:19:18.854 | INFO | remote_commands_tab:run:129 - 命令执行成功: cat /home/xiaji/webstatus/logs/gunicorn_error.log +2025-09-12 21:19:22.476 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:19:22.477 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:19:22.477 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:19:22.477 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:19:22.477 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:19:22.479 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:19:22.479 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:19:26.120 | INFO | gunicorn_tab:run:561 - 开始设置服务器时区为Asia/Shanghai +2025-09-12 21:19:26.202 | INFO | gunicorn_tab:run:572 - 开始重启服务器 +2025-09-12 21:19:26.250 | INFO | gunicorn_tab:run:576 - 时区设置成功,服务器正在重启 +2025-09-12 21:19:26.250 | INFO | gunicorn_tab:on_server_control_result:1157 - 服务器控制成功: 时区设置成功,服务器正在重启 +2025-09-12 21:19:52.652 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 0 +2025-09-12 21:19:53.651 | INFO | server_connection_tab:connect_to_server:188 - 尝试连接服务器 +2025-09-12 21:19:53.830 | INFO | server_connection_tab:connect_to_server:207 - 成功连接到服务器: 192.168.3.157 +2025-09-12 21:20:00.295 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:20:00.296 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:20:00.296 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:20:00.296 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:20:00.296 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:20:00.297 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:20:00.297 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:20:04.344 | INFO | gunicorn_tab:run:419 - 查看Gunicorn服务日志: bash -c 'echo "xiaji" | sudo -S journalctl -u gunicorn_statuspage -n 100' +2025-09-12 21:20:04.455 | INFO | gunicorn_tab:run:429 - Gunicorn服务日志查看成功 +2025-09-12 21:20:04.459 | INFO | gunicorn_tab:on_log_result:1068 - Gunicorn服务日志查看成功 +2025-09-12 21:23:41.707 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 1 +2025-09-12 21:23:41.707 | INFO | remote_commands_tab:set_ssh_client:322 - 设置SSH客户端 +2025-09-12 21:23:41.708 | INFO | remote_commands_tab:set_server_config:357 - 设置服务器配置: git_url=http://192.168.3.241:3000/xiaji/webstatus.git, remote_dir=/home/xiaji +2025-09-12 21:23:41.708 | INFO | remote_commands_tab:refresh_directory:619 - 刷新目录列表 +2025-09-12 21:23:41.708 | INFO | remote_commands_tab:refresh_directory:631 - 使用用户输入目录: /home/xiaji +2025-09-12 21:23:41.709 | INFO | remote_commands_tab:set_server_info:303 - 设置服务器信息: {'ip': '192.168.3.157', 'username': 'xiaji', 'password': 'xiaji', 'port': 22, 'project': 'statuspage', 'git_url': 'http://192.168.3.241:3000/xiaji/webstatus.git', 'remote_dir': '/home/xiaji'} +2025-09-12 21:23:41.709 | INFO | __main__:on_tab_changed:88 - 状态栏更新为远程服务器目录: 测试机: /home/xiaji +2025-09-12 21:23:41.709 | INFO | remote_commands_tab:run:53 - 执行远程命令: cd /home/xiaji && pwd && ls -la +2025-09-12 21:23:41.721 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:23:41.722 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: 当前目录: /home/xiaji +2025-09-12 21:23:41.782 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: /home/xiaji +2025-09-12 21:23:41.784 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: total 84 +2025-09-12 21:23:41.785 | INFO | remote_commands_tab:run:129 - 命令执行成功: cd /home/xiaji && pwd && ls -la +2025-09-12 21:23:41.785 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 6 xiaji xiaji 4096 Aug 31 12:39 . +2025-09-12 21:23:41.786 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 3 root root 4096 Aug 31 17:55 .. +2025-09-12 21:23:41.787 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 220 Aug 20 2024 .bash_logout +2025-09-12 21:23:41.787 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 3771 Aug 20 2024 .bashrc +2025-09-12 21:23:41.787 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 10:56 .cache +2025-09-12 21:23:41.788 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 3 xiaji xiaji 4096 Aug 31 10:59 django.remote +2025-09-12 21:23:41.788 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 807 Aug 20 2024 .profile +2025-09-12 21:23:41.789 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 17:55 .ssh +2025-09-12 21:23:41.789 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 0 Aug 31 12:39 .sudo_as_admin_successful +2025-09-12 21:23:41.789 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 7 xiaji www-data 4096 Sep 12 21:20 webstatus +2025-09-12 21:23:41.790 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-rw-r-- 1 xiaji xiaji 47664 Aug 31 11:33 xiaji +2025-09-12 21:23:41.790 | INFO | remote_commands_tab:on_dir_refresh_finished:651 - 目录列表刷新成功 +2025-09-12 21:23:44.736 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:23:44.737 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:23:47.511 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo tail -f /home/xiaji/webstatus/logs/gunicorn_error.log | grep -i "static" +2025-09-12 21:23:47.518 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:23:47.565 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:26:42.723 | INFO | remote_commands_tab:execute_custom_command:670 - 执行自定义命令 +2025-09-12 21:26:42.725 | INFO | remote_commands_tab:execute_custom_command:686 - 检测到sudo命令,预先请求密码 +2025-09-12 21:26:46.762 | INFO | remote_commands_tab:run:53 - 执行远程命令: sudo tail -f /var/log/nginx/error.log | grep -i "static" # -i 忽略大小写,筛选静态文件相关错误 +2025-09-12 21:26:46.771 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:26:46.820 | INFO | remote_commands_tab:run:84 - 使用预先设置的密码 +2025-09-12 21:26:54.825 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 4 +2025-09-12 21:26:54.825 | INFO | nginx_tab:set_ssh_client:561 - Nginx标签页已设置SSH客户端 +2025-09-12 21:26:54.826 | INFO | nginx_tab:set_username:566 - Nginx标签页已设置用户名: xiaji +2025-09-12 21:26:54.826 | INFO | nginx_tab:set_project_info:572 - Nginx标签页已设置项目信息: statuspage, 192.168.3.157 +2025-09-12 21:26:54.829 | INFO | __main__:on_tab_changed:185 - 状态栏更新为Nginx服务: nginx, 项目: statuspage +2025-09-12 21:27:16.721 | INFO | nginx_tab:run:171 - 开始执行Nginx服务操作: status +2025-09-12 21:27:16.760 | INFO | nginx_tab:run:196 - Nginx status 操作成功 +2025-09-12 21:27:16.763 | INFO | nginx_tab:on_control_result:1044 - Nginx服务控制成功: Nginx status 操作成功 +● nginx.service - A high performance web server and a reverse proxy server + Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled) + Active: active (running) since Fri 2025-09-12 21:19:33 CST; 7min ago + Invocation: 2499150b2a1f4a73a4b9c2520e8e2b31 + Docs: man:nginx(8) + Process: 1088 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) + Process: 1091 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) + Main PID: 1097 (nginx) + Tasks: 3 (limit: 1844) + Memory: 4.5M (peak: 5M) + CPU: 28ms + CGroup: /system.slice/nginx.service + ├─1097 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;" + ├─1098 "nginx: worker process" + └─1099 "nginx: worker process" + +Sep 12 21:19:33 statuspage systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server... +Sep 12 21:19:33 statuspage systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server. + +2025-09-12 21:31:49.551 | INFO | nginx_tab:run:265 - 开始处理Nginx站点配置: statuspage, 操作: download +2025-09-12 21:31:49.577 | INFO | nginx_tab:run:339 - 站点配置文件下载成功: /etc/nginx/sites-enabled/statuspage +2025-09-12 21:31:49.582 | INFO | nginx_tab:on_download_site_config_result:846 - Nginx站点配置文件下载成功 +2025-09-12 21:31:49.582 | INFO | nginx_tab:add_static_mappings:917 - 配置文件已包含静态文件映射 +2025-09-12 21:32:09.404 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:32:09.405 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:32:09.405 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:32:09.405 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:32:09.405 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:32:09.407 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:32:09.407 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:32:19.159 | INFO | gunicorn_tab:run:388 - Gunicorn服务状态查询成功: gunicorn_statuspage +● gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project + Loaded: loaded (/etc/systemd/system/gunicorn_statuspage.service; enabled; preset: enabled) + Active: active (running) since Sat 2025-09-13 04:59:16 CST; 7h left + Invocation: fa2e520132b8460db6082ae79c998b82 + Process: 910 ExecStartPre=/bin/rm -f /home/xiaji/webstatus/sock/gunicorn.sock (code=exited, status=0/SUCCESS) + Process: 930 ExecStartPre=/bin/mkdir -p /home/xiaji/webstatus/sock (code=exited, status=0/SUCCESS) + Main PID: 949 (gunicorn) + Tasks: 4 (limit: 1844) + Memory: 198.4M (peak: 198.9M) + CPU: 1.798s + CGroup: /system.slice/gunicorn_statuspage.service + ├─ 949 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + ├─1071 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + ├─1079 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + └─1081 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + +Sep 12 21:19:31 statuspage systemd[1]: Starting gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project... +Sep 13 04:59:16 statuspage systemd[1]: Started gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project. + +2025-09-12 21:32:19.160 | INFO | gunicorn_tab:on_control_result:1127 - Gunicorn服务控制成功: Gunicorn服务状态查询成功: gunicorn_statuspage +● gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project + Loaded: loaded (/etc/systemd/system/gunicorn_statuspage.service; enabled; preset: enabled) + Active: active (running) since Sat 2025-09-13 04:59:16 CST; 7h left + Invocation: fa2e520132b8460db6082ae79c998b82 + Process: 910 ExecStartPre=/bin/rm -f /home/xiaji/webstatus/sock/gunicorn.sock (code=exited, status=0/SUCCESS) + Process: 930 ExecStartPre=/bin/mkdir -p /home/xiaji/webstatus/sock (code=exited, status=0/SUCCESS) + Main PID: 949 (gunicorn) + Tasks: 4 (limit: 1844) + Memory: 198.4M (peak: 198.9M) + CPU: 1.798s + CGroup: /system.slice/gunicorn_statuspage.service + ├─ 949 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + ├─1071 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + ├─1079 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + └─1081 /usr/bin/python3 /usr/bin/gunicorn --pythonpath /home/xiaji/webstatus --workers 3 --bind unix:/home/xiaji/webstatus/sock/gunicorn.sock --access-logfile /home/xiaji/webstatus/logs/gunicorn_access.log --error-logfile /home/xiaji/webstatus/logs/gunicorn_error.log statuspage.wsgi:application + +Sep 12 21:19:31 statuspage systemd[1]: Starting gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project... +Sep 13 04:59:16 statuspage systemd[1]: Started gunicorn_statuspage.service - Gunicorn Daemon for statuspage Project. + +2025-09-12 21:34:36.923 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 2 +2025-09-12 21:34:36.923 | INFO | django_tab:set_ssh_client:142 - Django标签页已设置SSH客户端 +2025-09-12 21:34:36.923 | INFO | django_tab:set_username:147 - Django标签页已设置用户名: xiaji +2025-09-12 21:34:36.923 | INFO | __main__:on_tab_changed:123 - 状态栏更新为Django项目: statuspage, 目录: /home/xiaji +2025-09-12 21:34:39.922 | INFO | django_threads:run:86 - 执行Django命令: find /home/xiaji -name "manage.py" 2>/dev/null | head -5 +2025-09-12 21:34:39.947 | INFO | django_threads:run:198 - 命令输出: /home/xiaji/webstatus/manage.py +2025-09-12 21:34:39.948 | INFO | django_tab:process_manage_py_result:288 - 找到manage.py文件: /home/xiaji/webstatus/manage.py +2025-09-12 21:34:39.948 | INFO | django_threads:run:211 - 命令执行成功: find /home/xiaji -name "manage.py" 2>/dev/null | head -5 +2025-09-12 21:34:39.950 | INFO | django_threads:run:86 - 执行Django命令: find /home/xiaji -name "settings.py" 2>/dev/null | head -5 +2025-09-12 21:34:40.005 | INFO | django_threads:run:198 - 命令输出: /home/xiaji/webstatus/statuspage/settings.py +2025-09-12 21:34:40.005 | INFO | django_threads:run:211 - 命令执行成功: find /home/xiaji -name "settings.py" 2>/dev/null | head -5 +2025-09-12 21:34:40.016 | INFO | django_tab:process_settings_py_result:315 - 找到settings.py文件: /home/xiaji/webstatus/statuspage/settings.py +2025-09-12 21:34:40.016 | INFO | django_tab:on_command_finished:155 - Django命令执行完成 +2025-09-12 21:34:43.682 | INFO | django_threads:run:86 - 执行Django命令: cd /home/xiaji/webstatus && python3 manage.py collectstatic --noinput +2025-09-12 21:34:44.022 | INFO | django_threads:run:198 - 命令输出: +2025-09-12 21:34:44.024 | INFO | django_threads:run:198 - 命令输出: 156 static files copied to '/home/xiaji/webstatus/static'. +2025-09-12 21:34:44.075 | INFO | django_threads:run:211 - 命令执行成功: cd /home/xiaji/webstatus && python3 manage.py collectstatic --noinput +2025-09-12 21:34:44.076 | INFO | django_tab:on_command_finished:155 - Django命令执行完成 +2025-09-12 21:35:02.109 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 0 +2025-09-12 21:35:02.617 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 1 +2025-09-12 21:35:02.617 | INFO | remote_commands_tab:set_ssh_client:322 - 设置SSH客户端 +2025-09-12 21:35:02.617 | INFO | remote_commands_tab:set_server_config:357 - 设置服务器配置: git_url=http://192.168.3.241:3000/xiaji/webstatus.git, remote_dir=/home/xiaji +2025-09-12 21:35:02.618 | INFO | remote_commands_tab:refresh_directory:619 - 刷新目录列表 +2025-09-12 21:35:02.618 | INFO | remote_commands_tab:refresh_directory:631 - 使用用户输入目录: /home/xiaji +2025-09-12 21:35:02.618 | INFO | remote_commands_tab:set_server_info:303 - 设置服务器信息: {'ip': '192.168.3.157', 'username': 'xiaji', 'password': 'xiaji', 'port': 22, 'project': 'statuspage', 'git_url': 'http://192.168.3.241:3000/xiaji/webstatus.git', 'remote_dir': '/home/xiaji'} +2025-09-12 21:35:02.618 | INFO | __main__:on_tab_changed:88 - 状态栏更新为远程服务器目录: 测试机: /home/xiaji +2025-09-12 21:35:02.619 | INFO | remote_commands_tab:run:53 - 执行远程命令: cd /home/xiaji && pwd && ls -la +2025-09-12 21:35:02.627 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: 当前目录: /home/xiaji +2025-09-12 21:35:02.627 | INFO | remote_commands_tab:run:73 - 当前目录: /home/xiaji +2025-09-12 21:35:02.676 | INFO | remote_commands_tab:run:129 - 命令执行成功: cd /home/xiaji && pwd && ls -la +2025-09-12 21:35:02.677 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: /home/xiaji +2025-09-12 21:35:02.678 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: total 84 +2025-09-12 21:35:02.678 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 6 xiaji xiaji 4096 Aug 31 12:39 . +2025-09-12 21:35:02.678 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxr-xr-x 3 root root 4096 Aug 31 17:55 .. +2025-09-12 21:35:02.679 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 220 Aug 20 2024 .bash_logout +2025-09-12 21:35:02.679 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 3771 Aug 20 2024 .bashrc +2025-09-12 21:35:02.679 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 10:56 .cache +2025-09-12 21:35:02.680 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 3 xiaji xiaji 4096 Aug 31 10:59 django.remote +2025-09-12 21:35:02.680 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 807 Aug 20 2024 .profile +2025-09-12 21:35:02.680 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwx------ 2 xiaji xiaji 4096 Aug 31 17:55 .ssh +2025-09-12 21:35:02.681 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-r--r-- 1 xiaji xiaji 0 Aug 31 12:39 .sudo_as_admin_successful +2025-09-12 21:35:02.681 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: drwxrwxr-x 8 xiaji www-data 4096 Sep 12 21:34 webstatus +2025-09-12 21:35:02.681 | INFO | remote_commands_tab:append_dir_output:645 - 目录列表信息: -rw-rw-r-- 1 xiaji xiaji 47664 Aug 31 11:33 xiaji +2025-09-12 21:35:02.682 | INFO | remote_commands_tab:on_dir_refresh_finished:651 - 目录列表刷新成功 +2025-09-12 21:35:03.065 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 2 +2025-09-12 21:35:03.066 | INFO | django_tab:set_ssh_client:142 - Django标签页已设置SSH客户端 +2025-09-12 21:35:03.066 | INFO | django_tab:set_username:147 - Django标签页已设置用户名: xiaji +2025-09-12 21:35:03.067 | INFO | __main__:on_tab_changed:123 - 状态栏更新为Django项目: statuspage, 目录: /home/xiaji +2025-09-12 21:35:03.824 | INFO | __main__:on_tab_changed:60 - 标签页切换到: 3 +2025-09-12 21:35:03.824 | INFO | gunicorn_tab:set_ssh_client:767 - Gunicorn标签页已设置SSH客户端 +2025-09-12 21:35:03.825 | INFO | __main__:on_tab_changed:158 - 构建的Django路径: /home/xiaji/webstatus/, 项目名: statuspage +2025-09-12 21:35:03.825 | INFO | gunicorn_tab:set_username:772 - Gunicorn标签页已设置用户名: xiaji +2025-09-12 21:35:03.825 | INFO | gunicorn_tab:set_project_info:778 - Gunicorn标签页已设置项目信息: statuspage, /home/xiaji/webstatus/ +2025-09-12 21:35:03.827 | INFO | gunicorn_tab:update_command_editor:805 - Gunicorn命令编辑器已更新项目名称: statuspage +2025-09-12 21:35:03.827 | INFO | __main__:on_tab_changed:165 - 状态栏更新为Gunicorn服务: gunicorn_statuspage, 目录: /home/xiaji/webstatus/ +2025-09-12 21:35:08.195 | INFO | gunicorn_tab:run:561 - 开始设置服务器时区为Asia/Shanghai +2025-09-12 21:35:08.271 | INFO | gunicorn_tab:run:572 - 开始重启服务器 +2025-09-12 21:35:08.319 | INFO | gunicorn_tab:run:576 - 时区设置成功,服务器正在重启 +2025-09-12 21:35:08.320 | INFO | gunicorn_tab:on_server_control_result:1157 - 服务器控制成功: 时区设置成功,服务器正在重启 +2025-09-12 21:35:08.474 | ERROR | remote_commands_tab:run:132 - 命令执行失败,退出状态: -1 +2025-09-12 21:35:08.474 | ERROR | remote_commands_tab:run:132 - 命令执行失败,退出状态: -1 diff --git a/gunicorn_tab.py b/gunicorn_tab.py index 4a2e919..8ebc645 100644 --- a/gunicorn_tab.py +++ b/gunicorn_tab.py @@ -1152,14 +1152,20 @@ class GunicornTab(QWidget): def on_server_control_result(self, success, message): """处理服务器控制结果""" - if success: - self.append_output(f"操作成功: {message}") - logger.info(f"服务器控制成功: {message}") - QMessageBox.information(self, "成功", message) - else: - self.append_output(f"操作失败: {message}") - logger.error(f"服务器控制失败: {message}") - QMessageBox.warning(self, "错误", f"服务器控制失败: {message}") + try: + if success: + self.append_output(f"操作成功: {message}") + logger.info(f"服务器控制成功: {message}") + QMessageBox.information(self, "成功", message) + else: + self.append_output(f"操作失败: {message}") + logger.error(f"服务器控制失败: {message}") + QMessageBox.warning(self, "错误", f"服务器控制失败: {message}") + except Exception as e: + error_msg = str(e) + self.append_output(f"处理服务器控制结果时发生异常: {error_msg}") + logger.error(f"处理服务器控制结果时发生异常: {error_msg}") + # 不显示错误对话框,只记录日志,避免程序退出 def run_gunicorn_command(self): """运行Gunicorn命令"""