Pierpaolo Gulla
2008-May-28 18:20 UTC
[Icecast] problem using icecast 2 Listener Authentication
Hi guys , I'm using with satisfaction icecast2 for streaming vorbis and theora using oggfwd. Now i want to try the authentication of icecast and I'm following this guide: http://www.icecast.org/docs/icecast-2.3.1/icecast2_listenerauth.html I'm using the HTPASSWD Listener Authentication , and I add this line to my icecast config files: <mount> <mount-name>/testmount.ogg</mount-name> <authentication type="htpasswd"> <option name="filename" value="myauth"/> <option name="allow_duplicate_users" value="0"/> </authentication> </mount> All works ok , the stream with testmount.ogg has the lock , but when I go to the admin web page for manage the user , when I try to add user I have an error , to see the error.log , that I post: [2008-05-28 20:01:55] INFO auth/auth_run_thread Authentication thread started [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg) [2008-05-28 20:02:03] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) [2008-05-28 20:02:16] INFO connection/_handle_source_request Source logging in at mountpoint "/testmount.ogg" [2008-05-28 20:02:16] INFO format-theora/initial_theora_page seen initial theora header [2008-05-28 20:02:16] INFO format-vorbis/initial_vorbis_page seen initial vorbis header [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /key.png (/usr/local/share/icecast/web/key.png) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg) [2008-05-28 20:02:19] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) [2008-05-28 20:02:22] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg) [2008-05-28 20:02:23] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) [2008-05-28 20:02:32] INFO admin/admin_handle_request Received admin command buildm3u on mount "/testmount.ogg" [2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:02:59] INFO fserve/fserve_client_create checking for file /key.png (/usr/local/share/icecast/web/key.png) [2008-05-28 20:03:00] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg) [2008-05-28 20:03:00] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) [2008-05-28 20:03:03] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/testmount.ogg" [2008-05-28 20:03:03] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth [2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:03:04] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/local/share/icecast/web/corner_topright.jpg) [2008-05-28 20:03:05] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) [2008-05-28 20:03:09] INFO admin/admin_handle_request Received admin command manageauth.xsl on mount "/testmount.ogg" [2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth [2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied [2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_recheckfile failed to check status of myauth [2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /style.css (/usr/local/share/icecast/web/style.css) [2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/local/share/icecast/web/icecast.png) [2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/local/share/icecast/web/corner_topleft.jpg) [2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/local/share/icecast/web/corner_bottomleft.jpg) [2008-05-28 20:03:10] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/local/share/icecast/web/corner_bottomright.jpg) What's my error ?? I think that is on my xml config files , in particular here: <mount> <mount-name>/example.ogg</mount-name> <authentication type="htpasswd"> <option name="filename" value="myauth"/> <-- this myauth <option name="allow_duplicate_users" value="0"/> </authentication> </mount> What's the meaning and the functions of myauth? Big thanks for your help Goodbye Pierpaolo
Karl Heyes
2008-May-28 20:44 UTC
[Icecast] problem using icecast 2 Listener Authentication
> [2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_adduser Failed to open authentication database "myauth": Permission denied> > > What's my error ?? > > I think that is on my xml config files , in particular here:You should really place a full path in the setting therefore not relying on the current directory which seems to be not available to icecast for writing. The user running icecast needs read/write access to the file and directory the "filename" refers to. karl.
neeraj suriyal
2008-May-29 04:16 UTC
[Icecast] problem using icecast 2 Listener Authentication
2008/5/29 Karl Heyes <karl at xiph.org>:> > > [2008-05-28 20:03:09] WARN auth_htpasswd/htpasswd_adduser Failed to open > authentication database "myauth": Permission denied > > > > > > > > What's my error ?? > > > > I think that is on my xml config files , in particular here: > > You should really place a full path in the setting therefore not relying > on the current directory which seems to be not available to icecast for > writing. The user running icecast needs read/write access to the file > and directory the "filename" refers to. > > karl. > Dear all, >help me in ices2 and icecast2> how to create mount point ,can mount point be any location,is i have to > create mount in apache . > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >-- Neeraj Suriyal 09718307773 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20080529/3f51a4e8/attachment.htm