vrtmrz / obsidian-livesync

MIT License
3.96k stars 134 forks source link

macとiPad Proとの間で、同期ができない #287

Open nakkisan opened 9 months ago

nakkisan commented 9 months ago

Thank you for taking the time to report this issue! To improve the process, I would like to ask you to let me know the information in advance.

All instructions and examples, and empty entries can be deleted. Just for your information, a filled example is also written.

Abstract

Expected behaviour

Actually happened

Reproducing procedure

  1. macのローカル環境内で、LiveSyncを設定する
  2. iPadのローカル環境内でLiveSyncを設定する(macのセットアップ後に取得したSetup URIを入力した)
  3. [同期が始まったようなメッセージが出るが、どちらかで更新した内容が、もう一方の端末へ反映されない 4.いろいろ設定を変更するが、一度も同期しない。iPadには「Replication Error」というメッセージがよく見られる。

Report materials

Report from the LiveSync

前半にはmac、後半はiPadで出力したものが書かれています

Report from hatch ``` 1. On mac ----remote config---- Requesting information to the remote CouchDB has been failed. If you are using IBM Cloudant, it is the normal behaviour. ---- Plug-in config --- couchDB_URI: cloudant couchDB_USER: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 couchDB_PASSWORD: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 couchDB_DBNAME: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 liveSync: true syncOnSave: false syncOnStart: false savingDelay: 200 lessInformationInLog: false gcDelay: 300 versionUpFlash: "" minimumChunkSize: 20 longLineThreshold: 250 showVerboseLog: true suspendFileWatching: false trashInsteadDelete: true periodicReplication: false periodicReplicationInterval: 60 syncOnFileOpen: false encrypt: true passphrase: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 usePathObfuscation: true doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: false deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: true usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 50 batches_limit: 40 useHistory: false disableRequestURI: false skipOlderFilesOnSync: true checkConflictOnlyOnOpen: false syncInternalFiles: true syncInternalFilesBeforeReplication: false syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/ syncInternalFilesInterval: 60 additionalSuffixOfDatabaseName: "" ignoreVersionCheck: false lastReadUpdates: 0 deleteMetadataOfDeletedFiles: false syncIgnoreRegEx: "" syncOnlyRegEx: "" customChunkSize: 0 readChunksOnline: true watchInternalFileChanges: true automaticallyDeleteMetadataOfDeletedFiles: 0 disableMarkdownAutoMerge: false writeDocumentsIfConflicted: false useDynamicIterationCount: false syncAfterMerge: false configPassphraseStore: "" encryptedPassphrase: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 encryptedCouchDBConnection: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷 permitEmptyPassphrase: false useIndexedDBAdapter: true useTimeouts: false writeLogToTheFile: true doNotPaceReplication: false hashCacheMaxCount: 300 hashCacheMaxAmount: 50 concurrencyOfReadChunksOnline: 100 minimumIntervalOfReadChunksOnline: 333 hashAlg: xxhash64 suspendParseReplicationResult: false doNotSuspendOnFetching: false useIgnoreFiles: false ignoreFiles: .gitignore — 2. On iPad Pro ----remote config---- Requesting information to the remote CouchDB has been failed. If you are using IBM Cloudant, it is the normal behaviour. ---- Plug-in config --- couchDB_URI: cloudant couchDB_USER: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" couchDB_PASSWORD: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" couchDB_DBNAME: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" liveSync: true syncOnSave: false syncOnStart: false savingDelay: 200 lessInformationInLog: false gcDelay: 0 versionUpFlash: "" minimumChunkSize: 20 longLineThreshold: 250 showVerboseLog: true suspendFileWatching: true trashInsteadDelete: true periodicReplication: false periodicReplicationInterval: 60 syncOnFileOpen: false encrypt: true passphrase: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" usePathObfuscation: true doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: false deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: true usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 50 batches_limit: 40 useHistory: true disableRequestURI: true skipOlderFilesOnSync: true checkConflictOnlyOnOpen: false syncInternalFiles: true syncInternalFilesBeforeReplication: false syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/ syncInternalFilesInterval: 60 additionalSuffixOfDatabaseName: "" ignoreVersionCheck: false lastReadUpdates: 19 deleteMetadataOfDeletedFiles: false syncIgnoreRegEx: "" syncOnlyRegEx: "" customChunkSize: 0 readChunksOnline: true watchInternalFileChanges: true automaticallyDeleteMetadataOfDeletedFiles: 0 disableMarkdownAutoMerge: false writeDocumentsIfConflicted: false useDynamicIterationCount: false syncAfterMerge: false configPassphraseStore: "" encryptedPassphrase: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" encryptedCouchDBConnection: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" permitEmptyPassphrase: false useIndexedDBAdapter: true useTimeouts: false writeLogToTheFile: true doNotPaceReplication: false hashCacheMaxCount: 300 hashCacheMaxAmount: 50 concurrencyOfReadChunksOnline: 100 minimumIntervalOfReadChunksOnline: 333 hashAlg: xxhash64 suspendParseReplicationResult: false doNotSuspendOnFetching: false useIgnoreFiles: false ignoreFiles: .gitignore ```

Obsidian debug info

Plug-in log

Plug-in logはおそらく見つかりましたが、かなり長いログなので、貼れませんでした。

Network log

Screenshots

iPadの右上に、同期エラーが出ておりました LiveSyncのエラー表示

Other information, insights and intuition.

エラーの状況やログをもっと深掘りしたかったのですが、知識がなく、今出せるのはこれだけです。 ご指示いただければ従いますので、アドバイスをお願いします。

vrtmrz commented 9 months ago

おそくなってすみません、ご質問ありがとうございます!

⚠が出ているので、おそらくレプリケーションに失敗したんだろうなと思います。 ただ、↓196とある程度取得できているので、なんだろう…とも。。

ログはVebose Logsを有効にして、HatchWrite logs into the fileを有効にするとログファイルに詳細が記録されます。

もしかすると、設定のSyncペインでFetch chunks on demandを無効にすると動くかもしれません。

fly.io上のCouchDBだと、Fetch chunks on demandが有効でも確実に動くとは思うのですが、Cloudantは僕自身も試せておらず、サクッと再現できなくて申し訳ないです。 一度ご確認ください。