Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

Funkwhale

2 Topics 26 Posts
  • Funkwhale - Package Updates

    Pinned Locked
    14
    1 Votes
    14 Posts
    1k Views
    Package UpdatesP
    [1.2.5] Update funkwhale to 2.0.18 Full Changelog
  • How to get music in?

    12
    1 Votes
    12 Posts
    2k Views
    jdaviescoatesJ
    I finally got this working with Claude's help, so I asked it to write this quick guide for anyone else wanting to use music from a Cloudron Volume with Funkwhale (2.x) via in-place import (no copying). 1. Mount the volume In the app's Storage settings, add the volume as a mount (read-only is fine). It appears at /media/<VolumeName>. 2. Don't change the env vars Leave MUSIC_DIRECTORY_PATH and MEDIA_ROOT unset in /app/data/env.sh. The package's nginx config (/run/nginx.conf) serves in-place files from /app/data/music/ regardless, so pointing MUSIC_DIRECTORY_PATH at /media/... lets the import run but breaks playback. Remove any lines you've added and restart the app. 3. Symlink the volume into /app/data/music In the Web Terminal, replacing <VolumeName> with your volume's name: ln -s /media/<VolumeName> /app/data/music/<VolumeName> chown -h cloudron:cloudron /app/data/music/<VolumeName> If your music sits in a subfolder of the volume, link that subfolder instead. nginx follows the symlink fine. 4. Get a library ID Funkwhale 2.x creates built-in libraries per user (me / followers / instance / everyone) and the old /content/libraries/ page has gone, so list them from the terminal: source /run/funkwhale/env.sh source /app/code/venv/bin/activate gosu cloudron:cloudron funkwhale-manage shell -c "from funkwhale_api.music.models import Library; [print(l.uuid, l.name, l.privacy_level, l.actor) for l in Library.objects.all()]" 5. Import in place Test with one folder first: gosu cloudron:cloudron funkwhale-manage import_files <library-uuid> "/app/data/music/<VolumeName>/<Some Artist>/" --recursive --noinput --in-place Then for the full library, run it detached so closing the terminal doesn't kill it (queuing ~100k files over an SSHFS mount took me a few hours): setsid nohup gosu cloudron:cloudron funkwhale-manage import_files <library-uuid> "/app/data/music/<VolumeName>/" --recursive --noinput --in-place --async > /tmp/fw-import.log 2>&1 & Check progress with tail /tmp/fw-import.log. Keeping it in sync I sync new music onto the volume with the Syncthing app on the same server, so next I'm going to try import_files ... --watch --prune as an @service line in the app's Cron section. Will report back on whether that works over an SSHFS-mounted Storage Box.