Comments on: How to Install Grafana on Ubuntu 20.04 https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/ Linux Tutorials and Guides Mon, 13 Mar 2023 04:17:21 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Jadson Williams https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-769 Mon, 13 Mar 2023 04:17:21 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-769 In reply to valerie.

Type: nano /etc/nginx/conf.d/grafana.conf

And inside of document type:

server {
server_name grafana.example.com;
listen 80 ;
access_log /var/log/nginx/grafana.log;

location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

The problem is ’cause the “S” is in uppercase, and should be in downcase. Enjoy.

]]>
By: Federico https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-749 Thu, 03 Nov 2022 11:35:25 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-749 In reply to admin.

Probably the port is in use, check the log.

]]>
By: admin https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-722 Tue, 04 Oct 2022 06:14:33 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-722 In reply to Franck Kengne.

Please check the error log file at /var/log/nginx/error.log to learn more about the issue and why the Nginx service failed to start.

]]>
By: Franck Kengne https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-721 Mon, 03 Oct 2022 18:12:56 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-721 Getting ” Job for nginx.service failed because the control process exited with error code.” after restarting the service. Any advice?

]]>
By: fajmayor https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-715 Sat, 24 Sep 2022 22:02:46 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-715 This really help. Thanks…

]]>
By: admin https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-687 Wed, 24 Aug 2022 06:18:45 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-687 In reply to valerie.

You can try to change the capital letter “S” to small letter or much better if you can provide us with the Nginx config.

]]>
By: valerie https://linuxhostsupport.com/blog/how-to-install-grafana-on-ubuntu-20-04/#comment-685 Tue, 23 Aug 2022 19:24:18 +0000 https://linuxhostsupport.com/blog/?p=1673#comment-685 Hello,
I tryed to follow the tutorial, I use a vagrant machine with bento/ubuntu-20.04 box, all is ok but I have a error message with nginx when I taped the command: sudo nginx -t
the result is:
vagrant nginx[16597]: nginx: [emerg] unknown directive “Server” in /etc/nginx/conf.d/grafana.conf:1
vagrant nginx[16597]: nginx: configuration file /etc/nginx/nginx.conf test failed

Thank you for your help 🙂

]]>