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.
10,311 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.
457 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. Mario Banushi 16 Reputation points
    2021-05-12T08:14:31.917+00:00

    I am facing the exact same issue on Ubuntu 20.04.

    Logging in in my main organization's team works fine.
    Logging in as a guest in a different team however, results in the application restarting. While the application is restarting, I can see for a short time (1-3 seconds) that the login-as-guest is actually successful.

    2 people found this answer helpful.

  2. Tumit Uuatcha 11 Reputation points
    2021-07-18T17:02:51.94+00:00

    update for Microsoft Teams Version 1.4.00.13653 (64-bit).

    for guest you should change

    • Sign-in options
    • Sign in to an organization
    • Enter somethin like examplenet.onmicrosoft.com (your oranization name)
    • Login by your user/pwd
    2 people found this answer helpful.

  3. KryptonTux 6 Reputation points
    2021-05-18T17:27:56.567+00:00

    I have the same problem.

    When starting teams:

    May 18 19:25:43 KryptonTux systemd[1877]: gnome-launched-teams-insiders_teams-insiders.desktop-5575.scope: Succeeded.
    May 18 19:25:44 KryptonTux kernel: [ 555.072493] audit: type=1107 audit(1621358744.335:64): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.DBus.Properties" member="Get" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:44 KryptonTux kernel: [ 555.072493] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:44 KryptonTux kernel: [ 555.072573] audit: type=1107 audit(1621358744.335:65): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.UPower" member="GetDisplayDevice" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:44 KryptonTux kernel: [ 555.072573] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:44 KryptonTux kernel: [ 555.072654] audit: type=1107 audit(1621358744.335:66): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.UPower" member="EnumerateDevices" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:44 KryptonTux kernel: [ 555.072654] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:44 KryptonTux kernel: [ 555.158161] audit: type=1107 audit(1621358744.423:67): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=5642 label="snap.teams-insiders.teams-insiders" peer_pid=1126 peer_label="unconfined"
    May 18 19:25:44 KryptonTux kernel: [ 555.158161] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:44 KryptonTux systemd[1877]: snap.teams-insiders.teams-insiders.6a67857c-34cd-4781-acfa-bfabb67894e4.scope: Succeeded.
    May 18 19:25:47 KryptonTux dbus-daemon[1893]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=2688 label="snap.teams-insiders.teams-insiders" peer_label="unconfined"
    May 18 19:25:49 KryptonTux kernel: [ 560.427502] audit: type=1107 audit(1621358749.691:68): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.DBus.Properties" member="Get" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:49 KryptonTux kernel: [ 560.427502] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:49 KryptonTux kernel: [ 560.427575] audit: type=1107 audit(1621358749.691:69): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.UPower" member="GetDisplayDevice" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:49 KryptonTux kernel: [ 560.427575] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:49 KryptonTux kernel: [ 560.427650] audit: type=1107 audit(1621358749.691:70): pid=1130 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower" interface="org.freedesktop.UPower" member="EnumerateDevices" mask="send" name="org.freedesktop.UPower" pid=2688 label="snap.teams-insiders.teams-insiders" peer_pid=1477 peer_label="unconfined"
    May 18 19:25:49 KryptonTux kernel: [ 560.427650] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
    May 18 19:25:47 KryptonTux dbus-daemon[1893]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=2688 label="snap.teams-insiders.teams-insiders" peer_label="unconfined"

    Thanks in advance

    1 person found this answer helpful.
    0 comments No comments

  4. Petr Cesak 111 Reputation points
    2021-05-21T11:30:21.633+00:00

    I get the identical issue as reported above, my guest account is

    • working when Microsoft Teams on Windows 7 is used
    • restarting when Microsoft Teams on Debian 10 is used (content is shown correctly for a two seconds)
    • working when Web-browser (Firefox logged to the teams website) on Debian 10 is used

    Notes:

    • My guest account is part of several organizations. I can't make any telco or join the teams from Linux Desktop.
    • Removing .config, reinstalling, downgrading, upgrading to the latest version do not help. Even I'm administrator of our domain.
    • Approx. 3 months, Microsoft Teams on Debian 10 were used (guest account) and the reported issue has occurred after we purchased Trial license
    • Microsoft Teams on Debian 10 is working only in a case I login with a user that is fully licensed.
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.