Search the Community
Showing results for tags 'proxy'.
-
After updating to latest Emby stable version 3.0.5781.8, I can no longer login to the server while connecting from the Internet through an Apache SSL reverse-proxy, as I was before the update. The login screen doesn't finish to load and any attempt to manually login will result in a "Invalid username or password error". My setup is very specific so I would like to detail it in case it helps to narrow down the actual issue: Webclient ==> Internet (SSL) ==> Apache Reverse-Proxy (SSL Termination) ==> LAN (no SSL) ==> Emby Server On top of it I'm also authenticating clients using basic auth against the proxy. This means, that before anything gets to Emby, the proxy will request a username and password to the client. Until last update this worked flawlessly. The client will connect, the proxy will request for a username and password and once provided the connection will go on as normal. After yesterday's upgrade, this is not the case anymore. The client will connect, the proxy will request for a username and password and once provided the connection will go on and parts of the web will load as normal but other parts, will fail with a 401 response from the proxy server (unauthorize request). My default browser is Firefox (v43) but I also tried with a different browser, Midori, based on webkit. With Midori I'm able to connect and login as usual. I'm a little bit lost. I don't know if the problem is the browser, the new version of Emby and the changes in the webclient or something else. As I said before, this setup was working flawlessly until I upgraded Emby.
-
I have been using the reverse proxy setup for a while now using IIS with ARR and its been working pretty well. I have however been having a heck of a time using the chromecast with this particular setup. The issue that I have is whenever I do anything (browse around the web client or try to play a video to it) there is a popup indicating that the URI scheme is not valid. In my internet travels it appears that this could be relating to the host header that is sent to the mediabrowser client from IIS when it writes the HLS list for the client (chromecast) however I am not certain. I have tried to do a few things that I saw in hopes it would solve the issue including: Turn on preserve host in IIS: http://stackoverflow.com/questions/14841986/iis-aar-url-rewrite-for-reverse-proxy-how-to-send-http-host I have tried using ARR helper: http://forums.iis.net/t/1214989.aspx?ARR+Helper+for+IIS8+ And tried setting a server variable: http://tiku.io/questions/2950025/does-iis-with-arr-support-fully-transparent-reverse-proxy This is the rewrite rules that are applied: <rule name="Redirect to HTTPS" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /> </rule> <rule name="RewriteRemoteAddr"> <match url="(.*)" /> <conditions> <add input="{HTTP_X_FORWARDED_FOR}" pattern="([_0-9a-zA-Z]+)" /> </conditions> <serverVariables> <set name="{REMOTE_ADDR}" value="{HTTP_X_FORWARDED_FOR}" /> </serverVariables> <action type="None" /> </rule> <rule name="Mediabrowser 1" enabled="true" stopProcessing="true"> <match url="mediabrowser(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> <action type="Rewrite" url="http://localhost:8096/{R:0}" /> </rule> The typical error in mediabrowser: 2015-02-13 13:14:49.0142 Error - HttpServer: Error processing request for /mediabrowser/System/Endpoint *** Error Report *** Version: 3.0.5518.3 Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Invalid URI: The URI scheme is not valid. ServiceStack.HttpError No Stack Trace Available 2015-02-13 13:14:49.0142 Error - DtoUtils: ServiceBase<TRequest>::Service Exception *** Error Report *** Version: 3.0.5518.3 Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Invalid URI: The URI scheme is not valid. System.UriFormatException at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Uri..ctor(String uriString) at MediaBrowser.Common.Implementations.Networking.BaseNetworkManager.IsInLocalNetworkInternal(String endpoint, Boolean resolveHost) at MediaBrowser.ServerApplication.Networking.NetworkManager.MediaBrowser.Common.Net.INetworkManager.IsInLocalNetwork(String ) at MediaBrowser.Api.System.SystemService.Get(GetEndpointInfo request) at lambda_method(Closure , Object , Object ) at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto) I am trying to stick with IIS since I am using the remote desktop gateway feature and Apache doesn't support it. Any advise that experienced users can bestow unto me would be much appreciated. Thanks!
-
I though I would share this in case someone is attempting to do something similar and starts pulling their hair because videos from web aren't playing (e.g. Trailers) My Mediabrowser server is behind a proxy server, as long as I have my proxy settings configured on I.E. mediabrowser respects that and uses it for grabbing data from the internet, but when it came to playing web videos it always failed, and I noticed it was because ffmpeg would not respect the I.E proxy settings. After a few hours of searching finally come across a post that shows how to configure ffmpeg to use a proxy server, the best part is that it doesn't require anything to be changed at the code level. from a command prompt just type; SET http_proxy=http://<proxyserver>:<port> e.g. SET http_proxy=http://10.20.0.2:4040 That's it now web videos work as well and go through the proxy server, there might be other ways out there but so far this is the only way that I found.
-
I use an http proxy in Chrome for most of my browsing and noticed that I was unable to log into the server recently. I was able to find this log which appears to show an error (possibly by design). I am able to log into the server from IE that does not use a proxy without issues. I am also able to log into the server if I use a VPN in Chrome. I do see that I am creating a valid token on the server when I attempt to log in but it just kicks me out after that. Is there anything I can do to allow access while using the proxy? 2014-09-15 21:30:13.4881 Debug - HttpServer: HTTP Response 401 to XX.XX.XX.XX. Response time: 1.0001 ms. Url: http://XXX.XXX.XXX.XXX:8096/mediabrowser/System/Info 2014-09-15 21:30:13.4881 Debug - HttpServer: HTTP GET http://XXX.XXX.XXX.XXX:8096/mediabrowser/Users/ed277362b33ae798afb4b5e928c02d65/Items?SortBy=IsFavoriteOrLiked%2CRandom&Limit=50&Recursive=true&IncludeItemTypes=movie%2Cseries%2Cgame%2Cbook&ImageTypes=Backdrop&ParentId= Ip: XX.XX.XX.XX:34514. Headers: Host=XXX.XXX.XXX.XXX:8096,Accept=application/json, text/javascript, */*; q=0.01,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 37.0.2062.120", DeviceId="cc7d4d33e4a7d6f89debf8988ff27173323da9eb", Version="3.0.5366.22005", UserId="ed277362b33ae798afb4b5e928c02d65",Accept-Encoding=gzip,deflate,sdch,Accept-Language=en-US,en;q=0.8,Cache-Control=max-age=0,Connection=keep-alive 2014-09-15 21:30:13.4881 Error - HttpAsyncTaskHandler: Error occured while Processing Request: Exception of type 'MediaBrowser.Server.Implementations.Security.AuthenticationException' was thrown. Exception of type 'MediaBrowser.Server.Implementations.Security.AuthenticationException' was thrown. MediaBrowser.Server.Implementations.Security.AuthenticationException at MediaBrowser.Server.Implementations.Session.SessionManager.ValidateSecurityToken(String token) at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser(IRequest req, Boolean allowLocal) at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.Authenticate(IRequest req, IResponse res, Object requestDto, Boolean allowLocal) at MediaBrowser.Controller.Net.AuthenticatedAttribute.RequestFilter(IRequest request, IResponse response, Object requestDto) at ServiceStack.ServiceStackHost.ApplyRequestFilters(IRequest req, IResponse res, Object requestDto) at ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest httpReq, IResponse httpRes, String operationName)
-
I currently use MB2 at home on a couple of PC's. I want to test MB3 first before replacing what I have, I therefore decided to use Hyper-V at work and try it out first. Only problem is that we have a proxy server that requires authentication. I've managed to download the 2 bits of software that MB3 needs and install them both manually, however it still fails when I run the setup program. Is there any way I can have a stand-alone installer for Client and server? or is there a work-around for proxy locations? An error occurred trying to download 'http://www.mb3admin.com/downloads/beta/server/MediaBrowser.Server.Installer.application'. See the setup log file located at 'C:\Users\ADMINI~1\AppData\Local\Temp\VSDAC52.tmp\install.log' for more information.