# Media scanning error message

**URL:** <https://discourse.mopidy.com/t/media-scanning-error-message/3533>\
**Category:** Misc\
**Created:** [October 17, 2019, 1:53pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533 "2019-10-17T13:53:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 17, 2019, 1:53pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/1 "2019-10-17T13:53:44Z")

</div>

Hello  
I have a reasonably large hard drive with 68692 files mp3s.  
When I launch :

sudo mopidyctl local scan

about half way through the scan, it stops with the error below.

INFO Scanned 31900 of 68692 files in 2100s, ~2422s left.

(mopidy:2960): GLib-ERROR \*\*: 14:50:59.409: …/…/…/glib/gmem.c:170: failed to allocate 524288 bytes  
Trace/breakpoint trap

The microsd card has 15Gigs available.

I cannot find any mention of this error on the forum, so maybe someone as an idea how to get around it?  
Thanks

---

<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:** [October 17, 2019, 2:43pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/2 "2019-10-17T14:43:04Z")

</div>

This sounds a bit like [https://github.com/mopidy/mopidy/issues/1648](https://github.com/mopidy/mopidy/issues/1648). We need your `mopidy deps`, `mopidy config`, more info about your system, and the log showing what file(s) this was on.

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 17, 2019, 7:57pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/3 "2019-10-17T19:57:02Z")

</div>

Thank you for your interest. Below are the logs `mopidy deps` , `mopidy config` ,

I’m no dev person , so could you give me an idea where the logs you need could be?

admin@pimusic:~ $ mopidy deps  
Executable: /usr/local/bin/mopidy  
Platform: Linux-4.19.75-v7l±armv7l-with-debian-10.1  
Python: CPython 2.7.16 from /usr/lib/python2.7  
Mopidy: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-MusicBox-Webclient: 2.5.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=1.1.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Mobile: 1.9.0 from /home/admin/.local/lib/python2.7/site-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=0.19: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Iris: 3.41.2 from /home/admin/.local/lib/python2.7/site-packages  
ConfigObj\>=5.0.6: 5.0.6 from /home/admin/.local/lib/python2.7/site-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
requests\>=2.0.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
setuptools\>=3.3: 40.8.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Local-Images\>=1.0: 1.0.0 from /home/admin/.local/lib/python2.7/site-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
uritools\>=1.0: 2.2.0 from /home/admin/.local/lib/python2.7/site-packages  
ipaddress; python\_version == “2.7”: 1.0.17 from /usr/lib/python2.7/dist-packages  
Mopidy\>=1.1: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=2.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-API-Explorer: 1.0.1 from /home/admin/.local/lib/python2.7/site-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=0.19: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Moped: 0.7.1 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=1.0.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Local-Images: 1.0.0 from /home/admin/.local/lib/python2.7/site-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
uritools\>=1.0: 2.2.0 from /home/admin/.local/lib/python2.7/site-packages  
ipaddress; python\_version == “2.7”: 1.0.17 from /usr/lib/python2.7/dist-packages  
Mopidy\>=1.1: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/dist-packages  
Mopidy\>=2.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages  
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages  
tornado\<6,\>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages  
backports-abc\>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages  
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages  
six: 1.12.0 from /usr/lib/python2.7/dist-packages  
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
Pykka\>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages  
pyspotify\>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages  
cffi\>=1.0.0: 1.12.2 from /usr/lib/python2.7/dist-packages  
requests\>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages  
GStreamer: 1.14.4.0 from /usr/lib/python2.7/dist-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

admin@pimusic:~ $ mopidy config  
[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 =

[mobile]  
enabled = true  
title = Mopidy Mobile on $hostname  
ws\_url =

[local-images]  
enabled = true  
library = json  
base\_uri = /images/  
image\_dir =  
album\_art\_files =  
\*.jpg  
\*.jpeg  
\*.png

[iris]  
enabled = true  
country = NZ  
locale = en\_NZ  
spotify\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_spotify.php](https://jamesbarnsley.co.nz/iris/auth_spotify.php)  
lastfm\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_lastfm.php](https://jamesbarnsley.co.nz/iris/auth_lastfm.php)  
genius\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_genius.php](https://jamesbarnsley.co.nz/iris/auth_genius.php)  
snapcast\_enabled = false  
snapcast\_host = localhost  
snapcast\_port = 1705  
snapcast\_buffer\_size = 8192

[api\_explorer]  
enabled = true

[mpd]  
enabled = true  
hostname = 127.0.0.1  
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 = 127.0.0.1  
port = 6680  
static\_dir =  
zeroconf = Mopidy HTTP server on $hostname  
allowed\_origins =  
csrf\_protection = true

[stream]  
enabled = true  
protocols =  
http  
https  
mms  
rtmp  
rtmps  
rtsp  
metadata\_blacklist =  
timeout = 5000

[m3u]  
enabled = true  
base\_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 =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.pdf  
.png  
.txt  
.zip  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

[local]  
enabled = false ; Extension disabled due to config errors.  
library = json  
media\_dir = ; Must be set.  
scan\_timeout = 1000  
scan\_flush\_threshold = 100  
scan\_follow\_symlinks = false  
excluded\_file\_extensions =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.pdf  
.png  
.txt  
.zip

[musicbox\_webclient]  
enabled = true  
musicbox = false  
websocket\_host =  
websocket\_port =  
on\_track\_click = PLAY\_ALL

[moped]  
enabled = true

[spotify]  
enabled = false ; Extension disabled due to config errors.  
username = ; Must be set.  
password = ; Must be set.  
client\_id = ; Must be set.  
client\_secret = ; Must be set.  
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 =

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 18, 2019, 5:43am UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/4 "2019-10-18T05:43:56Z")

</div>

admin@pimusic:~ $ mopidy -vvv  
INFO 2019-10-18 07:41:50,154 [5201:MainThread] mopidy. **main**  
Starting Mopidy 2.3.0  
DEBUG 2019-10-18 07:41:50,170 [5201:MainThread] mopidy.ext  
Loading entry point: mobile = mopidy\_mobile:Extension  
DEBUG 2019-10-18 07:41:50,174 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Mobile 1.9.0  
DEBUG 2019-10-18 07:41:50,175 [5201:MainThread] mopidy.ext  
Loading entry point: local-images = mopidy\_local\_images:Extension  
DEBUG 2019-10-18 07:41:50,178 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Local-Images 1.0.0  
DEBUG 2019-10-18 07:41:50,179 [5201:MainThread] mopidy.ext  
Loading entry point: iris = mopidy\_iris:Extension  
DEBUG 2019-10-18 07:41:50,838 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Iris 3.41.2  
DEBUG 2019-10-18 07:41:50,839 [5201:MainThread] mopidy.ext  
Loading entry point: api\_explorer = mopidy\_explorer:APIExplorerExtension  
DEBUG 2019-10-18 07:41:50,842 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-API-Explorer 1.0.1  
DEBUG 2019-10-18 07:41:50,844 [5201:MainThread] mopidy.ext  
Loading entry point: mpd = mopidy.mpd:Extension  
DEBUG 2019-10-18 07:41:50,846 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-MPD 2.3.0  
DEBUG 2019-10-18 07:41:50,846 [5201:MainThread] mopidy.ext  
Loading entry point: http = mopidy.http:Extension  
DEBUG 2019-10-18 07:41:50,849 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-HTTP 2.3.0  
DEBUG 2019-10-18 07:41:50,849 [5201:MainThread] mopidy.ext  
Loading entry point: stream = mopidy.stream:Extension  
DEBUG 2019-10-18 07:41:50,851 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Stream 2.3.0  
DEBUG 2019-10-18 07:41:50,851 [5201:MainThread] mopidy.ext  
Loading entry point: m3u = mopidy.m3u:Extension  
DEBUG 2019-10-18 07:41:50,853 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-M3U 2.3.0  
DEBUG 2019-10-18 07:41:50,854 [5201:MainThread] mopidy.ext  
Loading entry point: softwaremixer = mopidy.softwaremixer:Extension  
DEBUG 2019-10-18 07:41:50,856 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-SoftwareMixer 2.3.0  
DEBUG 2019-10-18 07:41:50,856 [5201:MainThread] mopidy.ext  
Loading entry point: file = mopidy.file:Extension  
DEBUG 2019-10-18 07:41:50,858 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-File 2.3.0  
DEBUG 2019-10-18 07:41:50,858 [5201:MainThread] mopidy.ext  
Loading entry point: local = mopidy.local:Extension  
DEBUG 2019-10-18 07:41:50,866 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Local 2.3.0  
DEBUG 2019-10-18 07:41:50,867 [5201:MainThread] mopidy.ext  
Loading entry point: musicbox\_webclient = mopidy\_musicbox\_webclient:Extension  
DEBUG 2019-10-18 07:41:50,870 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-MusicBox-Webclient 2.5.0  
DEBUG 2019-10-18 07:41:50,871 [5201:MainThread] mopidy.ext  
Loading entry point: moped = mopidy\_moped:MopedExtension  
DEBUG 2019-10-18 07:41:50,873 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Moped 0.7.1  
DEBUG 2019-10-18 07:41:50,886 [5201:MainThread] mopidy.ext  
Loading entry point: spotify = mopidy\_spotify:Extension  
DEBUG 2019-10-18 07:41:50,889 [5201:MainThread] mopidy.ext  
Loaded extension: Mopidy-Spotify 3.1.0  
DEBUG 2019-10-18 07:41:50,904 [5201:MainThread] mopidy.ext  
Discovered extensions: mobile, local-images, iris, api\_explorer, mpd, http, stream, m3u, softwaremixer, file, local, musicbox\_webclient, moped, spotify  
DEBUG 2019-10-18 07:41:50,950 [5201:MainThread] mopidy.config.keyring  
Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.secrets service not running)  
INFO 2019-10-18 07:41:50,951 [5201:MainThread] mopidy.config  
Loading config from builtin defaults  
DEBUG 2019-10-18 07:41:50,956 [5201:MainThread] mopidy.config  
Loading config from /etc/xdg/mopidy/mopidy.conf failed; it does not exist  
INFO 2019-10-18 07:41:50,959 [5201:MainThread] mopidy.config  
Loading config from /home/admin/.config/mopidy/mopidy.conf  
INFO 2019-10-18 07:41:50,962 [5201:MainThread] mopidy.config  
Loading config from command line options  
DEBUG 2019-10-18 07:41:50,983 [5201:MainThread] mopidy.ext  
Validating extension: mobile  
DEBUG 2019-10-18 07:41:51,062 [5201:MainThread] mopidy.ext  
Validating extension: local-images  
DEBUG 2019-10-18 07:41:51,080 [5201:MainThread] mopidy.ext  
Validating extension: iris  
DEBUG 2019-10-18 07:41:51,099 [5201:MainThread] mopidy.ext  
Validating extension: api\_explorer  
DEBUG 2019-10-18 07:41:51,109 [5201:MainThread] mopidy.ext  
Validating extension: mpd  
DEBUG 2019-10-18 07:41:51,112 [5201:MainThread] mopidy.ext  
Validating extension: http  
DEBUG 2019-10-18 07:41:51,115 [5201:MainThread] mopidy.ext  
Validating extension: stream  
DEBUG 2019-10-18 07:41:51,117 [5201:MainThread] mopidy.ext  
Validating extension: m3u  
DEBUG 2019-10-18 07:41:51,120 [5201:MainThread] mopidy.ext  
Validating extension: softwaremixer  
DEBUG 2019-10-18 07:41:51,122 [5201:MainThread] mopidy.ext  
Validating extension: file  
DEBUG 2019-10-18 07:41:51,125 [5201:MainThread] mopidy.ext  
Validating extension: local  
DEBUG 2019-10-18 07:41:51,128 [5201:MainThread] mopidy.ext  
Validating extension: musicbox\_webclient  
DEBUG 2019-10-18 07:41:51,138 [5201:MainThread] mopidy.ext  
Validating extension: moped  
DEBUG 2019-10-18 07:41:51,147 [5201:MainThread] mopidy.ext  
Validating extension: spotify  
INFO 2019-10-18 07:41:51,159 [5201:MainThread] mopidy. **main**  
Enabled extensions: iris, mpd, http, moped, stream, mobile, m3u, musicbox\_webclient, softwaremixer, file, local-images, api\_explorer  
INFO 2019-10-18 07:41:51,160 [5201:MainThread] mopidy. **main**  
Disabled extensions: spotify, local  
WARNING 2019-10-18 07:41:51,161 [5201:MainThread] mopidy. **main**  
Found local configuration errors, the extension has been automatically disabled:  
WARNING 2019-10-18 07:41:51,161 [5201:MainThread] mopidy. **main**  
local/media\_dir must be set.  
WARNING 2019-10-18 07:41:51,162 [5201:MainThread] mopidy. **main**  
Found spotify configuration errors, the extension has been automatically disabled:  
WARNING 2019-10-18 07:41:51,162 [5201:MainThread] mopidy. **main**  
spotify/username must be set.  
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy. **main**  
spotify/client\_secret must be set.  
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy. **main**  
spotify/password must be set.  
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy. **main**  
spotify/client\_id must be set.  
WARNING 2019-10-18 07:41:51,164 [5201:MainThread] mopidy. **main**  
Please fix the extension configuration errors or disable the extensions to silence these messages.  
DEBUG 2019-10-18 07:41:51,251 [5201:MainThread] mopidy.commands  
Available Mopidy mixers: SoftwareMixer  
INFO 2019-10-18 07:41:51,252 [5201:MainThread] mopidy.commands  
Starting Mopidy mixer: SoftwareMixer  
DEBUG 2019-10-18 07:41:51,253 [5201:MainThread] pykka  
Registered SoftwareMixer (urn:uuid:07cf7592-70c0-47d7-a81d-0de0af3a40fb)  
DEBUG 2019-10-18 07:41:51,253 [5201:MainThread] pykka  
Starting SoftwareMixer (urn:uuid:07cf7592-70c0-47d7-a81d-0de0af3a40fb)  
DEBUG 2019-10-18 07:41:51,256 [5201:MainThread] mopidy.commands  
Mixer volume left unchanged  
INFO 2019-10-18 07:41:51,257 [5201:MainThread] mopidy.commands  
Starting Mopidy audio  
DEBUG 2019-10-18 07:41:51,258 [5201:MainThread] pykka  
Registered Audio (urn:uuid:7889c17d-98fd-4dfb-aef4-c6ff03f4ab82)  
DEBUG 2019-10-18 07:41:51,258 [5201:MainThread] pykka  
Starting Audio (urn:uuid:7889c17d-98fd-4dfb-aef4-c6ff03f4ab82)  
INFO 2019-10-18 07:41:51,262 [5201:MainThread] mopidy.commands  
Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend  
DEBUG 2019-10-18 07:41:51,278 [5201:MainThread] pykka  
Registered StreamBackend (urn:uuid:d9b16caa-072f-4c89-ba54-ad7dea5aaa7b)  
DEBUG 2019-10-18 07:41:51,278 [5201:MainThread] pykka  
Starting StreamBackend (urn:uuid:d9b16caa-072f-4c89-ba54-ad7dea5aaa7b)  
DEBUG 2019-10-18 07:41:51,288 [5201:MainThread] pykka  
Registered M3UBackend (urn:uuid:54d1043b-55d2-4f3b-955e-e1e1f8688333)  
DEBUG 2019-10-18 07:41:51,289 [5201:MainThread] pykka  
Starting M3UBackend (urn:uuid:54d1043b-55d2-4f3b-955e-e1e1f8688333)  
DEBUG 2019-10-18 07:41:51,298 [5201:MainThread] mopidy.file.library  
Failed expanding path (XDG\_MUSIC\_DIR) from file/media\_dirs config value. DEBUG 2019-10-18 07:41:51,299 [5201:MainThread] pykka Registered FileBackend (urn:uuid:10d621e4-6893-4d04-88d0-adcb1c25277d) DEBUG 2019-10-18 07:41:51,299 [5201:MainThread] pykka Starting FileBackend (urn:uuid:10d621e4-6893-4d04-88d0-adcb1c25277d) INFO 2019-10-18 07:41:51,307 [5201:MainThread] mopidy.commands Starting Mopidy core DEBUG 2019-10-18 07:41:51,313 [5201:MainThread] pykka Registered Core (urn:uuid:963954d3-9e2c-49ee-ab1a-8229f02c4eac) DEBUG 2019-10-18 07:41:51,314 [5201:MainThread] pykka Starting Core (urn:uuid:963954d3-9e2c-49ee-ab1a-8229f02c4eac) INFO 2019-10-18 07:41:51,328 [5201:MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, MpdFrontend, HttpFrontend DEBUG 2019-10-18 07:41:51,329 [5201:MainThread] pykka Registered IrisFrontend (urn:uuid:35c8dfb2-bb56-4112-a702-03fd28bb895b) INFO 2019-10-18 07:41:51,330 [5201:Audio-2] mopidy.audio.actor Audio output set to "autoaudiosink" DEBUG 2019-10-18 07:41:51,330 [5201:MainThread] pykka Starting IrisFrontend (urn:uuid:35c8dfb2-bb56-4112-a702-03fd28bb895b) INFO 2019-10-18 07:41:51,331 [5201:IrisFrontend-7] mopidy\_iris.core Starting Iris 3.41.2 ERROR 2019-10-18 07:41:51,335 [5201:MainThread] mopidy.commands Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 98] Address already in use DEBUG 2019-10-18 07:41:51,336 [5201:MainThread] mopidy.http.actor Starting HTTP server DEBUG 2019-10-18 07:41:51,337 [5201:MainThread] pykka Registered HttpFrontend (urn:uuid:6a184f11-2993-4762-8ef5-bbf548af0615) DEBUG 2019-10-18 07:41:51,342 [5201:MainThread] pykka Starting HttpFrontend (urn:uuid:6a184f11-2993-4762-8ef5-bbf548af0615) INFO 2019-10-18 07:41:51,343 [5201:MainThread] mopidy.commands Starting GLib mainloop INFO 2019-10-18 07:41:51,344 [5201:HttpFrontend-9] mopidy.http.actor HTTP server running at [::ffff:127.0.0.1]:6680 DEBUG 2019-10-18 07:41:51,349 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: mobile DEBUG 2019-10-18 07:41:51,351 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: images DEBUG 2019-10-18 07:41:51,352 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: iris DEBUG 2019-10-18 07:41:51,353 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: mopidy DEBUG 2019-10-18 07:41:51,360 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: musicbox\_webclient DEBUG 2019-10-18 07:41:51,361 [5201:HttpServer] mopidy.http.actor Loaded static HTTP extension: api\_explorer DEBUG 2019-10-18 07:41:51,362 [5201:HttpServer] mopidy.http.actor Loaded static HTTP extension: moped DEBUG 2019-10-18 07:41:51,363 [5201:HttpServer] mopidy.http.actor HTTP routes from extensions: u'/mobile': \<class 'mopidy.http.handlers.AddSlashHandler'\> u'/mobile/': \<class 'tornado.web.RedirectHandler'\> u'/mobile/(.\*\\.html)': \<class 'mopidy\_mobile.web.IndexHandler'\> u'/mobile/(.\*\\.json)': \<class 'mopidy\_mobile.web.IndexHandler'\> u'/mobile/(.\*)': \<class 'mopidy\_mobile.web.StaticHandler'\> u'/images': \<class 'mopidy.http.handlers.AddSlashHandler'\> u'/images/(index.html)?': \<class 'mopidy\_local\_images.web.IndexHandler'\> u'/images/(.+)': \<class 'mopidy\_local\_images.web.ImageHandler'\> u'/iris': \<class 'mopidy.http.handlers.AddSlashHandler'\> u'/iris/images/(.\*)': \<class 'tornado.web.StaticFileHandler'\> u'/iris/http/([^/]\*)': \<class 'mopidy\_iris.handlers.HttpHandler'\> u'/iris/ws/?': \<class 'mopidy\_iris.handlers.WebsocketHandler'\> u'/iris/assets/(.\*)': \<class 'tornado.web.StaticFileHandler'\> u'/iris/((.\*)(?:css|js|json|map))’: \<class ‘tornado.web.StaticFileHandler’\>  
u’/iris/(._)’: \<class ‘mopidy\_iris.ReactRouterHandler’\>  
u’/mopidy’: \<class ‘mopidy.http.handlers.AddSlashHandler’\>  
u’/mopidy/ws/?’: \<class ‘mopidy.http.handlers.WebSocketHandler’\>  
u’/mopidy/rpc’: \<class ‘mopidy.http.handlers.JsonRpcHandler’\>  
u’/mopidy/(.+)’: \<class ‘mopidy.http.handlers.StaticFileHandler’\>  
u’/mopidy/’: \<class ‘mopidy.http.handlers.ClientListHandler’\>  
u’/musicbox\_webclient’: \<class ‘mopidy.http.handlers.AddSlashHandler’\>  
u’/musicbox\_webclient/’: \<class ‘tornado.web.RedirectHandler’\>  
u’/musicbox\_webclient/(index.html)’: \<class ‘mopidy\_musicbox\_webclient.web.IndexHandler’\>  
u’/musicbox\_webclient/(._)’: \<class ‘mopidy\_musicbox\_webclient.web.StaticHandler’\>  
u’/api\_explorer’: \<class ‘mopidy.http.handlers.AddSlashHandler’\>  
u’/api\_explorer/(._)’: \<class ‘mopidy.http.handlers.StaticFileHandler’\>  
u’/moped’: \<class ‘mopidy.http.handlers.AddSlashHandler’\>  
u’/moped/(._)’: \<class ‘mopidy.http.handlers.StaticFileHandler’\>  
u’/’: \<class ‘tornado.web.RedirectHandler’\>  
DEBUG 2019-10-18 07:41:51,387 [5201:HttpFrontend-9] mopidy.zeroconf  
Zeroconf service “Mopidy HTTP server on pimusic” (\_http.\_tcp at []:6680): Published  
DEBUG 2019-10-18 07:41:51,392 [5201:HttpFrontend-9] mopidy.zeroconf  
Zeroconf service “Mopidy HTTP server on pimusic” (\_mopidy-http.\_tcp at []:6680): Published

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 18, 2019, 8:36am UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/5 "2019-10-18T08:36:58Z")

</div>

Attached is a screen grab of the memory filling up a minute before the crash, plus the post crash state.

 ![01](https://canada1.discourse-cdn.com/flex036/uploads/mopidy/original/2X/1/12c213fc5482c5d275dbc6a2da3aed83233185c5.png)  
 ![02](https://canada1.discourse-cdn.com/flex036/uploads/mopidy/original/2X/6/69b6f105259e516be51eb523d45758c3b62e477b.png)

Thanks Christopher

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 18, 2019, 4:23pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/6 "2019-10-18T16:23:15Z")

</div>

I ran  
sudo service mopidy force-reload

then

sudo mopidyctl local scan

INFO Scanned 32200 of 68692 files in 2209s, ~2503s left.

(mopidy:7438): GLib-ERROR \*\*: 11:17:39.827: …/…/…/glib/gmem.c:105: failed to allocate 565918 bytes  
Trace/breakpoint trap

but the RAM fills up and the operation crashes at about the same place, so I presume that it is not a particular file issue.

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 22, 2019, 6:06am UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/7 "2019-10-22T06:06:02Z")

</div>

It seems that RAM saturation is the issue here and a quick investigation of a 8 GBs Raspberry PI shows that it currently does not exist. Has anyone any ideas about how to work around this issue ? Many thanks

---

<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:** [October 22, 2019, 2:21pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/8 "2019-10-22T14:21:12Z")

</div>

It could be an issue with particular file types in GStreamer or it could be an issue with Mopidy itself. One work-around would be to do multiple, small incremental scans of your library. e.g. move the files elsewhere and then repeatedly move 10% of the files back into the media\_dir and scan. This should do an incremental scan of only the new files each time.

Another interesting experiment would be to try the scan but using the previous version of Raspbian (stretch) where I don’t remember anyone reporting this issue.

When running as a service, the config command needs to be `sudo mopidyctl config`. However, to debug something like this you need to be running as your user, the service makes everything too hard. If you can convert your configuration/setup so you can recreate this issue and catch the debug log with `mopidy -v local scan` then that would be a good start in starting to debug this. Otherwise we’ll take a look when we get a chance.

---

<div class="post-metadata">

**Author:** ![Christopher\_Lowden](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/christopher_lowden/32/1310_2.png) [@Christopher\_Lowden](https://discourse.mopidy.com/u/Christopher_Lowden)\
**Post date:** [October 23, 2019, 10:30pm UTC](https://discourse.mopidy.com/t/media-scanning-error-message/3533/9 "2019-10-23T22:30:57Z")

</div>

I don’t know why I didn’t think of incremental scans. The incremental scans have worked pretty painlessly. I get this kind of file error on certain file  
WARNING Failed local:track:Roy\_Ayers/Ubiquity/04\_Love.mp3: Timeout after 1000ms  
But that is another story …

I will try to do a bit of debugging when I get a moment. Many thanks
