当前位置: 首页 > article >正文

docker django uwsgi 报错记录

这个配置中是能够正常进行网页访问的,能够查看网页

[uwsgi]
chdir = /home/luichun/lc/Pyfile/PyCursor/app
module= app.wsgi:application
plugin-dir      = /usr/lib/uwsgi/plugins
plugins = python311
env = TZ=Asia/Shanghai
socket-timeout = 60     
websocket-max-size = 1024  
lazy-apps = true
listen = 1024    
http=:10006 
socket=:8006   
master = true  
workers = 4
max-requests = 5000  
threads = 2          
enable-threads = true 
uid = www-data
gid = www-data
vacuum = true        
harakiri = 30         
post-buffering = 4096  
die-on-term = true  
chmod-socket    = 777
buffer-size = 32768   
logto = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.log
pidfile = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.pid
stats = /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.status
log-date = true    
log-format = %(ftime) | %(msg)
loglevel = debug
log-5xx = true
log-4xx = true
static-map = /static=/home/luichun/lc/Pyfile/PyCursor/app/staticfiles

日志显示

Thu Dec 26 07:05:58 2024 - *** Starting uWSGI 2.0.28 (64bit) on [Thu Dec 26 07:05:58 2024] ***
Thu Dec 26 07:05:58 2024 - compiled with version: 12.2.0 on 25 December 2024 22:16:18
Thu Dec 26 07:05:58 2024 - os: Linux-5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024
Thu Dec 26 07:05:58 2024 - nodename: ca9dc18ce314
Thu Dec 26 07:05:58 2024 - machine: x86_64
Thu Dec 26 07:05:58 2024 - clock source: unix
Thu Dec 26 07:05:58 2024 - pcre jit disabled
Thu Dec 26 07:05:58 2024 - detected number of CPU cores: 16
Thu Dec 26 07:05:58 2024 - current working directory: /home/luichun/lc/Pyfile/PyCursor/app
Thu Dec 26 07:05:58 2024 - writing pidfile to /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.pid
Thu Dec 26 07:05:58 2024 - detected binary path: /usr/local/bin/uwsgi
Thu Dec 26 07:05:58 2024 - setgid() to 33
Thu Dec 26 07:05:58 2024 - setuid() to 33
Thu Dec 26 07:05:58 2024 - chdir() to /home/luichun/lc/Pyfile/PyCursor/app
Thu Dec 26 07:05:58 2024 - your memory page size is 4096 bytes
Thu Dec 26 07:05:58 2024 - detected max file descriptor number: 1048576
Thu Dec 26 07:05:58 2024 - building mime-types dictionary from file /etc/mime.types...Thu Dec 26 07:05:58 2024 - 1545 entry found
Thu Dec 26 07:05:58 2024 - lock engine: pthread robust mutexes
Thu Dec 26 07:05:58 2024 - thunder lock: disabled (you can enable it with --thunder-lock)
Thu Dec 26 07:05:58 2024 - uWSGI http bound on :10006      # 开发环境:直接访问Django fd 3
Thu Dec 26 07:05:58 2024 - uwsgi socket 0 bound to TCP address :8006    # 生产环境:通过Nginx访问 fd 6
Thu Dec 26 07:05:58 2024 - Python version: 3.12.3 (main, Apr 24 2024, 11:17:35) [GCC 12.2.0]
Thu Dec 26 07:05:58 2024 - Python main interpreter initialized at 0x7fac5ac3a668
Thu Dec 26 07:05:58 2024 - python threads support enabled
Thu Dec 26 07:05:58 2024 - your server socket listen backlog is limited to 1024 connections
Thu Dec 26 07:05:58 2024 - your mercy for graceful operations on workers is 60 seconds
Thu Dec 26 07:05:58 2024 - mapped 785520 bytes (767 KB) for 8 cores
Thu Dec 26 07:05:58 2024 - *** Operational MODE: preforking+threaded ***
Thu Dec 26 07:05:58 2024 - *** uWSGI is running in multiple interpreter mode ***
Thu Dec 26 07:05:58 2024 - spawned uWSGI master process (pid: 1)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 1 (pid: 7, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 2 (pid: 8, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 3 (pid: 9, cores: 2)
Thu Dec 26 07:05:58 2024 - spawned uWSGI worker 4 (pid: 10, cores: 2)
Thu Dec 26 07:05:58 2024 - *** Stats server enabled on /home/luichun/lc/Logs/Uwsgi/webcursor/uwsgi.status fd: 18 ***
Thu Dec 26 07:05:58 2024 - spawned uWSGI http 1 (pid: 11)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 7 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 10 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 8 (default app)
Wed Dec 25 17:06:00 2024 - WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x7fac5ac3a668 pid: 9 (default app)
25/Dec/2024:17:06:07 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -
25/Dec/2024:17:06:09 -0600 | -

很奇怪,我访问的页面没有日志进行记录

从这里可以确定,是出问题了


http://www.kler.cn/a/459865.html

相关文章:

  • Docker--Docker Container(容器) 之 操作实例
  • springboot525基于MVC框架自习室管理和预约系统设计与实现(论文+源码)_kaic
  • 利用多GPU,推理transformer模型,避免显存溢出
  • 招银网路Java后端一面,难度有点大!
  • C# 设计模式(结构型模式):代理模式
  • 【Vim Masterclass 笔记01】Section 1:Course Overview + Section 2:Vim Quickstart
  • [openGauss 学废系列]-熟悉openGauss体系结构-权限
  • Mono里运行C#脚本5—mono_file_map_open
  • 计算机专业硕士有哪些研究方向
  • 复杂的QVariant写入文件以及从文件中读入复原
  • PCL点云库入门——PCL库点云滤波算法之体素滤波(VoxelGrid)
  • Unity学习笔记(四)如何实现角色攻击、组合攻击
  • Jenkins使用记录
  • FPGA多路MIPI转FPD-Link视频缩放拼接显示,基于IMX327+FPD953架构,提供2套工程源码和技术支持
  • 使用 Scrapy 抓取网页数据
  • WebRTC:实现浏览器与移动应用的实时通信
  • 【Unity】 HTFramework框架(五十七)通过Tag、Layer批量搜索物体
  • Perl语言的软件工程
  • 自动化办公-将 Excel 的 Sheet 页拆分成单独的 Excel 文件
  • chatgpt model spec 2024
  • ubuntu20.04 调试bcache源码
  • 【C++】BC89 包含数字9的数
  • Docker搭建MySQL
  • C++ 设计模式:命令模式(Command Pattern)
  • Python 网络爬虫 全面解析
  • 基于Spring Boot的宠物领养系统的设计与实现(代码+数据库+LW)