YunoHost-Apps / funkwhale_ynh

A modern, convivial and free music server on YunoHost
https://funkwhale.audio/
GNU Affero General Public License v3.0
72 stars 22 forks source link

Problem with the funkwhale-worker service #3

Closed Rafi594 closed 6 years ago

Rafi594 commented 6 years ago

Hello

I have tried to install you app but the funkwhale-worker service don't start

The logs of the service:

https://framabin.org/?04399e59ecbd3615#07pLBdiFxsFcruiBO4MFmenck4mjqR+QiP2rLPnUP8c=

Jibec commented 6 years ago

Hello, thanks for your report, can you please describe the hardware you're using? Did you try with the latest funkwhale source code? I update community.json today. -- Jean-Baptiste Holcroft

Rafi594 commented 6 years ago

I'm using 64bits server and I have installed funkwhale with sudo yunohost app install https://github.com/YunoHost-Apps/funkwhale_ynh

agateblue commented 6 years ago

This looks like a layout or path issue. @Rafi594, can you please share the layout of your /var/www/funkwhaledirectory (for example using tree /var/www/funkwhale) ? Having the content of the worker systemd unit file may also help, but I'm not sure what is the path of those on Yunohost @Jibec

Rafi594 commented 6 years ago

I can't use tree because the result is too long

/var/www/funkwhale $ ls
api  CHANGELOG  changes  config  CONTRIBUTING  CONTRIBUTORS.txt  data  demo  deploy  dev.yml  docker  docs  front  LICENSE  load_env  po  pyproject.toml  README.rst  virtualenv
/var/www/funkwhale/virtualenv $ ls
bin  etc  include  lib  lib64  pip-selfcheck.json  pyvenv.cfg  share

The end of the tree command https://paste.yunohost.org/sokozivego.css

Rafi594 commented 6 years ago

I've tried to run the command /var/www/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO who is present in https://github.com/YunoHost-Apps/funkwhale_ynh/blob/master/conf/funkwhale-worker.service#L11 and I have the same problem

Rafi594 commented 6 years ago

I have found the problem I had to run this in /var/www/funkwhale/api and now I have connection refused errors https://paste.yunohost.org/yocahoxebe.sql

EDIT: I also have this error django.core.exceptions.ImproperlyConfigured: Set the FUNKWHALE_URL environment variable

Jibec commented 6 years ago

so, the issue is coming from redis, commenting CACHE_URL in .env, and running systemctl restart funkwhale.target disables it

Jibec commented 6 years ago

Should be fixed by: https://github.com/YunoHost-Apps/funkwhale_ynh/pull/4 please re-open if needed