Grafana's save/remove button does not appear on version 2.6

I'm using grafana 2.6 (from repositories), but I can't save or delete any dashboard. I try with chrome and firefox from linux but none work properly.









To fix it, you need to install the last version (3.1.1)
If you remove and purge grafana maybe you will get this error:

sudo apt-get purge grafana
Purging configuration files for grafana (2.6.0+dfsg-1) ...
dpkg: warning: while removing grafana, directory '/var/log/grafana' not empty so not removed
dpkg: warning: while removing grafana, directory '/var/lib/grafana' not empty so not removed

To fix it, just remove them:

sudo rm /var/log/grafana
sudo rm /var/lib/grafana

Now, proceed to install the last version:

wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb
sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb
(Reading database ... 416705 files and directories currently installed.)
Preparing to unpack grafana_3.1.1-1470047149_amd64.deb ...
Unpacking grafana (3.1.1-1470047149) ...
dpkg: error processing archive grafana_3.1.1-1470047149_amd64.deb (--install):
 trying to overwrite '/usr/share/grafana/conf/defaults.ini', which is also in package grafana-data 2.6.0+dfsg-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 grafana_3.1.1-1470047149_amd64.deb

To fix it, first you need purge grafana-data:

sudo apt-get purge grafana-data
sudo dpkg -i grafana_3.1.1-1470047149_amd64.deb
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server
sudo /bin/systemctl start grafana-server








Other option is throught github, but I got an error:

go get github.com/grafana/grafana
cd ~/go/src/github.com/grafana/grafana
go run build.go setup
Version: 4.0.0-pre1, Linux Version: 4.0.0, Package Iteration: 1475186384pre1
go get -v github.com/kardianos/govendor
go install -v ./pkg/cmd/grafana-server
pkg/cmd/grafana-server/main.go:4:2: cannot find package "context" in any of:
~/go/src/github.com/grafana/grafana/vendor/context (vendor tree)

The third option is use a docker. For this, we need to install it:

echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
sudo apt-get install -y docker-engine docker docker.io
sudo usermod -aG docker $(whoami)

If you get the following error when you execute docker...

Using default tag: lates
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

try to use it with sudo (root permission).

To install docker-machine follow these steps:

curl -L https://github.com/docker/machine/releases/download/v0.8.0/docker-machine-`uname -s`-`uname -m` > docker-machine
sudo mv docker-machine /usr/local/bin/docker-machine
chmod +x /usr/local/bin/docker-machine
docker-machine ls

Host does not exist: "default"

To create the default host, just run the following line:

docker-machine create -d virtualbox default

Now, we proceed to pull grafana image and run it on port 3000:

docker pull grafana/grafana
docker images
docker run -i -p 3000:3000 grafana/grafana

Also, you can map the folders with configuration and sqlite3 database to the host machine with:

docker run -d -p 3000:3000 -v /var/lib/grafana:/var/lib/grafana -e "GF_SECURITY_ADMIN_PASSWORD=secret" grafana/grafana

Enjoy it!

Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility