"AF_UNIX path too long" error when unit name exceeds about 30 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned |
Bug Description
When I join a relationship between two charms I'm seeing this:
2012-10-19 08:42:56,914 unit:productsea
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self.start()
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
self.api_socket = reactor.
File "/usr/lib/
p.startList
File "/usr/lib/
raise CannotListenError, (None, self.port, le)
twisted.
The path exceeds 108 characters which appears to be the UNIX_PATH_MAX.
I think juju should enforce a maximum service name length at deploy time and also the path to the socket should be shortened as it currently seems to duplicate the service name.
tags: | added: canonical-webops-juju |
Changed in juju: | |
milestone: | none → 0.8 |
Changed in juju: | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
I'm also seeing this: internet. error.CannotLis tenError: Couldn't listen on any:/var/ lib/juju/ units/error- tracker- errors- gunicorn- 0/units/ error-tracker- errors- gunicorn- 0/.juju. hookcli. sock: AF_UNIX path too long.
twisted.