You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WARNING: Error updating metadata for %q at database commit: %v - After Update to v1.22.0 (Windows and Linux) #8583
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
It's definitely a logging error, that looks like a Warnln where it should be a Warnf: #8584
As to what is happening - hard to say as there actual error isn't printed. What failes is an LStat on a finished file in the puller. I don't really understand how that owuld happen, given the puller just created that file. Unless something else happened at the same time.
Hi,
It is not syncing anymore... The file mention in the line, is not written to the destination directory.
I have different machinetypes:
Windows: 10 (Running inside Synctraycor)
v1.22.0, Windows (64-bit Intel/AMD)
Synology NAS:
v1.22.0, Linux (64-bit Intel/AMD)
(My Android Clients all Running V1.21.0)
[WI6RE] 2022/10/05 18:45:02 WARNING: Error updating metadata for %q at database commit: %v Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:02 WARNING: Error updating metadata for %q at database commit: %v Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:10 WARNING: Error updating metadata for %q at database commit: %v _Sync\1817\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\1817\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:13 WARNING: Error updating metadata for %q at database commit: %v _Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:13 WARNING: Error updating metadata for %q at database commit: %v _Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:16 INFO: Puller (folder "Share-RSSMobile3" (RSSMobile3), item "Radio\_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3"): syncing: delete file: file modified but not rescanned; will try again later
No that could not be:
WI6RE] 2022/10/05 19:17:06 WARNING: Error updating metadata for %q at database commit: %v Radio\09_Auto\36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio\09_Auto\36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3: Das System kann die angegebene Datei nicht finden.
The FIle is there :-)
I have this error also on Linux
And again.. I did NOT had this Warning befor the Update to v1.21.
Yeah, it shouldn't run for deleted files anyway. Can you enable STTRACE=model (available in the log screen in the GUI too) and see what it does prior to this error?
Looking up that error gives a truck load of totally unrelated possible causes (basically variants of windows is broken), with the possible exception of anti virus. So if you have that, could you check if disabling helps.
On a secondary note:
I am not sure if warning on any lstat error is a good way of notifying users. Can become very noisy when e.g. something global failed and causes an entire batch to error. Maybe the ctime update should happen when we finish an item instead, and an error handled like any other pull error.
"Finish" was ambiguous indeed: I meant finishing as in performFinish, right after the we close and rename the temp file and do the metadata updates. Now it's done in the db updater routine, i.e. in delayed batches and where no other filesystem interactions except syncing directories occurs.
@imsodin Well, putting the job on the dbUpdateChan is the last thing that happens in performFinish, and then the metadata update happens in the db updater before the update is batched, so I think it's functionally equivalent. There's not much of a delay from one step to the other. I think not everything goes through performFinish (shortcuts etc) hence the current placement.
@Backi67 yes, though it doesn't make it much clearer unfortunately. We have
[WI6RE] 2022/10/05 21:16:23.962958 folder_sendrecv.go:1209: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 taking shortcut on Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt
[WI6RE] 2022/10/05 21:16:23.963473 folder_sendrecv.go:1795: WARNING: Error updating metadata for %q at database commit: %v Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt CreateFile \?\C:\CloudStation\RSSMobile\Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt: Das System kann die angegebene Datei nicht finden.
where we first "take a shortcut" (just adjust some permissions or time on an existing file on disk without altering content) and then one millisecond later it apparently doesn't exist. I can't explain it.
(It's especially ironic because in the end, on Windows, getting the inode change time is a no-op because it's a non-concept, but we don't discover that until after we've done the Lstat that fails here...)
2022-10-10 13:15:01: Error updating metadata for %q at database commit: %v xxx\locks\1_1_ace88ca3468c4ea39c8f455988117a7a.json CreateFile \\?\C:\xxx\locks\1_1_ace88ca3468c4ea39c8f455988117a7a.json: The system cannot find the file specified.
The file doesn't exist anymore. I can only add that these json files in the locks directory belong to Joplin (a note-taking application) and seem to be created temporarily only while Joplin is synchronising its state with the filesystem, and then they are deleted automatically.
Is there anything that I could provide to help with this? Unfortunately, I've got only the normal log from that time. Also, I'd never seen this error message before.
Syncthing is also v1.22.0, but the OS is Windows 10 in my case.
@tomasz1986 happening once because the file actually doesn't exist because Joplin deleted the file while we were syncing or scanning it is fine. Happening all the time while the file actually does exist on disk is not fine. We should probably tone down the warning to info, once we've determined what's going on with the OP, if they are still here.
I'm sorry for commenting on a closed issue, but I seem to still encounter the error/notification from time to time (about the quickly changing Joplin files). If this isn't a problem per se, is it really necessary to even notify the user about it?
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Activity
lib/model: Fix warning log statement (ref syncthing#8583)
imsodin commentedon Oct 5, 2022
It's definitely a logging error, that looks like a
Warnlnwhere it should be aWarnf: #8584As to what is happening - hard to say as there actual error isn't printed. What failes is an
LStaton a finished file in the puller. I don't really understand how that owuld happen, given the puller just created that file. Unless something else happened at the same time.What system are you on?
Backi67 commentedon Oct 5, 2022
Hi,
It is not syncing anymore... The file mention in the line, is not written to the destination directory.
I have different machinetypes:
Windows: 10 (Running inside Synctraycor)
v1.22.0, Windows (64-bit Intel/AMD)
Synology NAS:
v1.22.0, Linux (64-bit Intel/AMD)
(My Android Clients all Running V1.21.0)
lib/model: Fix warning log statement (ref #8583) (#8584)
calmh commentedon Oct 5, 2022
What is the actual file and error? Should be printed after the error, even with the bad formatting
Backi67 commentedon Oct 5, 2022
[WI6RE] 2022/10/05 18:45:02 WARNING: Error updating metadata for %q at database commit: %v Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:02 WARNING: Error updating metadata for %q at database commit: %v Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:10 WARNING: Error updating metadata for %q at database commit: %v _Sync\1817\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\1817\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:13 WARNING: Error updating metadata for %q at database commit: %v _Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zentralschweiz_05-10-2022-1730.1664985707556.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:13 WARNING: Error updating metadata for %q at database commit: %v _Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 18:45:16 INFO: Puller (folder "Share-RSSMobile3" (RSSMobile3), item "Radio\_Sync\2419\Regionaljournal-Zuerich-Schaffhausen_05-10-2022-1730.1664985848086.mp3"): syncing: delete file: file modified but not rescanned; will try again later
calmh commentedon Oct 5, 2022
I guess it tries to do the lookup for a deleted file. That's not great, and will of course fail...
Backi67 commentedon Oct 5, 2022
No that could not be:
WI6RE] 2022/10/05 19:17:06 WARNING: Error updating metadata for %q at database commit: %v Radio\09_Auto\36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio\09_Auto\36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3: Das System kann die angegebene Datei nicht finden.
The FIle is there :-)
I have this error also on Linux
And again.. I did NOT had this Warning befor the Update to v1.21.
calmh commentedon Oct 5, 2022
Yeah, it shouldn't run for deleted files anyway. Can you enable
STTRACE=model(available in the log screen in the GUI too) and see what it does prior to this error?imsodin commentedon Oct 5, 2022
Looking up that error gives a truck load of totally unrelated possible causes (basically variants of windows is broken), with the possible exception of anti virus. So if you have that, could you check if disabling helps.
On a secondary note:
I am not sure if warning on any lstat error is a good way of notifying users. Can become very noisy when e.g. something global failed and causes an entire batch to error. Maybe the ctime update should happen when we finish an item instead, and an error handled like any other pull error.
calmh commentedon Oct 5, 2022
This is when we finish an item though, or I misunderstand you.
imsodin commentedon Oct 5, 2022
"Finish" was ambiguous indeed: I meant finishing as in
performFinish, right after the we close and rename the temp file and do the metadata updates. Now it's done in the db updater routine, i.e. in delayed batches and where no other filesystem interactions except syncing directories occurs.Backi67 commentedon Oct 5, 2022
I hope, this is what you asked for:
[WI6RE] 2022/10/05 21:16:17.394448 model.go:925: DEBUG: model@0xc000152ea0 Completion(KIR4WSN, "RSSMobile3"): map[completion:70.75188078450381 globalBytes:175133670728 globalItems:2224 needBytes:51223304801 needDeletes:173 needItems:224 remoteState:unknown sequence:5451]
[WI6RE] 2022/10/05 21:16:17.394448 model.go:925: DEBUG: model@0xc000152ea0 Completion(LLSRBK3, "RSSMobile3"): map[completion:100 globalBytes:175133670728 globalItems:2224 needBytes:0 needDeletes:0 needItems:0 remoteState:valid sequence:58974]
[WI6RE] 2022/10/05 21:16:17.394448 model.go:925: DEBUG: model@0xc000152ea0 Completion(XKWI2XJ, "RSSMobile3"): map[completion:100 globalBytes:175133670728 globalItems:2224 needBytes:0 needDeletes:0 needItems:0 remoteState:valid sequence:58251]
[WI6RE] 2022/10/05 21:16:17.394448 model.go:925: DEBUG: model@0xc000152ea0 Completion(ZGQCBS2, "RSSMobile3"): map[completion:100 globalBytes:175133670728 globalItems:2224 needBytes:0 needDeletes:0 needItems:0 remoteState:valid sequence:64571]
[WI6RE] 2022/10/05 21:16:23.959995 model.go:1126: DEBUG: Index update (in): XKWI2XJ / "RSSMobile3": 4 files
[WI6RE] 2022/10/05 21:16:23.961294 model.go:1126: DEBUG: Index update (in): ZGQCBS2 / "RSSMobile3": 4 files
[WI6RE] 2022/10/05 21:16:23.961294 folder_sendrecv.go:161: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 pulling
[WI6RE] 2022/10/05 21:16:23.961812 folder_sendrecv.go:255: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 copiers: 2 pullerPendingKiB: 32768
[WI6RE] 2022/10/05 21:16:23.961849 folder_sendrecv.go:1209: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 taking shortcut on Radio\09_Auto*36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3*
[WI6RE] 2022/10/05 21:16:23.962958 folder_sendrecv.go:1209: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 taking shortcut on Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt
[WI6RE] 2022/10/05 21:16:23.963473 folder_sendrecv.go:1795: WARNING: Error updating metadata for %q at database commit: %v Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt CreateFile \?\C:\CloudStation\RSSMobile\Radio\9999_Sync\2022_10_05-DESKTOP-19_15.txt: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 21:16:23.963473 folder_sendrecv.go:1209: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 taking shortcut on Radio_Sync\0218\Echo-der-Zeit_05-10-2022-1800.1664988694633.mp3
[WI6RE] 2022/10/05 21:16:23.964033 folder_sendrecv.go:1795: WARNING: Error updating metadata for %q at database commit: %v Radio_Sync\0218\Echo-der-Zeit_05-10-2022-1800.1664988694633.mp3 CreateFile \?\C:\CloudStation\RSSMobile\Radio_Sync\0218\Echo-der-Zeit_05-10-2022-1800.1664988694633.mp3: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 21:16:23.964033 folder_sendrecv.go:1209: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 taking shortcut on TV\ZZ_Sync\2022_10_05-DESKTOP-20_15.txt
[WI6RE] 2022/10/05 21:16:23.964587 folder_sendrecv.go:1795: WARNING: Error updating metadata for %q at database commit: %v TV\ZZ_Sync\2022_10_05-DESKTOP-20_15.txt CreateFile \?\C:\CloudStation\RSSMobile\TV\ZZ_Sync\2022_10_05-DESKTOP-20_15.txt: Das System kann die angegebene Datei nicht finden.
[WI6RE] 2022/10/05 21:16:23.973240 folder_sendrecv.go:194: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 changed 4 on try 1
[WI6RE] 2022/10/05 21:16:23.973240 folder_sendrecv.go:255: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 copiers: 2 pullerPendingKiB: 32768
[WI6RE] 2022/10/05 21:16:23.974365 folder_sendrecv.go:194: DEBUG: sendreceive/RSSMobile3@0xc0042cb400 changed 0 on try 2
36_Persoen__2022-09-18_Persoenlich_18-09-2022-1003.1663492383952.mp3: Was on my post 2 hours ago :-(
calmh commentedon Oct 5, 2022
@imsodin Well, putting the job on the dbUpdateChan is the last thing that happens in performFinish, and then the metadata update happens in the db updater before the update is batched, so I think it's functionally equivalent. There's not much of a delay from one step to the other. I think not everything goes through performFinish (shortcuts etc) hence the current placement.
@Backi67 yes, though it doesn't make it much clearer unfortunately. We have
where we first "take a shortcut" (just adjust some permissions or time on an existing file on disk without altering content) and then one millisecond later it apparently doesn't exist. I can't explain it.
(It's especially ironic because in the end, on Windows, getting the inode change time is a no-op because it's a non-concept, but we don't discover that until after we've done the Lstat that fails here...)
calmh commentedon Oct 5, 2022
Can we get some logs from there?
tomasz1986 commentedon Oct 10, 2022
Is this the same error here just from today?
The file doesn't exist anymore. I can only add that these
jsonfiles in thelocksdirectory belong to Joplin (a note-taking application) and seem to be created temporarily only while Joplin is synchronising its state with the filesystem, and then they are deleted automatically.Is there anything that I could provide to help with this? Unfortunately, I've got only the normal log from that time. Also, I'd never seen this error message before.
Syncthing is also v1.22.0, but the OS is Windows 10 in my case.
calmh commentedon Oct 11, 2022
@tomasz1986 happening once because the file actually doesn't exist because Joplin deleted the file while we were syncing or scanning it is fine. Happening all the time while the file actually does exist on disk is not fine. We should probably tone down the warning to info, once we've determined what's going on with the OP, if they are still here.
calmh commentedon Dec 6, 2022
This looks not actionable any more to me. The error is improved, various metadata syncing things have been improved.
tomasz1986 commentedon Dec 15, 2022
I'm sorry for commenting on a closed issue, but I seem to still encounter the error/notification from time to time (about the quickly changing Joplin files). If this isn't a problem per se, is it really necessary to even notify the user about it?