*** Starting uWSGI 2.0.17.1 (64bit) on [Thu May 25 21:02:53 2023] *** compiled with version: 4.8.2 20140120 (Red Hat 4.8.2-16) on 25 May 2023 09:54:48 os: Linux-3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 nodename: vga-fmea-pbd machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 32 current working directory: /web/www/teamvision/uwsgi-2.0.17.1 detected binary path: /web/www/teamvision/uwsgi-2.0.17.1/uwsgi chdir() to /web/www/teamvision your processes number limit is 4096 your memory page size is 4096 bytes *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers *** detected max file descriptor number: 1024 VirtualHosting mode enabled. lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 0.0.0.0:8033 fd 6 Python version: 3.5.4 (default, May 25 2023, 15:10:10) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] Python main interpreter initialized at 0x16ca940 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 10 seconds mapped 2539800 bytes (2480 KB) for 24 cores *** Operational MODE: preforking *** added /usr/local/python3.5b/python3.5/site-packages to pythonpath. Traceback (most recent call last): File "./teamvision/web_wsgi.py", line 7, in <module> from django.core.wsgi import get_wsgi_application ImportError: No module named 'django' 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: 376163) spawned uWSGI worker 1 (pid: 376164, cores: 1) spawned uWSGI worker 2 (pid: 376165, cores: 1)
时间: 2024-02-19 11:02:01 浏览: 151
I'm sorry, but this does not seem to be a question related to GPT or AI. It appears to be a log output from a uWSGI server. If you have a specific question about uWSGI or server logs, I can try my best to help you with that.
相关问题
*** 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)
根据你提供的日志信息,看起来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服务器。如果问题仍然存在,请提供更多关于项目结构和配置文件的详细信息,以便我能够帮助你更好地解决问题。
raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17). unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode *** uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 7502)
这个错误是由于你使用的SQLite版本过低导致的。Django要求使用3.9.0或更高版本的SQLite。你需要升级你的SQLite版本才能解决这个问题。你可以通过以下步骤来升级SQLite:
1. 检查你的系统中是否已安装SQLite。如果已安装,请确定它的版本是否低于3.9.0。你可以使用以下命令来检查版本:
```
sqlite3 --version
```
2. 如果已安装SQLite,但版本过低,你可以尝试更新它。具体更新方法取决于你使用的操作系统和包管理器。例如,如果你使用的是Ubuntu系统,你可以使用以下命令来更新SQLite:
```
sudo apt-get update
sudo apt-get upgrade sqlite3
```
如果你使用的是其他操作系统,请查阅对应的文档来了解如何更新SQLite。
3. 如果系统中没有安装SQLite或者更新后仍然出现问题,你可以考虑手动下载并安装最新版本的SQLite。你可以从SQLite官方网站下载最新版本的预编译二进制文件,并按照官方文档中的指导进行安装。
完成以上步骤后,重新运行你的应用程序,应该就能够解决这个错误了。如果问题仍然存在,请提供更多详细信息,以便我能够给出更精确的建议。
阅读全文