View Issue Details

IDProjectCategoryView StatusLast Update
0014892CentOS-7setroubleshootpublic2018-12-20 04:44
Reportersuyang 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0014892: [abrt] setroubleshoot-server: __init__.py:907:<module>:ValueError: Failed to read //etc/selinux/targeted/policy/policy.31 ...
DescriptionVersion-Release number of selected component:
setroubleshoot-server-3.2.27.2-3.el7

Truncated backtrace:
#1 <module> in /usr/lib64/python2.7/site-packages/sepolicy/__init__.py:907
#2 <module> in /usr/lib64/python2.7/site-packages/setroubleshoot/util.py:304
#3 <module> in /usr/sbin/setroubleshootd:30
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python -Es /usr/sbin/setroubleshootd -f ''
dso_list: policycoreutils-python-2.5-8.el7.x86_64
executable: /usr/sbin/setroubleshootd
kernel: 3.10.0-514.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: unknown
type: Python
uid: 992
TagsNo tags attached.
abrt_hash113360f2723b2df12c9685987fe70184a81cc3c7
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/ddd33d3e51d7a0b74799cb35bcaccf4cc560bca4

Activities

suyang

suyang

2018-05-31 05:19

reporter  

backtrace (9,056 bytes)
__init__.py:907:<module>:ValueError: Failed to read //etc/selinux/targeted/policy/policy.31 policy file

Traceback (most recent call last):
  File "/usr/sbin/setroubleshootd", line 30, in <module>
    from setroubleshoot.util import log_debug
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/util.py", line 304, in <module>
    from sepolicy import get_all_file_types
  File "/usr/lib64/python2.7/site-packages/sepolicy/__init__.py", line 907, in <module>
    raise e
ValueError: Failed to read //etc/selinux/targeted/policy/policy.31 policy file

Local variables in innermost frame:
selinux_user_list: None
fcdict: None
selinux: None
subprocess: None
__path__: None
get_attributes_from_type: None
gen_interfaces: None
get_transitions: None
get_entrypoints: None
get_login_mappings: None
read_file_equiv: None
SOURCE: None
get_all_entrypoints: None
get_all_modules: None
policy: None
file_types: None
get_user_types: None
AUDITALLOW: None
ROLE_ALLOW: None
__file__: None
get_all_bools: None
get_fcdict: None
local_files: None
get_all_entrypoint_domains: None
find_file: None
bools: None
get_writable_files: None
defaults: None
SENS: None
file_type_str: None
get_all_domains: None
policy_file: None
get_all_users: None
methods: None
get_local_file_paths: None
DEFAULT_DIRS: None
get_init_entrypoint_target: None
USER: None
NEVERALLOW: None
all_domains: None
PORT: None
login_mappings: None
DONTAUDIT: None
PERMS: None
re: None
get_conditionals: None
get_description: None
get_file_transitions: None
__builtins__: {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2013 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, '_': <bound method NullTranslations.ugettext of <gettext.NullTranslations instance at 0x7f1de06035f0>>, 'TypeError': <type 'exceptions.TypeError'>, 'license': See http://www.python.org/2.7/license.html, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
interfaces: None
file_type_is_executable: None
get_all_roles: None
mls_range: None
__name__: None
portrecsbynum: None
file_type_is_entrypoint: None
file_equiv: None
get_all_file_types: None
prettyprint: None
ATTRIBUTE: None
_policy: None
get_installed_policy: None
gen_port_dict: None
os: None
all_types: None
PROGNAME: None
get_file_types: None
get_file_equiv_modified: None
get_boolean_rules: None
get_all_port_types: None
port_types: None
find_all_files: None
get_all_modules_from_mod_lst: None
__doc__: None
file_equiv_modified: None
search: None
get_types_from_attribute: None
get_all_attributes: None
get_all_role_allows: None
info: None
TARGET: None
roles: None
all_attributes: None
TRANSITION: None
role_allows: None
BOOLEAN: None
mls_cmp: None
TYPE: None
get_methods: None
get_mls_range: None
get_init_transtype: None
portrecs: None
get_conditionals_format_text: None
gettext: None
__package__: None
TCLASS: None
CLASS: None
find_entrypoint_path: None
trans_file_type_str: None
get_transitions_into: None
users: None
glob: None
get_entrypoint_types: None
sys: None
get_file_equiv: None
get_init_entrypoint: None
ALLOW: None
get_selinux_users: None
util: None
e: None
markup: None
get_all_types: None
CATS: None
ROLE: None
user_types: None
backtrace (9,056 bytes)
environ (92 bytes)
DBUS_STARTER_BUS_TYPE=system
DBUS_STARTER_ADDRESS=unix:path=/var/run/dbus/system_bus_socket
environ (92 bytes)
rajatkmitra

rajatkmitra

2018-09-07 11:29

reporter   ~0032677

Another user experienced a similar problem:

The problem happens sporadically. No user action is involved

reporter: libreport-2.1.11
cmdline: /usr/bin/python -Es /usr/sbin/setroubleshootd -f ''
dso_list: policycoreutils-python-2.5-9.el7.x86_64
executable: /usr/sbin/setroubleshootd
kernel: 3.10.0-327.13.1.el7.x86_64
package: setroubleshoot-server-3.2.24-1.1.el7
reason: __init__.py:907:<module>:ValueError: Failed to read //etc/selinux/targeted/policy/policy.31 policy file
runlevel: N 5
type: Python
uid: 988
nitrofenil

nitrofenil

2018-12-20 04:44

reporter   ~0033393

Another user experienced a similar problem:

started yum update and this issue appeared...

reporter: libreport-2.1.11.1
cmdline: /usr/bin/python -Es /usr/sbin/setroubleshootd -f ''
dso_list: policycoreutils-python-2.5-8.el7.x86_64
event_log: 2018-12-19-21:32:30> ('report_uReport' completed successfully)
executable: /usr/sbin/setroubleshootd
kernel: 3.10.0-514.el7.x86_64
package: setroubleshoot-server-3.2.27.2-3.el7
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reason: __init__.py:907:<module>:ValueError: Failed to read //etc/selinux/targeted/policy/policy.31 policy file
reproducible: The problem is reproducible
runlevel: N 5
type: Python
uid: 991

Issue History

Date Modified Username Field Change
2018-05-31 05:19 suyang New Issue
2018-05-31 05:19 suyang File Added: backtrace
2018-05-31 05:19 suyang File Added: environ
2018-09-07 11:29 rajatkmitra Note Added: 0032677
2018-12-20 04:44 nitrofenil Note Added: 0033393