# Scan multiple file sources

**URL:** <https://discourse.mopidy.com/t/scan-multiple-file-sources/5626>\
**Category:** Misc\
**Created:** [December 6, 2022, 8:14am UTC](https://discourse.mopidy.com/t/scan-multiple-file-sources/5626 "2022-12-06T08:14:18Z")\
**Posts on this page:** 3\
**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:** [December 6, 2022, 8:14am UTC](https://discourse.mopidy.com/t/scan-multiple-file-sources/5626/1 "2022-12-06T08:14:19Z")

</div>

Hello  
I have been running a multiple instance mopidy system. For some reason, I cannot remember how to force mopidy to scan both configs.

```auto
admin@pimusic:~ $ sudo mopidyctl local scan
[sudo] password for admin: 
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan" as user mopidy
INFO [MainThread] mopidy. __main__ Starting Mopidy 3.3.0
ERROR [MainThread] mopidy.ext Failed to load extension mopify: No module named 'mem'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 221, in load_extensions
    extension_class = entry_point.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/ __init__.py", line 2417, in resolve
    module = __import__ (self.module_name, fromlist=[' __name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/mopidy_mopify/ __init__.py", line 7, in <module>
    import mem
ModuleNotFoundError: No module named 'mem'
INFO [MainThread] mopidy.config Loading config from builtin defaults
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidySFX.conf
INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
INFO [MainThread] mopidy.config Loading config from command line options
WARNING [MainThread] mopidy.config Ignoring config section 'moped' because no matching extension was found
WARNING [MainThread] mopidy.config Ignoring config section 'musicbox_webclient' because no matching extension was found
WARNING [MainThread] mopidy.config Ignoring config section 'local-images' because no matching extension was found
INFO [MainThread] mopidy. __main__ Enabled extensions: m3u, mpd, stream, http, softwaremixer, alsamixer, iris, local, scrobbler, mobile, file
INFO [MainThread] mopidy. __main__ Disabled extensions: spotify
INFO [MainThread] mopidy_local.commands Finding files in file:///var/lib/mopidy/media/LOWDEN_MUSIC/MUSIC ...
INFO [MainThread] mopidy_local.commands Found 56626 files in file:///var/lib/mopidy/media/LOWDEN_MUSIC/MUSIC
INFO [MainThread] mopidy_local.commands Checking 49532 tracks from library
INFO [MainThread] mopidy_local.commands Removing 0 missing tracks
INFO [MainThread] mopidy_local.commands Found 2 tracks which need to be updated
INFO [MainThread] mopidy_local.commands Scanning...
INFO [MainThread] mopidy_local.commands Scanned 2 of 2 files in 2.011s.
INFO [MainThread] mopidy_local.commands Done scanning
INFO [MainThread] mopidy_local.storage Cleaning up image directory
admin@pimusic:~ $ 

```

The above scans INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf  
but not  
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidySFX.conf

Before I launch a scan , I delete  
/var/lib/mopidySFX/local/library.db

and the scan creates a new library.db file that is empty.

The media\_dir is the right path.

```auto
[local]
enabled = true
library = json
media_dir = /var/lib/mopidy/media/LOWDEN_SFX/SFX_FILES
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip

```

Is there anything I am missing ? Is there a way to force a scan on a specific conf?  
Thank you

---

<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:** [December 6, 2022, 8:36am UTC](https://discourse.mopidy.com/t/scan-multiple-file-sources/5626/2 "2022-12-06T08:36:09Z")

</div>

Adapted this terminal command for specific conf and the scan went perfectly

```auto
admin@pimusic:~ $ /usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidySFX.conf local scan

```

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [June 6, 2023, 8:36pm UTC](https://discourse.mopidy.com/t/scan-multiple-file-sources/5626/3 "2023-06-06T20:36:19Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
