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

docker-compose安装后图片验证码刷不出来 #33

Open
SCAMagic opened this issue Jul 4, 2022 · 2 comments
Open

docker-compose安装后图片验证码刷不出来 #33

SCAMagic opened this issue Jul 4, 2022 · 2 comments

Comments

@SCAMagic
Copy link

SCAMagic commented Jul 4, 2022

image
image
查看日志显示404,怎么办呢

@hzhj366
Copy link

hzhj366 commented Oct 17, 2022

解决了吗

@Lzy-wi
Copy link

Lzy-wi commented Mar 15, 2024

今天部署遇到同样的问题,附上解决方法:
设备是mac m2,更换了arm版的mysql导致安装后没有验证码无法登录,进到insight2容器内运行主程序run.py报以下错误pymysql.err.OperationalError: (1130, "172.18.0.4' is not allowed to connect to this MySQL server")
推测是无法连接到服务器,进到mysql数据库容器更改访问权限
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'crediteaseitsec' WITH GRANT OPTION;
FLUSH PRIVILEGES;
刷新提示无法连接到数据库,推测可能数据库没有初始化
web_mysql-1 | 2024-03-15T10:35:59.827702Z 81 [Note] Aborted connection 81 to db: 'insight2' user: 'root' host: '172.18.0.4' (Got an error reading communication packets)
查看源码部署文档把数据库初始化的init.sql丢进数据库容器然后执行初始化
mysql -u user -p crediteaseitsec -h localhost < /init.sql
问题处理完毕

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