uwsgi --socket pud.sock --wsgi-file test.py --chmod-socket=666
2020/03/13 12:24:27 [crit] 2070#2070: *23 connect() to unix:///root/pud/pud.sock failed (13: Permission denied) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: site.ru, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///root/pud/pud.sock:", host: "site.ru"