Jump to content

Roku App 4.0.4 can't login to Linux Server 4.4.3.0


Recommended Posts

Posted (edited)

I just downloaded and installed the latest Emby Linux server (4.4.3.0) on Ubuntu 20.04 on AMD64 CPU, and the latest Emby Roku App (4.0.4) on my Roku Stick.

I know I'm definitely putting in the right password - I can login fine with Firefox on the Ubuntu server device using that password, but the exact same username and password on the Roku app just always fails to connect with "Invalid username or password".

Snippet below of log that I think shows the error:

2020-07-25 11:27:14.583 Info HttpServer: HTTP GET http://hostname:8096/emby/system/info/public?format=json. UserAgent: Roku/DVP-9.30 (249.30E04170A)
2020-07-25 11:27:14.585 Info HttpServer: HTTP Response 200 to 192.168.1.176. Time: 2ms. http://hostname:8096/emby/system/info/public?format=json
2020-07-25 11:27:15.702 Info HttpServer: HTTP GET http://hostname:8096/emby/Users/Public. UserAgent: Roku/DVP-9.30 (249.30E04170A)
2020-07-25 11:27:15.712 Info HttpServer: HTTP Response 200 to 192.168.1.176. Time: 11ms. http://hostname:8096/emby/Users/Public
2020-07-25 11:28:10.061 Info HttpServer: HTTP POST http://hostname:8096/emby/Users/AuthenticateByName?format=json. UserAgent: Roku/DVP-9.30 (249.30E04170A)
2020-07-25 11:28:10.089 Error UserManager: Error authenticating with provider Default
    *** Error Report ***
    Version: 4.4.3.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Unix 5.4.0.42
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.2
    Processor count: 8
    Program data path: /var/lib/emby
    Application directory: /opt/emby-server/system
    System.Exception: System.Exception: Invalid username or password
       at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
       at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser, CancellationToken cancellationToken)
    Source: Emby.Server.Implementations
    TargetSite: System.Threading.Tasks.Task`1[MediaBrowser.Controller.Authentication.ProviderAuthenticationResult] Authenticate(System.String, System.String, MediaBrowser.Controller.Entities.User)
    
2020-07-25 11:28:10.091 Info HttpClient: POST https://connect.emby.media/service/user/authenticate
2020-07-25 11:28:10.410 Info UserManager: Authentication request for myusername has been denied.
2020-07-25 11:28:10.416 Warn HttpServer: AUTH-ERROR: 192.168.1.176 - Invalid username or password entered.
2020-07-25 11:28:10.417 Error HttpServer: Invalid username or password entered.

Edited by jsbiff
Posted (edited)

You may need to delete the Roku devices in your devices tab of your Emby server. Do not worry they regenerate when those devices reconnect to the server. It just shows which devices have used your Emby server. After you delete all the Roku devices from the devices tab try to connect on the Roku again. This time it should work. Let us know if it does not. Thanks. ;)

 

Also.. wipe your Emby server address(the TLD shown not the LAN numerics) from the text. Everyone is not a good person that may read your post.

Edited by speechles
Posted

So, there aren't any devices in the devices tab for the Roku server, except for the Firefox device from my localhost connection. There's nothing to wipe.

I went ahead and edited my post, but honestly, there's no way for anyone to make any use of that hostname, since it's on a private address LAN behind both NAT and Firewall. Also, as an added layer of defense-in-depth, I disabled all remote access in the Emby server.

Posted

Any other ideas? Any other logs I can provide for diagnosing why it's failing?

Posted

Curious do you have any symbols in your password?

Posted
2 hours ago, Luke said:

Curious do you have any symbols in your password?

Yes, I do. Is that a problem?

Posted

Not at all, just trying to narrow it down. Thanks.

Posted

The Roku might have problems with certain characters. Can you divulge what the special character or characters are? No specific order.

Posted (edited)

There is an '&' character. I was able to find it and type it on the Roku on-screen keyboard (when I was attempting to login before I first reported this, that is). I suppose maybe somehow it isn't getting transmitted correctly as part of the password during login.

Hey, I know that in html/xml, the & character has to be encoded specially - typically as & or as a character code, like %26 - maybe the Roku app needs to, but isn't properly encoding the '&' when transmitting it to the server?

Edited by jsbiff
Posted

I tested this by changing the password to not have the '&', and it worked. So it does seem to be the ampersand.

Posted

Yes it's just a bug in the app. It is resolved for the next app update. Thanks for helping us chase it down.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...