Opened 2 years ago

Closed 2 years ago

#2819 closed bug (Fixed)

Handle second instance of WebUI nicely

Reported by: Cas Owned by:
Priority: trivial Milestone: 2.0
Component: Web UI Version: develop (git)
Keywords: Cc:

Description

If you run a second instance of deluge-web it fails with an exception log, we should handle this in a nicer manner.

20:26:26.566 [ERROR   ][deluge.ui.web.web             :107 ] Couldn't listen on 0.0.0.0:8112: [Errno 98] Address already in use.
Traceback (most recent call last):
  File "~/deluge/deluge/ui/web/web.py", line 105, in run
    self.server.start()
  File "~/deluge/deluge/ui/web/server.py", line 617, in start
    self.start_normal()
  File "~/deluge/deluge/ui/web/server.py", line 625, in start_normal
    self.socket = reactor.listenTCP(self.port, self.site, interface=self.interface)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 478, in listenTCP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 984, in startListening
    raise CannotListenError(self.interface, self.port, le)
CannotListenError: Couldn't listen on 0.0.0.0:8112: [Errno 98] Address already in use.
Traceback (most recent call last):
  File "~/delugeDev/deluge-web", line 9, in <module>
    load_entry_point('deluge==1.4.0.dev629', 'console_scripts', 'deluge-web')()
  File "~/deluge/deluge/ui/web/__init__.py", line 5, in start
    Web().start()
  File "~/deluge/deluge/ui/web/web.py", line 109, in start
    run_profiled(run, output_file=self.options.profile, do_profile=self.options.profile)
  File "~/deluge/deluge/common.py", line 1038, in run_profiled
    return func(*args)
  File "~/deluge/deluge/ui/web/web.py", line 105, in run
    self.server.start()
  File "~/deluge/deluge/ui/web/server.py", line 617, in start
    self.start_normal()
  File "~/deluge/deluge/ui/web/server.py", line 625, in start_normal
    self.socket = reactor.listenTCP(self.port, self.site, interface=self.interface)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 478, in listenTCP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 984, in startListening
    raise CannotListenError(self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on 0.0.0.0:8112: [Errno 98] Address already in use.

Change History (1)

comment:1 Changed 2 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.