question

GerryCreager-8784 avatar image
0 Votes"
GerryCreager-8784 asked GerryCreager-8784 commented

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

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.

office-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.

1 Answer

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered GerryCreager-8784 commented

Hi @GerryCreager-8784

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.

· 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.

Jimmy

Well, that at least changed the error in teams-startup.log:

"Error while parsing hooks JSON. Error: "Unexpected token “ in JSON at position 1"
(node:326340) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead."

0 Votes 0 ·

Hi @GerryCreager-8784

Thanks for your feedback!

Could you check if Teams wen client work normally in your environment?

Meanwhile, please try to run the following command to clear Teams cache file and restart again to see if works:

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

0 Votes 0 ·

@GerryCreager-8784

t has been a while, how is everything going?
If you have any update about this issue, please feel free to post back.

0 Votes 0 ·
Show more comments