You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit /etc/influxdb/influxdb.conf enable http service over unix domain socket
restart influxdb
influxdb default run with user influxdb and create unix domain socket influxdb.sock without write permission, finally it will cause nginx could connect this socket!
so i have 2 chooses:
custom influxdb to run with root or my nginx user group.
or execute chmod a+x influxdb.sock evenytime influxdb restart.
The text was updated successfully, but these errors were encountered:
Anricx
changed the title
Unix domain socket doesn's have the right file permission
Unix domain socket doesn't have the right file permission
Jan 2, 2018
Ok, I think I misunderstood this question. The problem is that the unix socket created by InfluxDB is 0755 and that doesn't allow writes or queries from those outside of the influxdb group when attempting to use nginx as a query.
I'm going to switch this to a feature request since this isn't a bug in the packaging or the software as I thought it was. But, it might be nice to be able to call the equivalent of chmod and chown on the socket that is created automatically which could probably be added as an extra configuration option.
Bug report
System info: Ubuntu 16.04
Steps to reproduce:
edit
/etc/influxdb/influxdb.conf
enable http service over unix domain socketrestart influxdb
influxdb default run with user
influxdb
and create unix domain socketinfluxdb.sock
without write permission, finally it will cause nginx could connect this socket!so i have 2 chooses:
chmod a+x influxdb.sock
evenytime influxdb restart.The text was updated successfully, but these errors were encountered: