|
|
楼主 |
发表于 2022-6-12 11:40:49
|
显示全部楼层
gnocchi-api open("/usr/lib64/uwsgi/python_plugin.so"): No such file o
[root@controller uwsgi]# gnocchi-api
) q& g# b6 d; T% Hopen("/usr/lib64/uwsgi/python_plugin.so"): No such file or directory [core/utils.c line 3724]' `4 D8 ^9 R; V I
!!! UNABLE to load uWSGI plugin: /usr/lib64/uwsgi/python_plugin.so: cannot open shared object file: No such file or directory !!!
: L8 b$ ]1 t, g, w/usr/sbin/uwsgi: unrecognized option '--wsgi'
+ t; u9 `) z3 o. F, ?1 M) Lgetopt_long() error+ V1 n* Z0 @" u7 L* x! s$ n
+ q% J2 M% U( |# u+ p8 E
因不太懂代码,只好做软连接解决问题:
$ m5 D/ Q n) M5 z% A: o& h做一个软连接:
6 b$ h! A* `% M1 B9 g" v- \% `ln -fs /usr/lib64/uwsgi/python3_plugin.so /usr/lib64/uwsgi/python_plugin.so
+ r9 D, |! Y, Q1 C2 Y( P# @
9 j( m. r C e' H8 D6 ^- F' z2 ]( M1 p, `' z
再次执行:, t2 P* F- a, M/ X, o2 I+ F4 M
[root@controller uwsgi]# gnocchi-api
- ~% ^3 y8 ^% @; x( ?+ y- l8 `6 T*** Starting uWSGI 2.0.18 (64bit) on [Sun Jun 12 11:48:28 2022] ***
" E& Q* h& H0 O! t. zcompiled with version: 8.3.1 20190507 (Red Hat 8.3.1-4) on 27 January 2020 10:45:006 t3 F: H3 h4 O1 g8 V$ z' _
os: Linux-4.18.0-383.el8.x86_64 #1 SMP Wed Apr 20 15:38:08 UTC 2022+ ~1 O! u" D5 G, d1 M
nodename: controller
; M; J6 O6 }9 _' y6 z1 Jmachine: x86_646 {! F; T8 N3 l# l2 I
clock source: unix9 W! g0 P) r: D" y
pcre jit disabled
# W8 O6 }& K+ x) Qdetected number of CPU cores: 8
* j+ B/ `8 ~- R# O# N" @, zcurrent working directory: /usr/lib64/uwsgi8 T% a1 q6 H+ \7 N0 ]5 Z7 k3 _
detected binary path: /usr/sbin/uwsgi% ~/ S7 t" I* _* Q, g
uWSGI running as root, you can use --uid/--gid/--chroot options
& `3 R& A B/ |$ ^# ~/ z' I) T*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** * \4 q' a! X1 ^% n3 F
chdir() to /
8 ^. v* h- J, i+ E- L* Jyour processes number limit is 63102
# v) @0 X3 {+ Z# Z6 T% hyour memory page size is 4096 bytes
7 }( W* V! o7 ~" J; fdetected max file descriptor number: 100000$ ?* K7 V( N0 T1 T7 `" l
lock engine: pthread robust mutexes
& c2 z6 i0 e' a I; A3 j. w1 K! J# ?2 Othunder lock: enabled2 Z. q8 [% x- R6 V) c2 E( P2 G
probably another instance of uWSGI is running on the same address (0.0.0.0:8041).$ _1 g% R8 x* G1 W
bind(): Address already in use [core/socket.c line 769]
. p% e- y4 N1 M- L7 b1 c8 x8 J6 ?% K; }2 f8 r' ]& w4 @* s- f2 J9 }
问题解决。
1 [# k0 `" L# H" m. H5 n- F+ q( _ |
|