Error reporting scenario: when ant design vue front-end logs in, the verification code entered is correct, but the verification code is always wrong, and the login fails to report an error message (Error in execution; nested exception)

error message

Next, I will post my error message and see if your error message is the same as mine?

报错信息 Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it’s currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

Error scene

The problem I'm having is at ant design vue 前端登录的时候,验证码我输入的是对的,输入完账号、密码和验证码时,系统一直提示我验证码错误,后端报错信息如上方所示.

problem analysis

It’s Monday again in a hurry. As soon as the morning arrives, there will be a headache bug. When logging in to the system, redis will prompt an error message on the backend as shown in the picture above (I won’t repeat it here).
重点来了
Let me talk about it here, what caused the error I reported, when I finished entering the verification code when I logged in, the verification code was entered correctly, but the verification code was wrong in the previous section

The solution is as follows

1. Restart redis

The Linux system used in our project can restart redis directly on the pagoda panel. If some bloggers want to restart redis by command line.
重启redis指令

First close
redis-cli shutdown
and start the specified IP and port: redis service
redis-cli -h xxxx -p 6380
start redis
redis-cli

2. Check whether the redis configuration in yml is correct

I use java on the backend here, so I need to check whether the redis in the yml is configured correctly, whether there are extra spaces, etc.

3. Check the connection between the network and redis

Check whether the network connection on the server is normal, ping the ip address to see if it can be connected, etc.

4. Check disk space

这一步很重要
I solved it through this step. At that time ,
如果你的服务器使用的宝塔面板,那就登录宝塔面板,宝塔页面的首页,如下图所示,看下红色方框里面的内存是否满了
insert image description here
my place reported an error like the one above because it was necessary.磁盘空间显示的是100%确保 Redis 运行时有足够的磁盘空间来保存 RDB 快照。如果磁盘空间不足,请清理磁盘或增加磁盘容量。

Solution:
Log in to the liunx system and execute the command du -sh * . The meaning of this command is 查看磁盘中各个文件所占的磁盘大小because we want to check it 具体是哪个文件占用了这么大的空间, as shown in the figure below:

左侧显示的是:文件大小
右侧显示的是:文件名称

If there are too large files in your file, you can cd into that directory and execute the du -sh * command to check which file occupies so much disk space

Solution: 可以进行文件转移,删除无用的文件等方式,来扩大磁盘空间
insert image description here

I hope this article can solve the problems you have encountered. Later, this blogger will share more about some problems encountered in actual combat projects and cutting-edge technologies. If you have other questions, you can private message this blogger. Welcome to bother!

Guess you like

Origin blog.csdn.net/xiaohua616/article/details/131928150