Closed isAAAc closed 1 year ago
https://github.com/YunoHost-Apps/funkwhale_ynh/issues/111#issuecomment-705200932 can't use this path:
root@krashboyz:~# ls -al /var/www/funkwhale/code/api/
ls: cannot access '/var/www/funkwhale/code/api/': No such file or directory
root@krashboyz:~# ls -al /var/www/funkwhale/code/
ls: cannot access '/var/www/funkwhale/code/': No such file or directory
root@krashboyz:~# ls -al /var/www/funkwhale
total 24
drwxr-x--- 6 funkwhale www-data 4096 Dec 25 17:14 .
drw-r-xr-x+ 34 root root 4096 Feb 22 19:29 ..
drwxr-x--- 6 funkwhale www-data 4096 Dec 25 17:17 api
drwxr-x--- 2 funkwhale www-data 4096 Dec 25 17:16 config
drwxrwx--- 3 funkwhale www-data 4096 Dec 25 17:13 front
drwxrwx--- 6 funkwhale www-data 4096 Dec 25 17:14 virtualenv
https://github.com/YunoHost-Apps/funkwhale_ynh/issues/147#issuecomment-880857666 works:
root@krashboyz:~# mv /var/www/funkwhale/api/celerybeat-schedule.db /var/www/funkwhale/api/celerybeat-schedule_old.db
root@krashboyz:~# yunohost service start funkwhale-beat
Success! Service 'funkwhale-beat' started
root@krashboyz:~# yunohost service status funkwhale-beat
configuration: unknown
description: funkwhale celery beat process
last_state_change: 2023-02-23 18:06:41
start_on_boot: enabled
status: running
Solved this issue with your comment.
Edit : On each restart, I need to fix this issue :/ .
@stilobique , after upgrade last month, i lost some tracks: they were listed , but the app can't find them,
did you have the same ? i foud back them after a rollback.
now i would upgrade again and have a look directly on it, i don't know if it is related with this issue.
upgrade to do : Funkwhale (funkwhale) from 1.2.10~ynh2 to 1.2.10~ynh3
ok , i just tried, it is failing, even i apply the workaround.
should i open a new issue ?
Hum, I have another some strange issue, but hard to know if an old issue or come with the last update. I don't have the time to search what and why ; maybe in 3/4 week I can look to fix and opening another issue.
ok,
all is tracked here,
i won't open a new issue for now,
just staying in 1.2.10~ynh2
+ workaround
keep in touch ;)
trying Funkwhale (funkwhale) from 1.2.10~ynh2 to 1.3.0~ynh1
at this moment :crossed_fingers:
like last time, I can't hear the track I'm using to test whether it works ( https://son.krashboyz.org/library/tracks/2 ) .
-> rollback to version: 1.2.10~ynh2
+ workaround -> I can listen to the track
I don't know how I can help you to help me :/
tell me anything you need for the debug @stilobique
Could you please try to upgrade to latest testing and tell me if it works? If not, please share your nginx logs.
Some changes have been made to nginx in testing that may solve your issue
upgrade complete but seems to be the same version as on maintream ?
version: 1.3.0~ynh1
i did: yunohost app upgrade funkwhale -u https://github.com/YunoHost-Apps/funkwhale_ynh/tree/testing --debug
logs are there : https://paste.yunohost.org/raw/ozaseweqoy
running tests : KO
2023/06/08 16:57:31 [error] 3420979#3420979: *1177319 open() "/home/yunohost.app/funkwhale/data/media/attachments/8b/b1/24/aaa.jpg" failed (2: No such file or directory), client: 2001:67c:288:2::235, server: son.krashboyz.org, request: "GET /media/attachments/8b/b1/24/aaa.jpg HTTP/2.0", host: "son.krashboyz.org", referrer: "https://son.krashboyz.org/library/tracks/2"
2023/06/08 16:57:32 [error] 3420979#3420979: *1177319 open() "/home/yunohost.app/funkwhale/data/media/tracks/d6/5b/9a/2022-12-03_batz-001.2_isaaac-welcome_into_foxdot.flac" failed (2: No such file or directory), client: 2001:67c:288:2::235, server: son.krashboyz.org, request: "GET /api/v1/listen/fe2c903a-b3fc-4290-a451-722ec5b1ee3d/?upload=67dd3f24-d305-4973-a59c-4359ef5abb7c&token=eyJ1c2VyX2lkIjoxLCJ1c2VyX3NlY3JldCI6IjM1NDk5NmM0LTdkYzQtNDg3Mi05OGU5LTdiOGM5YmNjZjVkNyIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ%3A1q7H38%3ATSx5-XqF4VUlv0J1-vzodWwVENo_05Qz6fBHVxurHs0 HTTP/2.0", upstream: "http://127.0.0.1:5000/api/v1/listen/fe2c903a-b3fc-4290-a451-722ec5b1ee3d/?upload=67dd3f24-d305-4973-a59c-4359ef5abb7c&token=eyJ1c2VyX2lkIjoxLCJ1c2VyX3NlY3JldCI6IjM1NDk5NmM0LTdkYzQtNDg3Mi05OGU5LTdiOGM5YmNjZjVkNyIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ%3A1q7H38%3ATSx5-XqF4VUlv0J1-vzodWwVENo_05Qz6fBHVxurHs0", host: "son.krashboyz.org", referrer: "https://son.krashboyz.org/library/tracks/2"
2023/06/08 16:57:36 [error] 3420979#3420979: *1177319 open() "/home/yunohost.app/funkwhale/data/media/attachments/8b/b1/24/aaa.jpg" failed (2: No such file or directory), client: 2001:67c:288:2::235, server: son.krashboyz.org, request: "GET /media/attachments/8b/b1/24/aaa.jpg HTTP/2.0", host: "son.krashboyz.org", referrer: "https://son.krashboyz.org/library/tracks/2"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:56:48 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:29 +0200] "GET /library/tracks/2 HTTP/2.0" 200 3257 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:30 +0200] "POST /library/tracks/users/settings HTTP/2.0" 405 150 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:30 +0200] "GET /api/v1/instance/nodeinfo/2.0/ HTTP/2.0" 200 1402 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:30 +0200] "GET /serviceWorker.js HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:31 +0200] "GET /api/v1/instance/settings/ HTTP/2.0" 200 9470 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:31 +0200] "GET /media/attachments/8b/b1/24/aaa.jpg HTTP/2.0" 404 146 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:32 +0200] "GET /api/v1/tracks/2/?refresh=true HTTP/2.0" 200 2807 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:32 +0200] "GET /api/v1/users/me/ HTTP/2.0" 200 2756 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:32 +0200] "GET /api/v1/listen/fe2c903a-b3fc-4290-a451-722ec5b1ee3d/?upload=67dd3f24-d305-4973-a59c-4359ef5abb7c&token=eyJ1c2VyX2lkIjoxLCJ1c2VyX3NlY3JldCI6IjM1NDk5NmM0LTdkYzQtNDg3Mi05OGU5LTdiOGM5YmNjZjVkNyIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ%3A1q7H38%3ATSx5-XqF4VUlv0J1-vzodWwVENo_05Qz6fBHVxurHs0 HTTP/2.0" 404 146 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/playlists/?scope=me HTTP/2.0" 200 2384 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/artists/3/ HTTP/2.0" 200 1495 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/playlists/?track=2&playable=true&ordering=-modification_date&page_size=3 HTTP/2.0" 200 1212 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /assets/default-cover-e90baea6.png HTTP/2.0" 200 21566 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/licenses/cc-by-nc-4.0 HTTP/2.0" 200 284 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/tracks/2/libraries/?page_size=6 HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:33 +0200] "GET /api/v1/manage/moderation/reports/?is_handled=false&page_size=1 HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:34 +0200] "GET /api/v1/mutations/?is_approved=null&page_size=1 HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:34 +0200] "GET /api/v1/federation/inbox/?is_read=false&page_size=1 HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:34 +0200] "GET /api/v1/playlists/?scope=me HTTP/2.0" 200 2384 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:35 +0200] "GET /api/v1/moderation/content-filters/?page_size=100&ordering=-creation_date HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:35 +0200] "GET /api/v1/manage/moderation/requests/?status=pending&page_size=1 HTTP/2.0" 200 52 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:35 +0200] "GET /api/v1/subscriptions/all/ HTTP/2.0" 200 217 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:35 +0200] "GET /api/v1/favorites/tracks/all/?user=1&page_size=50&ordering=-creation_date HTTP/2.0" 200 24 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:36 +0200] "GET /api/v1/federation/follows/library/all/ HTTP/2.0" 200 24 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:36 +0200] "GET /media/attachments/8b/b1/24/aaa.jpg HTTP/2.0" 404 146 "https://son.krashboyz.org/library/tracks/2" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:48 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:49 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:50 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:52 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:53 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:55 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:57:57 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:58:01 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:58:06 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:58:14 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:58:25 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:58:43 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
2001:67c:288:2::235 - isaaac [08/Jun/2023:16:59:09 +0200] "GET /api/v1/activity HTTP/1.1" 403 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
i tried the workaround, but it doesn't fix neither,
2023/06/08 17:08:47 [error] 3420979#3420979: *1179460 open() "/home/yunohost.app/funkwhale/data/media/tracks/d6/5b/9a/2022-12-03_batz-001.2_isaaac-welcome_into_foxdot.flac" failed (2: No such file or directory), client: 2001:67c:288:2::235, server: son.krashboyz.org, request: "GET /api/v1/listen/fe2c903a-b3fc-4290-a451-722ec5b1ee3d/?upload=67dd3f24-d305-4973-a59c-4359ef5abb7c&token=eyJ1c2VyX2lkIjoxLCJ1c2VyX3NlY3JldCI6IjM1NDk5NmM0LTdkYzQtNDg3Mi05OGU5LTdiOGM5YmNjZjVkNyIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ%3A1q7HEV%3Au1Rzg30_oNxUgQ_EgtnHh_qB41pNTn7QbPCb-RLHbnk HTTP/2.0", upstream: "http://127.0.0.1:5000/api/v1/listen/fe2c903a-b3fc-4290-a451-722ec5b1ee3d/?upload=67dd3f24-d305-4973-a59c-4359ef5abb7c&token=eyJ1c2VyX2lkIjoxLCJ1c2VyX3NlY3JldCI6IjM1NDk5NmM0LTdkYzQtNDg3Mi05OGU5LTdiOGM5YmNjZjVkNyIsInNjb3BlcyI6WyJyZWFkOmxpYnJhcmllcyJdfQ%3A1q7HEV%3Au1Rzg30_oNxUgQ_EgtnHh_qB41pNTn7QbPCb-RLHbnk", host: "son.krashboyz.org", referrer: "https://son.krashboyz.org/library/tracks/2"
2023/06/08 17:09:06 [error] 3420979#3420979: *1179460 open() "/home/yunohost.app/funkwhale/data/media/attachments/8b/b1/24/aaa.jpg" failed (2: No such file or directory), client: 2001:67c:288:2::235, server: son.krashboyz.org, request: "GET /media/attachments/8b/b1/24/aaa.jpg HTTP/2.0", host: "son.krashboyz.org", referrer: "https://son.krashboyz.org/library/tracks/2"
I'm on my phone so it's difficult to look at all your logs right now, but can you paste here the directory of your media files?
And what's the workaround you are talking about?
And what's the workaround you are talking about?
this one in the present ticket: https://github.com/YunoHost-Apps/funkwhale_ynh/issues/198#issuecomment-1442131985 , but it works only when i rollback on version: 1.2.10~ynh2
as mentionned
I'm on my phone so it's difficult to look at all your logs right now, but can you paste here the directory of your media files?
root@krashboyz:/var/log/nginx# ls -al /home/yunohost.app/funkwhale/data/media/
ls: cannot access '/home/yunohost.app/funkwhale/data/media/': No such file or directory
root@krashboyz:/var/www/funkwhale/config# ls -al /home/yunohost.app/funkwhale/media
total 28
drwxr-x--- 7 funkwhale www-data 4096 Dec 14 21:34 .
drwxr-x--- 5 funkwhale www-data 4096 Sep 8 2021 ..
drwxr-x--- 28 funkwhale www-data 4096 Mar 13 19:53 attachments
drwxr-x--- 3 funkwhale www-data 4096 Dec 12 20:54 federation_cache
drwxr-x--- 3 funkwhale www-data 4096 Jan 9 2022 __sized__
drwxr-x--- 76 funkwhale www-data 4096 Dec 13 11:26 tracks
drwxr-x--- 3 funkwhale www-data 4096 Dec 14 21:34 transcoded
in /var/www/funkwhale/config/.env
:
# Where media files (such as album covers or audio tracks) should be stored
MEDIA_ROOT=/home/yunohost.app/funkwhale/media
humm i re-upgrade from testing, i probably didn't cecked the good path on the fist try ...
# yunohost app upgrade funkwhale -u https://github.com/YunoHost-Apps/funkwhale_ynh/tree/testing --debug
OK,
i think we found somethting yes:
(after upgrade from testing):
the old data folder is still existing, but .env
file hasn't the good path for it, OR, a mv
is missing to put old data dir to the new path declared in the .env
:
root@krashboyz:/var/www/funkwhale/config# ls -al /home/yunohost.app/funkwhale/media
total 28
drwxr-x--- 7 funkwhale www-data 4096 Dec 14 21:34 .
drwxr-x--- 6 funkwhale www-data 4096 Jun 8 18:55 ..
drwxr-x--- 28 funkwhale www-data 4096 Mar 13 19:53 attachments
drwxr-x--- 3 funkwhale www-data 4096 Dec 12 20:54 federation_cache
drwxr-x--- 3 funkwhale www-data 4096 Jan 9 2022 __sized__
drwxr-x--- 76 funkwhale www-data 4096 Dec 13 11:26 tracks
drwxr-x--- 3 funkwhale www-data 4096 Dec 14 21:34 transcoded
root@krashboyz:/var/www/funkwhale/config# cat .env |grep media
# Where media files (such as album covers or audio tracks) should be stored
MEDIA_ROOT=/home/yunohost.app/funkwhale/data/media
# If you want to serve media directly from your S3 bucket rather than through a proxy,
# If you are using Amazon S3 to serve media directly, you will need to specify your region
\o/ we are near the solution i think @Thovi98
EDIT:
s/.venv/.env
sorry for the typoversion: 1.2.10~ynh2
+ workaroundMEDIA_ROOT=/home/yunohost.app/funkwhale/media
Strange enough, how is it possible your media directory is /home/yunohost.app/funkwhale/media
and not /home/yunohost.app/funkwhale/data/media
?
So the solution would be to upgrade to 1.3.0 and then mv /home/yunohost.app/funkwhale/media /home/yunohost.app/funkwhale/data/media
.
Could you please try?
And it’s still unclear for me what’s your workaround: are you speaking of mv /var/www/funkwhale/api/celerybeat-schedule.db /var/www/funkwhale/api/celerybeat-schedule_old.db
?
Be sure to have a backup of all your media files before proceeding!
@Thovi98 : just tried, the track can't be read...
i tried the workaround too, but it doesn't work neither...
i'm really lost :/
And it’s still unclear for me what’s your workaround: are you speaking of mv /var/www/funkwhale/api/celerybeat-schedule.db /var/www/funkwhale/api/celerybeat-schedule_old.db?
yes , as mentionned here: https://github.com/YunoHost-Apps/funkwhale_ynh/issues/147#issuecomment-880857666
root@krashboyz:~# yunohost --version
yunohost:
repo: stable
version: 11.1.21.3
yunohost-admin:
repo: stable
version: 11.1.10
moulinette:
repo: stable
version: 11.1.4
ssowat:
repo: stable
version: 11.1.4
root@krashboyz:~# yunohost app info funkwhale
description: Convivial and modern music server
domain_path: son.krashboyz.org/
name: Funkwhale
version: 1.3.0~ynh2
root@krashboyz:~# grep MEDIA /var/www/funkwhale/config/.env
MEDIA_ROOT=/home/yunohost.app/funkwhale/data/media
# PROXY_MEDIA=false
root@krashboyz:~# ls -al /home/yunohost.app/funkwhale/data/media
total 28
drwxr-x--- 7 funkwhale www-data 4096 Dec 14 21:34 .
drwxr-xr-x 4 root root 4096 Jun 13 12:13 ..
drwxr-x--- 28 funkwhale www-data 4096 Mar 13 19:53 attachments
drwxr-x--- 3 funkwhale www-data 4096 Dec 12 20:54 federation_cache
drwxr-x--- 3 funkwhale www-data 4096 Jan 9 2022 __sized__
drwxr-x--- 76 funkwhale www-data 4096 Dec 13 11:26 tracks
drwxr-x--- 3 funkwhale www-data 4096 Dec 14 21:34 transcoded
total 20
drwxr-x--- 5 funkwhale www-data 4096 Jun 13 12:13 .
drwxr-xr-x 16 root root 4096 Jun 8 19:57 ..
drwxr-xr-x 4 root root 4096 Jun 13 12:13 data
drwxr-x--- 2 funkwhale www-data 4096 Sep 8 2021 music
drwxr-x--- 7 funkwhale www-data 4096 Sep 8 2021 static
root@krashboyz:~# chown -R funkwhale:www-data /home/yunohost.app/funkwhale/data
but it is not better , i'm going crazy
Could you try some tracks and send your nginx logs?
Could you share me your actual nginx.conf?
I think you will find it in /etc/nginx/conf.d/son.krashboyz.org.d/funkwhale.conf
And can you share the result of
ls -lah /home/yunohost.app/funkwhale/data/music/
ls -lah /home/yunohost.app/funkwhale/data/media/
ls -lah /home/yunohost.app/funkwhale/music/
ls -lah /home/yunohost.app/funkwhale/media/
Thanks
root@krashboyz:/home/yunohost.app/funkwhale/data/media# cat /etc/nginx/conf.d/son.krashboyz.org.d/funkwhale.conf
root /var/www/funkwhale/front/dist;
location /api/ {
# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# this is needed if you have file import via upload enabled
client_max_body_size 100M;
proxy_pass http://127.0.0.1:5000;
}
location / {
alias /var/www/funkwhale/front/dist/;
expires 1d;
try_files $uri $uri/ /index.html;
}
location /embed.html {
more_set_headers "Content-Security-Policy: connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
more_set_headers "Referrer-Policy: strict-origin-when-cross-origin";
alias /var/www/funkwhale/front/dist/embed.html;
expires 1d;
}
location /federation/ {
# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:5000/federation/;
}
# You can comment this if you do not plan to use the Subsonic API
location /rest/ {
# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:5000/api/subsonic/rest/;
}
location /.well-known/ {
# global proxy conf
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:5000;
}
location /media/__sized__/ {
alias /home/yunohost.app/funkwhale/data/media/__sized__/;
more_set_headers "Access-Control-Allow-Origin: *";
}
location /media/attachments/ {
alias /home/yunohost.app/funkwhale/data/media/attachments/;
more_set_headers "Access-Control-Allow-Origin: *";
}
# This is an internal location that is used to serve
# media (uploaded) files once correct permission / authentication
# has been checked on API side.
# Comment the "NON-S3" commented lines and uncomment "S3" commented lines
# if you're storing media files in a S3 bucket.
location ~ /_protected/media/(.+)/ {
internal;
alias /home/yunohost.app/funkwhale/data/media/$1; # NON-S3
# Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932.
# proxy_set_header Authorization ""; # S3
# proxy_pass $1; # S3
more_set_headers "Access-Control-Allow-Origin: *";
}
location /_protected/music/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
# Set this to the same value as your MUSIC_DIRECTORY_PATH setting
internal;
alias /home/yunohost.app/funkwhale/data/music/;
more_set_headers "Access-Control-Allow-Origin: *";
}
# Allow direct access to /staticfiles
location /staticfiles/ {
alias /home/yunohost.app/funkwhale/data/static/;
more_set_headers "Access-Control-Allow-Origin: *";
}
# Allow direct access to only specific subdirectories in /media
location /media/dynamic_preferences/ {
alias /home/yunohost.app/funkwhale/data/media/dynamic_preferences/;
more_set_headers "Access-Control-Allow-Origin: *";
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
}
root@krashboyz:/home/yunohost.app/funkwhale/data/media# ls -lah /home/yunohost.app/funkwhale/data/music/
ls: cannot access '/home/yunohost.app/funkwhale/data/music/': No such file or directory
root@krashboyz:/home/yunohost.app/funkwhale/data/media# ls -lah /home/yunohost.app/funkwhale/data/media/
total 28K
drwxr-x--- 7 funkwhale www-data 4.0K Dec 14 21:34 .
drwxr-xr-x 4 funkwhale www-data 4.0K Jun 13 12:13 ..
drwxr-x--- 28 funkwhale www-data 4.0K Mar 13 19:53 attachments
drwxr-x--- 3 funkwhale www-data 4.0K Dec 12 2022 federation_cache
drwxr-x--- 3 funkwhale www-data 4.0K Jan 9 2022 __sized__
drwxr-x--- 76 funkwhale www-data 4.0K Dec 13 11:26 tracks
drwxr-x--- 3 funkwhale www-data 4.0K Dec 14 21:34 transcoded
root@krashboyz:/home/yunohost.app/funkwhale/data/media# ls -lah /home/yunohost.app/funkwhale/music/
total 8.0K
drwxr-x--- 2 funkwhale www-data 4.0K Sep 8 2021 .
drwxr-x--- 5 funkwhale www-data 4.0K Jun 13 12:13 ..
root@krashboyz:/home/yunohost.app/funkwhale/data/media# ls -lah /home/yunohost.app/funkwhale/media/
ls: cannot access '/home/yunohost.app/funkwhale/media/': No such file or directory
thx for your help and your time <3
Could you please ls -lah /home/yunohost.app/funkwhale/
?
root@krashboyz:/home/yunohost.app/funkwhale/data/media# ls -lah /home/yunohost.app/funkwhale/
total 20K
drwxr-x--- 5 funkwhale www-data 4.0K Jun 13 12:13 .
drwxr-xr-x 16 root root 4.0K Jun 8 19:57 ..
drwxr-xr-x 4 funkwhale www-data 4.0K Jun 13 12:13 data
drwxr-x--- 2 funkwhale www-data 4.0K Sep 8 2021 music
drwxr-x--- 7 funkwhale www-data 4.0K Sep 8 2021 static
Could you share the services logs (the logs of each Funkwhale services) please?
i just retried to play a track
looks like the other issue https://github.com/YunoHost-Apps/funkwhale_ynh/issues/230 no ?
Yes it seems to. I propose that you follow the issue there and if there's something new on your instance you comment further here, if it's okay for you :)
Next update should resolve your issue.
You just may have to adapt your music directory by mv /home/yunohost.app/funkwhale/music/ /home/yunohost.app/funkwhale/data/music/
And maybe? mv /home/yunohost.app/funkwhale/static/ /home/yunohost.app/funkwhale/data/static/
@Thovi98 hi o/ just upgrade to version: 1.3.3~ynh1 , i didn't mv anything, and it works back fine
Describe the bug
funkwhale-beat doesn't start
Context
Steps to reproduce
Expected behavior
funkwhale-beat should running
Logs
When an operation fails, YunoHost provides a simple way to share the logs.
root@krashboyz:~# yunohost service status funkwhale-beat configuration: unknown description: funkwhale celery beat process last_state_change: 2023-02-23 17:59:57 start_on_boot: enabled status: failed