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

自己打包ubuntu.docker后运行登录提示404 #28

Open
bjgetite opened this issue Aug 30, 2023 · 2 comments
Open

自己打包ubuntu.docker后运行登录提示404 #28

bjgetite opened this issue Aug 30, 2023 · 2 comments

Comments

@bjgetite
Copy link

根据ubuntu.dockerfile打包得镜像,运行后查看日志

  • Starting MariaDB database server mysqld [ OK ]
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    Starting redis-server: redis-server.

进容器验证mysql和redis密码都正常,通过页面输入用户名密码后提示404,post提交http://127.0.0.1:11000/api/login这个地址404,有可能是后端服务没启动?

进入容器手动执行了
nohup python3 worker.py > log.log 2>&1 &
nohup gunicorn -c gunicorn.conf main:app -k uvicorn.workers.UvicornWorker > gunicorn.log 2>&1 &
还是不行。
gunicorn.log提示
WARNING: configuration file should have a valid Python extension.
log.log无报错
14:07:33 Worker rq:worker:d15b52c542b640e7bb908c459e20a1c1 started with PID 417, version 1.15.1 14:07:33 Worker rq:worker:901f67bacdab4b5b8872ce8f4024b9f7 started with PID 416, version 1.15.1 14:07:33 Subscribing to channel rq:pubsub:d15b52c542b640e7bb908c459e20a1c1 14:07:33 Subscribing to channel rq:pubsub:901f67bacdab4b5b8872ce8f4024b9f7 14:07:33 *** Listening on high... 14:07:33 *** Listening on high...

@taomujian
Copy link
Owner

后端没啥问题,大概率nginx和gunicorn没对上

@taomujian
Copy link
Owner

重新试下从dockerhub中获取镜像呢

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

2 participants