Install on Debian?


#1

Hello all,

After checking out Countly, I would like to install it on my Debian system with Nginx.
I did a few Google searches, and there was user who successfully installed on it.
Due to it lack of documentation, I'm unable to install Countly.

https://www.digitalocean.com/community/questions/how-to-change-installation-script-from-ubuntu-to-debian

Can somebody share your steps ?

Thanks.


#2

Hello,
so what is wrong with instructions provided there?
Is anything particular isn't working for you?


#3

Hello,

I tried both methods: sudo su -
wget -qO- http://c.ly/install | bash

and used the .tar file from Github for the installation and tried with the above instructions, but I can’t get it to start.

Fyi: I’m not using port 80.

Installation dir: /opt/countly/
Countly supervisor: /tmp/countly-supervisor

My Nginx config is similar like this: https://www.vultr.com/docs/how-to-install-countly-analytics-on-ubuntu-16-10

Do have to install MongoDB too ?
What else do I have to change on Debian system ?


#4

What you should do is to go over our installation scripts one by one and find the lines that don't work in Debian. We don't support Debian out of the box, as some of the packages are specific to Ubuntu. You should find them and change them accordingly. Unfortunately we don't have any plans to support Debian.


#5

I assume you referring to the installation scripts in /bin/.., right ?

This script is to check RAM:

I think this code line should be fix: > if [ -f $DIR/offline_installer.sh ]; then

bash $DIR/offline_installer.sh 2>&1 | tee $DIR/../log/countly-install-$DATE.log

The file name: offline_installer.sh should be change to 'installer.sh', otherwise it not going to execute on a non Ubuntu/Centos system.

The only script that I think is suitable for the installation is this:


#6

Yes, starting from installer.sh, you should check every sh script under bin directory.


#7

I made all the changes accordingly and modified the supervisor file, but still got error:

Failed to start countly-supervisor.service: Unit countly-supervisor.service not found.

Edit: After I installed supervisor into Debian system, I got the countly-supervisor running, but I can't get to the web page.

502 Bad Gateway


#8

There could be several reasons to this. I suggest that you check this troubleshooting guide for a general overview of what you should check if there is an issue:


#9

I've spent too much time for this installation, but can't get it to work.


#10

True, it takes a lot of time to make it work on Debian, and it requires some level of Debian-specific information.