Bug 1031452

Summary: [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.
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: python-twisted-coreAssignee: Thomas Vander Stichele <thomas>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: cristian.ciupitu, jonathansteffan, matthias, thomas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/6e0e52a32eeadd90f311cdf3952a4ae559c98624
Whiteboard: abrt_hash:ccd10bf09a4df27e70d761f64074815161d66186
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-22 21:12:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

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.