Hello, When I try to run systemctl start metabase, I get error as follows:
Failed to start metabase.service: Unit is not loaded properly: Bad message.
My metabase.service file contains the following content:
[Unit]
Description=Metabase server
After=syslog.target
After=network.target[Service]
User=root
Type=simple
ExecStart=/bin/java -jar /var/metabase.jar
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=metabase
[Install] WantedBy=multi-user.target
What to do?
flamber
November 27, 2019, 6:26pm
2
Hi @kjkrupal
You have two lines, that are invalid:
After=network.target[Service]
and [Install] WantedBy=multi-user.target
Have a look at the documentation - it’s written for Debian, but it’s just SystemD, so it should look fairly similar on CentOS:
https://www.metabase.com/docs/latest/operations-guide/running-metabase-on-debian.html
Hi @flamber ,
Thank you I got it to work. Also, do I need to have nginx installed to open metabase in browser? Or I can do it with apache as well?
flamber
November 27, 2019, 8:21pm
4
@kjkrupal You don’t need a reverse proxy, but it’s recommended, since it’s easier to secure and setup certificates. You can use any reverse proxy you want: Nginx, Apache, Caddy, Traefik, …
flamber
Split this topic
July 6, 2021, 11:41am
5
flamber
Split this topic
July 6, 2021, 11:44am
6
2 posts were merged into an existing topic: Problems setting up service on Ubuntu