[Icecast] Checking for file /7.html

Geoff Shang geoff at QuiteLikely.com
Tue May 12 13:15:40 PDT 2015

On Tue, 12 May 2015, Nanda Kishor Dasa wrote:

> My error log is full of these 2 lines
> [2015-05-12  08:08:07] INFO fserve/fserve_client_create checking for
> file /7.html (/usr/share/icecast2/web/7.html)
> [2015-05-12  08:08:07] WARN fserve/fserve_client_create req for file
> "/usr/share/icecast2/web/7.html" No such file or directory

As has been mentioned, 7.html is a standard stats file produced by 
Shoutcast (at least v1).

It's possible to write an XSL template that can do the same, which could 
be aliased if you have software that needs it.   I did this ina previous 
life.  Unfortunately, I don't have convenient access to the hard drive it 
lives on, otherwise I'd send it.

The thing I recall is that the HTML in 7.html is mal-formed.  Take this 
example from the wild, generated by Shoutcast 1.9.8:

<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>33,1,511,1500,32,96,</body></html>

You'll notice several things:

1.  There is no opening <head> tag.

2.  The opening tag is written <HTML> but the closing tag is written 

A strict HTML parser will complain about these.

Worse however is the possibility that a program expecting 7.html may 
*expect* these defects.  There is an XSL stylesheet in the KH tree at 
https://github.com/karlheyes/icecast-kh/blob/master/web/7.xsl but it uses 
the HTML output scheme which will lack these defects, and so may not be 
compatible with some software that expects them.

Of course, why Shoutcast decided to present what is obviously meant to be 
machine-parsable data in HTML is completely beyond me.  Icecast's 
status2.xsl does a better job IMHO, though it still has some tags in it.


More information about the Icecast mailing list