docker django uwsgi 报错记录

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

python 复制代码
[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 | -

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

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

相关推荐
IT闫27 分钟前
【Docker】——在Docker工具上安装创建容器并完成项目部署
运维·docker·容器
活跃的煤矿打工人1 小时前
【星海出品】K8S调度器leader
云原生·容器·kubernetes
背书包的儿郎1 小时前
docker--什么是docker
运维·docker·容器
别致的影分身1 小时前
Docker Container(容器)
运维·docker·容器
万物更新_2 小时前
Docker
docker
noravinsc6 小时前
django admin AttributeError: ‘UserResorce‘ object has no attribute ‘ID‘
数据库·django·sqlite
二猛子10 小时前
Linux(Centos版本)中安装Docker
linux·docker·centos
声声codeGrandMaster11 小时前
django之优化分页功能(利用参数共存及封装来实现)
数据库·后端·python·django
记得开心一点嘛11 小时前
Docker compose 部署微服务项目(从0-1出发纯享版无废话)
docker·容器·eureka
猿小猴子12 小时前
在 Ubuntu24.04 LTS 上 Docker 部署英文版 n8n 和 部署中文版 n8n-i18n-chinese
docker·容器·n8n