Funkwhale connectivity issues

My YunoHost server

Hardware: amd x64
YunoHost version: 11.1.22
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: mdadm raid mount, nfs-server, fstab mount

hi, i am getting allot of those errors in the web console

Firefox can’t establish a connection to the server at wss://funk.domain.org/api/v1/activity. index-ebc5f8f0.js:1:137170
Websocket status: CLOSED index-ebc5f8f0.js:65:235984
Websocket status: CONNECTING index-ebc5f8f0.js:65:235984

funkwhale installed fine, i imported music with the “in place” command from the terminal

su
cd /var/www/funkwhale/
source venv/bin/activate

export LIBRARY_ID="ec879b22"
python api/manage.py import_files $LIBRARY_ID "/home/yunohost.app/funkwhale/data/music/Blues" --recursive --noinput --in-place

all files are in ogg - i am coming from a centos system with funkwhale 1.2. most tracks actually play without any issues. from time to time i get a ui warning bout connectivity issues and mostly the first track of an album refuses to play.

funkwhale-server logs are printing stuff about the yunohost domain… not funkwhales domain. i resolved most errors in yunohost’s diagnostic panel. still need to figure out one warning bout ipv6 and a reverse dns with a static ip… hope that’s not related to FW’s issue.
any help would be appreciated! thanx

think this one is related to skipping the first rack

>> AUDIO PLAY ERROR DOMException: The fetching process for the media resource was aborted by the user agent at the user's request. 
Object { isErrored: {…}, isLoaded: {…}, isDisposed: {…}, audioNode: {…}, onSoundLoop: on(o), onSoundEnd: on(o) }
index-ebc5f8f0.js:33:81507

logs - funkwhale-beat (server and worker are empty)

cat funkwhale-beat.log 
[2023-07-16 08:19:25,347: INFO/MainProcess] beat: Starting...
[2023-07-16 09:00:00,026: INFO/MainProcess] Scheduler: Sending due task music.clean_transcoding_cache (music.clean_transcoding_cache)
[2023-07-16 09:00:00,044: INFO/MainProcess] Scheduler: Sending due task common.prune_unattached_attachments (common.prune_unattached_attachments)
[2023-07-16 09:00:00,048: INFO/MainProcess] Scheduler: Sending due task federation.check_all_remote_instance_availability (federation.check_all_remote_instance_availability)
[2023-07-16 09:00:00,049: INFO/MainProcess] Scheduler: Sending due task audio.fetch_rss_feeds (audio.fetch_rss_feeds)
[2023-07-16 09:00:00,051: INFO/MainProcess] Scheduler: Sending due task federation.refresh_nodeinfo_known_nodes (federation.refresh_nodeinfo_known_nodes)
[2023-07-16 10:00:00,043: INFO/MainProcess] Scheduler: Sending due task federation.clean_music_cache (federation.clean_music_cache)
[2023-07-16 10:00:00,045: INFO/MainProcess] Scheduler: Sending due task audio.fetch_rss_feeds (audio.fetch_rss_feeds)

sudo journalctl -xn -u funkwhale-worker

-- Journal begins at Sat 2023-07-15 18:21:46 CEST, ends at Mon 2023-07-17 18:03:46 CEST. --
Jul 17 18:00:00 yunodomain.domain.org celery[85032]: [2023-07-17 16:00:00,061: INFO/MainProcess] Task audio.fetch_rss_feeds[64e13394-5be2-4bec-b1f2-5b02ebe7932d] received
Jul 17 18:00:00 yunodomain.domain.org celery[85032]: [2023-07-17 16:00:00,064: INFO/MainProcess] Task music.clean_transcoding_cache[e6bed5ca-8693-4c87-b278-3d46248330cb] received
Jul 17 18:00:00 yunodomain.domain.org celery[85044]: [2023-07-17 16:00:00,073: INFO/ForkPoolWorker-1] Task audio.fetch_rss_feeds[64e13394-5be2-4bec-b1f2-5b02ebe7932d] succeeded in 0.008753535978030413s: None
Jul 17 18:00:00 yunodomain.domain.org celery[85032]: [2023-07-17 16:00:00,076: INFO/MainProcess] Task federation.refresh_nodeinfo_known_nodes[9ab814aa-f099-47f1-9b16-965cc7b92373] received
Jul 17 18:00:00 yunodomain.domain.org celery[85048]: [2023-07-17 16:00:00,076: INFO/ForkPoolWorker-3] Task music.clean_transcoding_cache[e6bed5ca-8693-4c87-b278-3d46248330cb] succeeded in 0.010908013005973771s: (0, {})
Jul 17 18:00:00 yunodomain.domain.org celery[85032]: [2023-07-17 16:00:00,077: INFO/MainProcess] Task federation.check_all_remote_instance_availability[d1ac2d80-d403-4451-bba7-9885770545b6] received
Jul 17 18:00:00 yunodomain.domain.org celery[85044]: [2023-07-17 16:00:00,082: INFO/ForkPoolWorker-1] Task federation.refresh_nodeinfo_known_nodes[9ab814aa-f099-47f1-9b16-965cc7b92373] succeeded in 0.003886756981955841s: None
Jul 17 18:00:00 yunodomain.domain.org celery[85050]: [2023-07-17 16:00:00,086: INFO/ForkPoolWorker-4] Task federation.clean_music_cache[bab7e467-9243-44e6-9441-c729417aacb2] succeeded in 0.026780629996210337s: None
Jul 17 18:00:00 yunodomain.domain.org celery[85045]: [2023-07-17 16:00:00,095: INFO/ForkPoolWorker-2] Task common.prune_unattached_attachments[d83b3083-3192-435d-a1c6-f1ea81638e51] succeeded in 0.03531540397671051s: None
Jul 17 18:00:00 yunodomain.domain.org celery[85048]: [2023-07-17 16:00:00,110: INFO/ForkPoolWorker-3] Task federation.check_all_remote_instance_availability[d1ac2d80-d403-4451-bba7-9885770545b6] succeeded in 0.03172543700202368s: None

phil@tank:/var/log/installer$ sudo journalctl -xn -u funkwhale-server

-- Journal begins at Sat 2023-07-15 18:21:46 CEST, ends at Mon 2023-07-17 18:04:05 CEST. --
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:     return func(*args, **kwargs)
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/channels/consumer.py", line 125, in dispatch
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:     handler(message)
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 105, in websocket_disconnect
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:     self.disconnect(message["code"])
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:   File "/var/www/funkwhale/api/funkwhale_api/common/consumers.py", line 22, in disconnect
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:     groups = self.scope["user"].get_channels_groups() + self.groups
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:   File "/var/www/funkwhale/venv/lib/python3.9/site-packages/django/utils/functional.py", line 247, in inner
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]:     return func(self._wrapped, *args)
Jul 17 18:03:15 yunodomain.domain.org gunicorn[84833]: AttributeError: 'AnonymousUser' object has no attribute 'get_channels_groups'

just saw that the rights on the audio files is set to nobody:nogroup. the symlinked files belong to root. i would like to keep the nobody rights for nfs access. i quickly googled rights and what i saw they never apply to symlinks, just on the file itself. ill try funkwhale:www-data next… just if i add files or move them through nfs they probably wont be correct… any hints?

coming from centos / funkwhale 1.2 which also had the media files set to nobody, symlinked into FW’s media dir. cant recall which rights the linked files had…

this is resolved, i cleared firefoxe’s cache as i am using the same domain as i had before on my old setup. so i guess funkwhale was partially working with the new instance and cached parts of the old setup :slight_smile:

regarding symlinks, FW seems to be fine reading “in place / symlinked” audio files with nobody/nogroup rights

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.