question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ping stopped working with Debian base on Podman

See original GitHub issue

Is it a duplicate question? No

Describe the bug Monitoring using Ping stopped working with error spawn EPERM after pulling latest Docker image 1.6 Public domains like google.com or IP addresses didn’t work either. Reverting back to the Alpine base with uptime-kuma:alpine fixed the issue. I’m also using HTTP and TCP monitoring and they work as expected.

To Reproduce

services:
  kuma:
    image: louislam/uptime-kuma
    container_name: kuma
    volumes:
      - /containers/uptime-kuma:/app/data:Z

Expected behavior Monitoring using ping should resolve correctly.

Info

  • Uptime Kuma Version: 1.6 from louislam/uptime-kuma:latest
  • Using Docker?: Podman 3.3
  • OS: Fedora 34 (Server Edition) x86_64
  • Browser: Firefox 92

Screenshots image

Error Log

Monitor #11 ' Internet': Failing: spawn EPERM | Type: ping
Monitor #11 ' Internet': Failing: spawn EPERM | Type: ping
Monitor #11 ' Internet': Failing: spawn EPERM | Type: ping

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Eskandercommented, Sep 10, 2021

Aha my bad! I’m actually using rootful Podman as a docker replacement with podman-docker, I should’ve mentioned it from the start. It probably comes down to differences in default capabilities. I edited my original post for whoever ends up in the same situation.

1reaction
Eskandercommented, Sep 10, 2021

Can confirm! the following fixed the issue:

services:
  kuma:
    image: louislam/uptime-kuma
    container_name: kuma
    volumes:
      - /containers/uptime-kuma:/app/data:Z
    cap_add:
      - NET_RAW

I can submit a PR to add it to documentation if required. I’m still curious about why it worked it Alpine though, how does it bypass the permission…

Read more comments on GitHub >

github_iconTop Results From Across the Web

ping does not work on a rootless Ubuntu podman container on ...
Using Fedora 36 with Podman 4.2.1. How do I make ping work on rootless Ubuntu image? Aside from the answer to this specific...
Read more >
1703261 – podman containers unable to communicate via IP ...
Description of problem: By default docker puts containers on the same bridge; therefore, are able to communicate to one another out of the...
Read more >
Cannot ping from within a container - CircleCI Discuss
The command is already running as root, so that should not make a difference. In any case, yes this has to do with...
Read more >
Can't ping (permission denied) - Server Fault
TL;DR. apk add iputils. Explanation. Alpine is based on busybox which implements the linux usual commands in a single binary.
Read more >
How does container to container networking work in podman ...
The problem lies in the inability for containers to communicate with ... can all ping themselves when referring to their own container name, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found