Provide docs to help with migration Debian 10 -> 11
Steps to reproduce
- Install Funkwhale (Non-Docker)
- Upgrade from Debian 10 to Debian 11
- Restart Funkwhale Services (systemctl restart funkwhale-*)
What happens?
Funkwhale doesn't start anymore. As far as i suspect, due to the upgrade itself, debian removed the support for Python 2 and used a recent version of Python 3 (3.9.2). Therefore the Python Packages need an update or maybe replacement?
Please see the systemctl status output at the end of this text. The Directory of all the modules still exist, they remained unchanged.
This also leads to an error when trying to upgrade on another machine. The following output is generated, if you try to upgrade from 1.1.3 to 1.1.4, after an upgrade from Debian 10 to Debian 11.
sudo -u funkwhale -H -E /srv/funkwhale/virtualenv/bin/pip install -r api/requirements.txt
Traceback (most recent call last):
File "/srv/funkwhale/virtualenv/bin/pip", line 6, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip'
I tried to use pip3 instead, but that gave the same error.
What is expected?
Funkwhale should be still operational, like before the Debian Upgrade.
Context
Funkwhale version(s) affected: 1.1.4, 1.1.3
systemctl status funkwhale-* gives the following output:
funkwhale-beat.service - Funkwhale celery beat process
Loaded: loaded (/etc/systemd/system/funkwhale-beat.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-08-29 16:15:53 CEST; 6s ago
Process: 1404426 ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp beat -l INFO (code=exited, status=1/FAILURE)
Main PID: 1404426 (code=exited, status=1/FAILURE)
CPU: 34ms
Aug 29 16:15:53 earth systemd[1]: Started Funkwhale celery beat process.
Aug 29 16:15:53 earth celery[1404426]: Traceback (most recent call last):
Aug 29 16:15:53 earth celery[1404426]: File "/srv/funkwhale/virtualenv/bin/celery", line 6, in <module>
Aug 29 16:15:53 earth celery[1404426]: from celery.__main__ import main
Aug 29 16:15:53 earth celery[1404426]: ModuleNotFoundError: No module named 'celery'
Aug 29 16:15:53 earth systemd[1]: funkwhale-beat.service: Main process exited, code=exited, status=1/FAILURE
Aug 29 16:15:53 earth systemd[1]: funkwhale-beat.service: Failed with result 'exit-code'.
● funkwhale-server.service - Funkwhale application server
Loaded: loaded (/etc/systemd/system/funkwhale-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-08-29 16:15:53 CEST; 6s ago
Process: 1404427 ExecStart=/srv/funkwhale/virtualenv/bin/gunicorn config.asgi:application -w ${FUNKWHALE_WEB_WORKERS} -k uvicorn.workers.UvicornWorker -b>
Main PID: 1404427 (code=exited, status=1/FAILURE)
CPU: 41ms
Aug 29 16:15:53 earth systemd[1]: Started Funkwhale application server.
Aug 29 16:15:53 earth gunicorn[1404427]: Traceback (most recent call last):
Aug 29 16:15:53 earth gunicorn[1404427]: File "/srv/funkwhale/virtualenv/bin/gunicorn", line 6, in <module>
Aug 29 16:15:53 earth gunicorn[1404427]: from gunicorn.app.wsgiapp import run
Aug 29 16:15:53 earth gunicorn[1404427]: ModuleNotFoundError: No module named 'gunicorn'
Aug 29 16:15:53 earth systemd[1]: funkwhale-server.service: Main process exited, code=exited, status=1/FAILURE
Aug 29 16:15:53 earth systemd[1]: funkwhale-server.service: Failed with result 'exit-code'.
● funkwhale-worker.service - Funkwhale celery worker
Loaded: loaded (/etc/systemd/system/funkwhale-worker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-08-29 16:15:53 CEST; 6s ago
Process: 1404428 ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO (code=exited, status=1/FAILURE)
Main PID: 1404428 (code=exited, status=1/FAILURE)
CPU: 37ms
Aug 29 16:15:53 earth systemd[1]: Started Funkwhale celery worker.
Aug 29 16:15:53 earth celery[1404428]: Traceback (most recent call last):
Aug 29 16:15:53 earth celery[1404428]: File "/srv/funkwhale/virtualenv/bin/celery", line 6, in <module>
Aug 29 16:15:53 earth celery[1404428]: from celery.__main__ import main
Aug 29 16:15:53 earth celery[1404428]: ModuleNotFoundError: No module named 'celery'
Aug 29 16:15:53 earth systemd[1]: funkwhale-worker.service: Main process exited, code=exited, status=1/FAILURE
Aug 29 16:15:53 earth systemd[1]: funkwhale-worker.service: Failed with result 'exit-code'.
If you need any more information, please let me know.
Cheers, Makryfa