Mopidy: WebSocket is closed

Hi all,

I’m not sure what my actual issue is, so I’ll just try and give whatever info seems relevant.

This is a new Mopidy installation on Ubuntu 18.04. I have Iris and Spotify connecting to the Mopidy instance.

This appears in /var/log/mopidy/mopidy.log and is the only error or sign of trouble. These two lines continually repeat. The timeout on the first instance (111.45ms in this case) is always longer than the others.

2019-07-25 08:09:07,876 WARNING [26796:HttpServer] mopidy.http.handlers: HTTP request denied for Origin "http://127.0.0.1:6680"
2019-07-25 08:09:07,876 WARNING [26796:HttpServer] tornado.access: 403 GET /mopidy/ws/ (127.0.0.1) 111.45ms
2019-07-25 08:10:12,015 WARNING [26796:HttpServer] mopidy.http.handlers: HTTP request denied for Origin "http://127.0.0.1:6680"
2019-07-25 08:10:12,016 WARNING [26796:HttpServer] tornado.access: 403 GET /mopidy/ws/ (127.0.0.1) 1.28ms

My main issue is that browsing through Iris I can see my playlists, but when I choose one and hit play, it runs through “Loading x playlist tracks”, but then errors out saying “Mopidy: WebSocket is closed”

My mopidy.conf is as follows:

[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy

[mpd]
hostname = ::

[http]
enabled = true
hostname = ::
port = 6680
zeroconf = Mopidy HTTP server on $hostname
csrf_protection = true

[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy-debug.log

[local]
media_dir = /var/lib/mopidy/media

[m3u]
playlists_dir = /var/lib/mopidy/playlists

[audio]
output = pulsesink server=127.0.0.1

[iris]
country = au
locale = en_AU
snapcast_enabled = false
snapcast_host = localhost
snapcast_port = 1705

[spotify]
username = secret
password = secret
client_id = secret
client_secret = secret

[spotify_web]
client_id = secret
client_secret = secret

If relevant, my mopidy is running as a service, and ultimately my intention is to connect using Home Assistant and Snapcast.

Looking forward to any advice you guys can throw at this newbie.

Cheers!