SOLVED Linux: ping: socket: Operation not permitted

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
NorbertK
Posts: 7
Joined: Tue Apr 12, 2022 12:10 am

SOLVED Linux: ping: socket: Operation not permitted

Post by NorbertK »

Hello all,
I run ums 10.19.0 under Linux as os-user 'ums' and get the above mentioned error ping: socket: Operation not permitted in the log.
Context is :

Code: Select all

DEBUG 2022-04-11 18:50:09.082 [cling-8] Created upnp player for 58PUS7805/12
TRACE 2022-04-11 18:50:09.236 [pool-4-thread-1] We couldn't get the value based on the canonical name
INFO  2022-04-11 18:50:09.236 [pool-4-thread-1] Renderer 58PUS7805/12 found on address: 10.10.1.133
DEBUG 2022-04-11 18:50:09.237 [pool-4-thread-1] Starting ping -c 5 -s 512 10.10.1.133
DEBUG 2022-04-11 18:50:09.238 [pool-4-thread-1] Unix process ID (ping): 704386
DEBUG 2022-04-11 18:50:09.238 [ping-2-2] ping: socket: Operation not permitted
INFO  2022-04-11 18:50:09.238 [pool-4-thread-1] Process ping has a return code of 2! Maybe an error occurred... check the log file
DEBUG 2022-04-11 18:50:09.238 [pool-4-thread-1] Starting ping -c 5 -s 1476 10.10.1.133
DEBUG 2022-04-11 18:50:09.239 [pool-4-thread-1] Unix process ID (ping): 704390
DEBUG 2022-04-11 18:50:09.239 [ping-3-2] ping: socket: Operation not permitted
INFO  2022-04-11 18:50:09.239 [pool-4-thread-1] Process ping has a return code of 2! Maybe an error occurred... check the log file
DEBUG 2022-04-11 18:50:09.240 [pool-4-thread-1] Starting ping -c 5 -s 9100 10.10.1.133
DEBUG 2022-04-11 18:50:09.240 [pool-4-thread-1] Unix process ID (ping): 704394
DEBUG 2022-04-11 18:50:09.240 [ping-4-2] ping: socket: Operation not permitted
INFO  2022-04-11 18:50:09.241 [pool-4-thread-1] Process ping has a return code of 2! Maybe an error occurred... check the log file
DEBUG 2022-04-11 18:50:09.241 [pool-4-thread-1] Starting ping -c 5 -s 32000 10.10.1.133
DEBUG 2022-04-11 18:50:09.241 [pool-4-thread-1] Unix process ID (ping): 704398
DEBUG 2022-04-11 18:50:09.242 [ping-5-2] ping: socket: Operation not permitted

Therefore I have the follwong questions:
  • Is ist a good idea at all to run UMSD as a non-root user ?
  • Is the error relevant at all ?
  • How can the error be prevented ?
Last edited by NorbertK on Wed Apr 13, 2022 5:28 am, edited 1 time in total.
Thanks and best regards

Norbert
---------
UMS 10.19.0 runs headless in debian bullseye unter proxmox
NorbertK
Posts: 7
Joined: Tue Apr 12, 2022 12:10 am

Re: Linux: ping: socket: Operation not permitted

Post by NorbertK »

I found the solution:

Normal users are not allowed to ping..

to change this proceed as written here https://serverfault.com/a/1039895/826330
and amend /etc/sysctl.conf with the follwing line:

Code: Select all

net.ipv4.ping_group_range = 0 2147483647
Thanks and best regards

Norbert
---------
UMS 10.19.0 runs headless in debian bullseye unter proxmox
Post Reply