question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to daemonize superset process

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven’t found one similar

Superset version

0.15.0

Expected results

Detaches the server from the controlling terminal and enters the background

Actual results

can’t realize running superset at backend

Steps to reproduce

gunicorn is superset’s server, I add the parameter -D --daemon in bin.superset.run_server(), but don’t work. Is there any other way s to detaches the server from the controlling terminal and enters the background?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
liptanbiswascommented, Feb 19, 2018

@pastarace change /var/superset/superset/ with path to your Virtualenv. It’s working I checked. You can also remove PYTHONPATH line. I added it because I am using local configuration file.

[Unit]
Description=Superset service 
After=network.target

[Service]
Type=simple
User=superset 
Group=superset 
Environment=PATH=/var/superset/superset/bin:$PATH
Environment=PYTHONPATH=/var/superset/superset:$PYTHONPATH
ExecStart=/var/superset/superset/bin/superset runserver

[Install]
WantedBy=multi-user.target
2reactions
mistercrunchcommented, Feb 19, 2018

Would recommend using a straight gunicorn in place of superset runserver to allow for more control and avoid an extra level of shelling

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to daemonize superset process · Issue #2123 - GitHub
gunicorn is superset's server, I add the parameter -D --daemon in bin.superset.run_server(), but don't work. Is there any other way s to detaches...
Read more >
Run Superset as Service - daemon - Stack Overflow
[Unit] Description = Apache Superset Webserver Daemon After = network.target [Service] PIDFile = /home/superset/superset-webserver.
Read more >
Setting up Apache Superset as a Systemd Service
writing PATH=$PATH:/path_to_directory_containing_gunicorn WILL NOT WORK As expected. reload the units configuration $ systemctl daemon- ...
Read more >
Creating python superset daemon using systemctl in centos
Creating python superset daemon using systemctl in centos · 1. make service file. sudo vim /etc/systemd/system/superset.service · 2. make script.
Read more >
Introduction to superset deployment, installation and ...
Introduction to superset deployment, installation and use Superset overview Apache Superset is an open source, modern and lightweight BI analysis tool.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found