-
Notifications
You must be signed in to change notification settings - Fork 41
Windows setup fails on upgrading to 7.7.0 #363
Comments
Hello @v-echo , logs say that service was not able to start. One potential problem I see in the logs is value of USERNAME has a space in it: |
Hello @ygel , as far as I know no such user was explicitly configured within the Elastic setup process. The standard users were configured, eg. "elastic", "kibana", etc. through the .bat files. Also, worth mentioning that yesterday I upgraded from 7.4.0 to 7.6.2 without any issues, also using the .msi installer. And all settings left to default. |
The problem is with an error from Windows Event Viewer. Probably the name "jvm.options\jvm.options" is the problem. Service cannot be started. Elastic.ProcessHosts.Process.StartupException: Could not evaluate jvm.options file: C:\ProgramData\Elastic\Elasticsearch\config\jvm.options result: Exception in thread "main" java.nio.file.NoSuchFileException: C:\ProgramData\Elastic\Elasticsearch\config\jvm.options\jvm.options |
Anyone solved this yet? |
Tried to build the whole project to debug, but build process fails. We need to wait for Yuriy. |
Reproduced on a clean 7.5.0 -> 7.7.0 upgrade. Full error from Event Viewer:
Workaround: |
Relates: elastic/elasticsearch#51882 With the introduction of jvm.options.d directory for customizing jvm.options, the config directory path is now passed to jvm.options parser tool instead of the jvm.options path. See the elasticsearch.bat change for comparison: https://github.com/elastic/elasticsearch/pull/51882/files#diff-6c06e8a0d0742dc053b8afcbfb2b4201R76 Fixes #363
Relates: elastic/elasticsearch#51882 With the introduction of jvm.options.d directory for customizing jvm.options, the config directory path is now passed to jvm.options parser tool instead of the jvm.options path. See the elasticsearch.bat change for comparison: https://github.com/elastic/elasticsearch/pull/51882/files#diff-6c06e8a0d0742dc053b8afcbfb2b4201R76 Fixes #363
Relates: elastic/elasticsearch#51882 With the introduction of jvm.options.d directory for customizing jvm.options, the config directory path is now passed to jvm.options parser tool instead of the jvm.options path. See the elasticsearch.bat change for comparison: https://github.com/elastic/elasticsearch/pull/51882/files#diff-6c06e8a0d0742dc053b8afcbfb2b4201R76 Fixes #363 (cherry picked from commit 31f27ce)
Relates: elastic/elasticsearch#51882 With the introduction of jvm.options.d directory for customizing jvm.options, the config directory path is now passed to jvm.options parser tool instead of the jvm.options path. See the elasticsearch.bat change for comparison: https://github.com/elastic/elasticsearch/pull/51882/files#diff-6c06e8a0d0742dc053b8afcbfb2b4201R76 Fixes #363 (cherry picked from commit 31f27ce)
Relates: elastic/elasticsearch#51882 With the introduction of jvm.options.d directory for customizing jvm.options, the config directory path is now passed to jvm.options parser tool instead of the jvm.options path. See the elasticsearch.bat change for comparison: https://github.com/elastic/elasticsearch/pull/51882/files#diff-6c06e8a0d0742dc053b8afcbfb2b4201R76 Fixes #363 (cherry picked from commit 31f27ce)
A change in how jvm.options file is located, checked and parsed means that an MSI installation that tries to start the windows service as part of the installation will fail. This is fixed in #368 and will be in the next release. As a workaround for 7.7.0 MSI, please follow these steps:
For upgrade, if the previous version installed as a service, uncheck "Start the service after this installation is complete" in the upgrade UI
|
@russcam follow your steps can make msi installation finish successfully. However, the service still won't start. Checking the event viewer it shows: My environment is Windows Server 2012, using Administrator to launch the service. |
@david-at-fiziico There should be one or more messages before this one. They should provide the true cause. Please also look for |
Logs is pasted here, what's the minimum requirement of RAM? Java HotSpot(TM) 64-Bit Server VM (25.212-b10) for windows-amd64 JRE (1.8.0_212-b10), built on Apr 1 2019 22:50:23 by "java_re" with MS VC++ 10.0 (VS2010) |
I think it would be good to keep this issue focused on installation failure with 7.7.0. Since the installation succeeds for you, @david-at-fiziico, but there is some subsequent failure, it might be better if we continue this conversation over on your original issue, #370, and reopen that. I'm going to close this issue. |
Environment
Windows Server 2016
ElasticSearch 7.6.2 installed.
Expected Behaviour
Installer upgrades version 7.6.2 to version 7.7.0.
Actual Behaviour
Installer is stuck for a long time at the final step, "Starting Elastic service", then fails with an error and rolls back to 7.6.2.
Steps to reproduce the behaviour
Upgrade install from a 7.6.2 to a 7.7.0 using the .msi package.
All settings were left as default, on both original installation and upgrade.
Reproduced on multiple VMs, all using Windows Server 2016.
installation_log.txt
The text was updated successfully, but these errors were encountered: