# Syncthing not starting anymore with File not found error

**URL:** https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151
**Category:** Support
**Created:** [July 27, 2021, 2:14pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151 "2021-07-27T14:14:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kilrah](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kilrah/32/10497_2.png) [@kilrah](https://forum.syncthing.net/u/kilrah)
#### Post date: [July 27, 2021, 2:14pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/1 "2021-07-27T14:14:47Z")

</div>

I have Syncthing running on multiple Windows machines using SyncTrayzor with no issues. But on one of them I noticed the sync wasn’t running anymore since a few weeks, it turns out that Syncthing fails to start every time with the following log output:

[syncthing.log](https://forum.syncthing.net/uploads/short-url/nXGNC9Tqp3EkCtpHX5x3nRq3xcv.log) (1.7 KB)

Starting Syncthing.exe from command line does the same. I uninstalled SyncTrayzor, cleaned all leftovers from %appData% and reinstalled, also replaced the SyncTrayzor-distributed syncthing.exe with latest 1.18.0 from github with no change. I created a whole new user account to try there on a clean sheet, same issue.

Any idea what the problem could be?

OS: Win10 21H1, 19043.1110.

---

<div class="post-metadata">

### Author: ![ProactiveServices](https://forum.syncthing.net/user_avatar/forum.syncthing.net/proactiveservices/32/2386_2.png) [@ProactiveServices](https://forum.syncthing.net/u/ProactiveServices)
#### Post date: [July 27, 2021, 4:45pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/2 "2021-07-27T16:45:42Z")

</div>

If you have any other log files they may help suggest what initially caused them problem. The log you attached isn’t very informative. My guess would be data corruption/loss on your storage device.

To make sure that you’re running a clean installation I’d suggest to uninstall SyncTrazyor, then clean the leftovers from %appdata% and %localappdata% (SyncTrayzor and Syncthing).

Once that’s done, reboot and reinstall the latest version of SyncTrayzor.

---

<div class="post-metadata">

### Author: ![kilrah](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kilrah/32/10497_2.png) [@kilrah](https://forum.syncthing.net/u/kilrah)
#### Post date: [July 27, 2021, 5:02pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/3 "2021-07-27T17:02:53Z")

</div>

Unfortunately don’t have any earlier logs since this stopped working weeks ago and those that were still there were just endless repeats of what I posted above. Here’s the synctrayzor output and a log from syncthing with STTRACE=app,walkfs

[SyncTrayzor.log](https://forum.syncthing.net/uploads/short-url/k6UG4WGvIlibHMMCyaCRRO0zT6O.log) (5.1 KB) [syncthing.log](https://forum.syncthing.net/uploads/short-url/7xZb1ZmsTbrG6NMI23koxw4phjD.log) (2.6 KB)

C:\Users\temp\AppData\Local\Syncthing\syncthing.log is created but stays empty.

> [@ProactiveServices](#):
>
> To make sure that you’re running a clean installation I’d suggest to uninstall SyncTrazyor, then clean the leftovers from %appdata% and %localappdata% (SyncTrayzor and Syncthing).
> 
> Once that’s done, reboot and reinstall the latest version of SyncTrayzor.

Yeah as mentioned in the previous post I’ve already done just that, and even a new user account in case it was something with the Windows user profile… ☹

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 27, 2021, 5:25pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/4 "2021-07-27T17:25:08Z")

</div>

Is the binary still there after you try to launch it?

To me it feels like the antivirus is getting in the way as it seems files go missing as you start it.

Did you try just launching the process via cmd without synctrayzor? Is the panic the same?

---

<div class="post-metadata">

### Author: ![kilrah](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kilrah/32/10497_2.png) [@kilrah](https://forum.syncthing.net/u/kilrah)
#### Post date: [July 27, 2021, 5:29pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/5 "2021-07-27T17:29:22Z")

</div>

Yes the binary stays there, and the output above was from command line, same.

Hadn’t thought about AV but I don’t have any other than Windows Defender, I just tried disabling it and no change ☹

I’ve also done the lot of scandisk, DISM /Online /Cleanup-Image /RestoreHealth and sfc /scannow in case something was wrong at system level…

Really at a loss on this one.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 27, 2021, 5:38pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/6 "2021-07-27T17:38:18Z")

</div>

Sorry, but no idea either.

I can’t think of any suggestions other than starting to add print statements to the code and compiling a custom version to see and whats happening here.

Feels like os.Args somehow ends up potentially empty?

---

<div class="post-metadata">

### Author: ![kilrah](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kilrah/32/10497_2.png) [@kilrah](https://forum.syncthing.net/u/kilrah)
#### Post date: [July 28, 2021, 3:14pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/7 "2021-07-28T15:14:40Z")

</div>

Wow, found it by chance. Was going to set up to build on that machine, and when going to clone the repo git happened to also have broken, also with a null-related error - and searching for that I found this:

> <https://stackoverflow.com/questions/37069502/fatal-open-dev-null-or-dup-failed-no-such-file-or-directory>

I did indeed have the Null service missing for some reason, and reinstating it fixed both git and syncthing.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [August 27, 2021, 3:15pm UTC](https://forum.syncthing.net/t/syncthing-not-starting-anymore-with-file-not-found-error/17151/8 "2021-08-27T15:15:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
