-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still MODULE_NOT_FOUND after successful push via GH actions #78
Comments
Do you have |
Hi there, just deployed the app to an appservice and run into this issue as well. Any idea for a fix? I do have node server.js set as startup command in my Azure Web App 2023-08-10T09:57:31 Welcome, you are now connected to log-streaming service. |
This must be authentication issue as I have invited a guest account from a separate tenancy and I was able to sign in and use the application without issue. Must be some kind of bug. Hopefully an admin can help us understand what next steps. |
@Nettitude-MS could you please ensure that you have run the GitHub actions to trigger the deployment? |
I'm still seeing issues and I am really not sure why as I am confident I have setup the application based on the README.
I've created the required App Reg within my Development AAD and I created the AZURE_CREDENTIALS and the AZURE_APP_SERVICE variables within GH.
I ensured the App Reg had the required Contributor role within the RG I was deployed into.
Used the updated ARM template to ensure that the NEXTAUTH_URL had the 'https:/' prefix as explained previously.
Updated the settings within the App Service with the AZURE_AD_TENANT_ID, AZURE_AD_CLIENT_ID and AZURE_AD_CLIENT_SECRET variables.
Pushed the app files to the app service via the GH action and this excutes successfully without issue.
I then traverse to the app, complete initial sign in (which completes successfully based on the AAD logs)until I get the following error:
I know from previous issues that this related to an issue with the COSMOSDB_KEY and COSMOSDB_URI variables being incorrectly set so I have validated this on my side and I can confirm that the variable names are correct in the App Service and in the code within GH.
I took a look at the Kudu portal to see if I could diagnose further and I am still seeing events like the below:
I checked the file path that the error mentions (/home/site/wwwroot/) and confirmed that the file 'server.js" does indeed exist within the application files:
Really sorry if this is a simple fix but I am really struggling and not sure where else to troubleshoot.
Thanks for your help.
The text was updated successfully, but these errors were encountered: