|
|
楼主 |
发表于 2022-6-12 11:40:49
|
显示全部楼层
gnocchi-api open("/usr/lib64/uwsgi/python_plugin.so"): No such file o
[root@controller uwsgi]# gnocchi-api
$ T/ D" t! j) P% e1 Q& w2 ropen("/usr/lib64/uwsgi/python_plugin.so"): No such file or directory [core/utils.c line 3724]
4 A a" B% z3 ^' s& U, c!!! UNABLE to load uWSGI plugin: /usr/lib64/uwsgi/python_plugin.so: cannot open shared object file: No such file or directory !!!; X& h0 Z' Q3 Z% U8 s# z# y
/usr/sbin/uwsgi: unrecognized option '--wsgi') r% Q, Z' l( I3 G! \
getopt_long() error
6 m" y) ]' J' b5 e' m0 c7 ?( C" v9 M( a) I) Z6 b
因不太懂代码,只好做软连接解决问题:2 n. C0 S4 Z+ Z+ Z2 L; D3 ]
做一个软连接:* }' u- M. N! v/ L* O
ln -fs /usr/lib64/uwsgi/python3_plugin.so /usr/lib64/uwsgi/python_plugin.so
0 }8 g4 }$ F* S8 N" B6 ?. n' h# k7 e9 u- b( M' K
4 ]# U; |$ C* y% P3 D
再次执行:8 Q8 l: v$ H. T, d0 ^) t2 }6 Q" O
[root@controller uwsgi]# gnocchi-api
( f5 B% e8 F/ G3 h# k6 x*** Starting uWSGI 2.0.18 (64bit) on [Sun Jun 12 11:48:28 2022] ***' j( q: H6 ^8 m
compiled with version: 8.3.1 20190507 (Red Hat 8.3.1-4) on 27 January 2020 10:45:00
( Z4 B7 O% y5 i1 B# p jos: Linux-4.18.0-383.el8.x86_64 #1 SMP Wed Apr 20 15:38:08 UTC 2022
- p9 e- T j+ U/ Znodename: controller, O1 |8 ?0 t' c: e# I% s4 O
machine: x86_64
8 V2 _* Q/ @9 S# _clock source: unix
+ W. w2 w" J) C8 tpcre jit disabled# T b- N v; w0 J) d( g/ c) Z
detected number of CPU cores: 8' s9 y% A6 y2 h
current working directory: /usr/lib64/uwsgi
) k7 n* J) X& ldetected binary path: /usr/sbin/uwsgi
. g0 Q. E- p' }& i% yuWSGI running as root, you can use --uid/--gid/--chroot options/ m7 d1 [7 a% K* j0 y$ A
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
5 u; h) ?7 a2 R$ b3 V9 x8 G. O* N) \) ?chdir() to /4 \( ?( I6 n7 m* S
your processes number limit is 63102* f/ Y3 }4 ^$ O5 t& f8 P! L% I+ C9 V% g
your memory page size is 4096 bytes( K( e, l! F3 X% q0 ^ F2 a
detected max file descriptor number: 1000007 Y$ A4 z# w9 `% L" ` N1 ?; W
lock engine: pthread robust mutexes/ b5 n: j8 b& o; k d% y$ _
thunder lock: enabled
. S9 V4 N0 `1 H( N, _; f9 f1 g7 ?probably another instance of uWSGI is running on the same address (0.0.0.0:8041).9 O" V4 L2 V0 k, a3 S, Y% l( V
bind(): Address already in use [core/socket.c line 769]- c9 @3 H$ `. h7 d8 U8 o) j2 T
' e t, R4 j, J$ L6 N
问题解决。/ i2 W3 a( T5 S
|
|