Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip version in Yunohost 11 #187

Closed
Vitriia opened this issue Aug 23, 2022 · 3 comments
Closed

pip version in Yunohost 11 #187

Vitriia opened this issue Aug 23, 2022 · 3 comments

Comments

@Vitriia
Copy link

Vitriia commented Aug 23, 2022

Describe the bug

After upgrading Yunohost to Yunohost 11 (debian 11), Funkwhale stopped to work. All Funkwhale services are on exited status.

It seams to be because the virtualenv pip version is outdated/broken.

# /var/www/funkwhale/virtualenv/bin/pip
Traceback (most recent call last):
  File "/var/www/funkwhale/virtualenv/bin/pip", line 6, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

This funkwhale GitLab solution isn't working

sudo -u funkwhale -H -E python3 -m pip update /var/www/funkwhale/virtualenv
ERROR: unknown command "update"

No clue on what i can do next

Context

Funkwhale 1.2.7~ynh1

yunohost:
repo: stable
version: 11.0.9.9
yunohost-admin:
repo: stable
version: 11.0.10
moulinette:
repo: stable
version: 11.0.9
ssowat:
repo: stable
version: 11.0.9

Steps to reproduce

Perform the Yunohost migration to Yunohost 11.

Expected behavior

Services not stopping

Logs

sudo yunohost service log funkwhale-server

  - août 23 13:37:33 systemd[1]: Started funkwhale application server.
  - août 23 13:37:33 gunicorn[98338]: Traceback (most recent call last):
  - août 23 13:37:33 gunicorn[98338]:   File "/var/www/funkwhale/virtualenv/bin/gunicorn", line 5, in <module>
  - août 23 13:37:33 gunicorn[98338]:     from gunicorn.app.wsgiapp import run
  - août 23 13:37:33 gunicorn[98338]: ModuleNotFoundError: No module named 'gunicorn'
  - août 23 13:37:33 systemd[1]: funkwhale-server.service: Main process exited, code=exited, status=1/FAILURE
  - août 23 13:37:33 systemd[1]: funkwhale-server.service: Failed with result 'exit-code'.

sudo yunohost service log funkwhale-beat

  - août 23 13:37:06 systemd[1]: Started funkwhale celery beat process.
  - août 23 13:37:06 celery[98246]: Traceback (most recent call last):
  - août 23 13:37:06 celery[98246]:   File "/var/www/funkwhale/virtualenv/bin/celery", line 5, in <module>
  - août 23 13:37:06 celery[98246]:     from celery.__main__ import main
  - août 23 13:37:06 celery[98246]: ModuleNotFoundError: No module named 'celery'
  - août 23 13:37:06 systemd[1]: funkwhale-beat.service: Main process exited, code=exited, status=1/FAILURE
  - août 23 13:37:06 systemd[1]: funkwhale-beat.service: Failed with result 'exit-code'.

sudo yunohost service log funkwhale-worker

  - août 23 13:37:21 systemd[1]: Started funkwhale celery worker.
  - août 23 13:37:21 celery[98291]: Traceback (most recent call last):
  - août 23 13:37:21 celery[98291]:   File "/var/www/funkwhale/virtualenv/bin/celery", line 5, in <module>
  - août 23 13:37:21 celery[98291]:     from celery.__main__ import main
  - août 23 13:37:21 celery[98291]: ModuleNotFoundError: No module named 'celery'
  - août 23 13:37:21 systemd[1]: funkwhale-worker.service: Main process exited, code=exited, status=1/FAILURE
  - août 23 13:37:21 systemd[1]: funkwhale-worker.service: Failed with result 'exit-code'.
@Thovi98
Copy link
Member

Thovi98 commented Aug 25, 2022

Did you already tried to force upgrade Funkwhale after the upgrade? Sometimes, it’s necessary : sudo yunohost app upgrade funkwhale -F

@Vitriia
Copy link
Author

Vitriia commented Aug 28, 2022

Hi, i didn't know you can force upgrades. I will try it on my save and post the results

(i have corrected the issue 2 days ago but it's ugly as hell and not a real solution :

  • Backuping the app.
  • Removing it
  • Making a fresh new install
  • Copy the virtualenv/bin folder somewhere
  • Remove the fresh install
  • Restore the previous install
  • Erase virtualenv/bin with the fresh install copy)

@yalh76
Copy link
Member

yalh76 commented Sep 24, 2022

well if it works for you, fine

@yalh76 yalh76 closed this as completed Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants