# MPD Server startup failed: \[Errno 98\] Adress already in use

**URL:** <https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045>\
**Category:** Misc\
**Created:** [January 23, 2019, 11:30am UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045 "2019-01-23T11:30:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 23, 2019, 11:30am UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/1 "2019-01-23T11:30:47Z")

</div>

Hello guys. I have an issue I would like to understand how to fix.  
Every time I am trying to start mopidy from my terminal (I am using a **Raspberry Pi 3 B+** ) I am having this error (I have PrtScn so you can see better).

 ![mopidy%20mpd%20error%20](https://canada1.discourse-cdn.com/flex036/uploads/mopidy/original/2X/a/a6e7d132402fc2ede1ced96aca6a0c5f046f4d43.png)

I have seen a lot of topics here and followed all the routes they suggest but I have no luck so far.  
My **mopidy version is 2.2.1** by the way.  
I installed mopidy with the way i found here: [http://jasperproject.github.io/documentation/configuration/#spotify-integration](http://jasperproject.github.io/documentation/configuration/#spotify-integration) ( **apt-get install** )

This is my “ **mopidy deps output** ”.

/usr/lib/python2.7/dist-packages/mopidy/ext.py:202: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.  
extension\_class = entry\_point.load(require=False)  
Executable: /usr/bin/mopidy  
Platform: Linux-4.14.79-v7±armv7l-with-debian-9.6  
Python: CPython 2.7.13 from /usr/lib/python2.7  
Mopidy: 2.2.1 from /usr/lib/python2.7/dist-packages  
Mopidy-Mopify: 1.6.1 from /usr/local/lib/python2.7/dist-packages  
Mopidy\>=0.19: 2.2.1 from /usr/lib/python2.7/dist-packages  
setuptools: 40.6.3 from /usr/local/lib/python2.7/dist-packages  
ConfigObj: 5.0.6 from /usr/local/lib/python2.7/dist-packages  
six: 1.10.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Local-SQLite: 1.0.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=2.0: 2.2.1 from /usr/lib/python2.7/dist-packages  
Pykka\>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages  
pyspotify\>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages  
cffi\>=1.0.0: 1.9.1 from /usr/lib/python2.7/dist-packages  
requests\>=2.0: 2.5.0 from /usr/local/lib/python2.7/dist-packages  
GStreamer: 1.10.4.0 from /usr/lib/python2.7/dist-packages/gi  
Detailed information:  
Python wrapper: python-gi 3.22.0  
Relevant elements:  
Found:  
uridecodebin  
souphttpsrc  
appsrc  
alsasink  
osssink  
oss4sink  
pulsesink  
id3demux  
id3v2mux  
lamemp3enc  
mad  
mpegaudioparse  
mpg123audiodec  
vorbisdec  
vorbisenc  
vorbisparse  
oggdemux  
oggmux  
oggparse  
flacdec  
flacparse  
shout2send  
Not found:  
flump3dec

Also, this is my “ **mopidy config** ” output.

/usr/lib/python2.7/dist-packages/mopidy/ext.py:202: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.  
extension\_class = entry\_point.load(require=False)  
[core]  
cache\_dir = $XDG\_CACHE\_DIR/mopidy  
config\_dir = $XDG\_CONFIG\_DIR/mopidy  
data\_dir = $XDG\_DATA\_DIR/mopidy  
max\_tracklist\_length = 10000  
restore\_state = false

[logging]  
color = true  
console\_format = %(levelname)-8s %(message)s  
debug\_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s  
debug\_file = mopidy.log  
config\_file =

[audio]  
mixer = software  
mixer\_volume =  
output = autoaudiosink  
buffer\_time =

[proxy]  
scheme =  
hostname =  
port =  
username =  
password =

[mopify]  
enabled = true  
debug = false

[mpd]  
enabled = true  
hostname = ::  
port = 6600  
password =  
max\_connections = 20  
connection\_timeout = 60  
zeroconf = Mopidy MPD server on $hostname  
command\_blacklist =  
listall  
listallinfo  
default\_playlist\_scheme = m3u

[http]  
enabled = true  
hostname = ::  
port = 6680  
static\_dir =  
zeroconf = Mopidy HTTP server on $hostname  
allowed\_origins =  
csrf\_protection = true

[stream]  
enabled = false ; Extension disabled by user config.

[m3u]  
enabled = true  
base\_dir = $XDG\_MUSIC\_DIR  
default\_encoding = latin-1  
default\_extension = .m3u8  
playlists\_dir =

[softwaremixer]  
enabled = true

[file]  
enabled = true  
media\_dirs =  
$XDG\_MUSIC\_DIR|Music  
~/|Home  
excluded\_file\_extensions =  
.jpg  
.jpeg  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

[local]  
enabled = true  
library = sqlite  
media\_dir = $XDG\_MUSIC\_DIR  
scan\_timeout = 1000  
scan\_flush\_threshold = 100  
scan\_follow\_symlinks = false  
excluded\_file\_extensions =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.png  
.txt

[spotify]  
enabled = true  
username = 3o77nr6smj7j51w92jod8s8lg  
password = \*\*\*\*\*\*\*\*  
client\_id = a2c14586-11f2-4812-9547-25009fbcbcc3  
client\_secret = \*\*\*\*\*\*\*\*  
bitrate = 160  
volume\_normalization = true  
private\_session = false  
timeout = 10  
allow\_cache = true  
allow\_network = true  
allow\_playlists = true  
search\_album\_count = 20  
search\_artist\_count = 10  
search\_track\_count = 50  
toplist\_countries =

[local-sqlite]  
enabled = true  
directories =  
Albums local:directory?type=album  
Artists local:directory?type=artist  
Composers local:directory?type=artist&role=composer  
Genres local:directory?type=genre  
Performers local:directory?type=artist&role=performer  
Release Years local:directory?type=date&format=%25Y  
Tracks local:directory?type=track  
Last Week’s Updates local:directory?max-age=604800  
Last Month’s Updates local:directory?max-age=2592000  
timeout = 10  
use\_album\_mbid\_uri = true  
use\_artist\_mbid\_uri = false  
use\_artist\_sortname = false

I really have to make this to work, so please help!

---

<div class="post-metadata">

**Author:** ![Simon-the-Sorcerer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/simon-the-sorcerer/32/1104_2.png) [@Simon-the-Sorcerer](https://discourse.mopidy.com/u/Simon-the-Sorcerer)\
**Post date:** [January 23, 2019, 12:34pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/2 "2019-01-23T12:34:57Z")

</div>

Use `netstat -tlpn | grep 6680` to see which process is listening on port 6680 (standard port mopidy http-frontend) and stop it.

Another solution is to change the port in the [http] section of your config to some port not in use.

---

<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:** [January 23, 2019, 12:45pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/3 "2019-01-23T12:45:33Z")

</div>

We have installation instructions at [https://docs.mopidy.com/en/latest/installation/raspberrypi/](https://docs.mopidy.com/en/latest/installation/raspberrypi/)

Once you’ve read them, also read [https://docs.mopidy.com/en/latest/service/](https://docs.mopidy.com/en/latest/service/)

The instructions you’ve linked have bad advice (running as the root user). Also, In future, please paste text logs rather than screenshots.

---

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 23, 2019, 2:23pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/4 "2019-01-23T14:23:42Z")

</div>

Hello, thank you very much for your reply!  
Could you please provide some alternative port avalable for use? (for example, could it be 5500 or something familiar?)  
Also, why should I edit the “HTTP” section of config? It was my understanding that the MPD section should be edited

---

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 23, 2019, 2:27pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/5 "2019-01-23T14:27:25Z")

</div>

Hello and thank you for your reply!  
I can’t understand what you mean by “the instructions have bad advice”. Could you please explain?  
(No more screenshots from now on 😄 )

---

<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:** [January 23, 2019, 3:00pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/6 "2019-01-23T15:00:18Z")

</div>

I did.

> [@kingosticks](#):
>
> (running as the root user)

They are also suggesting using crontab for some strange reason. Since you’ve now read the “Running as a service” link you should understand the correct way to run Mopidy automatically. The link may also explain why port 6600 is already in use.

**If** you still need to change the `[mpd]` port then you can use whatever _free_ port you like that is equal or greater than 1024. Port numbers below 1024 can only be used by the root user. Only you can find out what ports are free on your system but it’s likely that port 6601 is free.

---

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 24, 2019, 3:04pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/7 "2019-01-24T15:04:31Z")

</div>

Ok sir, I found available ports to use as u said, now my output is this:

/usr/lib/python2.7/dist-packages/mopidy/ext.py:202: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.  
extension\_class = entry\_point.load(require=False)  
INFO Starting Mopidy 2.2.1  
INFO Loading config from builtin defaults  
INFO Loading config from /home/pi/.config/mopidy/mopidy.conf  
INFO Loading config from command line options  
INFO Enabled extensions: mopify, spotify, mpd, http, m3u, softwaremixer, file, local, local-sqlite  
INFO Disabled extensions: stream  
INFO Starting Mopidy mixer: SoftwareMixer  
INFO Starting Mopidy audio  
INFO Starting Mopidy backends: M3UBackend, FileBackend, LocalBackend, SpotifyBackend  
INFO Loaded 0 local tracks using sqlite  
INFO Audio output set to “autoaudiosink”  
INFO Starting Mopidy core  
INFO Logged in to Spotify in offline mode  
INFO Starting Mopidy frontends: QueueManagerFrontend, MpdFrontend, HttpFrontend  
INFO MPD server running at [::]:6601  
INFO HTTP server running at [::]:6681  
INFO Starting GLib mainloop  
INFO Logged in to Spotify in online mode

Shouldn’t my playlists be visible here? (I have premium spotify account of course)

---

<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:** [January 24, 2019, 3:26pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/8 "2019-01-24T15:26:47Z")

</div>

Ideally yes they would, but Spotify Playlist support is currently broken. So no.

---

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 24, 2019, 3:37pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/9 "2019-01-24T15:37:24Z")

</div>

Alright, so I can’t play a Spotify Playlist directly from mopidy on the terminal, right? So, what should I do now?  
(I’m sorry if I sound stupid, I’m new to this whole configuration stuff)

---

<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:** [January 24, 2019, 4:01pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/10 "2019-01-24T16:01:45Z")

</div>

I don’t know what you are trying to do so I can’t answer that. But maybe I was not clear before, Spotify _playlist_ support is currently broken in Mopidy. Search works, and you can play anything you have a track URI for. But you do not have any access to playlists. That’s the case regardless of how you interact with Mopidy, be it using the terminal, a web client, MPD (including anything that uses MPD e.g. that Jasper thing by the looks of it).

---

<div class="post-metadata">

**Author:** ![Nikozi93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/nikozi93/32/1082_2.png) [@Nikozi93](https://discourse.mopidy.com/u/Nikozi93)\
**Post date:** [January 31, 2019, 5:57pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/11 "2019-01-31T17:57:16Z")

</div>

Thank you for your reply sir, much appreciated! Unfortunately it looks like I may have to abandon this project ☹

---

<div class="post-metadata">

**Author:** ![Glenn\_Mesel](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Glenn\_Mesel](https://discourse.mopidy.com/u/Glenn_Mesel)\
**Post date:** [February 20, 2019, 12:31pm UTC](https://discourse.mopidy.com/t/mpd-server-startup-failed-errno-98-adress-already-in-use/3045/12 "2019-02-20T12:31:21Z")

</div>

Some ETA when playlists will come back? And what happend? Or is it a “company secret”?

* * *

Bare en nyskjerrig nordmann.
