Funkwhale doesn't see files to import
Steps to reproduce
Execute the following command:
./manage import_files 6b4b8a91-8255-4d48-9b09-ed3d25728f49 /srv/funkwhale/data/music/David\ Bowie\ -\ Space\ Oddity\ \(1969\)/*.flac --recursive --noinput --in-place
What happens?
When command executes, I see the following output:
2019-12-18 12:49:12,581 funkwhale_api.config INFO Loaded env file at /srv/funkwhale/config/.env
2019-12-18 12:49:12,581 funkwhale_api.config INFO Running with no plugins
Checking imported paths against settings.MUSIC_DIRECTORY_PATH
CommandError: No file matching pattern, aborting
What is expected?
*.flac files inside /srv/funkwhale/data/music/David\ Bowie\ -\ Space\ Oddity\ (1969)/ must be imported.
Context
Here is my config/.env:
cat config/.env
# Ansible managed
FUNKWHALE_HOSTNAME=f1xxman.duckdns.org
FUNKWHALE_PROTOCOL=https
DJANGO_SECRET_KEY=redacted
FUNKWHALE_API_IP=127.0.0.1
FUNKWHALE_API_PORT=5000
FUNKWHALE_WEB_WORKERS=1
REVERSE_PROXY_TYPE=nginx
DATABASE_URL=postgresql://funkwhale@:5432/funkwhale
CACHE_URL=redis://127.0.0.1:6379/0
MEDIA_ROOT=/srv/funkwhale/data/media
STATIC_ROOT=/srv/funkwhale/data/static
MUSIC_DIRECTORY_PATH=/srv/funkwhale/data/music
MUSIC_DIRECTORY_SERVE_PATH=/srv/funkwhale/data/music
FUNKWHALE_FRONTEND_PATH=/srv/funkwhale/front/dist
FUNKWHALE_SPA_HTML_ROOT=/srv/funkwhale/front/dist/index.html
NGINX_MAX_BODY_SIZE=100M
DJANGO_SETTINGS_MODULE=config.settings.production
/srv/funkwhale/data/music directory is a symlink:
ls -la
total 12
drwxr-xr-x 3 funkwhale root 4096 Dec 16 20:16 .
drwxr-xr-x 10 funkwhale root 4096 Dec 15 11:16 ..
lrwxrwxrwx 1 root root 30 Dec 16 20:16 media -> /home/pi/data/funkwhale/media/
lrwxrwxrwx 1 root root 30 Dec 16 20:01 music -> /home/pi/data/funkwhale/music/
drwxr-xr-x 10 funkwhale root 4096 Dec 15 11:08 static
There are a lot of other FLAC tracks in the music directory (they follow the same directory structure) and all of them seems to be imported.
Funkwhale version(s) affected: 0.20.1
Funkwhale installed via Ansible script on Raspbian Buster. Funkwhale has an access to the album directory and its files:
ls -la | grep 'Space Oddity'
drwxrwxrwx 3 funkwhale funkwhale 4096 Dec 18 11:24 David Bowie - Space Oddity (1969)
ls David\ Bowie\ -\ Space\ Oddity\ \(1969\)/ -la
total 1104692
drwxrwxrwx 3 funkwhale funkwhale 4096 Dec 18 11:24 .
drwxrwxrwx 98 funkwhale funkwhale 12288 Dec 18 11:42 ..
-rwxrwxrwx 1 funkwhale funkwhale 108508168 Dec 18 11:24 '01 - Space Oddity.flac'
-rwxrwxrwx 1 funkwhale funkwhale 134123950 Dec 18 11:24 '02 - Unwashed and Somewhat Slightly Dazed.flac'
-rwxrwxrwx 1 funkwhale funkwhale 12685847 Dec 18 11:24 '03 - (Don'\''t Sit Down).flac'
-rwxrwxrwx 1 funkwhale funkwhale 49166405 Dec 18 11:24 '04 - Letter to Hermione.flac'
-rwxrwxrwx 1 funkwhale funkwhale 196806158 Dec 18 11:24 '05 - Cygnet Committee.flac'
-rwxrwxrwx 1 funkwhale funkwhale 68748718 Dec 18 11:24 '06 - Janine.flac'
-rwxrwxrwx 1 funkwhale funkwhale 57640610 Dec 18 11:24 '07 - An Occasional Dream.flac'
-rwxrwxrwx 1 funkwhale funkwhale 93626731 Dec 18 11:24 '08 - Wild Eyed Boy From Freecloud.flac'
-rwxrwxrwx 1 funkwhale funkwhale 66523272 Dec 18 11:23 "09 - God Knows I'm Good.flac"
-rwxrwxrwx 1 funkwhale funkwhale 142689287 Dec 18 11:24 '10 - Memory of a Free Festival.flac'
-rwxrwxrwx 1 funkwhale funkwhale 32274890 Dec 18 11:24 '11 - Conversation Piece.flac'
-rwxrwxrwx 1 funkwhale funkwhale 88024842 Dec 18 11:24 '12 - Memory of a Free Festival Part 1.flac'
-rwxrwxrwx 1 funkwhale funkwhale 80212887 Dec 18 11:24 '13 - Memory of a Free Festival Part 2.flac'
drwxrwxrwx 2 funkwhale funkwhale 4096 Dec 18 11:24 Artwork
-rwxrwxrwx 1 funkwhale funkwhale 88120 Dec 18 11:22 folder.jpg
-rwxrwxrwx 1 funkwhale funkwhale 10073 Dec 18 11:22 info.txt
-rwxrwxrwx 1 funkwhale funkwhale 418 Dec 18 11:22 Playlist.m3u
-rwxrwxrwx 1 funkwhale funkwhale 1266 Dec 18 11:22 'Rip Info.txt'
-rwxrwxrwx 1 funkwhale funkwhale 61 Dec 18 11:22 'Ripped by Dr. Robert.txt'