How to: fix LainRadio

The radio stream on lainon.life stutters or otherwise stops working.

The backend might also slow down and be unable to respond in time, in which case playlists won’t be available in the UI.

This usually means that there’s a resource problem, often MPD using 100% CPU.

Resolution

  1. SSH into lainon.life:

    ssh lainon.life
    
  2. Restart all the services:

    ! ./restart-all.sh
    

The manual way

Instead of step 2 above:

  1. Restart icecast:

    ! systemctl restart icecast
    
  2. Restart the fallback streams:

    ! systemctl restart fallback-{mp3,ogg}
    
  3. Restart the MPD streams:

    ! systemctl restart mpd-{cafe,cyberia,everything,swing}