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 | -

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

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

相关推荐
三金C_C1 小时前
docker 部署 gin
docker·容器·gin
家庭云计算专家2 小时前
Portainer安装指南:多节点监控的docker管理面板-家庭云计算专家
docker
长勺2 小时前
docker常见考点
docker·容器
迢迢星万里灬3 小时前
Java求职者面试指南:DevOps技术栈深度解析
java·ci/cd·docker·kubernetes·jenkins·devops
喝养乐多长不高3 小时前
深入探讨redis:万字讲解集群
java·数据库·redis·docker·集群·集群扩容·数据分片算法
玩电脑的辣条哥5 小时前
如何用docker部署ELK?
elk·docker·容器
Chuncheng's blog6 小时前
CentOS 7 安装docker缺少slirp4netnsy依赖解决方案
运维·docker·容器
我的golang之路果然有问题9 小时前
GO+RabbitMQ+Gin+Gorm+docker 部署 demo
笔记·后端·学习·docker·golang·rabbitmq·gin
David爱编程9 小时前
从 0 到 1 快速掌握 Docker 基本操作
后端·docker·容器
手心里的白日梦10 小时前
Docker Compose(容器编排)
docker