Questions tagged [unix-sockets]
11 questions
2
votes
1 answer
How to share unix domain socket between containers without named volume?
I have two containers A and B which needs to talk via unix domain socket created by A in /var/run/notif.sock.
I can't use named volume as sharing /var/run between containers is risky as it contains container's runtime data.
Bind mount requires the…

Ankur Sao
- 21
- 1
- 2
1
vote
2 answers
Apache httpd cannot connect to Tomcat over Unix Domain Socket - SELinux denied
I have an Apache httpd v2.4.57 configured on Rocky9 to connect to Tomcat9 / Java17 over a unix domain socket.
SELinux kicks in and says denied, as follows:
type=AVC msg=audit(1685376249.480:134): avc: denied { connectto } for pid=1769…

Graham Leggett
- 217
- 3
- 11
1
vote
1 answer
Using socat to proxy abstract-namespace UNIX sockets across network namespaces
I have a system service that listens for commands on a UNIX domain socket in the abstract namespace. I now need to access this from a process in another network namespace. Because the socket is in the abstract namespace, it is…

Tom
- 327
- 2
- 11
1
vote
2 answers
Redis failing to create unix socket
I am trying to set redis up to use a Unix Socket.
I am using the stock Debian installation /etc/redis/redis.conf except with the following additions at the end of the file, based on this info:
# create a unix domain socket to listen on
unixsocket…

run_the_race
- 167
- 1
- 9
1
vote
1 answer
Unable to find php8.0-fpm.sock in /run/php/php8.0-fpm.sock, Nginx Web Server
I'm currently listening for TCP sockets in my Nginx Web Server, but for some reasons I'd like to listen to my UNIX-domain sockets. The issue is I'm unable to find php8.0-fpm.sock in both /var/run/php/php8.0-fpm.sock and /run/php/php8.0-fpm.sock…

AtomX
- 125
- 1
- 1
- 6
1
vote
1 answer
503 service unavailable with high loads when using php7.3-fpm and lighttpd 1.4.53 connected via UNIX sockets instead of TCP
I recently switched my php7.3-fpm configuration to use UNIX Sockets instead of listening at localhost:9000. This solved a lag problem (every now and then I had requests that took over a second for no reason).
But, now using unix sockets I get "503…

SDwarfs
- 385
- 4
- 18
0
votes
0 answers
AppArmor rule to allow QEMU to create a char device socket in a directory
Given the following command line for QEMU (from this page):
qemu-system-x86_64 -machine accel=kvm -cpu host \
-m $mem -object memory-backend-file,id=mem,size=$mem,mem-path=/dev/hugepages,share=on \
-mem-prealloc -numa node,memdev=mem…

Ken Y-N
- 111
- 6
0
votes
1 answer
How to restart spawn-fcgi which is returning Socket is already in use?
I have done ps -aux | grep spawn-fcgi found the pid and killed it by kill -9 pid but still when i rerun spawn-fcgi,it still returns Socket is already in use.
I am using spawn-fcgi for a qgis server and I need to export some env variables before I…

watkib
- 101
- 1
0
votes
1 answer
How to telnet to a unix socket in debian to test memcached
To test memcached on Ubuntu, I would run this command:
echo "stats settings" | nc -U /run/mydir/memcached.sock
However now I have changed to Debian, and Debian nc does not support the -U option.
I have tried ss, listen, telnet -b…

run_the_race
- 167
- 1
- 9
0
votes
1 answer
Apache can’t connect to Unix domain socket
I am trying to install a custom web application with Apache HTTPd as frontend web server. But why does Apache report it couldn't access the Unix socket where the application listens?
The web application is configured to listen here:
# ls -l…

Daniel Böhmer
- 271
- 2
- 13
0
votes
1 answer
Unix socket communication with Apache 2.4.51 and Flask App using Uwsgi returning "404 Not Found"
I'm using Apache in the front as web server and running python flask application at
the back end and they communicate using Unix socket as mentioned in the link below for mod_proxy_uwsgi module and i have loaded both mod_proxy and mod_proxy_uwsgi as…

Jai
- 1
- 2