<div dir="ltr"><div>Hi Robert,</div><div><br></div><div>Thanks for the prompt response.</div><div><br></div><div>I do have the stream mounted. This is the error I get on the interface (note I changed the example.ogg to 01.ogg as part of my testing):</div><div><div><img src="cid:ii_jnr904un0" alt="ManageAuth.png" width="508" height="290"><br></div><div><br></div><div>If the stream is not mounted, then mountpoint /01.ogg section disappears.</div><div><br></div><div>I also made sure that the stream was still playing and had not ended.</div><div><br></div><div>Jayesh<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 27, 2018 at 1:46 AM Robert Jeffares <<a href="mailto:jeffares.robert@gmail.com">jeffares.robert@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>do you have a steram mounted on the server called "example.ogg"</p>
<p>If the mount don't exist the script will fail</p>
<p>R<br>
</p>
<div class="m_-7404968853904895320moz-cite-prefix">On 27/10/18 9:18 PM, Jayesh Dalal
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>I've icecast2 installed on Ubuntu 16.04 LTS and I can
access it via <a href="http://localhost:8000" target="_blank">http://localhost:8000</a><br>
</div>
<div><br>
</div>
<div>I followed this document to add authentication:<br>
</div>
<div><a href="https://icecast.org/docs/icecast-2.4.1/auth.html" target="_blank">https://icecast.org/docs/icecast-2.4.1/auth.html</a></div>
<div><br>
</div>
<div>I added the following to /etc/icecast2/icecast.xml file:<br>
</div>
<div>
<div class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-highlight">
<div><code class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-language-xml"><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"><mount></span>
</code></div>
<pre><code class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-language-xml"> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"><mount-name></span>/example.ogg<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"></mount-name></span>
<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"><authentication</span> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-na">type=</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-s">"htpasswd"</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt">></span>
<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"><option</span> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-na">name=</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-s">"filename"</span> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-na">value=</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-s">"myauth"</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt">/></span>
<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"><option</span> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-na">name=</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-s">"allow_duplicate_users"</span> <span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-na">value=</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-s">"0"</span><span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt">/></span>
<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"></authentication></span>
<span class="m_-7404968853904895320gmail-m_-5936194478469772823gmail-nt"></mount></span></code>
I restarted the icecast server as:
sudo /etc/init.d/icecast2 restart
</pre>
<pre>I tried to add a username/password to the /example.ogg stream and I get the following message in the error.log file:
[2018-10-27 01:11:26] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/example.ogg"
[2018-10-27 01:11:26] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth
[2018-10-27 01:11:26] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied
</pre>
<pre>Can someone please advice whree is the database "myauth" written to, so I can verify that directory has the correct permissions?
</pre>
<pre>Thanks in advance.
</pre>
<pre>Jayesh
</pre>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-7404968853904895320mimeAttachmentHeader"></fieldset>
<pre class="m_-7404968853904895320moz-quote-pre">_______________________________________________
Icecast mailing list
<a class="m_-7404968853904895320moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org" target="_blank">Icecast@xiph.org</a>
<a class="m_-7404968853904895320moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org" target="_blank">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
</blockquote></div>