Skip to content

Conversation

@zwtop
Copy link
Collaborator

@zwtop zwtop commented Jan 21, 2025

fix: task unable to start when task dir exists, remove the task dir before start task
orphans task dir exists due to unknown reason

[root@everoute-controller-cm3fnbk38wuwr0958z5tbnyz9-192-168-70-71 13:33:22 ~]$ ctr -n vpc t start proxy
WARN[0000] DEPRECATION: The `containerd.io/restart.logpath` label is deprecated since containerd v1.5 and removed in containerd v2.0. Use `containerd.io/restart.loguri` instead.
ctr: failed to start shim: mkdir /run/containerd/io.containerd.runtime.v2.task/vpc/proxy: file exists: unknown
[root@everoute-controller-cm3fnbk38wuwr0958z5tbnyz9-192-168-70-71 13:33:24 ~]$
[root@everoute-controller-cm3fnbk38wuwr0958z5tbnyz9-192-168-70-71 13:33:25 ~]$ rm -rf /run/containerd/io.containerd.runtime.v2.task/vpc/proxy
[root@everoute-controller-cm3fnbk38wuwr0958z5tbnyz9-192-168-70-71 13:33:29 ~]$
[root@everoute-controller-cm3fnbk38wuwr0958z5tbnyz9-192-168-70-71 13:33:29 ~]$ ctr -n vpc t start proxy
WARN[0000] DEPRECATION: The `containerd.io/restart.logpath` label is deprecated since containerd v1.5 and removed in containerd v2.0. Use `containerd.io/restart.loguri` instead.
2025-01-21 05:33:32.366 INFO    log/log.go:34   log opts        {"level": "info", "development": true}
2025-01-21 05:33:32.369 INFO    api-proxy-server        apiserver/api_server.go:82      Limit the number of requests to 200 per 1s

@zwtop zwtop merged commit a0731e6 into main Jan 21, 2025
4 checks passed
@zwtop zwtop deleted the patch_orphans_task branch January 21, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants