Failing: ping: socket: Operation not permitted #877

Closed
opened 2026-02-28 02:02:09 -05:00 by deekerman · 2 comments
Owner

Originally created by @weirlive on GitHub (Feb 28, 2022).

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

When I setup Ping Monitor I get the following error: Failing: ping: socket: Operation not permitted

If I look at the docker logs I see the same for every monitor I've set:

Monitor #1 'PING - GOOGLE': Failing: ping: socket: Operation not permitted

and my docker-compose:


version: "3.1"

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    volumes:
      - ~/vm/uptime-kuma/data:/app/data
    ports:
      - 3001:3001
    networks:
      - proxy
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    cap_add:
      - NET_RAW

networks:
  proxy:
    external: true

🐻 Uptime-Kuma Version

Version: 1.12.1

💻 Operating System and Arch

ubuntu 20.04

🌐 Browser

brave

🐋 Docker Version

20.10.12

🟩 NodeJS Version

Your Node.js version: 14

Originally created by @weirlive on GitHub (Feb 28, 2022). ### ⚠️ Please verify that this bug has NOT been raised before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/uptime-kuma/security/policy) ### 📝 Describe your problem When I setup Ping Monitor I get the following error: Failing: ping: socket: Operation not permitted If I look at the docker logs I see the same for every monitor I've set: Monitor #1 'PING - GOOGLE': Failing: ping: socket: Operation not permitted and my docker-compose: --- ``` version: "3.1" services: uptime-kuma: image: louislam/uptime-kuma:1 container_name: uptime-kuma volumes: - ~/vm/uptime-kuma/data:/app/data ports: - 3001:3001 networks: - proxy environment: - PUID=${PUID} - PGID=${PGID} restart: unless-stopped security_opt: - no-new-privileges:true cap_add: - NET_RAW networks: proxy: external: true ``` ### 🐻 Uptime-Kuma Version Version: 1.12.1 ### 💻 Operating System and Arch ubuntu 20.04 ### 🌐 Browser brave ### 🐋 Docker Version 20.10.12 ### 🟩 NodeJS Version Your Node.js version: 14
deekerman 2026-02-28 02:02:09 -05:00
  • closed this issue
  • added the
    help
    label
Author
Owner

@weirlive commented on GitHub (Feb 28, 2022):

From inside the container ping works:

PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=11.7 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=8.94 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=9.80 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=9.32 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=58 time=9.04 ms
64 bytes from 1.1.1.1: icmp_seq=6 ttl=58 time=9.98 ms

PING google.com (142.250.176.206) 56(84) bytes of data.
64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=1 ttl=118 time=10.8 ms
64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=2 ttl=118 time=8.64 ms
64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=3 ttl=118 time=7.90 ms
64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=4 ttl=118 time=8.30 ms

@weirlive commented on GitHub (Feb 28, 2022): From inside the container ping works: PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. 64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=11.7 ms 64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=8.94 ms 64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=9.80 ms 64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=9.32 ms 64 bytes from 1.1.1.1: icmp_seq=5 ttl=58 time=9.04 ms 64 bytes from 1.1.1.1: icmp_seq=6 ttl=58 time=9.98 ms PING google.com (142.250.176.206) 56(84) bytes of data. 64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=1 ttl=118 time=10.8 ms 64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=2 ttl=118 time=8.64 ms 64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=3 ttl=118 time=7.90 ms 64 bytes from lga34s37-in-f14.1e100.net (142.250.176.206): icmp_seq=4 ttl=118 time=8.30 ms
Author
Owner

@weirlive commented on GitHub (Feb 28, 2022):

some more info, I'm using Nginx Proxy Manager as my reverse proxy. I have Web Socket Support enabled.

@weirlive commented on GitHub (Feb 28, 2022): some more info, I'm using Nginx Proxy Manager as my reverse proxy. I have Web Socket Support enabled.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#877
No description provided.