Unable to start metabase as a service in Centos7

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?

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?

@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, …