Question

Troubleshooting "This site can't be reached"

I’ve been successfully using the Metabase droplet for quite a while. Few days ago, I tried opening the link I normally use and I get an error (tried every browser). The droplet itself is active, I tried rebooting it a few time, but nothing. I was wondering if anyone could help on the necessary steps to troubleshoot the problem. Thanks a lot.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
March 27, 2020
Accepted Answer

Hello, @caioac87 @dwihdyn789

If you can’t see java running when you use netstat than it means that Metabase is not running on your droplet.

You can confirm this by executing the following command:

service metabase status

If the service is not started you can start/restart it:

sudo service metabase start

Note: This might take up some time to run and actually start the service, if you still can’t access the Metabase in your browser try to manually start it using the commands bellow

The script that start the service is:

/opt/metabase/metabase.sh

You can execute this and wait for couple of minutes to complete.

You also need to start Java by executing the following command:

java -jar /opt/metabase/metabase.jar

If this is a new droplet I will recommend you to quickly spin up a new Metabase droplet as this will take less than 10 minutes to have it up and running.

Hope this helps!

Regards, Alex

alexdo
Site Moderator
Site Moderator badge
April 19, 2020

Hey, @dwihdyn789

You can create a simple bash script to check if the service is running and if not to start it. You can then execute the bash script with a cron job whenever you want (once per minute and etc)

#!/bin/bash

service=$@
/bin/systemctl -q is-active "$metabase.service"
status=$?
if [ "$status" == 0 ]; then
    echo "OK"
else
    /bin/systemctl start "$metabase.service"
fi

You can check this task for creating cron jobs:

https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-ubuntu-1804

The cron job should look like:

* * * * * /bin/sh /path/to/script/script.sh > /dev/null 2>&1

            • Run the command every minute.

Hope this helps!

Regards, Alex

Hi @alexdo, Im having the same issue right here, where Im using IP address to access, and i am encountering the same issue. Appreciate if you could assist us on this issue :)

This site can’t be reached
111:111:11:11  refused to connect.

Hi @caioac87 , have you managed to find any solution for this ?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel