• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Fix Microsoft Teams Env_Check_Error

How to Fix Microsoft Teams Env_Check_Error

February 10, 2021 by Madalina Dinita 1 Comment

If you manage to log in to your Microsoft Teams account, you’re luckier than many other users out there. Login errors are among some of the most common glitches affecting the app. And they almost always occur at the worst possible time. After all, you know what Finagle’s law of dynamic negatives says: “Anything that can go wrong, will—at the worst possible moment.”

The env_check_error is a rare login error that prevents Teams users from signing in. Basically, it indicates Teams failed to connect to the settings endpoint. In this guide, we’ll explore what troubleshooting methods you can use to fix it.

Fix Microsoft Reams env_check_error on Windows and Mac

Delete the Settings.json File

Windows 10

  1. Exit Teams completely and navigate to C:\Users\UserName\AppData\Roaming\Microsoft\Teams.
  2. Then locate and delete the Settings.json file.
  3. Launch Teams again and check if you can log in now.

microsoft teams settings file

Mac

If you’re used to using Terminal, you can quickly delete the file by running this command: rm /Users/UserName/Library/Application\ Support/Microsoft/Teams/settings.json.

Or you can navigate to Home → Library → Application Support→ Microsoft → Teams folder. Open the Teams folder and delete the Settings.json file.

microsoft teams settings.jason file macOS

Clean the Hosts File

Additionally, certain entries in your Hosts file could be blocking Microsoft’s servers. Close Teams, ensure the Hosts file is clean, and try to sign in to your account again. Resetting the Hosts file to default settings can help fix connectivity issues.

Steps to Reset the Hosts File on Windows 10

  1. Launch Notepad and paste the following script into the new file:
    • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a ‘#’ symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost
  2. Then click on the File menu, select Save as, and type “hosts” in the File name box.
  3. Save the file to your desktop and exit Notepad.
  4. Then go to %WinDir%\System32\Drivers\Etc and open the Etc folder.etc folder windows 10
  5. Right-click the Hosts file, select Rename, and name the file Hosts.old.rename hosts file windows 10
  6. You can now move the Hosts file you saved on your desktop to the Etc folder. Check if the env_check_error persists.

Steps to Reset the Hosts File on Mac

  1. Start Terminal and enter sudo nano /etc/hosts.
  2. Then hit the Return key and type in your passoword when prompted.
  3. You can now edit your Mac Hosts file.hosts file macOS
  4. Check if there are any entries in the Hosts file that might be blocking Teams. Remove all of them.

An Alternative Method

  1. Launch Finder, hit the Go menu, and select Go to folder.
  2. Then enter /private/etc/hosts and press Enter.open Hosts file macOS
  3. Drag the Hosts file to your desktop.macOS etc folder hosts file
  4. Open it using your default text editor and delete all the entries.
  5. You can then paste the default Mac Hosts file script into the Hosts file:

##
# Host Database
#
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost

::1 localhost.

Drag the Hosts file back to its original folder and check if Teams is working properly now.

For more information about editing your Hosts file, see How to Edit Your Mac’s Hosts File & Why You Might Want To.

Clear the Cache

Clearing the cache helps you to delete temporary files that may be blocking your connection to Microsoft’s servers. Meanwhile, don’t forget to backup important data before following the steps below.

Windows

  1. Exit Teams and close all the Office processes running in the background.
  2. Then type in %appdata%\Microsoft\teams in the Windows search bar.delete teams cache files
  3. Delete all the files from the following Teams folders:
    • %appdata%\Microsoft\teams\application cache\cache
    • %appdata%\Microsoft\teams\blob_storage
    • %appdata%\Microsoft\teams\Cache
    • %appdata%\Microsoft\teams\databases
    • %appdata%\Microsoft\teams\GPUcache
    • %appdata%\Microsoft\teams\IndexedDB
    • %appdata%\Microsoft\teams\Local Storage
    • %appdata%\Microsoft\teams\tmpdelete teams cache files.
  4. Restart your computer and launch Teams again.

Mac

  1. Quit Microsoft Teams. Launch Finder and hold down the Option key. Click on the Go menu and select Library.
  2. Then go to “~/Library/Application Support/Microsoft/Teams/ and open the Teams folder.
  3. Delete the files in the following folders: Application Cache, blob_storage, Cache, databases, GPUCache, IndexedDB, Local Storage, and tmp.microsoft teams delete app cache macOS
  4. Launch Teams again and check if the error persists.

Conclusion

To sum up, you can quickly fix the env_check_error by deleting the Settings.json file. Meanwhile, if that method doesn’t work, reset the Hosts file to default settings and clear the app cache.

Let us know which solution worked for you. Let’s continue the conversation in the comments below.

You Might Also Like

  • Microsoft Teams Keeps Saying I'm Away But I'm Not
    Microsoft Teams Keeps Saying I'm Away But I'm Not
  • Can Microsoft Teams Be Used to Spy on You?
    Can Microsoft Teams Be Used to Spy on You?
  • Fix Microsoft Teams: You Can't Get There from Here
    Fix Microsoft Teams: You Can't Get There from Here
  • Fix Trello is Not Available in Microsoft Teams
    Fix Trello is Not Available in Microsoft Teams
  • Fix Microsoft Teams Keeps Restarting
    Fix Microsoft Teams Keeps Restarting
  • Microsoft Teams: How to See Someone Else's Calendar
    Microsoft Teams: How to See Someone Else's Calendar

Filed Under: Software

Reader Interactions

Comments

  1. Marcelo Menchi says

    September 2, 2022 at 5:30 pm

    I have similar error and I couldn’t find a solution, in logs file I found some errors but the teams window show this error:
    Error code – caa20002
    There’s a more permanent way to sign in to Microsoft Teams.

    Could you help me? Thanks!

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Fix Explorer.exe: Class Not Registered Error in Windows 11
  • How to Fix Explorer.exe Doesn’t Load at Startup Issue
  • How to Enable/Disable Efficiency Mode in Windows 11
  • How to Create and Edit a Playlist on YouTube Music
  • Microsoft Edge Collections: What It is and How to Use It
  • YouTube Premium: How to Disable/Enable Background Playback
  • How to Update Apps on iPad (iPadOS 16.3.1)
  • How to Fix Outlook Rules Are Not Supported for This Account

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Microsoft
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Word
  • Microsoft Windows 95
  • Microsoft Internet Explorer
  • Best Microsoft Surface Products 2022

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy