Upgrade funkwhale failed

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.39
How are you able to access your server: The webadmin
SSH

Describe your issue

Upgrade funkwhale from 1.4.1 to 2.0.1 failed

Share relevant logs or error messages

2026-04-09 19:06:13,977: INFO - [##########+…] > Upgrading Funkwhale…
2026-04-09 19:06:13,980: DEBUG - + pushd /var/www/funkwhale
2026-04-09 19:06:13,981: DEBUG - /var/www/funkwhale /var/cache/yunohost/app_tmp_work_dirs/app_ekknnsmj/scripts
2026-04-09 19:06:13,982: DEBUG - + ynh_hide_warnings ynh_exec_as_app /var/www/funkwhale/venv/bin/funkwhale-manage migrate
2026-04-09 19:06:13,982: DEBUG - + ynh_exec_as_app /var/www/funkwhale/venv/bin/funkwhale-manage migrate
2026-04-09 19:06:13,983: DEBUG - + sudo -u funkwhale env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 NPM_CONFIG_UPDATE_NOTIFIER=false /var/www/funkwhale/venv/bin/funkwhale-manage migrate
2026-04-09 19:06:14,714: DEBUG - 2026-04-09 19:06:14,713 funkwhale_api.config INFO Loaded env file at /var/www/funkwhale/config/.env
2026-04-09 19:06:14,715: DEBUG - 2026-04-09 19:06:14,714 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz, funkwhale_api.contrib.maloja
2026-04-09 19:06:16,411: DEBUG - /usr/share/yunohost/helpers.v2.1.d/0-utils : ligne 76 : 2353703 Instruction non permise sudo -u “$app” env PATH=“$PATH” COREPACK_ENABLE_DOWNLOAD_PROMPT=“0” NPM_CONFIG_UPDATE_NOTIFIER=“false” “$@”
2026-04-09 19:06:16,412: DEBUG - + ynh_exit_properly

How old is uour cpu? It may be because of this (Making sure you're not a bot!)

1 Like

It is AMD Athlon™ 64 X2 Dual Core Processor 3800+

First dual core gen an antiquity :saluting_face:

I’m actively trying to solve this issue™

The problems identified so far are with numpy and nmslib both requiring AVX instruction set (aka X86_V2 compatibility) which is not found on my antique Bonnell-era Atom.

Generally speaking current solution is to switch to another player (Navidrome, Swingmusic, you name it) or stay with Funkwhale 1.4.1

Short term solution is to keep your fingers crossed then modify venv with a bunch of shoddy libraries I’m brewing right now :person_shrugging:

1 Like

argh I know the issue with avx

I’ll waiting for your fix and see next … Just let me know

The fix is here, with lacking quality so not for merging yet:

yunohost app upgrade funkwhale -u https://github.com/YunoHost-Apps/funkwhale_ynh/tree/avx-fix

This takes numpy library compiled for SSE3 and drops it into venv prior to running migrations.

Note that Funkwhale takes a while to migrate and a while to regain consciousness, even after successfull upgrade.

1 Like

I give a try

I need to create empty file to begin the update process

Attention : File or folder ‘/etc/fail2ban/jail.d/funkwhale.conf’ to be backed up does not exist
Erreur : Échec de la collecte des fichiers à sauvegarder pour funkwhale.

and

Attention : File or folder ‘/etc/fail2ban/filter.d/funkwhale.conf’ to be backed up does not exist
Erreur : Échec de la collecte des fichiers à sauvegarder pour funkwhale.

and failed

Attention : Failed to update sources : Échec du téléchargement de la ressource ‘api’ ( Making sure you're not a bot! ) pour funkwhale : Making sure you're not a bot!
2026-04-18 10:02:04 erreur 404 : Not Found.

Info : Reverting sources…
Erreur : L’allocation automatique des ressources (provisioning), la suppression d’accès à ces ressources (déprovisioning) ou la mise à jour des ressources pour funkwhale a échoué : Échec du téléchargement de la ressource ‘api’ ( Making sure you're not a bot! ) pour funkwhale : Making sure you're not a bot!
2026-04-18 10:02:04 erreur 404 : Not Found.

:melting_face:

Please try again, the upstream assets are gone hence a fix was pushed to master and said fix was missing from my branch.

Another error

back to Instruction non permise sudo -u “$app” env PATH=“$PATH”

Info : Updating database…
Info : [+…] > Stopping funkwhale’s systemd service…
Info : [#+…] > Configuring the PostgreSQL database…
Attention : NOTICE: l’extension « unaccent » existe déjà, poursuite du traitement
Attention : NOTICE: l’extension « citext » existe déjà, poursuite du traitement
Info : [##++…] > Upgrading source files…
Info : [####+…] > Upgrading NGINX web server configuration…
Info : [#####++…] > Assure correct permissions to /home/yunohost.app/funkwhale…
Info : [#######+…] > Installing Python dependencies…
Info : [########++…] > Updating configuration…
Info : [##########+…] > Upgrading Funkwhale…
Erreur : Impossible de mettre à jour funkwhale : Une erreur s’est produite durant l’exécution du script de mise à jour de l’application
Info : L’opération ‘Mettre à jour l’application ‘funkwhale’’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande ‘yunohost log share 20260418-104131-app_upgrade-funkwhale’
Attention : Here’s an extract of the logs before the crash. It might help debugging the error:
Info : DEBUG - ++ grep -oP ‘[A-Z0-9]+?[A-Z0-9_]?[A-Z0-9]?’ /var/www/funkwhale/config/.env
Info : DEBUG - + ynh_store_file_checksum /var/www/funkwhale/config/.env
Info : INFO - [##########+…] > Upgrading Funkwhale…
Info : DEBUG - + pushd /var/www/funkwhale
Info : DEBUG - /var/www/funkwhale /var/cache/yunohost/app_tmp_work_dirs/app_96l31svm/scripts
Info : DEBUG - + ynh_hide_warnings ynh_exec_as_app /var/www/funkwhale/venv/bin/funkwhale-manage migrate
Info : DEBUG - + ynh_exec_as_app /var/www/funkwhale/venv/bin/funkwhale-manage migrate
Info : DEBUG - + sudo -u funkwhale env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 NPM_CONFIG_UPDATE_NOTIFIER=false /var/www/funkwhale/venv/bin/funkwhale-manage migrate
Info : DEBUG - 2026-04-18 12:46:39,186 funkwhale_api.config INFO Loaded env file at /var/www/funkwhale/config/.env
Info : DEBUG - 2026-04-18 12:46:39,186 funkwhale_api.config INFO Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz, funkwhale_api.contrib.maloja
Info : DEBUG - /var/www/funkwhale/venv/lib/python3.11/site-packages/dj_rest_auth/registration/serializers.py:225: UserWarning: app_settings.USERNAME_REQUIRED is deprecated, use: app_settings.SIGNUP_FIELDS[‘username’][‘required’]
Info : DEBUG - required=allauth_account_settings.USERNAME_REQUIRED,
Info : DEBUG - /var/www/funkwhale/venv/lib/python3.11/site-packages/dj_rest_auth/registration/serializers.py:227: UserWarning: app_settings.EMAIL_REQUIRED is deprecated, use: app_settings.SIGNUP_FIELDS[‘email’][‘required’]
Info : DEBUG - email = serializers.EmailField(required=allauth_account_settings.EMAIL_REQUIRED)
Info : DEBUG - /var/www/funkwhale/venv/lib/python3.11/site-packages/dj_rest_auth/registration/serializers.py:285: UserWarning: app_settings.EMAIL_REQUIRED is deprecated, use: app_settings.SIGNUP_FIELDS[‘email’][‘required’]
Info : DEBUG - email = serializers.EmailField(required=allauth_account_settings.EMAIL_REQUIRED)
Info : DEBUG - 2026-04-18 10:46:44,199 funkwhale_api.typesense.utils INFO Typesense is not activated. You can enable it by setting the TYPESENSE_API_KEY env variable.
Info : DEBUG - 2026-04-18 10:46:44,199 funkwhale_api.typesense.tasks INFO Typesense is not activated. You can enable it by setting the TYPESENSE_API_KEY env variable.
Info : DEBUG - /usr/share/yunohost/helpers.v2.1.d/0-utils : ligne 76 : 2829115 Instruction non permise sudo -u “$app” env PATH=“$PATH” COREPACK_ENABLE_DOWNLOAD_PROMPT=“0” NPM_CONFIG_UPDATE_NOTIFIER=“false” “$@”
Info : DEBUG - + ynh_exit_properly

Can you share full upgrade log? What are the flags if you type cat /proc/cpuinfo?

https://paste.yunohost.org/raw/napeyicihi

cat /proc/cpuinfo
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon™ 64 X2 Dual Core Processor 3800+
stepping : 2
microcode : 0x62
cpu MHz : 2009.223
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl cpuid extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch vmmcall
bugs : fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spectre_v1 spectre_v2
bogomips : 4018.44
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon™ 64 X2 Dual Core Processor 3800+
stepping : 2
microcode : 0x62
cpu MHz : 2009.223
cache size : 512 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl cpuid extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch vmmcall
bugs : fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spectre_v1 spectre_v2
bogomips : 4018.51
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

Makes sense, I’ve baked in sse3 requirement.

will get back to you

1 Like

Ok, the new update package:

yunohost app upgrade funkwhale -u https://github.com/YunoHost-Apps/funkwhale_ynh/tree/athlon-fix

This time around optimized for Athlon64 (so your CPU :crossed_fingers: )

1 Like

:sob: not yet

2026-04-19 09:28:24,969: DEBUG - + sudo -u funkwhale env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 NPM_CONFIG_UPDATE_NOTIFIER=false /var/www/funkwhale/venv/bin/funkwhale-manage migrate
2026-04-19 09:28:25,606: DEBUG - 2026-04-19 09:28:25,605 funkwhale_api.config INFO     Loaded env file at /var/www/funkwhale/config/.env
2026-04-19 09:28:25,606: DEBUG - 2026-04-19 09:28:25,606 funkwhale_api.config INFO     Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz, funkwhale_api.contrib.maloja
2026-04-19 09:28:27,143: DEBUG - /usr/share/yunohost/helpers.v2.1.d/0-utils : ligne 76 : 2880391 Instruction non permise sudo -u "$app" env PATH="$PATH" COREPACK_ENABLE_DOWNLOAD_PROMPT="0" NPM_CONFIG_UPDATE_NOTIFIER="false" "$@"

https://paste.yunohost.org/raw/badicuneba

I must admit I’m out of ideas when it comes to prepackaged solutions. I have no clue what instruction your CPU refuses and I have no easy way of remote debugging.

You can try building locally with -march=native but keep in mind that’s a multi-hour adventure on this grade of hardware

How can I try this ? Or help to debug ?

I give a try

sudo yunohost app upgrade funkwhale -u GitHub - YunoHost-Apps/funkwhale_ynh at athlon-fix · GitHub -march=native
[sudo] Mot de passe de user :
usage: yunohost {app} … [-h] [–output-as {json,plain,none}] [–debug] [–quiet] [–version] [–timeout ==SUPPRESS==]
yunohost: error: unrecognized arguments: -march=native
zsh: exit 2 sudo yunohost app upgrade funkwhale -u -march=native

Thanks you for the time you spend to help me

May be I can give a try to rebuild the venv manually like this ?

The venv was regenerated for this upgrade, the problem is upstream projects ship binaries compiled for a more demanding CPU.

What I did to track down the root cause was to install the upgrade allowing broken install, then run python under gdb to find the offending instruction and file - that’s how I narrowed it down to numpy.