Solución: Error "Session 103" de Spotify en CachyOS (Flatpak)

ESPAÑOL

Solución: Error “Session 103” de Spotify en CachyOS (Flatpak)

Síntomas:

Al iniciar sesión en Spotify Desktop aparece: “Algo salió mal / Se produjo un error al iniciar sesión”.
Aviso rojo: “A firewall may be blocking Spotify… (Error code: session:103)”.
El código QR para login desde el celular no carga.
Desactivar el firewall por completo no soluciona nada — el mensaje es engañoso.

Entorno: CachyOS, Spotify instalado vía Flatpak (flathub com.spotify.Client), NetworkManager.

Cosas que descarté sin éxito (por si a alguien le sirve el camino):

Reglas de UFW para loopback, y UFW desactivado completamente — sin cambios.
IPv6 sin conectividad real del ISP (ping -6 daba “red inaccesible”) — se deshabilitó con nmcli connection modify <conexión> ipv6.method disabled. Ayuda a eliminar una causa potencial, pero no resolvió el error solo.
Variables de proxy (env | grep -i proxy) — ninguna configurada.
Permisos de red del sandbox de Flatpak (flatpak info --show-permissions com.spotify.Client) — ya tenía shared=network.
Actualizar el Flatpak — ya estaba en la última versión.

Lo que funcionó — reinstalación limpia:

flatpak uninstall com.spotify.Client
rm -rf ~/.var/app/com.spotify.Client
flatpak install flathub com.spotify.Client
flatpak run com.spotify.Client

El problema eran datos de sesión/caché corruptos en ~/.var/app/com.spotify.Client/. Borrar todo y reinstalar desde cero resolvió el login (por navegador y por QR).

Nota: existe un hilo oficial sin resolver en la comunidad de Spotify con el mismo error, así que puede haber más de una causa raíz. Si el reset de Flatpak no funciona para ti, probablemente sea un bug del lado de Spotify.

--
ENGLISH

Fix: Spotify “Session 103” error on CachyOS (Flatpak)

Symptoms:

Logging into Spotify Desktop shows: “Something went wrong / There was an error logging in”.
Red banner: “A firewall may be blocking Spotify… (Error code: session:103)”.
The QR code for mobile login doesn’t load either.
Fully disabling the firewall does not fix it — the error message is misleading.

Environment: CachyOS, Spotify installed via Flatpak (flathub com.spotify.Client), NetworkManager.

Things I ruled out without success (sharing the path, not just the fix):

UFW loopback rules, and UFW fully disabled — no change.
IPv6 with no real ISP connectivity (ping -6 returned “network unreachable”) — disabled via nmcli connection modify ipv6.method disabled. Removes a potential cause but didn’t fix the login on its own.
Proxy env vars (env | grep -i proxy) — none set.
Flatpak sandbox network permissions (flatpak info --show-permissions com.spotify.Client) — already had shared=network.
Updating the Flatpak — already on the latest version.

What actually fixed it — clean reinstall:

flatpak uninstall com.spotify.Client
rm -rf ~/.var/app/com.spotify.Client
flatpak install flathub com.spotify.Client
flatpak run com.spotify.Client

The issue was corrupted session/cache data inside ~/.var/app/com.spotify.Client/. Wiping it and reinstalling clean fixed login (both browser and QR flow).

Note: there’s an unresolved official thread on the Spotify Community with the same error, so there may be more than one root cause. If the Flatpak reset doesn’t work for you, it’s likely a server-side Spotify bug rather than something in your config.