Bug 1630664 - [abrt] python2-libs: meth(): socket.py:228:meth:error: [Errno 98] Address already in use
Summary: [abrt] python2-libs: meth(): socket.py:228:meth:error: [Errno 98] Address alr...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python2
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a91b59734398a099305f4269048...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-19 03:12 UTC by RobbieTheK
Modified: 2018-09-19 07:29 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-19 07:29:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.19 KB, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: cgroup (372 bytes, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: cpuinfo (1.14 KB, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: environ (4.74 KB, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: mountinfo (6.39 KB, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: namespaces (129 bytes, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details
File: open_fds (283 bytes, text/plain)
2018-09-19 03:12 UTC, RobbieTheK
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.