ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
751 stars 61 forks source link

problems when using windows 11 as server #239

Closed zcy85611 closed 11 months ago

zcy85611 commented 1 year ago

when using windows 11 as server, it gives "/.root.history: The process cannot access the file because it is being used by another process"

the file can be uploads to folder where saves syncd file, but it can't be synced to remarkable

on the remarkable side, it gives the same notice

the only programme using this file is fakecloud, is it a bug or I use it in a wrong way? Is there anyone met this problem?


time="2023-05-28T13:00:42+08:00" level=info msg="[GIN] 2023/05/28 - 13:00:42 | 200 |      3.3834ms |       127.0.0.1 | POST     \"/sync/v2/signed-urls/uploads\""
time="2023-05-28T13:00:42+08:00" level=info msg=168525034296d1538a924cbfafe4bd75ec4124c6a6db9a2e7612ab05b251c0c57fb8109d81
time="2023-05-28T13:00:42+08:00" level=error msg="open data\\users\\admin\\sync/.root.history: The process cannot access the file because it is being used by another process."
time="2023-05-28T13:00:42+08:00" level=info msg="[GIN] 2023/05/28 - 13:00:42 | 500 |       689.1µs |       127.0.0.1 | PUT      \"/blobstorage?blobid=root&exp=1685250342&scope=write&signature=96d1538a924cbfafe4bd75ec4124c6a6db9a2e7612ab05b251c0c57fb8109d81&uid=admin\""
time="2023-05-28T13:00:42+08:00" level=info msg="[auth-middleware] UserId: admin deviceId: 5a968cd3-53f0-4a44-876e-b67786740032 newSync: true"
time="2023-05-28T13:00:42+08:00" level=info msg="[GIN] 2023/05/28 - 13:00:42 | 200 |      1.3693ms |       127.0.0.1 | POST     \"/sync/v2/signed-urls/uploads\""
time="2023-05-28T13:00:42+08:00" level=info msg=168525034296d1538a924cbfafe4bd75ec4124c6a6db9a2e7612ab05b251c0c57fb8109d81
time="2023-05-28T13:00:42+08:00" level=error msg="open data\\users\\admin\\sync/.root.history: The process cannot access the file because it is being used by another process."
ddvk commented 1 year ago

just a guess, could be the antivirus. the file is locked exclusively during updates

zcy85611 commented 1 year ago

I'm using windows defender and add the folder of fakecloud to exclusion list, still the same

ddvk commented 1 year ago

I have to test it under windows. you could try process explorer or something to see what is locking the file, could be a bug.

zcy85611 commented 1 year ago

I've already tried, fakecloud is the only thing using this file, no process is locking this file

Eeems commented 11 months ago

@zcy85611 What was the solution?

zcy85611 commented 11 months ago

no solution, just give up since no one is helping and I don't know how to improve the codes