*** Starting uWSGI 2.0.21 (64bit) on [Sat Jul 22 00:16:37 2023] *** compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-44) on 21 July 2023 16:13:34 os: Linux-3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 nodename: VM-8-7-centos machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 2 current working directory: / detected binary path: /www/wwwroot/154.8.205.71/c2843d02b561ac15f07f4117c97425a0_venv/bin/uwsgi setgid() to 1000 setuid() to 1000 chdir() to /www/wwwroot/154.8.205.71 your processes number limit is 7908 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on 0.0.0.0:6359 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:46421 (port auto-assigned) fd 3 Python version: 3.9.7 (default, Jul 21 2023, 22:55:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Python main interpreter initialized at 0x17f23d0 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 166752 bytes (162 KB) for 2 cores *** Operational MODE: threaded *** unable to find "application" callable in file /www/wwwroot/154.8.205.71/weixin_stampingHub unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2931) spawned uWSGI worker 1 (pid: 2932, cores: 2) spawned uWSGI http 1 (pid: 2933)
时间: 2024-04-22 20:24:55 浏览: 123
uwsgi-2.0.21
根据你提供的日志信息,看起来uWSGI无法找到Django项目的可调用对象。这可能是由于以下原因之一造成的:
1. 可调用对象未正确配置:请确保`uwsgi.ini`文件中的`module`参数正确指向Django项目的可调用对象。例如,如果你的Django项目名称为`weixin_stampingHub`,将`module`参数设置为`weixin_stampingHub.wsgi:application`。
2. 可调用对象所在的文件路径错误:请检查`uwsgi.ini`文件中`module`参数指定的文件路径是否正确。确保路径是相对于项目根目录的,并且使用正确的模块和文件名。
3. 可调用对象的导入错误:可能由于导入错误而无法找到可调用对象。请确保在Django项目的入口模块(通常是`wsgi.py`文件)中正确导入了`application`对象。
请根据上述提示检查并修复相关配置问题,然后重新启动uWSGI服务器。如果问题仍然存在,请提供更多关于项目结构和配置文件的详细信息,以便我能够帮助你更好地解决问题。
阅读全文