SQL SERVER 2022 INSTALL FAILING File activation error on a drive that has never existed on my pc. File activation failure. The physical file name "D:\dbs\sh\5uj5\1008_054209\cmd\11\obj\x64retail\sql\mkmastr\databases\mkmastr.nativeproj\modellog.ldf"

kevin miller 0 Reputation points
2025-07-05T20:09:34.1733333+00:00

This is definitely a weird issue. Let me setup the scenario. Just bought a new CyberPowerPC with a AMD Ryzen 5 5500, 3600 mhz, 6 core(s) , 12 logical processors. My issue is with installing SQL server 2022 developer's edition. Checking the error log I got the following errors. My pc has never had a d drive and it is attempting to access files on the d drive. If anyone has any ideas it would be greatly appreciated.

Error:

Total Log Writer threads: 2, Node CPUs: 6, Nodes: 1, Log Writer threads per CPU: 1, Log Writer threads per Node: 2

2025-07-05 13:38:47.05 Server Database Mirroring Transport is disabled in the endpoint configuration.

2025-07-05 13:38:47.05 Server clwb is selected for pmem flush operation.

2025-07-05 13:38:47.05 spid34s Warning ******************

2025-07-05 13:38:47.05 spid34s SQL Server started in single-user mode. This an informational message only. No user action is required.

2025-07-05 13:38:47.05 Server Software Usage Metrics is disabled.

2025-07-05 13:38:47.05 spid34s Starting up database 'master'.

2025-07-05 13:38:47.10 spid34s Setup step is FORCE copying system data file 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\Binn\Templates\model_replicatedmaster.mdf' to 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\DATA\model_replicatedmaster.mdf'.

2025-07-05 13:38:47.10 spid39s Starting up database 'mssqlsystemresource'.

2025-07-05 13:38:47.10 spid34s Setup step is FORCE copying system data file 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\Binn\Templates\model_replicatedmaster.ldf' to 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\DATA\model_replicatedmaster.ldf'.

2025-07-05 13:38:47.10 spid34s Setup step is FORCE copying system data file 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\Binn\Templates\model_msdbdata.mdf' to 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\DATA\model_msdbdata.mdf'.

2025-07-05 13:38:47.10 spid39s The resource database build version is 16.00.1135. This is an informational message only. No user action is required.

2025-07-05 13:38:47.11 spid34s Setup step is FORCE copying system data file 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\Binn\Templates\model_msdblog.ldf' to 'C:\Program Files\Microsoft SQL Server\MSSQL16.KEVBINGA\MSSQL\DATA\model_msdblog.ldf'.

2025-07-05 13:38:47.11 spid34s Starting up database 'model_replicatedmaster'.

2025-07-05 13:38:47.12 spid39s Starting up database 'model'.

2025-07-05 13:38:47.12 spid39s Error: 17204, Severity: 16, State: 1.

2025-07-05 13:38:47.12 spid39s FCB::Open failed: Could not open file D:\dbs\sh\5uj5\1008_054209\cmd\11\obj\x64retail\sql\mkmastr\databases\mkmastr.nativeproj\model.mdf for file number 1. OS error: 3(The system cannot find the path specified.).

2025-07-05 13:38:47.12 spid39s Error: 5120, Severity: 16, State: 101.

2025-07-05 13:38:47.12 spid39s Unable to open the physical file "D:\dbs\sh\5uj5\1008_054209\cmd\11\obj\x64retail\sql\mkmastr\databases\mkmastr.nativeproj\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".

2025-07-05 13:38:47.12 spid39s Error: 17207, Severity: 16, State: 1.

2025-07-05 13:38:47.12 spid39s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'D:\dbs\sh\5uj5\1008_054209\cmd\11\obj\x64retail\sql\mkmastr\databases\mkmastr.nativeproj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.

2025-07-05 13:38:47.12 spid39s File activation failure. The physical file name "D:\dbs\sh\5uj5\1008_054209\cmd\11\obj\x64retail\sql\mkmastr\databases\mkmastr.nativeproj\modellog.ldf" may be incorrect.

2025-07-05 13:38:47.12 spid39s Error: 945, Severity: 14, State: 2.

2025-07-05 13:38:47.12 spid39s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.

SQL Server Database Engine
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 122K Reputation points MVP Volunteer Moderator
    2025-07-06T08:27:52.88+00:00

    I can see in the errorlog files, that your original problem was due to a known issue where Windows 11 reports a disk-sector size that SQL Server chokes on. It seems that you found that a possible workaround is to apply the trace flag 1800.

    Unfortunately, after these multiple attempts Setup gets a little confused. There is one point where Setup starts SQL Server to copy the templates for the system databases in place, and this step also change the locations in the master database. To do this, it starts SQL Server with a number of trace flags. And for your first attempts, it did use those trace flags, but after a while if "forgot" about them. This means that you have a master database with the values from the template, and this where the funny paths on D: come from.

    I think the best bet is to uninstall the SQL 2022 instance and start over. This article can be helpful: https://www.sql-easy.com/learn/how-to-uninstall-sql-server/.

    You said that you were able to install SQL 2019 successfully. I guess that you applied any of the workarounds in this article before you did anything else, so you started with a clean slate.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.