最新消息:20210917 已从crifan.com换到crifan.org

[已解决]运行uwsgi出错:UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file No such file or directory

uWSGI crifan 4539浏览 0评论

折腾:

[记录]尝试去在CentOS中折腾uwsgi

出错:

(SIPEvents)  SIPEvents uwsgi -s /tmp/uwsgi.sock –manage-script-name –mount /=app:hello –virtualenv /root/Envs/SIPEvents –plugin python
open(“./python_plugin.so”): No such file or directory [core/utils.c line 3684]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
*** Starting uWSGI 2.0.13.1 (64bit) on [Thu Aug 18 15:47:03 2016] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-17) on 17 August 2016 17:19:10
os: Linux-3.10.101-1.el6.elrepo.x86_64 #1 SMP Wed Mar 16 20:55:27 EDT 2016
nodename: AY140128113754462e2eZ
machine: x86_64
clock source: unix
detected number of CPU cores: 2
current working directory: /usr/share/nginx/html/SIPEvents
detected binary path: /root/Envs/SIPEvents/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use –uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the –uid flag) *** 
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 31452
your memory page size is 4096 bytes
detected max file descriptor number: 65535
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with –thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3
Python version: 2.7.12 (default, Aug 15 2016, 11:09:04)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
Set PythonHome to /root/Envs/SIPEvents
*** Python threads support is disabled. You can enable it with –enable-threads ***
Python main interpreter initialized at 0x222ce00
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72768 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
mounting app:hello on /
WSGI app 0 (mountpoint=’/’) ready in 0 seconds on interpreter 0x222ce00 pid: 18948 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 18948, cores: 1)

python – pip-installed uWSGI ./python_plugin.so error – Stack Overflow

去掉:

uwsgi -s /tmp/uwsgi.sock --manage-script-name --mount /=app:hello --virtualenv /root/Envs/SIPEvents --plugin python

变成:

uwsgi -s /tmp/uwsgi.sock --manage-script-name --mount /=app:hello --virtualenv /root/Envs/SIPEvents

好像就可以了:

(SIPEvents)  SIPEvents uwsgi -s /tmp/uwsgi.sock –manage-script-name –mount /=app:hello –virtualenv /root/Envs/SIPEvents
*** Starting uWSGI 2.0.13.1 (64bit) on [Thu Aug 18 15:51:41 2016] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-17) on 17 August 2016 17:19:10
os: Linux-3.10.101-1.el6.elrepo.x86_64 #1 SMP Wed Mar 16 20:55:27 EDT 2016
nodename: AY140128113754462e2eZ
machine: x86_64
clock source: unix
detected number of CPU cores: 2
current working directory: /usr/share/nginx/html/SIPEvents
detected binary path: /root/Envs/SIPEvents/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use –uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the –uid flag) *** 
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 31452
your memory page size is 4096 bytes
detected max file descriptor number: 65535
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with –thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3
Python version: 2.7.12 (default, Aug 15 2016, 11:09:04)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
Set PythonHome to /root/Envs/SIPEvents
*** Python threads support is disabled. You can enable it with –enable-threads ***
Python main interpreter initialized at 0x170cd10
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72768 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
mounting app:hello on /
WSGI app 0 (mountpoint=’/’) ready in 0 seconds on interpreter 0x170cd10 pid: 18987 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 18987, cores: 1)

转载请注明:在路上 » [已解决]运行uwsgi出错:UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file No such file or directory

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
99 queries in 0.184 seconds, using 23.14MB memory