hello, I have this problem and I don't understand why sometimes I don't detect it and other times I do, I use metabase with target db Mariadb and create a service for metabase. Sometimes I detect that if I start the service, where inside I put the Environment entry where I indicate the various variables for the DB it doesn't work and so I have to run it from jar exported the variables. What could I be doing wrong?
Hi, can you send us the way that you run Metabase? please redact the sensitive data
Hi, here:
This is a metabase.service:
[Unit]
Description=Metabase applicaion service
Documentation=Metabase documentation
[Service]
Environment=MB_PLUGINS_DIR=/metabase/plugins
WorkingDirectory=/metabase
ExecStart=/usr/bin/java -Xms128m -Xmx256m -jar metabase.jar
User=metabase
Type=simple
Restart=on-failure
RestartSec=10
Environment=MB_DB_FILE=/metabase/metabase.db
[Install]
WantedBy=multi-user.target
This is a metabase.db
MB_DB_TYPE=mysql
MB_DB_DBNAME=metabase
MB_DB_PORT=3306
MB_DB_USER=test
MB_DB_PASS=test
MB_DB_HOST=localhost
If I don't start it from service it works correctly and uses mariadb as the supporting database