Open a terminal on your Ubuntu server and update the system to ensure that you have the latest packages and dependencies:
sudo apt-get update
sudo apt-get upgrade
GlitchTip requires a MongoDB database to store its data. Install the latest version of MongoDB by running the following command:
sudo apt-get install -y mongodb
After installation, start the MongoDB service by running the following command:
sudo systemctl start mongodb
There are different ways to install GlitchTip on Ubuntu server.
If you have pip installed, you can install GlitchTip by running the following command:
sudo pip install glt
If you prefer running GlitchTip in a Docker container, you can follow these steps:
sudo apt-get install docker-ce
sudo docker pull gltapp/glt:latest
sudo docker run -d -p 8080:80 gltapp/glt
This command creates a new container and maps the container port 80 to the host port 8080.
After installation, you need to configure GlitchTip by setting up your email and other parameters.
sudo cp /etc/glt.conf.sample /etc/glt.conf
/etc/glt.conf
using your preferred text editor:sudo nano /etc/glt.conf
This will open the configuration file in nano
text editor. You need to set the following parameters:
host
: the hostname or IP address of your server.port
: the port number that GlitchTip listens on (the default is 80).email_use_tls
: set it to true
if your email server requires TLS/SSL.email_host
: the hostname or IP address of your email server.email_port
: the port number of your email server (the default is 25).email_username
: your email username.email_password
: your email password.Ctrl + X
and then Y
.After you've configured GlitchTip, start it by running the following command:
sudo systemctl start glt
You can check the GlitchTip logs by running the following command:
sudo tail -f /var/log/glt.log
In this tutorial, you learned how to install GlitchTip on Ubuntu server, configure it, and start it. Now you can monitor your application errors and exceptions easily with GlitchTip.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!