Regarding creating the socket as a non-root user - did you chown the directory to your user's uid? I have no problem once I've done that in running the server.
I have the same issue with the client:
sudo mkdir /mnt2 /upper sudo mount -t overlayfs -o lowerdir=/mnt2,upperdir=/upper none /mnt sudo chown -R ubuntu: /mnt ./serv.py /mnt/sock & ./client.py /mnt/sock
Traceback (most recent call last): File "./client.py", line 7, in <module> s.connect(socketname) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused
Regarding creating the socket as a non-root user - did you chown the directory to your user's uid? I have no problem once I've done that in running the server.
I have the same issue with the client:
sudo mkdir /mnt2 /upper /mnt2,upperdir= /upper none /mnt
sudo mount -t overlayfs -o lowerdir=
sudo chown -R ubuntu: /mnt
./serv.py /mnt/sock &
./client.py /mnt/sock
Traceback (most recent call last): socketname) python2. 7/socket. py", line 224, in meth self._sock, name)(* args)
File "./client.py", line 7, in <module>
s.connect(
File "/usr/lib/
return getattr(
socket.error: [Errno 111] Connection refused