Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 389
    • Issues 389
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhale
  • funkwhalefunkwhale
  • Issues
  • #1561

Closed
Open
Created Aug 29, 2021 by AMoonRabbit@AMoonRabbit

Federated music fails to play with 404 - Incorrect local path?

Steps to reproduce

Follow remote library Play music until you find one which reports it cannot be played due to connection issues Play album fine on remote instance Review the logs when attempting to play the album

What happens?

Attempting to play the music from the remote instance results in a connection error message as shown below. Visiting the remote instance and playing the files there results in normal playback.

image

At this time, the following is written to the logs of the Nginx:

Nginx 2021/08/29 09:49:57 [error] 14#14: *23223 open() "/mnt/drive/srv/funkwhale/data/media/federation_cache/tracks/8b/1b/58/%E6%9C%88%E5%85%89%E3%82%92%E6%98%A0%E3%81%99%20/%20The%20Flower%20like%20Moonlight%20-%20%E6%9C%88%E3%81%8C%E8%A6%8B%E3%81%A6%E3%81%84%E3%82%8B%20/%20When%20you%20gaze%20the%20moon%20-%20%E3%82%B7%E3%82%AD%E3%83%92%20/shikihi.flac" failed (2: No such file or directory), client: 172.18.0.1, server: music.udongein.reisen, request: "GET /api/v1/listen/49a0e72a-f888-4c54-a16f-a70baaab3515/?upload=efa6fb46-36cf-4cdd-9315-867cdf50d3a4&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU HTTP/1.1", upstream: "http://172.18.0.5:5000/api/v1/listen/49a0e72a-f888-4c54-a16f-a70baaab3515/?upload=efa6fb46-36cf-4cdd-9315-867cdf50d3a4&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU", host: "music.udongein.reisen", referrer: "https://music.udongein.reisen/library/albums/1184/"

172.18.0.1 - - [29/Aug/2021:09:49:57 +0000] "GET /api/v1/listen/49a0e72a-f888-4c54-a16f-a70baaab3515/?upload=efa6fb46-36cf-4cdd-9315-867cdf50d3a4&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU HTTP/1.1" 404 555 "https://music.udongein.reisen/library/albums/1184/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" "192.168.86.200"

2021/08/29 09:50:09 [error] 14#14: *23225 open() "/mnt/drive/srv/funkwhale/data/media/federation_cache/tracks/f0/61/f2/%E6%98%A5%E4%B8%8D%E7%9C%A0%20/%20Spring%20has%20come%20%3F%20-%20%E6%9C%88%E3%81%8C%E8%A6%8B%E3%81%A6%E3%81%84%E3%82%8B%20/%20When%20you%20gaze%20the%20moon%20-%20%E3%82%B7%E3%82%AD%E3%83%92%20/shikihi.flac" failed (2: No such file or directory), client: 172.18.0.1, server: music.udongein.reisen, request: "GET /api/v1/listen/60b89c08-bbb2-48f0-8d1f-1e58ef7420f7/?upload=ce07444f-f281-4df8-aaf6-fce73ad855ea&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU HTTP/1.1", upstream: "http://172.18.0.5:5000/api/v1/listen/60b89c08-bbb2-48f0-8d1f-1e58ef7420f7/?upload=ce07444f-f281-4df8-aaf6-fce73ad855ea&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU", host: "music.udongein.reisen", referrer: "https://music.udongein.reisen/library/albums/1184/"

172.18.0.1 - - [29/Aug/2021:09:50:09 +0000] "GET /api/v1/listen/60b89c08-bbb2-48f0-8d1f-1e58ef7420f7/?upload=ce07444f-f281-4df8-aaf6-fce73ad855ea&token=eyJ1c2VyX2lkIjoyLCJ1c2VyX3NlY3JldCI6Ijk5ZjM5ZGZlLTRlN2YtNDlhMi1iZGFlLTYxM2FhMTI4N2UwOCIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ:1mKFXO:f4ted3TiPcvUo3x9Q8Th5OMnhQU HTTP/1.1" 404 555 "https://music.udongein.reisen/library/albums/1184/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" "192.168.86.200"

API Logs

2021-08-29 09:42:43,580 funkwhale_api.music.views INFO Refetching music.Album:1184 at https://music.udongein.xyz/federation/music/albums/b57ea145-3248-43be-a2e1-b747b74d24f5…, 2021-08-29 09:47:50,078 django.request WARNING Unauthorized: /api/v1/tracks/1635/

What is expected?

Federated music should play

Context

Funkwhale version(s) affected: 1.1.4 Remote Instance Version: 1.1.2

Note, the two instances referenced in the logs are different. The remote instance is on .xyz whilst my instance is .reisen.

Edited Aug 29, 2021 by AMoonRabbit
Assignee
Assign to
Time tracking