SQL Server 2017 installation is stuck

荒凉一梦 提交于 2019-12-07 03:19:14

问题


For some reason I can't get SQL Server 2017 installed on my Windows 10 machine.

First thing to do with this buggy installer is that I had to uninstall VCRuntime 2017 in order for the installer to work.

And now, the installer is stuck at this point exactly every time I try to install it:

What I've tried so far:

  • Killing msiexec process
  • Running the setup with additional parameter as mentioned here

    Setup.exe /SkipInstallerRunCheck
    
  • Restarting ... reinstalling ... turning off anti-virus ...

[Solved]

The problem was due to a background download that was taking forever especially on a low internet speed (i.e. python or R-support component).

[Solution]

  • If you really need python or R-support just wait until download is complete
  • Else, deselect python and R-support from the component list.
  • (or) kill the child process for python or R-support component downloader from task manager.

回答1:


UPDATE:

The actual problem turned out to be the R-support component(s) slowly downloading in the background locking up the installation GUI with no notification or warning show to the user as to what is actually going on.

So it seems this "locked install problem" can be caused by installing several different components, at least by Python or R-support. As mentioned below, please check any available logs or event logs for clues.

In summary, options:

  1. Maybe try to unselect such components for install if you do not need them.
  2. If you need the components, leave the setup to complete, and check progress in log files as explained below. Verify Internet access (proxy?).

Stuck Download?

UPDATE: Did you see this blog? Looks like the setup tries to download and install the Python runtime, and this can take forever. Are you behind a proxy btw? No direct connection to the Internet? If so I suppose this could also cause further problems. Probably not the cause, but worth a mention.

Apparently you can check the following log file for progress for the installation:

%ProgramFiles%\Microsoft SQL Server\140\Setup Bootstrap\Log\DATE_TIME\RSetup.log

DATE_TIME in the above path must be converted to your valid values. For example: 20170804_162723 (date part and time part).

See this answer as well: SQL server 2016 installation freeze. You could also try the suggestion to deselect all components you do not need to prevent any background downloads?


General Debugging

Leaving in the general purpose debugging suggestions below.

Generic Advice: From experience I would create a new local admin user and try to install using that account. This is to avoid any "unclean" or special conditions that have occurred in your user profile or registry during regular Windows use. Might not do much, but sometimes it gets the job done with surprising ease. Worth a try I think.

Some Further Things: I wrote up a little check list a while back, I'll add it and see if it inspires some new ideas that can help you. See under "Core Deployment Problems". That first "check list" was condensed from a longer and somewhat excessive first writeup - one of those answers that unintentionally turned into a blog and maybe a hard one to read.

Logging: Did you check log files and / or event logs properly for clues as to what is happening? I find the best approach for deployment to enable logging for all MSI installations. The performance hit it triggers is minuscule compared to the benefit of having a real log-file always available when you suddenly need one. You can enable logging for all MSI files as explained on installsite.org (section: "Globally for all setups on a machine"). MSI log files will then just sit in your %TEMP% folder after installation. They have a random hex name, and you can flush them all regularly if you do not need them. You sort by modify date / time to find the latest one(s) created - obviously.

Jedi trick: You will want to go home and re-think your life if you don't enable logging for all MSI files. Moral of the story: MSI log files are cool. They are very verbose, but they are beautiful. There are some hints on interpreting them here (bottom).




回答2:


You have to remove configuration settings for SQL Server from Windows Registry editor.

  • Sql server

  • 2017

  • VS




回答3:


My 2 cents: SQL Server Installer consists of several small MSI installers. MSI installers can only be installed one after each other (as fas as I know). In my case, I launched another MSI setup while installing SQL Server. This caused SQL Server Setup to hold until I finished the concurrently running setup.

So, at least in my case the problem was self-made.



来源:https://stackoverflow.com/questions/51489985/sql-server-2017-installation-is-stuck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!