# Mopidy with http enabled hangs at shutdown

**URL:** <https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745>\
**Category:** Misc\
**Created:** [September 4, 2018, 5:23pm UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745 "2018-09-04T17:23:52Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![MHoyer12345678](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mhoyer12345678/32/988_2.png) [@MHoyer12345678](https://discourse.mopidy.com/u/MHoyer12345678)\
**Post date:** [September 9, 2018, 2:33pm UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745/21 "2018-09-09T14:33:18Z")

</div>

Hello,

that was the right guess. I can confirm that the issue is not happening with tornado 4.4.3-1.

Cheers,

Marko

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [September 11, 2018, 8:09am UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745/22 "2018-09-11T08:09:38Z")

</div>

I don’t suppose `mopidyctl deps` also now prints out the tornado version? I’m a bit puzzled by the missing stuff in your output. Or maybe it’s a Sid thing.

---

<div class="post-metadata">

**Author:** ![MHoyer12345678](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mhoyer12345678/32/988_2.png) [@MHoyer12345678](https://discourse.mopidy.com/u/MHoyer12345678)\
**Post date:** [September 21, 2018, 3:39pm UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745/23 "2018-09-21T15:39:05Z")

</div>

Not looking different to me …

Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps” as user mopidy  
Executable: /usr/bin/mopidy  
Platform: Linux-4.14.49-v7±armv7l-with-debian-buster-sid  
Python: CPython 2.7.15 from /usr/lib/python2.7  
Mopidy: 2.1.0 from /usr/lib/python2.7/dist-packages  
Mopidy-MPRIS: 1.4.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Mobile: 1.8.3 from /usr/local/lib/python2.7/dist-packages  
setuptools: 39.2.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=0.19: 2.1.0 from /usr/lib/python2.7/dist-packages  
Mopidy-TuneIn: 0.4.1 from /usr/lib/python2.7/dist-packages  
GStreamer: 1.14.2.0 from /usr/lib/python2.7/dist-packages/gi  
Detailed information:  
Python wrapper: python-gi 3.28.3  
Relevant elements:  
Found:  
uridecodebin  
souphttpsrc  
appsrc  
alsasink  
osssink  
oss4sink  
pulsesink  
id3demux  
id3v2mux  
lamemp3enc  
mpegaudioparse  
mpg123audiodec  
vorbisdec  
vorbisenc  
vorbisparse  
oggdemux  
oggmux  
oggparse  
flacdec  
flacparse  
shout2send  
Not found:  
flump3dec  
mad

---

<div class="post-metadata">

**Author:** ![lachlantula](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lachlantula/32/1050_2.png) [@lachlantula](https://discourse.mopidy.com/u/lachlantula)\
**Post date:** [December 21, 2018, 11:58am UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745/24 "2018-12-21T11:58:20Z")

</div>

I’m very pleased to report that I also fixed this problem by downgrading `tornado`; I tested 4.5.3 and that seemed to work too. Both `systemctl stop mopidy` and `systemctl start mopidy` are near-instantaneous. I no longer hang on a stop job, waiting for Mopidy to stop. Essentially, everything is as it should be, seemingly.

I’m running Python 2.7.15 on Linux kernel 4.14.87-1-MANJARO.

```
Executable: /usr/bin/mopidy
Platform: Linux-4.14.87-1-MANJARO-x86_64-with-glibc2.2.5
Python: CPython 2.7.15 from /usr/lib/python2.7
Mopidy: 2.2.1 from /usr/lib/python2.7/site-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/site-packages
  requests>=2.0: 2.20.1 from /usr/lib/python2.7/site-packages
    chardet>=3.0.2: 3.0.4 from /usr/lib/python2.7/site-packages
    idna>=2.5: 2.8 from /usr/lib/python2.7/site-packages
    urllib3>=1.21.1: 1.24.1 from /usr/lib/python2.7/site-packages
  setuptools: 40.6.2 from /usr/lib/python2.7/site-packages
  tornado>=4.4: 4.5.3 from /usr/lib/python2.7/site-packages
    singledispatch: 3.4.0.3 from /usr/lib/python2.7/site-packages
      six: 1.12.0 from /usr/lib/python2.7/site-packages
    certifi: 2018.11.29 from /usr/lib/python2.7/site-packages
    backports_abc>=0.4: 0.5 from /usr/lib/python2.7/site-packages
GStreamer: 1.14.4.0 from /usr/lib/python2.7/site-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.30.4
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

```

Willing to provide extra information if need be. I’m a happy man.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [December 21, 2018, 2:12pm UTC](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745/25 "2018-12-21T14:12:19Z")

</div>

This was fixed at [https://github.com/mopidy/mopidy/pull/1716](https://github.com/mopidy/mopidy/pull/1716) and will be included in the next release (v2.2.2).

[Previous page](https://discourse.mopidy.com/t/mopidy-with-http-enabled-hangs-at-shutdown/2745.md?page=1)
