Service Unavailable with no obvious errors #1998
-
Hi Team, The server stopped responding to requests overnight and now all I get is service unavailable. I've tried:
I've tried running the service in interactive mode and get the following output: [22:12:28 INF] Seq 2023.4.10219 running on OS Microsoft Windows Server 2022 Datacenter Azure Edition Service Unavailable is received both from the public URL and internally on the VM itself visting https://localhost Note, disks are not full. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
A suspicious coindidence is an updated lets encrypt certificate at around the time of the requests stopping. It appears to be served correctly though. |
Beta Was this translation helpful? Give feedback.
-
OK, so I've found the issue. For us, it was the domain binding. When using the actual domain in the Listen URI field (eg. https://example.com) the server would show Service Unavailable 503. Using localhost instead (https://localhost) serves the app correctly. The only caveat is that external URLs that are shown in the app show as localhost, so it's difficult to share links, and alerts show the wrong url. The reason the lets encrypt was suspicious, and actually caused this issue, is because when a cert is renewed we run a powershell script to rebind the listen uri with the new thumpprint. This script was using the full domain, and thus the problem began. I'll leave the discussion open in cas ethere's a solution to the domain binding problem, but the urgency is now low :) |
Beta Was this translation helpful? Give feedback.
OK, so I've found the issue. For us, it was the domain binding. When using the actual domain in the Listen URI field (eg. https://example.com) the server would show Service Unavailable 503. Using localhost instead (https://localhost) serves the app correctly. The only caveat is that external URLs that are shown in the app show as localhost, so it's difficult to share links, and alerts show the wrong url.
The reason the lets encrypt was suspicious, and actually caused this issue, is because when a cert is renewed we run a powershell script to rebind the listen uri with the new thumpprint. This script was using the full domain, and thus the problem began.
I'll leave the discussion open in c…