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

Installation complet but the service funkwhale-server won't start #149

Closed
JOduMonT opened this issue Jul 2, 2021 · 6 comments · Fixed by #148
Closed

Installation complet but the service funkwhale-server won't start #149

JOduMonT opened this issue Jul 2, 2021 · 6 comments · Fixed by #148

Comments

@JOduMonT
Copy link

JOduMonT commented Jul 2, 2021

  • Funkwhale version 1.1.2~ynh1
  • Hardware: LXC
  • OS: Debian 10.10
    YunoHost: 4.2.6.1 stable
  • Access: SSH, webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: No

Steps to reproduce

I tried via the webadmin and via CLI sudo yunohost app install funkwhale

partial Log from the WebAdmin

The service funkwhale-server didn't fully executed the action start before the timeout.
Please find here an extract of the end of the log of the service funkwhale-server:
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
Jul 02 01:59:23 gunicorn[58932]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/base.py", line 228, in run
Jul 02 01:59:23 gunicorn[58932]: super().run()
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/base.py", line 72, in run
Jul 02 01:59:23 gunicorn[58932]: Arbiter(self).run()
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 229, in run
Jul 02 01:59:23 gunicorn[58932]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 342, in halt
Jul 02 01:59:23 gunicorn[58932]: self.stop()
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 393, in stop
Jul 02 01:59:23 gunicorn[58932]: time.sleep(0.1)
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
Jul 02 01:59:23 gunicorn[58932]: self.reap_workers()
Jul 02 01:59:23 gunicorn[58932]: File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
Jul 02 01:59:23 gunicorn[58932]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Jul 02 01:59:23 gunicorn[58932]: gunicorn.errors.HaltServer:
Jul 02 01:59:23 gunicorn[58932]: [2021-07-02 01:59:23 +0000] [58944] [INFO] Worker exiting (pid: 58944)
Jul 02 01:59:23 systemd[1]: funkwhale-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 02 01:59:23 systemd[1]: funkwhale-server.service: Failed with result 'exit-code'.

Log from the CLI

Choose the domain where this app should be installed [cloud.jdmnt.co | om.jdmnt.co | zik.jdmnt.co] (default: om.jdmnt.co): zik.jdmnt.co
Choose an administrator user for this app [jond] (default: jond): 
Should this app be exposed to anonymous visitors? [yes | no] (default: yes): 
Info: Installing funkwhale...
Info: [+...................] > Validating installation parameters...
Info: [#+..................] > Storing installation settings...
Info: [##+.................] > Finding an available port...
Info: [###+................] > Installing dependencies...
Info: [####+...............] > Configuring system user...
Info: [#####+..............] > Creating a PostgreSQL database...
Info: [######+.............] > Setting up source files...
Info: [#######+............] > Configuring NGINX web server...
Info: [########++..........] > Adding a config file...
Info: [##########+.........] > Configuring a systemd service...
Info: [###########+........] > Installing Python dependencies...
Warning: Cache entry deserialization failed, entry ignored
Warning:   Running command git clone -q https://github.com/agateblue/requests-http-signature.git /tmp/pip-req-build-s5ey6ppa
Warning:   Running command git checkout -b signature-header-support --track origin/signature-header-support
Warning:   Switched to a new branch 'signature-header-support'
Warning:   Branch 'signature-header-support' set up to track remote branch 'signature-header-support' from 'origin'.
Info: [############+.......] > Building funkwhale...
Warning: 2021-07-02 03:24:52,971 funkwhale_api.config INFO     Loaded env file at /var/www/funkwhale/config/.env
Warning: 2021-07-02 03:24:52,972 funkwhale_api.config INFO     Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz                                                                                                
Warning: 2021-07-02 03:25:02,925 funkwhale_api.config INFO     Loaded env file at /var/www/funkwhale/config/.env
Warning: 2021-07-02 03:25:02,926 funkwhale_api.config INFO     Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz                                                                                                
Warning: 2021-07-02 03:25:04,353 funkwhale_api.config INFO     Loaded env file at /var/www/funkwhale/config/.env
Warning: 2021-07-02 03:25:04,354 funkwhale_api.config INFO     Running with the following plugins enabled: funkwhale_api.contrib.scrobbler, funkwhale_api.contrib.listenbrainz                                                                                                
Info: [#############+......] > Integrating service in YunoHost...
Info: [##############+.....] > Starting a systemd service...
Info: The service funkwhale-beat has correctly executed the action start.
Warning: (this may take some time)
Warning: The service funkwhale-server didn't fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service funkwhale-server:
Warning: Jul 02 03:25:10 gunicorn[73106]:     sys.exit(run())
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in run                                                                                                                         
Warning: Jul 02 03:25:10 gunicorn[73106]:     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/base.py", line 228, in run                                                                                                                           
Warning: Jul 02 03:25:10 gunicorn[73106]:     super().run()
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/app/base.py", line 72, in run                                                                                                                            
Warning: Jul 02 03:25:10 gunicorn[73106]:     Arbiter(self).run()
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 229, in run                                                                                                                            
Warning: Jul 02 03:25:10 gunicorn[73106]:     self.halt(reason=inst.reason, exit_status=inst.exit_status)
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 342, in halt                                                                                                                           
Warning: Jul 02 03:25:10 gunicorn[73106]:     self.stop()
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 393, in stop                                                                                                                           
Warning: Jul 02 03:25:10 gunicorn[73106]:     time.sleep(0.1)
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 242, in handle_chld                                                                                                                    
Warning: Jul 02 03:25:10 gunicorn[73106]:     self.reap_workers()
Warning: Jul 02 03:25:10 gunicorn[73106]:   File "/var/www/funkwhale/virtualenv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 525, in reap_workers                                                                                                                   
Warning: Jul 02 03:25:10 gunicorn[73106]:     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Warning: Jul 02 03:25:10 gunicorn[73106]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Warning: Jul 02 03:25:10 systemd[1]: funkwhale-server.service: Main process exited, code=exited, status=1/FAILURE
Warning: Jul 02 03:25:10 systemd[1]: funkwhale-server.service: Failed with result 'exit-code'.
Info: The service funkwhale-worker has correctly executed the action start.
Info: [###############+....] > Configuring Fail2Ban...
Warning: <stdin>:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.                                                                                         
Warning: <stdin>:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.                                                                                         
Warning: <stdin>:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.                                                                                         
Warning: <stdin>:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.                                                                                         
Info: The service fail2ban has correctly executed the action reload-or-restart.
Info: [################+...] > Configuring permissions...
Info: [#################+..] > Reloading NGINX web server...
Info: [##################++] > Installation of funkwhale completed
Success! Installation completed
@asgardius
Copy link

asgardius commented Jul 2, 2021

I tried same Funkwhale version on a Raspberry Pi 3b+ using same Yunohost Version and i have this log from journalctl
https://paste.yunohost.org/acujipihur

@yalh76
Copy link
Member

yalh76 commented Jul 5, 2021

@JOduMonT
Copy link
Author

JOduMonT commented Jul 6, 2021

I don't know to practice of YunoHost, but it might be a good practice to fix software version and only upgrade them after validation ;)
Cloudron, which of course is a paid software/service, do that, which allow them to offer very stable application.

@yalh76
Copy link
Member

yalh76 commented Jul 6, 2021

I don't know to practice of YunoHost, but it might be a good practice to fix software version and only upgrade them after validation ;)
Cloudron, which of course is a paid software/service, do that, which allow them to offer very stable application.

That's the case ... But YunoHost is volunteer time based....

The issue here come from python recently updated in Debian Buster.... Some deprecated functions have been removed, and Django, the framework used by Funkwhale, still use them ... would be solved quickly when Django and Funkwhale will update

@georgkrause
Copy link

seems related to https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/1516

This reports a regression in develop, which is no issue in 1.1.2.

The issue here come from python recently updated in Debian Buster.... Some deprecated functions have been removed, and Django, the framework used by Funkwhale, still use them ... would be solved quickly when Django and Funkwhale will update

What Debian, python and django version are you referring to?

@georgkrause
Copy link

This reports a regression in develop, which is no issue in 1.1.2.

Turns out: I was completely wrong, it actually effects 1.1.2 if you do a fresh install without docker. Sorry for the wrong information.

Good news on the other site: It should be fixed with 1.1.4. Let me know if it works!

This was referenced Aug 4, 2021
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

Successfully merging a pull request may close this issue.

4 participants