Error "Track cannot be loaded / you may have a connectivity issue" after CLI import only on new songs
Steps to reproduce
Describe the steps to reproduce the issue, like:
Import via CLI :
export LIBRARY_ID="<my_libary_id>"
python api/manage.py import_files $LIBRARY_ID "/<my_user_home>/**/*.mp3" --recursive --noinput
Warning : not "--in-place" mode
What happens?
Hi everybody ! I've imported new songs to my instance via python manage.py (root) and everything works fine, but now when I try to play my new songs there is the Error "Track cannot be loaded / you may have a connectivity issue" (only on new songs, old songs play fine) !
The new tracks are in /var/www/funkwhale/data/media/tracks/ and the old tracks were in /var/www/funkwhale/media/tracks/
New tracks comes with rights of root (I've done the import from root), so I've done : chown -R funkwhale.funkwhale /var/www/funkwhale/data/media/ because /var/www/funkwhale/media/ had funkwhale.funkwhale rights.
Also, I've copied the "users" directory from /var/www/funkwhale/media/ to /var/www/funkwhale/data/media/ because there wasn't "users" directory in /var/www/funkwhale/data/media/
These tricks aren't resolving my problem, any idea ? Regards
What is expected?
New songs plays.
Context
Funkwhale version(s) affected: 0.20.1
If relevant, share additional context here like:
- Browser type and version : Firefox 73.0.1 x64
- Instance configuration : nginx from yunohost
In my .env file MEDIA_ROOT=/var/www/funkwhale/media