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版的有bug,默认账号密码无法登录 #48

Open
peaceanddemocracy opened this issue Mar 11, 2024 · 7 comments
Open

docker版的有bug,默认账号密码无法登录 #48

peaceanddemocracy opened this issue Mar 11, 2024 · 7 comments

Comments

@peaceanddemocracy
Copy link

默认的账号密码提示错误无法登录,docker版

#44

@Safe3
Copy link
Owner

Safe3 commented Mar 12, 2024

确保数据库服务启动起来了

@peaceanddemocracy
Copy link
Author

/bin/sh -c /run.sh
没有报错,服务正常运行

@joelin818818
Copy link

/bin/sh -c /run.sh 没有报错,服务正常运行

默认用户名:admin,密码:wafadmin,但是提示还要输入动态口令,随便输个123456就可以登入了。

@peaceanddemocracy
Copy link
Author

/bin/sh -c /run.sh 没有报错,服务正常运行

不是这个问题,是admin和wafadmin账号密码不对,怀疑docker pull版本的有问题
image

@Safe3
Copy link
Owner

Safe3 commented Mar 26, 2024

docker版可以通过docker logs wafdb查看mysql数据库启动错误日志,通常是虚拟机的cpu不支持x86-64-v2指令集造成的,可以设置下虚拟机的cpu支持设置

@MiderWong
Copy link

看看数据库配置是否异常,如果数据库连不上也会报用户名或密码错误,如果想要使用自定义MySQL信息,请同时修改两个地方的配置:
1、文件/uuwaf/web/conf/conf.yamldsn的值;
2、文件/uuwaf/conf/uuwaf.conf中块init_by_lua_blockdb的值;
3、重启uuwaf.

@21307369
Copy link

连接上数据库

TRUNCATE TABLE waf_users;
INSERT INTO `waf_users` VALUES (1, 'admin', '$2a$10$novLr.VMetYWbdwb2701Ie2HmfpW8TmsXtQ5hLPYJoaPXbtSfGnSC', 0, '2024-01-26 11:56:14', 0, 'otpauth://totp/uuWAF:admin?algorithm=SHA256&digits=6&issuer=uuWAF&period=30&secret=EXKFN3EFNMBUDZVRPR6SB6EWYNIFXJW2', 1);

默认用户名:admin,密码:wafadmin

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

5 participants