Hi all,
I am on a fresh Debian install:
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
I installed Java as per: https://blog.adoptopenjdk.net/2019/05/adoptopenjdk-rpm-and-deb-files/
# java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
If I run metabase I get the following output:
# java -jar metabase.jar
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2021-08-26 19:56:59,831 INFO metabase.util :: Maximum memory available to JVM: 988.0 MB
2021-08-26 19:57:11,251 INFO util.encryption :: Saved credentials encryption is DISABLED for this Metabase instance.
For more information, see https://metabase.com/docs/latest/operations-guide/encrypting-database-details-at-rest.html
There seems to be no response from the server:
# curl http://localhost:3000/api/health
curl: (7) Failed to connect to localhost port 3000: Connection refused
Also nothing listening on port 3000
# netstat -nupta | grep 3000
I followed the steps here to set it up and have Postgres and Nginx installed, but there is no difference when running as a service: https://www.metabase.com/docs/latest/operations-guide/running-metabase-on-debian.html
# cat /etc/default/metabase
#MB_PASSWORD_COMPLEXITY=normal
#MB_PASSWORD_LENGTH=20
MB_DB_TYPE=postgres
MB_DB_DBNAME=metabase
MB_DB_PORT=5432
MB_DB_USER=metabase
MB_DB_PASS=<password>
MB_DB_HOST=127.0.0.1
#MB_EMOJI_IN_LOGS=false
MB_ENCRYPTION_SECRET_KEY=<secret>
JAVA_TOOL_OPTIONS=-Xmx2048m
MB_JETTY_PORT=3000
# systemctl stop metabase
# systemctl start metabase
# systemctl status metabase
● metabase.service - Metabase server
Loaded: loaded (/etc/systemd/system/metabase.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-08-26 20:05:50 UTC; 11s ago
Main PID: 19737 (java)
Tasks: 18 (limit: 4719)
Memory: 226.4M
CGroup: /system.slice/metabase.service
└─19737 /usr/bin/java -jar /opt/metabase/metabase.jar
Aug 26 20:05:50 fc-analytics-metabase systemd[1]: Started Metabase server.
Aug 26 20:05:50 fc-analytics-metabase metabase[19737]: Picked up JAVA_TOOL_OPTIONS: -Xmx2048m
Aug 26 20:05:51 fc-analytics-metabase metabase[19737]: WARNING: sun.reflect.Reflection.getCallerClass is not supported
Aug 26 20:05:52 fc-analytics-metabase metabase[19737]: 2021-08-26 20:05:52,995 INFO metabase.util :: Maximum memory av
root@fc-analytics-metabase:/opt/metabase#
I can login to postgres with the following command (and password):
# psql metabase -U metabase -W -h 127.0.0.1
Password:
psql (13.4 (Debian 13.4-1.pgdg100+1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.
metabase=#
Any suggestions how I can make this work?