Skip to content

Commit

Permalink
Prevent invalid webUI from stopping the server (#849)
Browse files Browse the repository at this point in the history
In case there is no internet connection, it is not possible to verify the webUI files, leading to the server to fail from starting up.
Instead, the existing webUI should just be used
  • Loading branch information
schroda authored Jan 24, 2024
1 parent fc64f47 commit c18cf06
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ object WebInterfaceManager {
logger.info { "setupWebUI: found webUI files - flavor= ${serverConfig.webUIFlavor.value}, version= $currentVersion" }

if (!isLocalWebUIValid(applicationDirs.webUIRoot)) {
doInitialSetup()
try {
doInitialSetup()
} catch (e: Exception) {
logger.warn(e) { "WebUI is invalid and failed to install a valid version, proceeding with invalid version" }
}
return
}

Expand Down

0 comments on commit c18cf06

Please sign in to comment.