I've setup and configured Apache Superset, but I can't get it to run as a Systemd Service.
I've tried setting it up in a virtualenv and using systemd like this, but I still get an error about gunicorn not being available and the unit fails to start.
I've also tried creating a separate user for Superset, installing Superset and its dependencies with pip install --user, the unit then looks like:
[Unit]
Description=Superset
After=syslog.target network.target
[Service]
User=superset
ExecStart=/home/superset/.local/bin/superset runserver
[Install]
WantedBy=multi-user.target
and it still doesn't work. Looking at the journal
Jul 13 22:54:21 radioactive-man systemd[1]: Started Superset.
Jul 13 22:54:23 radioactive-man superset[24023]: 2018-07-13 22:54:23,893:INFO:root:The Gunicorn 'superset runserver' command is deprecated. Please use the 'gunicorn' command instead.
Jul 13 22:54:23 radioactive-man superset[24023]: /bin/sh: 1: gunicorn: not found
Jul 13 22:54:23 radioactive-man superset[24023]: Starting server with command:
Jul 13 22:54:23 radioactive-man superset[24023]: gunicorn -w 2 --timeout 60 -b 0.0.0.0:8088 --limit-request-line 0 --limit-request-field_size 0 superset:app
Jul 13 22:54:23 radioactive-man superset[24023]:
running the command at bash it works fine.
Environment Info
Ubuntu Linux 16.04
Superset 0.26.3