charm build crashes when run with LDAP user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Unable to run charm build under LDAP user:
$ charm build -o build src
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
build.
File "/snap/
if path_to_check and not self._check_
File "/snap/
home_dir = utils.get_home()
File "/snap/
username = pwd.getpwuid(
KeyError: 'getpwuid(): uid not found: 4864'
Indeed this user is not present in /etc/pwd:
$ sudo grep 4864 /etc/passwd || echo "Not found"
Not found
$ getent passwd | grep -o 4864
4864
Fixed as noted in the existing gihub bug: /github. com/juju/ charm-tools/ issues/ 383
https:/
Please close.