Bill-Stewart / SyncthingWindowsSetup

Syncthing Windows Setup
Mozilla Public License 2.0
1.26k stars 54 forks source link

Service keeps stopping on Windows 11 #18

Closed MickMorley closed 7 months ago

MickMorley commented 9 months ago

I have a few installs of SyncthingWindowsSetup but they are all on Windows 10 and only 1 on Windows 11.

The Windows 11 instance is giving me issues. I see the service (All Users install) starting up upon boot but then it crashes. I have already reinstalled it just to clear things out. But the same issue occurred.

I found the below in the event log. When I manually start up the service again, it stays running.

image image

Bill-Stewart commented 9 months ago

Unfortunately I'm not able to reproduce this. I have it installed on several different Windows 11 machines as a service using the Automatic (Delayed Start) startup type, and I don't have this problem on any of them. (I have noticed that this startup type means that it can take several minutes after a reboot for the system to actually start the service, but this is normal.)

Exception 0xC0000005 is an access violation. Is it possible to disable your antivirus/antimalware software and reboot to test to see if the problem reoccurs?

MickMorley commented 9 months ago

Thank you for testing. I wanted to get your input before I tried anything. I use simplewall and disable all windows firewall/services.

I will check to see if disabled/enabling any helps the issues.

I did find there is a recovery feature in Windows Services I was going to try first. Just have it restart after a failure.

image

Bill-Stewart commented 9 months ago

I use simplewall and disable all windows firewall/services.

What happens when you don't use simplewall and instead use the Windows firewall?

MickMorley commented 8 months ago

Hi @Bill-Stewart, I was able to test this by disabling simplewall and rebooting. With it disabled and Windows firewall enabled, the service still died a few minutes after bootup. It had the same error The Syncthing Service service terminated unexpectedly. It has done this 1 time(s).

I received this error as well before I tested disabling simplewall:

The Syncthing Service service terminated with the following service-specific error: 
Access is denied.
MickMorley commented 8 months ago

I was going to uninstall and try Non Administrative mode. Unless there is something else that you want me to test?

Bill-Stewart commented 8 months ago

Sure, feel free to try that, keeping in mind that the configuration data is not shared between the two kinds of installations; see Finding the Syncthing Configuration Folder in the documentation for more information.

You might also take a look at the syncthing.log file from your service instance (should be in the \ProgramData\Syncthing directory) as it may provide details about why your service is crashing.

Bill-Stewart commented 8 months ago

Following up: Does the Syncthing log file give any detail as to why your Syncthing service instance is crashing?

Bill-Stewart commented 7 months ago

Closing as not reproducible