Bug 1630664

Summary: [abrt] python2-libs: meth(): socket.py:228:meth:error: [Errno 98] Address already in use
Product: [Fedora] Fedora Reporter: RobbieTheK <rkudyba>
Component: python2Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: bkabrda, cstratak, dmalcolm, mcyprian, mhroncok, pviktori, rkuska, tomspur, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/0778a941aa3e75aa75fdd09dcd0e8c6ebe748baf
Whiteboard: abrt_hash:a91b59734398a099305f4269048ca6c004b9b4e1;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-19 07:29:57 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-19 03:12:08 UTC
Version-Release number of selected component:
python2-libs-2.7.15-2.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        python -m SimpleHTTPServer
crash_function: meth
exception_type: error
executable:     /usr/lib64/python2.7/SimpleHTTPServer.py
interpreter:    python2-2.7.15-2.fc28.x86_64
kernel:         4.17.14-202.fc28.x86_64
runlevel:       N 5
type:           Python
uid:            16741

Truncated backtrace:
socket.py:228:meth:error: [Errno 98] Address already in use

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib64/python2.7/SimpleHTTPServer.py", line 235, in <module>
    test()
  File "/usr/lib64/python2.7/SimpleHTTPServer.py", line 231, in test
    BaseHTTPServer.test(HandlerClass, ServerClass)
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 606, in test
    httpd = ServerClass(server_address, HandlerClass)
  File "/usr/lib64/python2.7/SocketServer.py", line 417, in __init__
    self.server_bind()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib64/python2.7/SocketServer.py", line 431, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib64/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

Local variables in innermost frame:
self: <socket._socketobject object at 0x7f27d9c60280>
args: (('', 8000),)
name: 'bind'

Comment 1 RobbieTheK 2018-09-19 03:12:15 UTC
Created attachment 1484552 [details]
File: backtrace

Comment 2 RobbieTheK 2018-09-19 03:12:16 UTC
Created attachment 1484553 [details]
File: cgroup

Comment 3 RobbieTheK 2018-09-19 03:12:17 UTC
Created attachment 1484554 [details]
File: cpuinfo

Comment 4 RobbieTheK 2018-09-19 03:12:18 UTC
Created attachment 1484555 [details]
File: environ

Comment 5 RobbieTheK 2018-09-19 03:12:19 UTC
Created attachment 1484556 [details]
File: mountinfo

Comment 6 RobbieTheK 2018-09-19 03:12:20 UTC
Created attachment 1484557 [details]
File: namespaces

Comment 7 RobbieTheK 2018-09-19 03:12:22 UTC
Created attachment 1484558 [details]
File: open_fds

Comment 8 Miro HronĨok 2018-09-19 07:29:57 UTC
Address already in use. Not much we can do about that.

Use another argument to specify port. like this:

$ python3 -m http.server 8888

Or (if you must us Python 2):

$ python2 -m SimpleHTTPServer 8888


Also note that sometimes, you can get "address already in use" even shortly after you ended some previous server.