mam693 0 Posted April 4, 2016 Posted April 4, 2016 Hi everyone! Apple TV app is great so far. I just have one issue. The only way I can log in is via Emby Connect. When I tried to login by manually specifying the server address, it took that but wouldn't go past the username screen. This has popped up in the logs: 2016-04-04 16:42:26.8022 Info HttpServer: HTTP Response 401 to 10.10.10.25. Time: 0ms. http://10.10.1.15:8096/emby/users 2016-04-04 16:42:27.1618 Info HttpServer: HTTP GET https://HOSTNAME:8920/system/info/public. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-04 16:42:27.1774 Info HttpServer: HTTP Response 200 to 10.10.1.3. Time: 16ms. https://HOSTNAME:8920/system/info/public 2016-04-04 16:42:27.2087 Info HttpServer: HTTP GET https://HOSTNAME:8920/emby/users. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-04 16:42:27.2087 Error HttpAsyncTaskHandler: Error occured while Processing Request: Access token is required. *** Error Report *** Version: 3.0.5924.0 Command line: C:\Users\USERNAME\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 16 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\USERNAME\AppData\Roaming\Emby-Server Application Path: C:\Users\USERNAME\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Access token is required. MediaBrowser.Controller.Net.SecurityException at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateSecurityToken(IServiceRequest request, String token) at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser(IServiceRequest request, IAuthenticationAttributes authAttribtues) at ServiceStack.ServiceStackHost.ApplyRequestFiltersSingle(IRequest req, IResponse res, Object requestDto) at ServiceStack.ServiceStackHost.ApplyRequestFilters(IRequest req, IResponse res, Object requestDto) at ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest httpReq, IResponse httpRes, String operationName) I am running the beta version of Emby server, build 5924, could that have something to do with it? Thanks! Matt
mam693 0 Posted April 4, 2016 Author Posted April 4, 2016 I gave that a shot to no avail. I also tried on both of my Apple TV's just to see if that could've been causing an issue. Tried via IP, internal DNS name, and external DNS name as well.
ebr 15500 Posted April 5, 2016 Posted April 5, 2016 And what does the log look like? Still errors? Your machine is called "HOSTNAME"? And you switched to port 8096?
mam693 0 Posted April 5, 2016 Author Posted April 5, 2016 My machine locally is called Emby. I just edited that out as it contained the externally accessible URL and I just didn't want that exposed. The log looks exactly the same but with http and port 8096.
mam693 0 Posted April 5, 2016 Author Posted April 5, 2016 Let me know if you need to see any full logs or what not.
optimalt 10 Posted April 5, 2016 Posted April 5, 2016 My brother got the same problem trying to login to my server manually. Changed the default port and all users hidden if it matters. Skickat från min SM-G920F via Tapatalk
ebr 15500 Posted April 5, 2016 Posted April 5, 2016 My machine locally is called Emby. I just edited that out as it contained the externally accessible URL and I just didn't want that exposed. The log looks exactly the same but with http and port 8096. Why using the remote url? Are you sure that is accessible via that route (loopback)? Please do post a new, full log. Thanks.
mam693 0 Posted April 5, 2016 Author Posted April 5, 2016 I sent it to you in a PM. But I'm using the remote URL to keep things consistent. Everything is configured properly on the network side of things for loopback and I haven't had any issues with other apps using the remote URL. I have since started using the internal IP of the Emby server for further testing just to rule out anything.
ebr 15500 Posted April 5, 2016 Posted April 5, 2016 Okay, the error is occurring when you manually enter the user name not the server address. I see that now. This particular scenario (both server and user manually entered) probably wasn't tested enough so I'll have to see what can be done. Thanks.
mam693 0 Posted April 5, 2016 Author Posted April 5, 2016 Thank you, sorry for not being as clear with that. I really appreciate everything you and the Emby team has done. It's come a long way in such a short period of time!
ebr 15500 Posted April 5, 2016 Posted April 5, 2016 Restart the app and this should work for you now. Thanks for the report.
mam693 0 Posted April 5, 2016 Author Posted April 5, 2016 Restarted the app, got saw it updated to 1.0.2. Went through the manual connect process, entered in my server IP, then my username and it finally prompted for a password (yay!). Entered in the password and it said it couldn't connect. I tried multiple accounts with passwords and they all gave me the same error. I know the log is saying invalid username\password but I'm certain that I'm entering them correctly. Thanks! 2016-04-05 18:56:20.2395 Info HttpServer: HTTP GET http://10.10.1.15:8096/emby/system/info/public. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:20.2551 Info HttpServer: HTTP Response 200 to 10.10.10.16. Time: 16ms. http://10.10.1.15:8096/emby/system/info/public 2016-04-05 18:56:20.2864 Info HttpServer: HTTP GET http://10.10.1.15:8096/emby/users/public. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:20.3020 Info HttpServer: HTTP Response 200 to 10.10.10.16. Time: 16ms. http://10.10.1.15:8096/emby/users/public 2016-04-05 18:56:20.6614 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:22.9115 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:24.9116 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:27.1616 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:29.4117 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:31.6618 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:32.9118 Info HttpServer: HTTP GET http://10.10.1.15:8096/emby/users. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:32.9118 Error HttpAsyncTaskHandler: Error occured while Processing Request: Access token is required. *** Error Report *** Version: 3.0.5926.0 Command line: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 16 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server Application Path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Access token is required. MediaBrowser.Controller.Net.SecurityException at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateSecurityToken(IServiceRequest request, String token) at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser(IServiceRequest request, IAuthenticationAttributes authAttribtues) at ServiceStack.ServiceStackHost.ApplyRequestFiltersSingle(IRequest req, IResponse res, Object requestDto) at ServiceStack.ServiceStackHost.ApplyRequestFilters(IRequest req, IResponse res, Object requestDto) at ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest httpReq, IResponse httpRes, String operationName) 2016-04-05 18:56:32.9118 Info HttpServer: HTTP Response 401 to 10.10.10.16. Time: 0ms. http://10.10.1.15:8096/emby/users 2016-04-05 18:56:33.2244 Info HttpServer: HTTP GET http://10.10.1.15:8096/system/info/public. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:33.2399 Info HttpServer: HTTP Response 200 to 10.10.10.16. Time: 16ms. http://10.10.1.15:8096/system/info/public 2016-04-05 18:56:33.2556 Info HttpServer: HTTP GET http://10.10.1.15:8096/emby/users. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:33.2556 Error HttpAsyncTaskHandler: Error occured while Processing Request: Access token is required. *** Error Report *** Version: 3.0.5926.0 Command line: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 16 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server Application Path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Access token is required. MediaBrowser.Controller.Net.SecurityException at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateSecurityToken(IServiceRequest request, String token) at MediaBrowser.Server.Implementations.HttpServer.Security.AuthService.ValidateUser(IServiceRequest request, IAuthenticationAttributes authAttribtues) at ServiceStack.ServiceStackHost.ApplyRequestFiltersSingle(IRequest req, IResponse res, Object requestDto) at ServiceStack.ServiceStackHost.ApplyRequestFilters(IRequest req, IResponse res, Object requestDto) at ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest httpReq, IResponse httpRes, String operationName) 2016-04-05 18:56:33.2556 Info HttpServer: HTTP Response 401 to 10.10.10.16. Time: 0ms. http://10.10.1.15:8096/emby/users 2016-04-05 18:56:33.9119 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:36.1620 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:38.4121 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:40.4121 Error SessionWebSocketListener: Unable to find session based on web socket message 2016-04-05 18:56:42.3966 Info HttpServer: HTTP POST http://10.10.1.15:8096/emby/Users/authenticatebyname. UserAgent: Emby/1 CFNetwork/758.3.15 Darwin/15.4.0 2016-04-05 18:56:42.3966 Info UserManager: Authentication request for marakovitsm has been denied. 2016-04-05 18:56:42.4122 Error DtoUtils: ServiceBase<TRequest>::Service Exception *** Error Report *** Version: 3.0.5926.0 Command line: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 16 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server Application Path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Invalid user or password entered. MediaBrowser.Controller.Net.SecurityException at MediaBrowser.Server.Implementations.Session.SessionManager.<AuthenticateNewSessionInternal>d__f2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MediaBrowser.Api.UserService.<Post>d__17.MoveNext() 2016-04-05 18:56:42.4122 Error HttpServer: Error processing request for /emby/Users/authenticatebyname *** Error Report *** Version: 3.0.5926.0 Command line: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 16 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server Application Path: C:\Users\marakovitsm\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Invalid user or password entered. ServiceStack.HttpError No Stack Trace Available
mam693 0 Posted April 6, 2016 Author Posted April 6, 2016 Small update, accounts with no passwords are fine.
ebr 15500 Posted April 6, 2016 Posted April 6, 2016 I tested this on my server with a user with a password and got in fine so I'm not sure what could be going wrong here...
mam693 0 Posted April 6, 2016 Author Posted April 6, 2016 I'm going to spin up a fresh Windows VM and set up a clean test Emby server and see if the problem persists, narrow things down from there. Thanks for all the help!
mam693 0 Posted April 7, 2016 Author Posted April 7, 2016 (edited) So I spun up the fresh Emby server, even made sure that it was on the same VLAN as the Apple TV to rule out any of that...still the same issues. And I'm running the stable build on this one as well. I can live with using an account with out a password for the time being, but I attached a log from the fresh server, in case it helps someone else further down the line. server-63595560232.txt Edited April 7, 2016 by mam693
corey 315 Posted April 7, 2016 Posted April 7, 2016 I'm curious have you tested with users with simple passwords (no special characters)? Does it still fail?
mam693 0 Posted April 7, 2016 Author Posted April 7, 2016 I tried on the "production" server and still had the issue, I haven't tried on my test server yet. I'll try there when I get home.
mam693 0 Posted April 7, 2016 Author Posted April 7, 2016 Fresh test server is still a no go with simple credentials.
ebr 15500 Posted April 8, 2016 Posted April 8, 2016 I'm sorry but I have no idea why this is a problem for you. It appears to be something specific to your environment.
elzalem 1 Posted April 21, 2016 Posted April 21, 2016 Hello, I'm also having the same issue. I chose my server, type my username hit return then nothing happens, I'm taken back to the "select server" screen... I'm running emby on OSX. Were you able to solve this issue? PS: There is no internet connection on both the server and the appletv.
ebr 15500 Posted April 22, 2016 Posted April 22, 2016 PS: There is no internet connection on both the server and the appletv. It is impossible for this app to run without an internet connection.
Luke 39007 Posted April 22, 2016 Posted April 22, 2016 It is impossible for this app to run without an internet connection. And just to clarify, this is the way tvOS apps work right now.
elzalem 1 Posted April 23, 2016 Posted April 23, 2016 Can you please explain why an internet connection is required to login to a local server? I understand that some games might download additional data, but I can't find a reason for Emby to require internet :/ Do you load code or UI elements over the internet or something like that?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now