unix-socket maximal path length exceeded when cloudsql-proxy tries to open a unix socket in the directory specified by -dir
parameter
#747
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: docs
Improvement to the documentation for an API.
Description
When we start cloudsql-proxy using unix sockets using this command
cloudsql-proxy opens a unix socket in the path
/cloudsql/INSTANCE_CONNECTION_NAME
. However unix-socket paths have a path lenght limit dependent on the platform it runs. If the unix socket path length exceeds the limit cloudsql-proxy throws the following error :-bind: invalid argument
.While this could be solved by overriding the
-dir
parameter and provinding an absolute path in the-instance
parameter, the issue of unix socket path limit should be documented somewhere, so that the users are aware of this.The text was updated successfully, but these errors were encountered: