Page 1 of 1

Streaming is forbidden for user admin (403)

PostPosted: Thu Sep 04, 2008 7:52 pm
by Bård
When I try to open a m3u on my computer at home (localhost) in version 3.5b1 windows xp sp3. Foobar2000 often pops a playback error:
Unable to open item for playback (Streaming is forbidden for user admin (403)):"[URL]"

Strange thing is that I cannot reproduce the error when I'm at work connecting via internet (dyndns). . . :?

I like the new features in the beta. I hope this problem is easy to resolve...

PostPosted: Fri Sep 19, 2008 2:20 pm
by JohnDillinger
Hi,

This error "403" indicates that the page you tried to reach is protected by protocol SSL (Secure Sockets Layer). To consult it, you must activate SSL by typing “https://” at the beginning of URL that you test to reach.
:arrow: Have you see the kind of your URL at work ?
Hope it works !
Bye JD

PostPosted: Sat Sep 20, 2008 7:59 am
by Bård
Why does foobar try to use ssl then? the url in the playlist starts with http://localhost/stream/?player=

I'll try to explain better:
1. Firefox download the playlist-file.
2. Foobar/winamp open the .m3u and display the playlist
3. Foobar/winamp starts playing the first song (if I'm lucky)
4. Foobar/winamp skips an arbitrary number of tracks stating:
Unable to open item for playback (Streaming is forbidden for user admin (403))

I can allways browse the web-site with no problems.

Bård

PostPosted: Sat Sep 20, 2008 9:37 am
by JohnDillinger
Hi,

1 - This error arrives amongst other things when you try to read files of which you don't have the rights on a Web-site. (for example a file .htaccess)
I think that you could check .htacces file. cause it could be your IP (work) is registred inside it and maybe IP (home) not...

Exemple (save it before edit):
Code :

Options +Indexes
Satisfy any
Order Deny,Allow
Allow from 172.xxx.xxx.xxx/xx
Allow from 212.xxx.xxx.xx/xx
Allow from 212.xxx.xxx.xxx
allow from 127.0.0.1
Deny from all
------------------------------------
2 - It could be an error from the proxy if you use one (uncheck "use a proxy for...)...

3 - You could see in the IE settings from Tools > Internet Settings > advanced > Reinitialize... Like this you clear all the temporary files, cookies, etc and maybe it works now ?!
I hope this help you ? I just begin whith Subsonic...
JD

PostPosted: Sat Sep 20, 2008 9:52 am
by Bård
Hi

I'm using the windows installer version of Subsonic. I don't think there is an .htaccess file included...

Incorrect entries in .htaccess would not explain that the problem is occuring with random playlist entries?

I will try and install the tomcat version instead. Subsonic is definitely worth the trouble.

Thanks for the help :-)

PostPosted: Sat Sep 20, 2008 4:08 pm
by sindre_mehus
Hi,

Subsonic gives error 403 if the user associated with the player ("admin" in this case) is not authorized to stream music.

As a work-around you can:
- delete the player (from Settings > Players)
- use another user than "admin" (create one in Settings > Users)

To further investigate why this happens, can you please go to http://localhost/db.view and execute the following query
Code: Select all
select * from user_role where username='admin'

and report what you see. If everything is ok you should get eight rows with role_id 1 through 8.

Thanks,
Sindre

PostPosted: Sat Sep 20, 2008 4:56 pm
by Bård
Hi

I ran the sql-code and the roles seems to be fine: 1-8. I get the error message at random times when the track changes in the Foobar2000/Winamp player.

I tried deleting the player I used before and created a new user with it's own player. The same thing happens, only the message is still (Streaming is forbidden for user admin (403)).

The Status page lists Player 4 admin@127.0.0.1 as a player even if I logged on as the new user and created and selected a new player.

PostPosted: Sat Sep 20, 2008 5:27 pm
by sindre_mehus
Ah, now I know what it is. It's a bug that was fixed just a few days after 3.5.beta1 was released. Within a few days, I'll release a new beta version, and then it should hopefully be fixed.

Thanks,
Sindre

PostPosted: Sat Sep 20, 2008 5:30 pm
by Bård
Hi

Thats great. :D I won't try the tomcat server then.

Eagerly awaits the new version . . .

PostPosted: Sat Sep 20, 2008 11:12 pm
by JohnDillinger
Hi,

Well, i tried and i loose :wink:
It's hard to explain whith another language, after i was far of the real soluce, sorry
Bye JD