Hi everyone,
I am currently trying to get Metabase up and running as a service on a DigitalOcean droplet.
I based my configuration on this guide: https://www.metabase.com/docs/latest/operations-guide/running-metabase-on-debian.html
Metabase is starting and seems to be working as it should (generating log messages and creating db files in its working directory).
However, it is not binding to its port most of the time (yeah, heisenbugs and all).
From my analysis it seems to only be actually working on a full system reboot, not if I manually systemctl stop & start it again.
My current Metabase configuration:
MB_PASSWORD_COMPLEXITY=normal
MB_PASSWORD_LENGTH=10
However i have tried binding to a different port & host with this configuration and it did not change the described behaviour.
MB_PASSWORD_COMPLEXITY=normal
MB_PASSWORD_LENGTH=10
MB_JETTY_HOST=127.0.0.1
MB_JETTY_PORT=4000
Netstat directly after reboot, no commands issued by me besides netstat
# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 735/nginx: master p
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 514/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 690/sshd: /usr/sbin
tcp 0 0 127.0.0.1:45527 0.0.0.0:* LISTEN 656/containerd
tcp6 0 0 :::80 :::* LISTEN 735/nginx: master p
tcp6 0 0 :::22 :::* LISTEN 690/sshd: /usr/sbin
tcp6 0 0 :::3000 :::* LISTEN 635/java
udp 0 0 127.0.0.53:53 0.0.0.0:* 514/systemd-resolve
If i then systemctl stop & start the Metabase service it does not bind correctly:
Netstat output on running server, after i stopped and restarted the Metabase service:
# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:39939 0.0.0.0:* LISTEN 663/containerd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 731/nginx: master p
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 516/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 689/sshd: /usr/sbin
tcp6 0 0 :::80 :::* LISTEN 731/nginx: master p
tcp6 0 0 :::22 :::* LISTEN 689/sshd: /usr/sbin
udp 0 0 127.0.0.53:53 0.0.0.0:* 516/systemd-resolve
Maybe I am doing something wrong, maybe Metabase is malfunctioning? Any help would be appreciated as I have no idea on how to further analyze the issue.
Yes, I can reproduce this with a fresh droplet running Ubuntu 20.04 and am happy to share my script if this helps