containerd / containerd/nerdctl

[LEGACY] [CI]: ipfs /root/.ipfs/api not available

Open
#4,118 0 comments 0 reactions 0 assignees View on GitHub
area/ci bug
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

Seen on EL8 - which is notoriously slower than other environment.

Looks like ipfs could be very slow to start - or timeouting somehow.

`/root/.ipfs/api` is not there when we need it.

### Steps to reproduce the issue

1.
2.
3.

### Describe the results you received and expected

```
issues_linux_test.go:156:

+------------------------------------------------------------------------------------------------------------+
| ➡️ | ⚙️ /usr/local/bin/nerdctl image push ipfs://ghcr.io/stargz-containers/alpine:3.13-org |
+------------------------------------------------------------------------------------------------------------+
| | 🚫 command returned a non-zero exit code |
+------------------------------------------------------------------------------------------------------------+
| | ⚠️ 1 |
+------------------------------------------------------------------------------------------------------------+
| | 🟠 time="2025-04-17T07:15:41Z" level=info msg="pushing image \"ghcr.io/stargz-containers/alpine: |
| | 3.13-org\" to IPFS" |
| | time="2025-04-17T07:15:41Z" level=info msg="ensuring image contents" |
| | time="2025-04-17T07:15:41Z" level=warning msg="failed to ensure the existence of image \"ghcr.io |
| | /stargz-containers/alpine:3.13-org\"" error="open /root/.ipfs/api: no such file or directory" |
| | time="2025-04-17T07:15:41Z" level=warning msg="ipfs push failed" error="open /root/.ipfs/api: no |
| | such file or directory" |
| | time="2025-04-17T07:15:41Z" level=fatal msg="open /root/.ipfs/api: no such file or directory" |
+------------------------------------------------------------------------------------------------------------+
| 🌱 | HOME=/root |
| | PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin |
| | :/bin |
| | NERDCTL_TOML=/tmp/TestIssue3425with_ipfs840600782/001/nerdctl.toml |
| | DOCKER_CONFIG=/tmp/TestIssue3425with_ipfs840600782/001 |
| | IPFS_PATH=/root/.ipfs |
+------------------------------------------------------------------------------------------------------------+
| ⏰ | <1s (limit: 3m0s) |
+------------------------------------------------------------------------------------------------------------+
| 📁 | /tmp/TestIssue3425with_ipfs840600782/001 |
+------------------------------------------------------------------------------------------------------------+

```

### What version of nerdctl are you using?

main

### Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

### Host information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.