# Analytics not loading

**URL:** <https://discourse.libretime.org/t/analytics-not-loading/241>\
**Category:** Get Help\
**Created:** [February 18, 2019, 12:22pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241 "2019-02-18T12:22:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 12:22pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/1 "2019-02-18T12:22:25Z")

</div>

I have my admin user and password entered correctly and I am still getting this error - Please make sure admin user/password is correct on Settings-\>Streams page.

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [February 18, 2019, 2:19pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/2 "2019-02-18T14:19:49Z")

</div>

So this is actually asking for the Icecast admin password. Which you should change from the default of hackme under /etc/icecast/ see [https://icecast.org/docs/icecast-2.4.1/config-file.html](https://icecast.org/docs/icecast-2.4.1/config-file.html)

If you do this you need to reload the icecast2 service - sudo service reload icecast2 and then it should start compiling the information under the statistics section. - see [https://github.com/LibreTime/libretime/issues/333](https://github.com/LibreTime/libretime/issues/333) for more information on what we need to do to fix this.

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 4:10pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/3 "2019-02-18T16:10:22Z")

</div>

Thank you @robbt

When I log into my server and type xmllint icecast.xml I get the following error -

warning: failed to load external entity “icecast.xml”

when I also go to access the xml file through /etc/icecast2/icecast.xml I get the following error:

-bash: /etc/icecast2/icecast.xml: Permission denied

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 4:34pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/4 "2019-02-18T16:34:50Z")

</div>

Apologies @robbt I used sudo and was able to edit.

However, I cannot reload icecast. I type, sudo service reload icecast 2 and get the error

reload: unrecognized service

As I cannot reload i get this in libre

Can not connect to the streaming server

401, Authentication Required (HTTP/1.0)

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [February 18, 2019, 4:34pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/5 "2019-02-18T16:34:54Z")

</div>

For sure, you need to assume super user or root to edit /etc/icecast/icecast2.xml - usually if you are using a ubuntu distro this is accomplished through appending sudo in front of the command you are doing or else you can assume root with `sudo su` keep in mind this is basically overriding any of the permissions that might prevent you from damaging your system so it should be used sparingly. But in this case in order to edit the icecast.xml you will need root permissions.

If you aren’t familiar with the command line the easiest editor is probably nano so you would type  
`sudo nano /etc/icecast2/icecast.xml` and then change the permissions.

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 4:38pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/6 "2019-02-18T16:38:10Z")

</div>

Thank you, I managed to get that done I am just having issues reloading icecast2 now

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [February 18, 2019, 4:38pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/7 "2019-02-18T16:38:47Z")

</div>

ok, so basically here are few commands to try `sudo /etc/init.d/icecast reload` for older distributions  
you might try `sudo service icecast2 restart`  
or `sudo /etc/init.d/icecast2 reload`  
If these don’t work - share your distribution and version.

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 4:43pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/8 "2019-02-18T16:43:49Z")

</div>

The last option worked, however, my libre stream settings now has this error and no audio -

Can not connect to the streaming server

could not write data to host: Connection refused in write()

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [February 18, 2019, 4:50pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/9 "2019-02-18T16:50:46Z")

</div>

Ok you will need to know implement a custom setting under stream settings as it is hardcoded with the insecure default. basically just put in the admin login etc that you modified in icecast2.conf

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 4:55pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/10 "2019-02-18T16:55:19Z")

</div>

@robbt it is all the same information, can I send over a screenshot as a DM?

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [February 18, 2019, 4:57pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/11 "2019-02-18T16:57:44Z")

</div>

The information will be the same (such as host) etc. but you will need to expand Additional Options and put in the passwords that you added. This should fix everything.

---

<div class="post-metadata">

**Author:** ![Buer](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Buer](https://discourse.libretime.org/u/Buer)\
**Post date:** [February 18, 2019, 5:12pm UTC](https://discourse.libretime.org/t/analytics-not-loading/241/12 "2019-02-18T17:12:07Z")

</div>

@robbt ive sent the DM
