Bug 1031452 - [abrt] python-twisted-core-12.2.0-2.fc19: failure.py:370:raiseException:CannotListenError: Couldn't listen on any:8080: [Errno 98] Address already in use.
Summary: [abrt] python-twisted-core-12.2.0-2.fc19: failure.py:370:raiseException:Canno...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-twisted-core
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thomas Vander Stichele
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:ccd10bf09a4df27e70d761f6407...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-18 02:35 UTC by Cristian Ciupitu
Modified: 2014-11-23 09:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-22 21:12:48 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.75 KB, text/plain)
2013-11-18 02:35 UTC, Cristian Ciupitu
no flags Details
File: environ (3.40 KB, text/plain)
2013-11-18 02:35 UTC, Cristian Ciupitu
no flags Details

Description Cristian Ciupitu 2013-11-18 02:35:26 UTC
Description of problem:
twistd -n web fails ungraciously if the port is unavailable (e.g. it's being by another application). It could at least stop bothering ABRT with this.

Version-Release number of selected component:
python-twisted-core-12.2.0-2.fc19

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python /usr/bin/twistd --pidfile '' -n web --path . --port 8080
executable:     /usr/bin/twistd
kernel:         3.11.7-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
failure.py:370:raiseException:CannotListenError: Couldn't listen on any:8080: [Errno 98] Address already in use.

Traceback (most recent call last):
  File "/usr/bin/twistd", line 14, in <module>
    run()
  File "/usr/lib64/python2.7/site-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 652, in run
    runApp(config)
  File "/usr/lib64/python2.7/site-packages/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/lib64/python2.7/site-packages/twisted/application/app.py", line 390, in run
    self.postApplication()
  File "/usr/lib64/python2.7/site-packages/twisted/scripts/_twistd_unix.py", line 230, in postApplication
    self.startApplication(self.application)
  File "/usr/lib64/python2.7/site-packages/twisted/scripts/_twistd_unix.py", line 340, in startApplication
    service.IService(application).privilegedStartService()
  File "/usr/lib64/python2.7/site-packages/twisted/application/service.py", line 277, in privilegedStartService
    service.privilegedStartService()
  File "/usr/lib64/python2.7/site-packages/twisted/application/service.py", line 277, in privilegedStartService
    service.privilegedStartService()
  File "/usr/lib64/python2.7/site-packages/twisted/application/internet.py", line 370, in privilegedStartService
    raisedNow[0].raiseException()
  File "/usr/lib64/python2.7/site-packages/twisted/python/failure.py", line 370, in raiseException
    raise self.type, self.value, self.tb
CannotListenError: Couldn't listen on any:8080: [Errno 98] Address already in use.

Local variables in innermost frame:
self: <twisted.python.failure.Failure <class 'twisted.internet.error.CannotListenError'>>

Comment 1 Cristian Ciupitu 2013-11-18 02:35:34 UTC
Created attachment 825353 [details]
File: backtrace

Comment 2 Cristian Ciupitu 2013-11-18 02:35:37 UTC
Created attachment 825354 [details]
File: environ

Comment 3 Jonathan Steffan 2014-06-15 19:15:26 UTC
Christian,

Was there anything else listening on 8080 when you experienced this?

Comment 4 Cristian Ciupitu 2014-06-16 16:23:36 UTC
Probably. I don't remember the details. Things is it should have failed more graciously instead of making ABRT report this issue.

Comment 5 Cristian Ciupitu 2014-11-23 09:41:32 UTC
I understand that this is very low priority, but triggering ABRT just because another application is listening on the same port is not normal behavior in my opinion.


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