欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 国际 > docker django uwsgi 报错记录

docker django uwsgi 报错记录

2024/12/27 15:40:39 来源:https://blog.csdn.net/weixin_47021806/article/details/144732602  浏览:    关键词: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 | -

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

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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com