Teams starts... asks which account... connects, then restarts

Gerry Creager 6 Reputation points
2021-08-29T13:32:35.617+00:00

Running the Linux app on Oracle Linux 8, and another instance on a different computer, running Centos 7. Recently, using the app, I can no longer log into Teams. Well, that's not completely true. It logs in then fails and takes me back to the screen to select a team. I just tried removing the app data, and then tried to restart Teams. The log has this in it after the restart:

Error while parsing hooks JSON. Error: "ENOENT: no such file or directory, open '/home/gerry.creager/.config/Microsoft/Microsoft Teams/hooks.json'"

(node:57352) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

(node:57352) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ecsSettingsUpdated listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

(node:57352) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 appInitialized listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

(node:57352) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 will-download listeners added to [Session]. Use emitter.setMaxListeners() to increase limit

(node:57750) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

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
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 49,886 Reputation points Microsoft Vendor
    2021-08-30T02:57:49.463+00:00

    Hi @Gerry Creager

    According to your error message, it seems your file location is missing hook.json file.

    Based on my research, I found some customer also met this issue in Windows. But the error message is the same as yours. So you could try to follow these steps to see if it works for you:

    1)Close any instances of Microsoft Teams running.
    2)Navigate to the following path: /home/gerry.creager/.config/Microsoft/Microsoft Teams
    3)Create a json file called hooks.json
    4)Add the following line to the newly created file: {“enableProcessIntegrityLevel”: false}
    5)Save and close the file, then reopen Teams client.


    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 person found this answer helpful.