Skip to content
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

Install script missing default exception handler #881

Open
gh3597 opened this issue Mar 16, 2024 · 3 comments
Open

Install script missing default exception handler #881

gh3597 opened this issue Mar 16, 2024 · 3 comments

Comments

@gh3597
Copy link

gh3597 commented Mar 16, 2024

I'm no expert on scripts but it seems there's no default exception handler as I had this earlier:

===============================
Technitium DNS Server Installer
===============================

Updating ASP.NET Core Runtime...
curl: (28) Failed to connect to dotnet.microsoft.com port 443 after 265934 ms: Couldn't connect to server
ASP.NET Core Runtime was updated successfully!

Downloading Technitium DNS Server...

I don't think it should continue when it hasn't done anything!

@ShreyasZare
Copy link
Member

Thanks for the post. The .NET runtime is installed by another script provided by Microsoft. So the install script does not exactly know if it succeeded. It just check if the .NET runtime is installed by running dotnet --list-runtimes command and in your case, it seems that there is already .NET 8.0.x runtime available so it proceeded with the installation.

@gh3597
Copy link
Author

gh3597 commented Mar 17, 2024

in your case, it seems that there is already .NET 8.0.x runtime available so it proceeded with the installation.

I'm not so sure about that, it did say initially "updating" so must have checked the version and decided it needed updating then the curl command failed at which point it carried on with the script. I don't think it ever got as far as even installing anything as the installer was never downloaded.

I suppose adding some sort of exception handler to catch the curl errors won't be that simple if the dotnet installer doesn't return anything.

Ironically the curl command failed because of DNS configuration issues on the Technitium host!

@ShreyasZare
Copy link
Member

I suppose adding some sort of exception handler to catch the curl errors won't be that simple if the dotnet installer doesn't return anything.

The .NET installer script is maintained by Microsoft so there is no way to may any changes for it. It does provide verbose logs which can be checked to understand the failure reason.

If there was no .NET runtime found then the installer would anyway stop. If any .NET runtime v8.0.x was available it would proceed and would work without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants