Open SecLoop opened 2 years ago
@ManassehZhou @AnYeMoWang @TuuuNya
解决了吗?
这个问题似乎是 uwsgi 的问题。
root@050bd111d388:/home/docker/Github-Monitor# /usr/local/bin/uwsgi --ini /home/docker/Github-Monitor/docker/uwsgi.ini
[uWSGI] getting INI configuration from /home/docker/Github-Monitor/docker/uwsgi.ini
*** Starting uWSGI 2.0.17.1 (64bit) on [Thu Sep 5 06:35:35 2024] ***
compiled with version: 7.5.0 on 29 August 2024 02:34:02
os: Linux-6.6.26-linuxkit #1 SMP Sat Apr 27 04:13:19 UTC 2024
nodename: 050bd111d388
machine: aarch64
clock source: unix
detected number of CPU cores: 12
current working directory: /home/docker/Github-Monitor
detected binary path: /usr/local/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) ***
chdir() to /home/docker/Github-Monitor/server/
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
error removing unix socket, unlink(): Operation not supported [core/socket.c line 198]
bind(): Operation not supported [core/socket.c line 230]
我用临时方案解决了,弃用了 uwsgi,直接 runserver 启动了 django docker 文件夹下的nginx-app.conf
location /api/ {
uwsgi_pass django;
include /home/docker/Github-Monitor/docker/uwsgi_params;
}
改为
location /api/ {
proxy_pass http://127.0.0.1:8000;
}
supervisor-app.conf的
[program:app-uwsgi]
command = /usr/local/bin/uwsgi --ini /home/docker/Github-Monitor/docker/uwsgi.ini
改为
[program:app-uwsgi]
directory = /home/docker/Github-Monitor/server/
command = python3 manage.py runserver
先这样解决了
docker version
Docker Compose 版本
启动命令
错误
docker log 日志