Jump to content

Horizon 8 Admin Console - Login Error


Alex Karibov

Recommended Posts

After upgrading Horizon 8 from 2206 to any versions above (tried upgrading to 2212 and 2312) I've faced a problem with being unable to log in to Horizon Admin Console with an error "Login error. Please refresh the browser to reload the page and try again." Domain name field is NOT empty. User's authentification via Horizon Client or HTML5 works without any problems.

Tried different browsers (Chrome, Firefox, Edge) - the same error. Tried login by localhost from the server or by fqdn from my office machine - the same error.

In the debug log of CS there're some errors when I'm trying to log in:

  • [TokenService] Could not retrieve current private key from certs. com.vmware.vdi.logger.Logger.error(Logger.java:92)
  • [ExceptionHandlerAdvice] Unable to generate Token due to some internal error.

 

z9JbXLxgqj.png

debug log.txt

Link to comment
Share on other sites

First, have you rebooted the impacted connection server?  You shouldn't have to do this, but sometimes it can clear up issues.

Second, have you opened a ticket with support? 

Sean Massey
Independent Consultant/Analyst/Blogger | VCDX-EUC 247
Vice Chairman of the Board - World of EUC
Blog: thevirtualhorizon.com  Mastodon: @seanpmassey@vmst.io Instagram/Thread:
@seanpmassey LI: https://www.linkedin.com/in/seanpmassey/

Link to comment
Share on other sites

  • Employee

Hello  

Try this as it might help. 

  1. Stop the services in your CSs. 
  2. Go to the location "<INSTALLDIR>\VMware\VMware View\Server\broker\webapps" in all non-working CS.
  3. Delete the rest folder.
  4. Restart the connection server.

Refer to: https://docs.vmware.com/en/Management-Packs-for-vRealize-Operations-Manager/1.2.1/Horizon/GUID-670DC88E-4509-416C-8CD3-AB488C1423D0.html

Link to comment
Share on other sites

39 minutes ago, Victor León said:

Hello  

Try this as it might help. 

  1. Stop the services in your CSs. 
  2. Go to the location "<INSTALLDIR>\VMware\VMware View\Server\broker\webapps" in all non-working CS.
  3. Delete the rest folder.
  4. Restart the connection server.

Refer to: https://docs.vmware.com/en/Management-Packs-for-vRealize-Operations-Manager/1.2.1/Horizon/GUID-670DC88E-4509-416C-8CD3-AB488C1423D0.html

@Alex Karibov - before doing the above, I'd recommend reading the linked article and doing the steps to verify the REST API in step 1 of the solution to see if you're getting this issue.  You don't want to just start deleting things on an active server if you're not sure if it's an issue.

Quote
  1. Verify the Horizon Rest API access using the following steps:
    1. Enter https://{Horizon-Connection-Server-URL}/rest/swagger-ui.html URL.
    2. Click Auth Section.
    3. Click POST /login API.
    4. Click Try It Out.
    5. Replace AD-TEST-DOMAIN with the domain name, <password> with Password, and Administrator with the actual values providing to the adapter.
    6. Click Execute.
       
      { "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJ1c2VyLXNpZCI6IlMtMS01LTIxLT...............", "refresh_token": "eyJhbGciOiJSUzI1NiJ9.eyJ1c2VyLXNpZCI6IlMtMS01LTIxLTM0MDkw............" }

 

Sean Massey
Independent Consultant/Analyst/Blogger | VCDX-EUC 247
Vice Chairman of the Board - World of EUC
Blog: thevirtualhorizon.com  Mastodon: @seanpmassey@vmst.io Instagram/Thread:
@seanpmassey LI: https://www.linkedin.com/in/seanpmassey/

Link to comment
Share on other sites

Hm, even on my 2206 where admin console works, there's an error while connecting via rest.

Then I deleted 

"<INSTALLDIR>\VMware\VMware View\Server\broker\webapps\rest"

and restart CS but nothing changed, the same 500 error.

ufgh3asuRi.png

Edited by Alex Karibov
Link to comment
Share on other sites

We have 3 different installations for 3 different domains:

  1. Standalone CS
    Upgrade path: 7.13.0 --> 7.13.1 --> 2206 --> unable to upgrade futher due to the problem
  2. Paired CS (Standard + Replica)
    Upgrade path: 7.11 --> 7.13.1 --> 2206 --> unable to upgrade futher due to the problem
  3. Standalone CS
    Upgrade path: 2209 --> 2212 --> 2312.1

So, there's the problem with only 1 and 2 installations which were fresh installed with Horizon 7 CS and then upgraded to Horizon 8, but not with 3 one which was fresh installed with Horizon 8 CS.

Link to comment
Share on other sites

10 hours ago, Alex Karibov said:

We have 3 different installations for 3 different domains:

  1. Standalone CS
    Upgrade path: 7.13.0 --> 7.13.1 --> 2206 --> unable to upgrade futher due to the problem
  2. Paired CS (Standard + Replica)
    Upgrade path: 7.11 --> 7.13.1 --> 2206 --> unable to upgrade futher due to the problem
  3. Standalone CS
    Upgrade path: 2209 --> 2212 --> 2312.1

So, there's the problem with only 1 and 2 installations which were fresh installed with Horizon 7 CS and then upgraded to Horizon 8, but not with 3 one which was fresh installed with Horizon 8 CS.

First, I would strongly recommend opening a support ticket for this issue.  If you have two environments that were upgraded from 7.x to 8.x/2206, there might be an internal KB that describes this issue and how to resolve it.  Or you can get advice to proceed with upgrading to a release that fixes this issue.  But you would need an official answer from support on this.

Second...I would STRONGLY recommend installing a 2nd CS in each of your environments to provide you with redundancy.

Sean Massey
Independent Consultant/Analyst/Blogger | VCDX-EUC 247
Vice Chairman of the Board - World of EUC
Blog: thevirtualhorizon.com  Mastodon: @seanpmassey@vmst.io Instagram/Thread:
@seanpmassey LI: https://www.linkedin.com/in/seanpmassey/

Link to comment
Share on other sites

  • Employee

From what I'm seeing, the first thing that almost always needs to be checked post upgrade is the locked.properties config as each subsequent version has been increasing in security defaults that need to be properly configured and not just turning them off.

Please see this KB for reference - https://kb.omnissa.com/s/article/94578?lang=en_US

The other thing I'm seeing in your log snippet is that the private key for your cert may not be exportable.

Please see this KB for reference to verify - https://kb.omnissa.com/s/article/80303?lang=en_US

Edited by Jeremy Wellner
Link to comment
Share on other sites

On 9/12/2024 at 6:49 PM, Sean Massey-1 said:

First, I would strongly recommend opening a support ticket for this issue.  If you have two environments that were upgraded from 7.x to 8.x/2206, there might be an internal KB that describes this issue and how to resolve it.  Or you can get advice to proceed with upgrading to a release that fixes this issue.  But you would need an official answer from support on this.

Second...I would STRONGLY recommend installing a 2nd CS in each of your environments to provide you with redundancy.

Unfortunately, I'm unable to open a support ticket now because our contract has been suspended due to some political reasons. If I had a chance, I'd definetely done it first.
The same obstacle with upgrading to 2406 cause it requires to upgrade the license on the Omnissa portal.

Futhemore, I've tried to look through all of the release notes for all the versions of Horizon and couldn't find anything about REST API in resolved issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...