Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 docker部署后服务报错 #198

Closed
zoverdoser opened this issue May 15, 2024 · 16 comments
Closed

V2 docker部署后服务报错 #198

zoverdoser opened this issue May 15, 2024 · 16 comments

Comments

@zoverdoser
Copy link

music-tag-web | 2024-05-15 10:28:35,610 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
music-tag-web | 2024-05-15 10:28:35,688 INFO RPC interface 'supervisor' initialized
music-tag-web | 2024-05-15 10:28:35,693 CRIT Server 'unix_http_server' running without any HTTP authentication checking
music-tag-web | 2024-05-15 10:28:35,717 INFO supervisord started with pid 1
music-tag-web | 2024-05-15 10:28:36,729 INFO spawned: 'xiaoai' with pid 7
music-tag-web | 2024-05-15 10:28:36,738 INFO spawned: 'beat' with pid 8
music-tag-web | 2024-05-15 10:28:36,752 INFO spawned: 'worker' with pid 9
music-tag-web | 2024-05-15 10:28:36,822 INFO spawned: 'redis' with pid 10
music-tag-web | 2024-05-15 10:28:36,857 INFO spawned: 'nginx' with pid 11
music-tag-web | 2024-05-15 10:28:36,880 INFO spawned: 'gunicorn' with pid 12
music-tag-web | 2024-05-15 10:28:37,789 INFO success: xiaoai entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:28:37,793 INFO success: beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:28:37,796 INFO success: worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:28:37,802 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:28:37,805 INFO exited: redis (exit status 0; expected)
music-tag-web | 2024-05-15 10:28:38,818 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:28:38,821 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:30:02,308 INFO exited: beat (exit status 1; not expected)
music-tag-web | 2024-05-15 10:30:02,365 INFO spawned: 'beat' with pid 28
music-tag-web | 2024-05-15 10:30:03,449 INFO success: beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:30:13,291 INFO exited: gunicorn (exit status 1; not expected)
music-tag-web | 2024-05-15 10:30:15,911 INFO spawned: 'gunicorn' with pid 33
music-tag-web | 2024-05-15 10:30:17,204 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
music-tag-web | 2024-05-15 10:31:56,938 INFO exited: beat (exit status 1; not expected)
music-tag-web | 2024-05-15 10:31:57,995 INFO spawned: 'beat' with pid 37

@xhongc
Copy link
Owner

xhongc commented May 15, 2024

是不是内存分配不够啊

@zoverdoser
Copy link
Author

没限制内存,刚才试了最少保留512MB内存也报这个错误

@xhongc
Copy link
Owner

xhongc commented May 22, 2024

更多的内存试试,v2 要占用 600 多

@zoverdoser
Copy link
Author

image

改成最少800M内存,还是报错

@xhongc
Copy link
Owner

xhongc commented May 22, 2024 via email

@zoverdoser
Copy link
Author

部署命令不会有错误吧 都是图形化界面操作的

@xhongc
Copy link
Owner

xhongc commented May 22, 2024

V2 是 8002 端口

@zoverdoser
Copy link
Author

哦 刚才弄成V1的部署了,V1 V2都不行

@xhongc
Copy link
Owner

xhongc commented May 22, 2024

也有可能启动慢,性能较低的情况

@jyyyeung
Copy link

@zoverdoser 你成功了没?我也是docker部署 虽然log没报错 但是去网站显示 This site can’t be reached。用的8002,换回8001就能显示,但是【收藏】就一直 loading

@zoverdoser
Copy link
Author

@jyyyeung 没成功,容器启动完一访问页面日志就报错“gunicorn (exit status 1; not expected)”,页面是nginx的“An error occurred”报错

@xhongc
Copy link
Owner

xhongc commented May 27, 2024

This site can’t be reached

可能是浏览器问题,或者代理问题

@xhongc
Copy link
Owner

xhongc commented May 27, 2024

@jyyyeung 没成功,容器启动完一访问页面日志就报错“gunicorn (exit status 1; not expected)”,页面是nginx的“An error occurred”报错

不应该啊,你的部署命令是什么呢

@zoverdoser
Copy link
Author

不应该啊,你的部署命令是什么呢

version: '3'

services:
music-tag:
image: xhongc/music_tag_web:latest
container_name: music-tag-web
ports:
- "5710:8002"
volumes:
- /shared/music:/app/media:rw
restart: unless-stopped

@xhongc
Copy link
Owner

xhongc commented May 28, 2024

不应该啊,你的部署命令是什么呢

version: '3'

services: music-tag: image: xhongc/music_tag_web:latest container_name: music-tag-web ports: - "5710:8002" volumes: - /shared/music:/app/media:rw restart: unless-stopped

app/data 没有挂载

@zoverdoser
Copy link
Author

zoverdoser commented May 28, 2024

app/data 没有挂载

对我去掉了,app/data 必须要挂载么?不挂载不能用容器里的目录么?

挂载上app/data 之后可以正常启动了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants