PiTunes

Support

PiTunes has two halves, the app in your browser and the server on your Raspberry Pi. Most problems are the connection between them. Start at the top and work down.

The app cannot connect

  1. Is Tailscale on? Open the Tailscale app on the phone and check that the switch is on. iOS sometimes turns a VPN off after an update or a restart.
  2. Can the phone see the Pi? In the Tailscale app, your Pi (usually called music) should be in the device list and shown as connected. If it is missing or offline, the problem is on the Pi's side. Go to step 4.
  3. Is the address right? Open the address the installer printed, for example https://music.your-tailnet.ts.net. Without HTTPS it is http://music:8000, and the :8000 at the end matters. In the app, Library, then the gear, then Test Connection tells you whether the server answers.
  4. Is another VPN on? An iPhone runs one VPN at a time, so switching on another VPN app switches Tailscale off. On a computer, some VPN apps use network addresses that clash with Tailscale and break name lookups while both are on. Turn the other VPN off, or set it to use a public DNS server such as 1.1.1.1.
  5. Is the Pi running? Check that it has power and that its light is on. Unplugging it and plugging it back in is safe. The server starts on its own within a couple of minutes.
  6. Has the Pi's Tailscale login expired? In the Tailscale admin page, look for an "Expired" label next to the Pi. If it is there, log in to the Pi over your home Wi-Fi and run sudo tailscale up, then choose Disable key expiry for that machine so it does not happen again.

To check the server directly, log in to the Pi and run:

systemctl status pitunes

It should say active (running). To see what it has been doing:

journalctl -u pitunes -n 50

A song will not play

Updating the server

The server updates the part that talks to YouTube every night on its own. To update everything now, including PiTunes itself, log in to the Pi and run the install command again:

curl -fsSL https://raw.githubusercontent.com/pf25/pitunes/main/install.sh | bash

Your likes, playlists, history and cached songs are kept. Playback stops for a few seconds while the server restarts.

The web app is part of the server, so updating the server updates the app on every device. If you built the native iPhone app, pull the latest source and build again.

Downloads

Profiles

Hold the phone near the speaker and try again. It recognises recorded music, not humming or singing, and it cannot identify music playing from the same phone. It needs microphone permission, which you can check in the iPhone's Settings app under PiTunes.

Reporting a bug or asking a question

Open an issue on GitHub. Say what you did, what you expected and what happened instead. If the problem is with playback, the last lines of journalctl -u pitunes -n 50 from the Pi help a lot.

Open an issue on GitHub