Docker created rancher 2.5.8 failed to start, after power outage

I just had a power outage overnight and when my server rebooted, rancher failed to start

The logs was not useful:



time=“2021-05-20T15:53:22.757817767Z” level=info msg=“Logging containerd to /var/lib/rancher/k3s/agent/containerd/containerd.log”
time=“2021-05-20T15:53:22.757948163Z” level=info msg=“Running containerd -c /var/lib/rancher/k3s/agent/etc/containerd/config.toml -a /run/k3s/containerd/containerd.sock --state /run/k3s/containerd --root /var/lib/rancher/k3s/agent/containerd”
containerd: exit status 2
2021/05/20 15:53:23 [FATAL] k3s exited with: exit status 1

I check the container.log, it only contains some go trace but no real debug log

rancher was created in docker:

docker create --name=rancher --restart=unless-stopped --privileged -p 8080:80 -p 8443:443 -v /rancher/data:/var/lib/rancher -v /rancher/certs/cert.pem:/etc/rancher/ssl/cert.pem -v /rancher/certs/key.pem:/etc/rancher/ssl/key.pem -v /rancher/certs/ca.pem:/etc/rancher/ssl/cacerts.pem rancher/rancher:v2.5.8

How should I debug and fix this?

So, I fixed the issue

  1. stop and remove the rancher docker instance
  2. delete /k3s directory in /rancher/data
  3. recreate rancher docker instance