Teams for Linux automatically restart loop after Login

Eduard Mayer 71 Reputation points
2021-05-10T07:42:35.62+00:00

Hello dear Microsoft Support Team!

After having removed my license from an deprecated organization, Teams for Linux seems to be stuck inside a loop and thus i cant use it anymore.

As of now, there's still a guest account available inside the organization dropdown, after choosing the org i'm a guest in, the app starts correctly, but after 3 seconds it restarts and throws me back to the "Select an Organization" screen.

So here's what happened:

2 Orgs (1 Guest, 1 "normal" account) -> Login -> Success

2 Orgs (1 Guest, 1 Account without a license) -> Login -> Error -> Restart (-> Loop)

In Linux, i can see the following inside the logs:

Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Main window shown active 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Logging telemetry event: msa_guest_license_error 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- event -- eventpdclevel: 2, name: msa_guest_license_error, AppInfo.Language: en-US, complianceEnvironmentType: 0, isDataCategorizationEnabled: false, userpdclevel: 0, processMemory: 24885016, freeMemory: 527179776, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 0.77, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- event -- eventpdclevel: 3, errorCode: FailedAuthentication, errorStep: get_skype_license_guest, errorState: guestLicenseError, errorUrl: undefined, status: success, scenario: 220ab38e-f9fe-4710-b6d9-5c01bf5fded6, scenarioName: desktop_web_app_error_redirect, name: desktop_web_app_error_redirect, step: start, sequence: 0, delta: 1, scenarioDelta: 1, elapsed: 64783, stepDelta: 0, AppInfo.Language: en-US, complianceEnvironmentType: 0, isDataCategorizationEnabled: false, userpdclevel: 0, processMemory: 24910896, freeMemory: 527179776, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 0.77, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0, Scenario.Name: desktop_web_app_error_redirect, Scenario.Step: start, Scenario.Status: success,  
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- event -- eventpdclevel: 3, errorCode: FailedAuthentication, errorStep: get_skype_license_guest, errorState: guestLicenseError, errorUrl: undefined, status: success, scenario: 220ab38e-f9fe-4710-b6d9-5c01bf5fded6, scenarioName: desktop_web_app_error_redirect, name: desktop_web_app_error_redirect, step: stop, sequence: 1, delta: 2, scenarioDelta: 2, elapsed: 64784, stepDelta: 1, AppInfo.Language: en-US, complianceEnvironmentType: 0, isDataCategorizationEnabled: false, userpdclevel: 0, processMemory: 24940144, freeMemory: 527179776, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 0.77, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0, Scenario.Name: desktop_web_app_error_redirect, Scenario.Step: stop, Scenario.Status: success,  
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Focusing main window 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Is foreground set to true 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- [AppStateService] [EnableBlueberry] enableBlueberry is defined as false returning : false 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Blur main window 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- Is foreground set to false 
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- event -- eventpdclevel: 2, duration: 34.54400014877319, name: desktop_foreground_duration, AppInfo.Language: en-US, complianceEnvironmentType: 0, isDataCategorizationEnabled: false, userpdclevel: 0, processMemory: 25048512, freeMemory: 521039872, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 0.77, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
Mon May 10 2021 09:30:09 GMT+0200 (Central European Summer Time) <3368880> -- info -- [IPC: showApp] Showing main window. Reason:showMsaLoginFlowError:[object Object] 

This seems to be an issue only inside the Linux application, since i can successfully login with the same accoutn an configuration in the Windows or Mac application.
(Inside those application, i get the same msa_guest_license_error inside the logs, but it seems not to break anything.

Is there any workaround?

More infos:

Teams for Linux, 1.4.00.7556

Ubuntu 20.04 LTS
GNOME DE 3.36

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,249 questions
Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
456 questions
{count} votes

Accepted answer
  1. Petr Cesak 111 Reputation points
    2021-05-21T12:42:57.717+00:00

    Teams version: 1.4.00.7556 (64-bit)
    Debian version: 10.9

    Now, I've fixed it for in my two cases (two users). I was stressed by more than ~30 hours of trying to find solution thus I did many steps that I haven't recorded well. However I did it for myself first and then I repeat steps for my friend (who has Fedora 33). Thus I reduce total number of steps. I can't exactly identify what really helps but it is possible to fix it.

    The following steps (order is not 100% recorded) may help you:

    • Webbrowser (Firefox) on Linux, I've clicked on the link on https://teams.microsoft.com/?tenantId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (replace by your Tenant ID), probably not useful but you can verify that you have a valid Tenant Id.
    • quit Teams (desktop version)
    • edit file ~/.config/Microsoft/Microsoft\ Teams/desktop-config.json (by vi, or other editor that you like)
      "upnWindowUserUpn":"" (removed value)
      "userOid":"" (removed value)
      "userTid":"" (removed value)
      "guestTenantId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" (added value, tenant of that comany that assigned a guest accout to you)
      "homeTenantId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" (added value)
    • start Teams (desktop version)
    • if still issue remains that sign out and quit
    • repeat editing the file as above
    • start Teams and log in.

    After execution, the desktop-config.json contains

    • "upnWindowUserUpn":"first.surname_example.com#EXT#@examplenet.onmicrosoft.com"" (previously here was only first.surname@ssss .com )
    6 people found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. JimmyYang-MSFT 49,366 Reputation points Microsoft Vendor
    2021-05-11T05:31:41.793+00:00

    Hi @Eduard Mayer

    What is your license you have removed?

    Can we understand that the Account without a license is your personal account?

    To exclude the client issue, we firstly recommend you try to login Teams web client to see if this issue can be fixed. If there is no issue in Teams web client, you could try to log out Teams client and run the following command to clear your client cache file:

    rm -r ~/.config/Microsoft/Microsoft\ Teams  
    

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.