#3685 internal error occures when ipa commands called through pam stack
Closed: Fixed None Opened 10 years ago by yizhangid.

please check the following output

[root@f18c (F-i386) ipa-password] rpm -qa | grep freeipa
freeipa-client-3.1.4-1.fc18.i686
freeipa-python-3.1.4-1.fc18.i686
freeipa-server-3.1.4-1.fc18.i686
freeipa-server-selinux-3.1.4-1.fc18.i686
freeipa-admintools-3.1.4-1.fc18.i686

[root@f18c (F-i386) ipa-password] id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023


[root@f18c (F-i386) ipa-password] su testuser5316 ipa passwd
/usr/bin/ipa: line 26: 
Command Line Interface for IPA administration.

The CLI functionality is implemented in ipalib/cli.py
: No such file or directory
/usr/bin/ipa: line 28: import: command not found
/usr/bin/ipa: line 29: from: command not found
/usr/bin/ipa: ipa: line 32: syntax error near unexpected token `api'
/usr/bin/ipa: ipa: line 32: `    cli.run(api)'



[root@f18c (F-i386) ipa-password] su testuser5316 -c ipa passwd
ipa: ERROR: Could not create log_dir u'/home/testuser5316/.ipa/log'
ipa: ERROR: AttributeError: 'API' object has no attribute 'parser'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1296, in run
    sys.exit(api.Backend.cli.run(argv))
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1060, in run
    cmd = self.get_command(argv)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1026, in get_command
    self.Command.help(outfile=sys.stderr)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 436, in __call__
    ret = self.run(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 765, in run
    self.api.parser.print_help(outfile)
AttributeError: 'API' object has no attribute 'parser'
ipa: ERROR: an internal error has occurred

Running ipa command through "su <ipa user> -c ipa <command>" used to work.


Metadata Update from @yizhangid:
- Issue assigned to akrivoka
- Issue set to the milestone: FreeIPA 3.2.x - 2013/06 (bug fixing)

7 years ago

Login to comment on this ticket.

Metadata