-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
When running Sync on Android I get the following error:
Sync failed: Failed to lock the cloud sync directory, please try again later (Provider: S3) v3.1.21
From siyuan.log:
E 2025/02/13 13:03:56 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2F4ECECF920, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 13:03:56 repository.go:1458: sync data repo failed: lock cloud repo failedLooks related to recent AWS data integrity protection changes:
https://docs.aws.amazon.com/sdkref/latest/guide/feature-dataintegrity.html
aws/aws-sdk-go-v2#2960
pocketbase/pocketbase#6313
fsspec/s3fs#931
Not sure if this is the same as:
#14053
It works fine on v.3.1.20
Expected result
Sync is successful
Screenshot or screen recording presentation
N/A
Version environment
- Version: 3.1.21
- Operating System: Android
- Browser (if used): N/ALog file
I 2025/02/13 12:51:35 working_mobile.go:67:
/ | () \ \ / / _ _ __ _ _ __
_ \ | | \ V / | | | | / ` | | '
) | | | | | | || | | (| | | | | |
|/ || || _,| _,| || |_|
I 2025/02/13 12:51:35 runtime.go:87: kernel is booting:
* ver [3.1.21]
* arch [arm64]
* os [Android 12/SDK 31/WebView 132/Manufacturer HMD Global/Brand Nokia/UA Mozilla/5.0 (Linux; Android 12; Nokia 8.3 5G Build/SKQ1.210821.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36]
* pid [21810]
* runtime mode [prod]
* working directory [/data/user/0/org.b3log.siyuan/files/app/app]
* read only [false]
* container [android]
* database [ver=20220501]
* workspace directory [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan]
I 2025/02/13 12:51:35 conf.go:147: initialized the specified language [en_US]
I 2025/02/13 12:51:35 conf.go:520: user has disabled [Google Analytics]
I 2025/02/13 12:51:35 runtime.go:139: use network proxy [system]
I 2025/02/13 12:51:35 serve.go:209: kernel [pid=21810] http server [127.0.0.1:6806] is booting
I 2025/02/13 12:51:35 blocktree.go:75: reinitialized database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/blocktree.db]
I 2025/02/13 12:51:35 database.go:92: the database structure is changed, rebuilding database...
I 2025/02/13 12:51:35 database.go:109: reinitialized database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/siyuan.db]
I 2025/02/13 12:51:35 conf.go:865: tree/block count [0/0]
I 2025/02/13 12:51:35 working.go:196: kernel booted
I 2025/02/13 12:51:35 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/assets] cost [6.389895ms]
I 2025/02/13 12:51:35 serve.go:314: serving [/] for user-agent [SiYuan/3.1.21 https://b3log.org/siyuan Android Mozilla/5.0 (Linux; Android 12; Nokia 8.3 5G Build/SKQ1.210821.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/132.0.6834.163 Mobile Safari/537.36]
I 2025/02/13 12:51:35 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data] cost [2.628177ms]
I 2025/02/13 12:51:35 box.go:77: auto stat [trees=0, blocks=0, dataSize=36.87 kB, assetsSize=0 B]
I 2025/02/13 12:51:37 index.go:220: rebuilt database for notebook [20210808180117-6v0mkxr] in [0.17s], tree [count=67, size=1.34 MB]
I 2025/02/13 12:51:37 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/20210808180117-6v0mkxr] cost [8.843698ms]
I 2025/02/13 12:51:37 index.go:290: resolved refs [37] in [73ms]
I 2025/02/13 12:54:32 repository.go:559: imported repo key [d4c4e6413137ea109aeba397f5e91e0a96b110b4]
I 2025/02/13 12:54:34 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [55.852969ms]
I 2025/02/13 12:54:34 repo.go:661: walk data [files=7] cost [79.390573ms]
I 2025/02/13 12:54:34 ref.go:93: updated local latest to [device=w6xiwvovoiba/android, id=369d6d8665d4b53d08f931435a58b103d8bed8a8, files=7, size=8.36 kB, created=2025-02-13 12:54:34], full latest [size=1.2 kB], cost [7.352916ms]
I 2025/02/13 12:54:41 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 12:54:41 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [26.380886ms]
I 2025/02/13 12:54:41 repo.go:661: walk data [files=7] cost [30.272344ms]
I 2025/02/13 12:54:41 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [4.592812ms]
E 2025/02/13 12:54:41 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C273C34E307B, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 12:54:41 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 12:57:06 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 12:57:06 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [19.199948ms]
I 2025/02/13 12:57:06 repo.go:661: walk data [files=7] cost [22.530989ms]
I 2025/02/13 12:57:06 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [169.636µs]
E 2025/02/13 12:57:07 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C29588748C3B, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 12:57:07 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 12:57:10 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 12:57:10 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [9.388906ms]
I 2025/02/13 12:57:10 repo.go:661: walk data [files=7] cost [18.004583ms]
I 2025/02/13 12:57:10 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [313.438µs]
E 2025/02/13 12:57:10 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2965027EFEF, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 12:57:10 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 12:57:56 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 12:57:56 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [26.772291ms]
I 2025/02/13 12:57:56 repo.go:661: walk data [files=7] cost [48.75875ms]
I 2025/02/13 12:57:56 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [452.917µs]
E 2025/02/13 12:57:56 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2A103088CDB, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 12:57:56 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 12:58:48 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 12:58:48 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [51.122969ms]
I 2025/02/13 12:58:48 repo.go:661: walk data [files=7] cost [62.405209ms]
I 2025/02/13 12:58:48 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [1.811875ms]
E 2025/02/13 12:58:48 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2AD3DA34253, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 12:58:48 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 13:00:24 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 13:00:24 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [11.223958ms]
I 2025/02/13 13:00:24 repo.go:661: walk data [files=7] cost [19.755781ms]
I 2025/02/13 13:00:24 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [276.666µs]
E 2025/02/13 13:00:24 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2C3808C3115, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 13:00:24 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 13:01:23 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 13:01:23 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [35.348385ms]
I 2025/02/13 13:01:23 repo.go:661: walk data [files=7] cost [41.199115ms]
I 2025/02/13 13:01:23 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [244.531µs]
E 2025/02/13 13:01:24 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2D167411A54, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 13:01:24 repository.go:1458: sync data repo failed: lock cloud repo failed
I 2025/02/13 13:01:35 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/20210808180117-6v0mkxr] cost [55.432031ms]
W 2025/02/13 13:01:35 history.go:643: history dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/history] not exist
I 2025/02/13 13:02:26 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [32.485104ms]
I 2025/02/13 13:02:26 repo.go:661: walk data [files=7] cost [59.788594ms]
I 2025/02/13 13:02:26 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [840.521µs]
I 2025/02/13 13:02:26 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [58.702188ms]
I 2025/02/13 13:02:36 working.go:515: database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/siyuan.db] size [8.16 MB]
I 2025/02/13 13:02:36 working.go:515: database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/blocktree.db] size [647.17 kB]
I 2025/02/13 13:02:36 blocktree.go:75: reinitialized database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/blocktree.db]
I 2025/02/13 13:02:36 database.go:109: reinitialized database [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/temp/siyuan.db]
I 2025/02/13 13:02:36 index.go:220: rebuilt database for notebook [20240604103526-xp6wdz8] in [0.13s], tree [count=70, size=602.77 kB]
I 2025/02/13 13:02:36 index.go:220: rebuilt database for notebook [20241022162438-p1rfm6l] in [0.05s], tree [count=4, size=1.09 MB]
I 2025/02/13 13:02:37 index.go:220: rebuilt database for notebook [20210808180117-6v0mkxr] in [0.12s], tree [count=67, size=1.34 MB]
I 2025/02/13 13:02:37 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/20240604103526-xp6wdz8] cost [24.001979ms]
I 2025/02/13 13:02:37 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/20241022162438-p1rfm6l] cost [41.955521ms]
I 2025/02/13 13:02:37 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/20210808180117-6v0mkxr] cost [67.899999ms]
I 2025/02/13 13:02:37 index.go:290: resolved refs [40] in [383ms]
I 2025/02/13 13:03:54 repository.go:1430: syncing data repo [device=w6xiwvovoiba, kernel=53whcm5, provider=2, mode=a/true]
I 2025/02/13 13:03:54 walk.go:49: walk dir [/storage/emulated/0/Android/data/org.b3log.siyuan/files/siyuan/data/] cost [160.177604ms]
I 2025/02/13 13:03:54 repo.go:661: walk data [files=1261] cost [196.610625ms]
I 2025/02/13 13:03:54 ref.go:134: got local full latest [files=7, size=1.2 kB], cost [1.788125ms]
I 2025/02/13 13:03:56 ref.go:93: updated local latest to [device=w6xiwvovoiba/android, id=2c3cb737134477458784b5b7006bd1fead93755f, files=1261, size=232.84 MB, created=2025-02-13 13:03:54], full latest [size=249 kB], cost [9.126615ms]
E 2025/02/13 13:03:56 sync_lock.go:161: upload lock sync failed: operation error S3: PutObject, https response error StatusCode: 400, RequestID: 1823C2F4ECECF920, HostID: , api error XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
E 2025/02/13 13:03:56 repository.go:1458: sync data repo failed: lock cloud repo failed
More information
No response