question

EduardMayer-6799 avatar image
4 Votes"
EduardMayer-6799 asked LeonardoBrunoSoaresLara-3722 commented

Teams for Linux automatically restart loop after Login

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

office-teams-windows-itprooffice-teams-linux-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PetrCesak-8837 avatar image
6 Votes"
PetrCesak-8837 answered LeonardoBrunoSoaresLara-3722 commented

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@example.com )

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dude, you're a god.

Just went through those steps described by you and after signing out and back in, it finally stopped restarting!

Will accept this as a workaround, but microsoft should still get their stuff fixed.

<3

3 Votes 3 ·

Guy you just save the world

3 Votes 3 ·

Just FYI:

this method did not work for me on a clean 21.04 install with the current version (1.4.00.13653).

Had to reinstall an older build with

 sudo apt install teams=1.4.00.7556


1 Vote 1 ·

Mannnnnn!!!! You're really a god!!! I have been trying different solutions for months, this worked, restart is over.

My steps for access Teams by Guest login:

1- Uninstall Teams
2- rm -rf ~/.config/Microsoft*
3- rm -rf ~/.config/teams*
4- install @EduardMayer-6799 teams version: (sudo apt install teams=1.4.00.7556)
5- Did @PetrCesak-8837 solution, I've found my tenantID follow this instructions:
https://help.socialintents.com/article/112-finding-your-microsoft-teams-tenant-id-get-link-to-team
6- Fixed!

0 Votes 0 ·
JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered EduardMayer-6799 commented

Hi @EduardMayer-6799

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

First of all: thanks for your message!

The account is my personal account which belongs to an organization.
It's still inside the AAD, but does not contain a license anymore (was Microsoft 365 Basic).

Web Client works fine, but is not really usable for me, since it lacks some features and the performance is bad (but better than nothing i guess).

Cache has already been cleared multiple times:

 rm -rf ~/.config/Microsoft/Microsoft \Teams && rm -rf ~/.config/teams

I also tried multiple (older) versions of the client, multiple versions (stable, insiders), nothing worked, every client/version had the same issue


0 Votes 0 ·
MarioBanushi-3370 avatar image
2 Votes"
MarioBanushi-3370 answered JohannesSeipelt-2964 published

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.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the addition!
Got the same behavior: for a few seconds i can see the default interface containing Chats, Teams, etc..

1 Vote 1 ·

@EduardMayer-6799

Sorry for the delay response!

So can we understand that you cannot switch the organization in your Teams client?

I will do some test in our environment and will show you the result if there is any update.

0 Votes 0 ·

Yes, every time i choose an organization, the application successfully loads the main ui including conversations, but after several seconds (3-4), the application simply restarts and throws me back to the organization dropdown view.

1 Vote 1 ·

same Problem on Ubuntu 21.04.

1 Vote 1 ·
KryptonTux-4791 avatar image
1 Vote"
KryptonTux-4791 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PetrCesak-8837 avatar image
1 Vote"
PetrCesak-8837 answered AntonioOlinto-2001 published

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Exactly the same on Ubuntu and Mint app. Web-browser is fine.

0 Votes 0 ·
EduardMayer-6799 avatar image
0 Votes"
EduardMayer-6799 answered EduardMayer-6799 edited
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TumitUuatcha-0455 avatar image
2 Votes"
TumitUuatcha-0455 answered SimonCHANU-7710 published

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


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Recently I got this issue and PetrCesak-8837 method didn't work. This one soled my issue.

0 Votes 0 ·