question

ChrisMiller-7178 avatar image
0 Votes"
ChrisMiller-7178 asked GaryNebbett commented

Offline Files

Hi Folks,

When I try to start the service "CSCService", I get a failure, "The offline files service has terminated with the following error: The system cannot find the path specified."

It is not clear the specific path, since the error message does not explain which path cannot be found, however "C:\Windows\CSC" is there, and the registry entry HKLM/SYSTEM/CurrentControlSet/Services/CSCSerivce mentions nothing except C:\Windows\System32, which, of course exists and can be found.

Is there a convenient way to reset -- maybe uninstall and re-install this service?

Thanks for the help,

Chris.

windows-server-infrastructure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChrisMiller-7178 avatar image
0 Votes"
ChrisMiller-7178 answered GaryNebbett commented

@GaryNebbett,

I seem to have stumbled into a working Sync. I credit the "System Reset", but there is much more to be done after that. The service must be changed from "Disabled" to "Automatic" and then I had the option for each folder to "Make Available Offline" Ta-Da!

Thanks for the help.

Chris.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @ChrisMiller-7178,

Good that things are working. Needing to manually changing a service configuration from "Disabled" to some other state is a sign that something is not quite right. As Shakespeare wrote, "There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy." If this did the trick for you, then great - even if I don't understand why :-)

Gary

0 Votes 0 ·
ChrisMiller-7178 avatar image
0 Votes"
ChrisMiller-7178 answered

@GaryNebbett

This tablet is a member of a Windows Domain, so I reset the tablet to factory default. What you see is an unmolested tablet as a member of a domain with re-directed profile folders, which works. It is these re-directed profile folders that need to be sync'd. Since there is no interference from Group Policy, this is more and more of a mystery.




Driver -- Locked and loaded:

87082-csc-driver.png


Group Policies: None.

87054-gpo-computer.png

86978-gpo-user.png



csc-driver.png (14.4 KiB)
gpo-computer.png (87.5 KiB)
gpo-user.png (52.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChrisMiller-7178 avatar image
0 Votes"
ChrisMiller-7178 answered GaryNebbett commented

synccenter.png (26.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @ChrisMiller-7178,

That is a partial explanation; "sc query csc" probably shows that the "Offline Files Driver" is not running too.

I notice that the "Enable offline files" button is disabled - is that just because of the rights (or lack thereof) of the account that you used to make the screen snapshot?

Gary

0 Votes 0 ·

@GaryNebbett

That is a partial explanation; "sc query csc" probably shows that the "Offline Files Driver" is not running too.

How do I check this?



I notice that the "Enable offline files" button is disabled - is that just because of the rights (or lack thereof) of the account that you used to make the screen snapshot?

No. That is not the result of any restrictions on the listing account; it is a system administrator account. That is a good statement of the problem.

Thanks for the help,

Chris.


0 Votes 0 ·

Hello @ChrisMiller-7178,

A way to check whether the "Offline Files Driver" is running is to type "sc query csc" (without quotes and followed by hitting the return key) in a command window.

The first thing that I would do would be to check whether there are any policies applied that might influence this behaviour:

87073-image.png

Gary

0 Votes 0 ·
image.png (110.9 KiB)
GaryNebbett avatar image
0 Votes"
GaryNebbett answered

Hello @ChrisMiller-7178,

There is more to starting Offline Files than just starting the CscService. What does the Control Panel "Sync Centre" "Offline Files" dialog say about the state of Offline Files?

86880-image.png

One possibility is that the path that could not be found is the path to the device object created by the "Offline Files Driver" (csc.sys).

Gary



image.png (52.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChrisMiller-7178 avatar image
0 Votes"
ChrisMiller-7178 answered

@CandyLuo-MSFT,

1.Make sure you have grant NT AUTHORITY\SYSTEM full permission on C:\Windwos\CSC and all of its subfolders. When domain admins already have access, you could use the GUI to grant necessary access to all objects in the directory tree C:\Windwos\CSC; you can later remove Admin permissions as well to get back the default security.

I do not find "NT_AUTHORITY\SYSTEM", but I do find "SYSTEM" and it has "Full Control". How do I grant "NT_AUTHORITY\SYSTEM" Full Control? I had to take ownership of the directory and subdirectories. Who should I restore ownership to?




2.Re-initializing CSC database:

To re-initializing, use the configure the registry as below and then restart the client

HKEY_LOCAL_MACHINE\System\CCS\Services\CSC\Parameters
Key Name: FormatDatabase
Key Type: DWORD
Key Value: 1

I have completed this, and re-booted, but nothing has happened. I still see artifacts in C:\Windows\CSC\v2.06... Additionally, the registry entry is still there and I'm under the impression that re-initializing the database will remove that entry. Can't I simply delete everything below C:\Windows\CSC\v2.0.6... ?

I have other observations:

After re-boot, the registry entry is still there and nothing has changed in C:\Windows\CSC\v2.06...
87032-registry.png


When I try to start the service from the command line:
86969-sc.png


When I try to start the service from services.msc
86900-servicesmsc.png



registry.png (38.7 KiB)
sc.png (20.7 KiB)
servicesmsc.png (22.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered

Hi,

What's the OS version of your windows? Please refer to the following steps:

1.Make sure you have grant NT AUTHORITY\SYSTEM full permission on C:\Windwos\CSC and all of its subfolders. When domain admins already have access, you could use the GUI to grant necessary access to all objects in the directory tree C:\Windwos\CSC; you can later remove Admin permissions as well to get back the default security.

2.Re-initializing CSC database:

To re-initializing, use the configure the registry as below and then restart the client

HKEY_LOCAL_MACHINE\System\CCS\Services\CSC\Parameters
Key Name: FormatDatabase
Key Type: DWORD
Key Value: 1

Note: Re- initializing CSC database will remove any un-synced data. Ensure share in sync or take a backup before re-initializing the cache.

Best Regards,
Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.