Hello à toutes et à tous
Je vous écris à propos d’un souci de migration Funkwhale.
J’ai suivi la marche classique. Backup du serveur 1 avec l’outil Yunohost. Nouveau serveur 2 avec Yunohost tout propre, puis restore du backup en phase de post-install.
Funkwhale semble bien être remis sur pied sur le serveur 2. Les services funkwhale-beat, funkwhale-server et funkwhale-worker tournent. Et leur journaux semblent indiquer que c’est ok.
Quelque warning sur django sur funkwhale-server. Je les partage au cas où:
-- Logs begin at Wed 2020-11-11 20:30:03 CET, end at Wed 2020-11-11 20:40:38 CET. --
Nov 11 20:30:11 systemd[1]: Started Funkwhale (funkwhale) application server.
-- Subject: A start job for unit funkwhale-server.service has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit funkwhale-server.service has finished successfully.
--
-- The job identifier is 118.
Nov 11 20:30:12 funkwhale-server[1575]: [2020-11-11 20:30:12 +0100] [1575] [INFO] Starting gunicorn 20.0.4
Nov 11 20:30:12 funkwhale-server[1575]: [2020-11-11 20:30:12 +0100] [1575] [INFO] Listening at: http://127.0.0.1:5000 (1575)
Nov 11 20:30:12 funkwhale-server[1575]: [2020-11-11 20:30:12 +0100] [1575] [INFO] Using worker: uvicorn.workers.UvicornWorker
Nov 11 20:30:12 funkwhale-server[1575]: [2020-11-11 20:30:12 +0100] [1595] [INFO] Booting worker with pid: 1595
Nov 11 20:30:12 funkwhale-server[1575]: 2020-11-11 20:30:12,489 funkwhale_api.config INFO Loaded env file at /var/www/funkwhale/code/config/.env
Nov 11 20:30:12 funkwhale-server[1575]: 2020-11-11 20:30:12,490 funkwhale_api.config INFO Running with no plugins
Nov 11 20:30:14 funkwhale-server[1575]: [2020-11-11 19:30:14 +0000] [1595] [INFO] Started server process [1595]
Nov 11 20:30:14 funkwhale-server[1575]: [2020-11-11 19:30:14 +0000] [1595] [INFO] Waiting for application startup.
Nov 11 20:30:14 funkwhale-server[1575]: [2020-11-11 19:30:14 +0000] [1595] [INFO] ASGI 'lifespan' protocol appears unsupported.
Nov 11 20:30:14 funkwhale-server[1575]: [2020-11-11 19:30:14 +0000] [1595] [INFO] Application startup complete.
Nov 11 20:30:16 funkwhale-server[1575]: [2020-11-11 19:30:16 +0000] [1595] [INFO] ('37.120.218.156', 0) - "WebSocket /api/v1/activity" [accepted]
Nov 11 20:30:38 funkwhale-server[1575]: [2020-11-11 19:30:38 +0000] [1595] [INFO] ('37.120.218.156', 0) - "WebSocket /api/v1/activity" [accepted]
Nov 11 20:30:39 funkwhale-server[1575]: 2020-11-11 19:30:39,366 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:30:40 funkwhale-server[1575]: 2020-11-11 19:30:40,398 django.request WARNING Method Not Allowed: /api/v1/subscriptions/all/
Nov 11 20:30:48 funkwhale-server[1575]: /var/www/funkwhale/code/virtualenv/lib/python3.7/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'funkwhale_api.playlists.models.Playlist'> PlaylistQuerySet.
Nov 11 20:30:48 funkwhale-server[1575]: paginator = self.django_paginator_class(queryset, page_size)
Nov 11 20:30:48 funkwhale-server[1575]: 2020-11-11 19:30:48,217 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:30:54 funkwhale-server[1575]: 2020-11-11 19:30:54,558 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:31:25 funkwhale-server[1575]: /var/www/funkwhale/code/virtualenv/lib/python3.7/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'funkwhale_api.music.models.Library'> LibraryQuerySet.
Nov 11 20:31:25 funkwhale-server[1575]: paginator = self.django_paginator_class(queryset, page_size)
Nov 11 20:31:25 funkwhale-server[1575]: 2020-11-11 19:31:25,078 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:31:46 funkwhale-server[1575]: 2020-11-11 19:31:46,186 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:32:16 funkwhale-server[1575]: [2020-11-11 19:32:16 +0000] [1595] [INFO] ('37.120.218.156', 0) - "WebSocket /api/v1/activity" [accepted]
Nov 11 20:32:17 funkwhale-server[1575]: 2020-11-11 19:32:17,341 django.request WARNING Method Not Allowed: /api/v1/subscriptions/all/
Nov 11 20:34:44 funkwhale-server[1575]: [2020-11-11 19:34:44 +0000] [1595] [INFO] ('37.120.218.156', 0) - "WebSocket /api/v1/activity" [accepted]
Nov 11 20:34:45 funkwhale-server[1575]: 2020-11-11 19:34:45,053 django.request WARNING Method Not Allowed: /api/v1/channels/
Nov 11 20:34:46 funkwhale-server[1575]: 2020-11-11 19:34:46,358 django.request WARNING Method Not Allowed: /api/v1/subscriptions/all/
Et quand je vais sur l’app, l’interface semble ok. MAIS en fait ça ne marche pas. Les cover d’album se sont perdues en route et lorsque j’essaie de lancer une piste, rien ne se joue.
Ca ressemble à ça :
Et si je regarde dans la console:
Je vois que y’a du 404 avec des identifiers compliqués. Du coup je me dis que qqc ne semble pas être passé. Je ne sais pas trop par où le prendre pour continuer
Votre aide serait très très appréciée