OfficeDev / microsoft-teams-apps-groupconnect

Welcome to the group connect Teams app template!
MIT License
11 stars 17 forks source link

Teams Group Connect App redeployment fails #36

Open aarticyclotron opened 2 years ago

aarticyclotron commented 2 years ago

Hello Team,

We are facing an issue when we are trying to redeploy the Teams Group Connect app from GitHub. Deployment always fails even after we do Sync and delete node modules folder. Could you please help?

Please see below steps to reproduce an issue:

  1. Deploy the Group Connect app on azure.
  2. Deployment is successful and we are able to use the app as expected.
  3. If Azure subscription expired/deleted or we delete the existing group connect app and then we try to deploy the group connect app again on same Azure tenant, deployment always fails and the app doesn't work in teams.

Please find below screen shot of the error log: image

image

PN: As mentioned in troubleshoot doc. we already tried Sync and deletion of node modules but still second deployment always fails.

cristianoag commented 2 years ago

Here are steps to fix this issue:

• Open portal.azure.com and use an admin credential to authenticate. • Navigate to the resource group where all GC resources are installed. • Click the App Service resource. • On the left rail, scroll down to Development Tools and click Advanced Tools. • Click Go • Now on the menu located on the top of the page, select Debug console, and then click CMD • Navigate to site\repository\Source\DIConnect\ClientApp. You can do that clicking on the folders on the box located on the top of the page or using the CD command on the MS-DOS command console • Delete the node_modules folder by running the commands below on the command console

DEL /S /Q node_modules RD /S /Q node_modules

• Delete the package-lock.json file • Now clear the cache, you need to run the npm cache clean --force command in terminal. • Run the npm install command in the terminal. (This will take some time). • When finished, retry the sync process, and let me know the results.