一、出现的问题
今天登录dolphinScheduler的时候,一直卡在登录界面,小圈圈一直转,最后提示登录失败。
二、解决方法
我的问题是数据库服务启动失败
看看你的数据库服务是否启动
service mysqld status
如果不能启动,去看一下mysql日志
cat /var/log/mysqld.log
InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 90115203 and the end 90115072.
去搜了一下
删除/var/lib/mysql目录下的ib_logfile0和ib_logfile1重新启动就可以了
参考:https://www.huaweicloud.com/articles/3634d23fc9ee82f4f8cca3544f68e489.html
然后重启MySQL服务,重启小海豚即可登录
三、记录一下解决步骤
先启动小海豚,然后追踪日志
tail -f tail -f dolphinscheduler-api-server.log
#日志在你的安装目录下/log里面
......
[ERROR] 2021-08-17 10:40:31.290 com.alibaba.druid.pool.DruidDataSource:[2572] - create connection SQLException, url: jdbc:mysql://localhost:3306/dolphinscheduler?characterEncoding=UTF-8&allowMultiQueries=true, errorCode 0, state 08S01
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
......
报了一堆错,反反复复提示数据库连接出错
就看了一下MySQL的服务,没有启动,然后start了一把,失败。去查看MySQL日志。
cat /var/log/mysqld.log
InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 90115203 and the end 90115072.
搜索问题
删除/var/lib/mysql目录下的ib_logfile0和ib_logfile1重新启动。
参考:https://www.huaweicloud.com/articles/3634d23fc9ee82f4f8cca3544f68e489.html