It would be very useful to set the mode on the socket, the default is 0600
I had to change socket = bind_unix_socket(self.options.unix_socket) to socket = bind_unix_socket(self.options.unix_socket, mode=0o777) so that Nginx could read/write to the socket.
have the same issue, nginx can't get flower socket with 600 and i can't change socket permissions
(for examle uwsgi have chmod-socket option)
Looks like this is still a problem, how are people getting around this?
This looks like it should be a simple fix, that's currently making a feature of Flower impossible to use.
Yup, this is an absolutely necessary feature. Unix socket is useless without this. It's strange that this is still not implemented.
Anything that can be done to accelerate this?
I'd avoid introducing a new option. The mode can be set by parent directory. Unix sockets honor the permissions of parent directory.
Modifying the default mode is also acceptable solution
The mode can be set by parent directory. Unix sockets honor the permissions of parent directory.
@mher that's almost definitely not what's happening in the real world. I wouldn't be here if it was that simple.
same problem here, no fix apparently yet? Need chmod 0777 for nginx
Guys it's been almost 3 years... can we get this fixed?
indeed it would be a really nice addition to simply control this in the settings! :)
I'd be happy to put in a pull request if the devs would state their preference.
@mher thank you.
isn't there a typo? 0o777 ? Shouldn't it be 0777 or 00777
https://www.python.org/dev/peps/pep-3127/
octal literals must now be specified with a leading "0o" or "0O" instead of "0";
ok perfect, we're not Python developers haha :)
Most helpful comment
Yup, this is an absolutely necessary feature. Unix socket is useless without this. It's strange that this is still not implemented.