-
Notifications
You must be signed in to change notification settings - Fork 319
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
Deployed on Linux App Svc, -admin site works, but -portal docker logs: Hosting failed to start - Unable to configure HTTPS #789
Comments
While working on this issued I tried commenting out virtually everything in Startup to see if it would stop the error. Following is the Startup.cs as it is in this test. Later I found if I create a new Asp.Net 8 project and copied the CustomerSite/HomeController into ithe new Mvc project (along with dependencies) then it deploys to Linux App Svc and runs just fine. I have commented out most of Startup.cs a,d replaced HomeController with a simple TestController that has no Dependencies injected. There is so little happening in startup.cs now, I've eliminated just about everything that could be trying to use a certificate that doesn't exist. I have other App Svc Plans that are Linux and have more than one App on them and they both work , I don't think this is an App Svc Linux limit. Here's what remains in Startup.cs:
|
Describe the bug
Deployed on Linux App Svc, -admin site works, but -portal dockers logs: Hosting failed to start - Unable to configure HTTPS endpoint. No server certificate was specified
If there's a configuration difference between Admin and Customer sites, I am not seeing it.
After deployment, the scm site bash shell docker log contains:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The CustomerSite Home/Index page should show
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Things I've checked:
Since the above, I did 2 things:
A. Deployed to a Windows App Svc, and the deployment starts and works normally.
B. Deployed to a completely new Linux App Service on it's own Plan, and starup fails with same Error stack
Therefore:
Later: Trying a NEW ASPNET MVC PROJECT: WORKS!
I created a new Mvc Project on .Net8 (LTS), and copied in the HomeController from CustomerSite, and setup all the project dependencies and updated program.cs to register classes and DbContext. It is using useHsts() and useHttsRedirection() as created by the VStudio New Project template.
It is working fine deployed to Linux App Svc from a new AspNet .csproject.
Therefore:
There has to be some small configuration in the CustomerSite that if gone through with a fine-toothed comb it be discoverable. , fixable and lead to a PR. I am not seeing it.
The text was updated successfully, but these errors were encountered: