Bug 1626637

Summary: [abrt] fail2ban-server: module(): fail2ban-server:34:<module>:ImportError: No module named fail2ban.client.fail2banserver
Product: [Fedora] Fedora Reporter: RobbieTheK <rkudyba>
Component: fail2banAssignee: Orion Poplawski <orion>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: anon.amish, Axel.Thimm, orion, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/606dd1eff6a7f90e23d4523042cab5c802f0dc77
Whiteboard: abrt_hash:7c37d06be6bc0d86342a2785d306021348a3d925;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-28 03:25:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description RobbieTheK 2018-09-07 18:39:33 UTC
Version-Release number of selected component:
fail2ban-server-0.10.3.1-2.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x
crash_function: module
exception_type: ImportError
executable:     /usr/bin/fail2ban-server
interpreter:    python2-2.7.15-2.fc28.x86_64
kernel:         4.17.11-200.fc28.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
fail2ban-server:34:<module>:ImportError: No module named fail2ban.client.fail2banserver

Traceback (most recent call last):
  File "/usr/bin/fail2ban-server", line 34, in <module>
    from fail2ban.client.fail2banserver import exec_command_line, sys
ImportError: No module named fail2ban.client.fail2banserver

Local variables in innermost frame:
__copyright__: 'Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko, 2014-2016 Serg G. Brester'
__license__: 'GPL'
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/bin/fail2ban-server'
__author__: 'Fail2Ban Developers'
__name__: '__main__'
__package__: None
__doc__: '\nFail2Ban reads log file that contains password failure report\nand bans the corresponding IP addresses using firewall rules.\n\nThis tool starts/stops fail2ban server or does client/server communication\nto change/read parameters of the server or jails.\n\n'

Comment 1 RobbieTheK 2018-09-07 18:39:38 UTC
Created attachment 1481641 [details]
File: backtrace

Comment 2 RobbieTheK 2018-09-07 18:39:39 UTC
Created attachment 1481642 [details]
File: cgroup

Comment 3 RobbieTheK 2018-09-07 18:39:40 UTC
Created attachment 1481643 [details]
File: cpuinfo

Comment 4 RobbieTheK 2018-09-07 18:39:41 UTC
Created attachment 1481644 [details]
File: environ

Comment 5 RobbieTheK 2018-09-07 18:39:42 UTC
Created attachment 1481645 [details]
File: mountinfo

Comment 6 RobbieTheK 2018-09-07 18:39:44 UTC
Created attachment 1481646 [details]
File: namespaces

Comment 7 RobbieTheK 2018-09-07 18:39:44 UTC
Created attachment 1481647 [details]
File: open_fds

Comment 8 Orion Poplawski 2018-09-28 03:25:14 UTC
# head -1 /usr/bin/fail2ban-server
#!/usr/bin/python3 -s

fail2ban is a python3 application - running it with python2 is not going to work.