<!--
Thanks for reporting issues back to Nextcloud!
This is the **issue trac…ker of Nextcloud**, please do NOT use this to get answers to your questions or get help for fixing your installation. You can find help debugging your system on our home user forums: https://help.nextcloud.com or, if you use Nextcloud in a large organization, ask our engineers on https://portal.nextcloud.com. See also https://nextcloud.com/support for support options.
Guidelines for submitting issues:
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Go to https://github.com/nextcloud and type any word in the top search/command bar. You probably see something like "We couldn’t find any repositories matching ..." then click "Issues" in the left navigation.
- You can also filter by appending e. g. "state:open" to the search string.
- More info on search syntax within github: https://help.github.com/articles/searching-issues
* Please fill in as much of the template below as possible. The logs are absolutely crucial for the developers to be able to help you. Expect us to quickly close issues without logs or other information we need.
* Also note that we have a https://nextcloud.com/contribute/code-of-conduct/ that applies on Github. To summarize it: be kind. We try our best to be nice, too. If you can't be bothered to be polite, please just don't bother to report issues as we won't feel motivated to help you.
-->
### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.
### Expected behaviour
Windows Defender blocks file access. Nextcloud Desktop Client makes error notice and go on with other files.
### Actual behaviour
Nextcloud Desktop Client crashes and closes.
### Steps to reproduce
Just run sync and let it process the file that Windows Defender do not like.
### Client configuration
Client version:
Desktop Client 3.3.2
Operating system:
Windows 10 Pro 21H1
OS language:
English
Installation path of client:
Default - Program Files.
### Server configuration
Nextcloud version: 22.1.1
Storage backend:
Hard drive.
### Logs
1. Client logfile:
```
2021-08-31 08:03:00:234 [ info nextcloud.sync.checksums ]: Computing "SHA1" checksum of "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/.CH341A.exe.~2e39" in a thread
2021-08-31 08:03:00:234 [ debug nextcloud.sync.networkjob ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job OCC::GETFileJob finished for "/UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:03:00:234 [ debug nextcloud.sync.networkjob.get ] [ OCC::GETFileJob::slotReadyRead ]: Actually finished!
2021-08-31 08:03:00:236 [ debug nextcloud.gui.folderwatcher ] [ OCC::FolderWatcher::pathIsIgnored ]: * Ignoring file "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/.CH341A.exe.~2e39"
2021-08-31 08:03:00:251 [ warning nextcloud.sync.checksums ]: Could not open file "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/.CH341A.exe.~2e39" for reading to compute a checksum "Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:03:00:251 [ debug nextcloud.sync.propagator ] [ OCC::OwncloudPropagator::localFileNameClash ]: CaseClashCheck for "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:03:00:254 [ warning nextcloud.sync.filesystem ]: Renaming temp file to final failed: "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:03:00:254 [ warning nextcloud.sync.propagator.download ]: "Rename failed: C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/.CH341A.exe.~2e39 => C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:03:00:256 [ debug nextcloud.sync.vfs.cfapi.wrapper ] [ `anonymous-namespace'::cfApiFetchDataCallback ]: Fetch data callback called. File size: 666722
2021-08-31 08:03:37:329 [ warning nextcloud.gui.folderwatcher ]: Error converting file name "\\\\?\\C:\\Users\\john.doe\\Nextcloud\\john.doe\\UserFiles\\data\\CH341A-programmer-software-1.17\\.CH341A.exe.~2e39" to full length, keeping original name. "WindowsError: 5: Access is denied."
2021-08-31 08:03:37:329 [ warning nextcloud.gui.folderwatcher ]: Error converting file name "\\\\?\\C:\\Users\\john.doe\\Nextcloud\\john.doe\\UserFiles\\data\\CH341A-programmer-software-1.17\\.CH341A.exe.~2e39" to full length, keeping original name. "WindowsError: 2: The system cannot find the file specified."
2021-08-31 08:04:00:818 [ info nextcloud.sync.vfs.cfapi.wrapper ]: Cancel fetch data of "C:\\Users\\john.doe\\Nextcloud\\john.doe\\UserFiles\\data\\CH341A-programmer-software-1.17\\CH341A.exe"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT lastTryEtag, lastTryModtime, retrycount, errorstring, lastTryTime, ignoreDuration, renameTarget, errorCategory, requestId FROM blacklist WHERE path=?1 COLLATE NOCASE"
2021-08-31 08:04:00:819 [ info nextcloud.sync.database ]: Setting blacklist entry for "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" 2 "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software." 1630389840 0 1334790020 "05dd924419f4ecb8aff63a58decae693" "" 0
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 2 "05dd924419f4ecb8aff63a58decae693"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 3 1334790020
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 4 2
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 5 "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 6 1630389840
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 7 0
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 8 ""
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 9 0
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 10 "51c39fed-eb73-47bf-8a3f-81a136d90605"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "INSERT OR REPLACE INTO blacklist (path, lastTryEtag, lastTryModtime, retrycount, errorstring, lastTryTime, ignoreDuration, renameTarget, errorCategory, requestId) VALUES ( ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10)"
2021-08-31 08:04:00:819 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: Last exec affected 1 rows.
2021-08-31 08:04:00:819 [ warning nextcloud.sync.propagator ]: escalating soft error on "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" to normal error, 200
2021-08-31 08:04:00:819 [ warning nextcloud.sync.propagator ]: Could not complete propagation of "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" by OCC::PropagateDownloadFile(0x1eb64cdb0e0) with status OCC::SyncFileItem::NormalError and error: "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:04:00:820 [ debug nextcloud.sync.statustracker ] [ OCC::SyncFileStatusTracker::slotItemCompleted ]: Item completed "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" OCC::SyncFileItem::NormalError CSyncEnums::CSYNC_INSTRUCTION_SYNC
2021-08-31 08:04:00:820 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 7364631721347695910
2021-08-31 08:04:00:820 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:820 [ debug nextcloud.gui.folderwatcher ] [ OCC::WatcherThread::watchChanges ]: Skipping syncing of "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17"
2021-08-31 08:04:00:820 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -7655300281183728328
2021-08-31 08:04:00:820 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 3513516091951926693
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 6216845928477768524
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -9159032477202008680
2021-08-31 08:04:00:821 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:822 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -95122350725629113
2021-08-31 08:04:00:822 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:822 [ warning nextcloud.gui.activity ]: Item "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" retrieved resulted in "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:04:00:822 [ warning nextcloud.gui.activity ]: Item "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe" retrieved resulted in error "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:04:00:822 [ info nextcloud.gui.activity ]: Error successfully added to the notification list: "WindowsError: e1: Operation did not complete successfully because the file contains a virus or potentially unwanted software."
2021-08-31 08:04:00:834 [ warning nextcloud.sync.pushnotifications ]: Websocket error on with account QUrl("https://foo.bar.com") QAbstractSocket::RemoteHostClosedError
2021-08-31 08:04:00:834 [ info nextcloud.sync.pushnotifications ]: Close websocket for account QUrl("https://foo.bar.com")
2021-08-31 08:04:00:835 [ info nextcloud.sync.pushnotifications ]: Disconnected from websocket for account QUrl("https://foo.bar.com")
2021-08-31 08:04:00:835 [ info nextcloud.sync.account ]: Disable push notifications object because authentication failed or connection lost
2021-08-31 08:04:00:835 [ debug nextcloud.gui.activity ] [ OCC::User::setNotificationRefreshInterval ]: Starting Notification refresh timer with 300 sec interval
2021-08-31 08:04:00:842 [ info nextcloud.sync.accessmanager ]: 2 "" "https://foo.bar.com/ocs/v1.php/cloud/user?format=json" has X-Request-ID "dfdffa8a-3148-4c20-892f-af98d95664c4"
2021-08-31 08:04:00:842 [ debug nextcloud.sync.cookiejar ] [ OCC::CookieJar::cookiesForUrl ]: QUrl("https://foo.bar.com/ocs/v1.php/cloud/user?format=json") requests: (QNetworkCookie("__Host-nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=foo.bar.com; path=/"), QNetworkCookie("__Host-nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=foo.bar.com; path=/"), QNetworkCookie("oc_sessionPassphrase=FkXMVwL4vyzbxsa%2BWu0dw3o0znx6UbIg0d%2BmWIz5YrNjwkT0eFsovJdHrC6sTRiQHbhb2%2FnEsIsKIIZLxMu7CJvjZo9L1uPPv2k6uqSYIzKcPI8PGajVJYdR81MUKjnJ; secure; HttpOnly; domain=foo.bar.com; path=/"), QNetworkCookie("oc7h07mki9kb=f3fojfo409uflcricg7obsj75a; secure; HttpOnly; domain=foo.bar.com; path=/"))
2021-08-31 08:04:00:843 [ info nextcloud.sync.networkjob ]: OCC::JsonApiJob created for "https://foo.bar.com" + "ocs/v1.php/cloud/user" "OCC::UserInfo"
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Etag poll timer timeout
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Folders to sync: 2
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Number of folders that don't use push notifications: 2
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Run etag job on folder OCC::Folder(0x1eb64150090)
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Can not run etag job: Sync is running
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Run etag job on folder OCC::Folder(0x1eb614c0c80)
2021-08-31 08:04:00:843 [ info nextcloud.gui.folder.manager ]: Can not run etag job: Folder is alreday scheduled
2021-08-31 08:04:00:843 [ debug nextcloud.sync.connectionvalidator ] [ OCC::ConnectionValidator::checkAuthentication ]: # Check whether authenticated propfind works.
2021-08-31 08:04:00:843 [ info nextcloud.sync.accessmanager ]: 6 "PROPFIND" "https://foo.bar.com/remote.php/dav/files/john.doe/" has X-Request-ID "196b7ae7-0486-46ca-870b-c7585a71ca29"
2021-08-31 08:04:00:843 [ debug nextcloud.sync.cookiejar ] [ OCC::CookieJar::cookiesForUrl ]: QUrl("https://foo.bar.com/remote.php/dav/files/john.doe/") requests: (QNetworkCookie("__Host-nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=foo.bar.com; path=/"), QNetworkCookie("__Host-nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=foo.bar.com; path=/"), QNetworkCookie("oc_sessionPassphrase=FkXMVwL4vyzbxsa%2BWu0dw3o0znx6UbIg0d%2BmWIz5YrNjwkT0eFsovJdHrC6sTRiQHbhb2%2FnEsIsKIIZLxMu7CJvjZo9L1uPPv2k6uqSYIzKcPI8PGajVJYdR81MUKjnJ; secure; HttpOnly; domain=foo.bar.com; path=/"), QNetworkCookie("oc7h07mki9kb=f3fojfo409uflcricg7obsj75a; secure; HttpOnly; domain=foo.bar.com; path=/"))
2021-08-31 08:04:00:844 [ info nextcloud.sync.networkjob ]: OCC::PropfindJob created for "https://foo.bar.com" + "/" "OCC::ConnectionValidator"
2021-08-31 08:04:00:844 [ debug nextcloud.gui.folderwatcher ] [ OCC::FolderWatcher::pathIsIgnored ]: * Ignoring file "C:/Users/john.doe/Nextcloud/john.doe/UserFiles/data/CH341A-programmer-software-1.17/.CH341A.exe.~2e39"
2021-08-31 08:04:00:844 [ info nextcloud.sync.vfs.cfapi ]: Received request to hydrate "C:\\Users\\john.doe\\Nextcloud\\john.doe\\UserFiles\\data\\CH341A-programmer-software-1.17\\CH341A.exe" "1d79d24c4b39a3c"
2021-08-31 08:04:00:844 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -2988282413431299074
2021-08-31 08:04:00:844 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ':' || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE phash=?1"
2021-08-31 08:04:00:844 [ info nextcloud.gui.folder ]: folder "1" Terminating!
2021-08-31 08:04:00:844 [ info nextcloud.sync.engine ]: Aborting sync
2021-08-31 08:04:00:844 [ info nextcloud.gui.folder.manager ]: >========== Sync started for folder [Nextcloud\john.doe] of account [john.doe@foo.bar.com] with remote [https://foo.bar.com/remote.php/dav/files/john.doe/]
2021-08-31 08:04:00:844 [ debug nextcloud.gui.socketapi ] [ OCC::SocketApi::slotUpdateFolderView ]: Not sending UPDATE_VIEW for "1" because status() is OCC::SyncResult::SyncRunning
2021-08-31 08:04:00:847 [ info nextcloud.gui.application ]: Sync state changed for folder "https://foo.bar.com/remote.php/dav/files/john.doe/" : "Sync Running"
2021-08-31 08:04:00:848 [ info nextcloud.sync.vfs.hydrationjob ]: Server ready, waiting for connections "1d79d24c4b39a3c:cancellation" "C:/Users/john.doe/Nextcloud/john.doe/" "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:04:00:848 [ info nextcloud.sync.vfs.hydrationjob ]: Server ready, waiting for connections "1d79d24c4b39a3c" "C:/Users/john.doe/Nextcloud/john.doe/" "UserFiles/data/CH341A-programmer-software-1.17/CH341A.exe"
2021-08-31 08:04:00:848 [ info nextcloud.sync.vfs.cfapi.wrapper ]: VFS replied for hydration of "C:\\Users\\john.doe\\Nextcloud\\john.doe\\UserFiles\\data\\CH341A-programmer-software-1.17\\CH341A.exe" "1d79d24c4b39a3c" status was: true
2021-08-31 08:04:00:849 [ info nextcloud.sync.credentials.webflow ]: request finished
2021-08-31 08:04:00:849 [ warning nextcloud.sync.checksums ]: Failed to parse ""
2021-08-31 08:04:00:853 [ info nextcloud.sync.vfs.cfapi ]: Cancel hydration
```
<no more logs - client crashes and closes>