Public bug reported:

Unable to run charm build under LDAP user:

$ charm build -o build src
Traceback (most recent call last):
  File "/snap/charm/114/bin/charm-build", line 11, in <module>
    load_entry_point('charm-tools==2.2.3', 'console_scripts', 'charm-build')()
  File 
"/snap/charm/114/lib/python2.7/site-packages/charmtools/build/builder.py", line 
746, in main
    build.check_paths()
  File 
"/snap/charm/114/lib/python2.7/site-packages/charmtools/build/builder.py", line 
592, in check_paths
    if path_to_check and not self._check_path(path_to_check):
  File 
"/snap/charm/114/lib/python2.7/site-packages/charmtools/build/builder.py", line 
578, in _check_path
    home_dir = utils.get_home()
  File "/snap/charm/114/lib/python2.7/site-packages/charmtools/utils.py", line 
606, in get_home
    username = pwd.getpwuid(os.getuid()).pw_name
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

** Affects: charm-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1752331

Title:
  charm build crashes when run with LDAP user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/charm-tools/+bug/1752331/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to