vrtmrz / obsidian-livesync

MIT License
3.96k stars 134 forks source link

livesyncを0.20.4にアップデートしてから、Obsidianが再起動したり同期がうまく行きません #305

Open Piorimu opened 8 months ago

Piorimu commented 8 months ago

Abstract

livesyncを0.20.4にアップデートしてから、iPhoneで起動中にObsidianが再起動することがあります。 iPhone12でiOSバージョンは16.6.1で、Obsidianバージョンは1.4.16です。

また、同期に失敗することが多くなりました。

Expected behaviour

Actually happened

Reproducing procedure

1.iPhoneでObisidianを起動します。 2.ログを開きます(Show log) 3.しばらくすると再起動することがあります。 4.再起動後もLiveSyncを有効にしていても、ファイルの同期が行われません。 5.何度かObsidianを再起動すると同期することがあります。 6.iPhone側で文字を入力しても再起動が発生することがあります。

Report materials

Report from the LiveSync

Report from hatch ``` ----remote config---- cors: credentials: "true" headers: accept, authorization, content-type, origin, referer max_age: "3600" methods: GET, PUT, POST, HEAD, DELETE origins: app://obsidian.md,capacitor://localhost,http://localhost chttpd: bind_address: any max_http_request_size: "4294967296" port: "5984" require_valid_user: "true" admins: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" vendor: name: The Apache Software Foundation feature_flags: partitioned||*: "true" chttpd_auth: authentication_redirect: /e=_/_utils/session.html hash_algorithms: sha256, sha require_valid_user: "true" indexers: couch_mrview: "true" prometheus: additional_port: "false" bind_address: 127.0.0.1 port: "17986" httpd: WWW-Authenticate: Basic realm="couchdb" bind_address: 127.0.0.1 enable_cors: "true" port: "5986" smoosh: state_dir: ./data couch_httpd_auth: authentication_db: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" secret: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" authentication_redirect: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" couchdb_engines: couch: couch_bt_engine couchdb: database_dir: ./data max_document_size: "50000000" single_node: "true" uuid: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" view_index_dir: ./data ---- Plug-in config --- version:0.20.4 couchDB_URI: self-hosted couchDB_USER: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" couchDB_PASSWORD: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" couchDB_DBNAME: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" liveSync: true syncOnSave: false syncOnStart: false savingDelay: 200 lessInformationInLog: false gcDelay: 0 versionUpFlash: "" minimumChunkSize: 20 longLineThreshold: 250 showVerboseLog: false suspendFileWatching: false trashInsteadDelete: false periodicReplication: false periodicReplicationInterval: 60 syncOnFileOpen: false encrypt: false passphrase: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" usePathObfuscation: false doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: false deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: false usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 50 batches_limit: 20 useHistory: true disableRequestURI: true skipOlderFilesOnSync: true checkConflictOnlyOnOpen: false syncInternalFiles: false syncInternalFilesBeforeReplication: false syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/ syncInternalFilesInterval: 60 additionalSuffixOfDatabaseName: obsidian ignoreVersionCheck: false lastReadUpdates: 20 deleteMetadataOfDeletedFiles: true syncIgnoreRegEx: "" syncOnlyRegEx: "" customChunkSize: 10 readChunksOnline: true watchInternalFileChanges: true automaticallyDeleteMetadataOfDeletedFiles: 0 disableMarkdownAutoMerge: false writeDocumentsIfConflicted: false useDynamicIterationCount: false syncAfterMerge: false configPassphraseStore: "" encryptedPassphrase: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" encryptedCouchDBConnection: "𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷" permitEmptyPassphrase: false useIndexedDBAdapter: true useTimeouts: false writeLogToTheFile: false doNotPaceReplication: false hashCacheMaxCount: 300 hashCacheMaxAmount: 50 concurrencyOfReadChunksOnline: 100 minimumIntervalOfReadChunksOnline: 333 hashAlg: xxhash64 suspendParseReplicationResult: false doNotSuspendOnFetching: true useIgnoreFiles: false ignoreFiles: .gitignore syncOnEditorSave: false pluginSyncExtendedSetting: {} useV1: true ```

Obsidian debug info

Debug info ``` SYSTEM INFO: Operating system: ios 16.6.1 (Apple iPhone) Obsidian version: 1.4.16 (114) API version: v1.4.16 Login status: not logged in Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 1 Plugins enabled: 1 1: Self-hosted LiveSync v0.20.4 ```

Plug-in log

再起動を繰り返すため、保存できませんでした。 一部スクリーンショットしたので参照ください。

Screenshots

image image

Other information, insights and intuition.

サーバーホスティングサービスはFly.ioです(VMはv2、shared-cpu-1x | 1 shared | 256MB) 同期しているVaultは2,492files、ローカルディスク上でのサイズは325MBです。

vrtmrz commented 8 months ago

詳しくありがとうございます!非常に助かりました。 なんと、E2EEしていないVaultの場合、起動時のスキャンで特定の文字から始まるファイルを取りこぼしていました。 (そのため、むやみやたらとUPDATE DATABASEがかかっています) UPDATE DATABASEは変更確認を含むので、ちょっと負荷がかかります。 これが原因で再起動を引き起こしているのかもしれないと思い、まずはv0.20.5で修正いたしました。

いったんv0.20.5にアップデートして、事象が多少改善するか確認していただいてよいでしょうか?

また、プラグインログはHatchWrite logs into the fileをONにしていただくと、ファイルに保存されます。 一度お試しください。(とはいえ、このリブートの場合、書き込みが間に合わないかもしれないのですが…)

Piorimu commented 8 months ago

素早い対応ありがとうございます。 おかげさまで、再起動の症状は治まりました。UPDATE DATABASEの数も少なくなりました。

ただReplicationは相変わらず失敗しています。 ご案内頂いた方法で、「起動時のログ」と「何度かReplicationを試した際のログ」を取ってみました。

また、Replicationの失敗は、iPhoneだけでなく、PC側でも発生しています(ログはiPhone側と同様です) iPhone側でFetchを試しましたが、途中でサーバーがOut of memoryでシャットダウンしてしまいました。

ともかく、再起動の問題が一番大きかったので、そちらが改善されて助かりました。 改めて、ありがとうございます。

0.20.5での起動時ログ ``` Obsidian Vault-obsidian:2023/10/17 20:09:50->Cache initialized 300 / 50000000 Copy Obsidian Vault-obsidian:2023/10/17 20:10:04->Waiting for ready... Obsidian Vault-obsidian:2023/10/17 20:10:04->Cache initialized 10 / 1000000000 Copy Obsidian Vault-obsidian:2023/10/17 20:10:04->Cache initialized 300 / 50000000 Obsidian Vault-obsidian:2023/10/17 20:10:04->Newer xxhash has been initialised Copy Obsidian Vault-obsidian:2023/10/17 20:10:04->Opening Database... Obsidian Vault-obsidian:2023/10/17 20:10:04->Database info Copy Obsidian Vault-obsidian:2023/10/17 20:10:04->{ "doc_count": 5381, "update_seq": 6036, "db_name": "Obsidian Vault-obsidian-livesync-v2-indexeddb", "auto_compaction": false, "adapter": "indexeddb" } Obsidian Vault-obsidian:2023/10/17 20:10:04->Database is now ready. Obsidian Vault-obsidian:2023/10/17 20:10:04->Initialize and checking database files Obsidian Vault-obsidian:2023/10/17 20:10:04->Checking deleted files Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the storage Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 25 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 50 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 75 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 100 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 125 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 150 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 175 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 200 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 225 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 250 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 275 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 300 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 325 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 350 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 375 Obsidian Vault-obsidian:2023/10/17 20:10:04->Collecting local files on the DB: 400 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 425 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 450 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 475 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 500 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 525 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 550 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 575 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 600 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 625 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 650 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 675 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 700 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 725 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 750 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 775 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 800 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 825 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 850 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 875 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 900 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 925 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 950 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 975 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1000 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1025 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1050 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1075 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1100 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1125 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1150 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1175 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1200 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1225 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1250 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1275 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1300 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1325 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1350 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1375 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1400 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1425 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1450 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1475 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1500 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1525 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1550 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1575 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1600 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1625 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1650 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1675 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1700 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1725 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1750 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1775 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1800 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1825 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1850 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1875 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1900 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1925 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1950 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 1975 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2000 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2025 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2050 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2075 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2100 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2125 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2150 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2175 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2200 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2225 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2250 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2275 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2300 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2325 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2350 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2375 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2400 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2425 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2450 Obsidian Vault-obsidian:2023/10/17 20:10:05->Collecting local files on the DB: 2475 Obsidian Vault-obsidian:2023/10/17 20:10:05->Opening the key-value database Obsidian Vault-obsidian:2023/10/17 20:10:05->Updating database by new files Obsidian Vault-obsidian:2023/10/17 20:10:05->UPDATE DATABASE Obsidian Vault-obsidian:2023/10/17 20:10:05->UPDATE DATABASE LIVESYNC_LOG_2023-10-17.md Obsidian Vault-obsidian:2023/10/17 20:10:05->UPDATE DATABASE: PASS:1, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->UPDATE STORAGE Obsidian Vault-obsidian:2023/10/17 20:10:05->UPDATE STORAGE: PASS:0, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:1/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:1/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:2/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:2/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:3/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:3/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:4/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:4/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:5/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:5/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:6/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:6/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:7/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:7/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:8/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:8/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:9/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:9/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:10/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:10/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:11/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:11/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:12/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:12/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:13/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:13/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:14/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:14/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:15/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->STORAGE == DB :20231016.md Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:15/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:16/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:16/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:17/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:17/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:18/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:18/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:19/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:19/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:20/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:20/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:21/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:21/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:22/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:22/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:23/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:23/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:24/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:24/25: PASS:100, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:25/25 Obsidian Vault-obsidian:2023/10/17 20:10:05->CHECK FILE STATUS:25/25: PASS:92, FAILED:0 Obsidian Vault-obsidian:2023/10/17 20:10:05->Initialized, NOW TRACKING! Obsidian Vault-obsidian:2023/10/17 20:10:05->Cache initialized 300 / 50000000 Obsidian Vault-obsidian:2023/10/17 20:10:05->Modifying callback of the save command Obsidian Vault-obsidian:2023/10/17 20:10:05->Additional safety scan.. Obsidian Vault-obsidian:2023/10/17 20:10:05->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:10:06->Some files have been left conflicted! Please resolve them by "Pick a file to resolve conflict". The list is written in the log. Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Conflicted: **** Obsidian Vault-obsidian:2023/10/17 20:10:06->Additional safety scan done Obsidian Vault-obsidian:2023/10/17 20:10:19->Replication activated Obsidian Vault-obsidian:2023/10/17 20:10:35->HTTP:POST (2885) to:_revs_diff -> failed Obsidian Vault-obsidian:2023/10/17 20:10:35->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:10:35->Replication error Obsidian Vault-obsidian:2023/10/17 20:10:35->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:10:35->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:10:35->Replication error Obsidian Vault-obsidian:2023/10/17 20:10:35->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:10:35->HTTP:GET to:_changes?style=all_docs&filter=replicate%2Fpull&since=2854-g1AAAACReJzLYWBgYMpgTmHgzcvPy09JdcjLz8gvLskBCScyJNX___8_K4M5iYGBtTMXKMZuYmxuYmZugK4ehwl5LECSoQFI_UcYNBdskEWyaVqSWSK6tiwA_Scrig&limit=50 -> failed Obsidian Vault-obsidian:2023/10/17 20:10:35->TypeError:Load failed ```
0.20.5でのReplication時のログ ``` Obsidian Vault-obsidian:2023/10/17 20:32:39->Cache initialized 300 / 50000000 Obsidian Vault-obsidian:2023/10/17 20:32:54->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:32:55->Looking for the point last synchronized point. Obsidian Vault-obsidian:2023/10/17 20:32:56->Replication activated Obsidian Vault-obsidian:2023/10/17 20:33:05->↑7 (5317) ↓0 Obsidian Vault-obsidian:2023/10/17 20:33:07->↑14 (5263) ↓0 Obsidian Vault-obsidian:2023/10/17 20:33:11->HTTP:PUT (238) to:_local/1VEYK.qXtOOegvxHGkW1qw%3D%3D -> failed Obsidian Vault-obsidian:2023/10/17 20:33:11->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:33:11->Replication error Obsidian Vault-obsidian:2023/10/17 20:33:11->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:33:11->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:33:11->Replication error Obsidian Vault-obsidian:2023/10/17 20:33:11->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:33:11->HTTP:GET to:_changes?style=all_docs&filter=replicate%2Fpull&since=2945-g1AAAACReJzLYWBgYMpgTmHgzcvPy09JdcjLz8gvLskBCScyJNX___8_K4M5iYGBdXcuUIzdxNjcxMzcAF09DhPyWIAkQwOQ-o8w6BjYIItk07Qks0R0bVkAFiIr5Q&limit=50 -> failed Obsidian Vault-obsidian:2023/10/17 20:33:11->AbortError:Fetch is aborted Obsidian Vault-obsidian:2023/10/17 20:33:44->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:33:45->Looking for the point last synchronized point. Obsidian Vault-obsidian:2023/10/17 20:33:46->Replication activated Obsidian Vault-obsidian:2023/10/17 20:33:47->↑3 (5207) ↓0 Obsidian Vault-obsidian:2023/10/17 20:33:48->HTTP:POST (2870) to:_revs_diff -> failed Obsidian Vault-obsidian:2023/10/17 20:33:48->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:33:48->Replication error Obsidian Vault-obsidian:2023/10/17 20:33:48->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:33:48->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:33:48->Replication error Obsidian Vault-obsidian:2023/10/17 20:33:48->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:34:08->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:34:09->Looking for the point last synchronized point. Obsidian Vault-obsidian:2023/10/17 20:34:09->Replication activated Obsidian Vault-obsidian:2023/10/17 20:34:09->↑5 (5151) ↓0 Obsidian Vault-obsidian:2023/10/17 20:34:10->↑10 (5097) ↓0 Obsidian Vault-obsidian:2023/10/17 20:34:13->HTTP:POST (2888) to:_bulk_docs -> failed Obsidian Vault-obsidian:2023/10/17 20:34:13->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:34:13->Replication error Obsidian Vault-obsidian:2023/10/17 20:34:13->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:34:13->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:34:13->Retry with lower batch size:27/12 Obsidian Vault-obsidian:2023/10/17 20:34:13->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:34:22->Looking for the point last synchronized point. Obsidian Vault-obsidian:2023/10/17 20:34:22->Replication activated Obsidian Vault-obsidian:2023/10/17 20:34:23->↑4 (5069) ↓0 Obsidian Vault-obsidian:2023/10/17 20:34:24->↑12 (5041) ↓0 Obsidian Vault-obsidian:2023/10/17 20:34:26->HTTP:POST (1807) to:_bulk_docs -> failed Obsidian Vault-obsidian:2023/10/17 20:34:26->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:34:26->Replication error Obsidian Vault-obsidian:2023/10/17 20:34:26->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:34:26->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:34:26->Retry with lower batch size:16/8 Obsidian Vault-obsidian:2023/10/17 20:34:26->OneShot Sync begin... (sync) Obsidian Vault-obsidian:2023/10/17 20:34:44->Looking for the point last synchronized point. Obsidian Vault-obsidian:2023/10/17 20:34:45->Replication activated Obsidian Vault-obsidian:2023/10/17 20:35:08->↑4 (5017) ↓0 Obsidian Vault-obsidian:2023/10/17 20:35:09->↑9 (5001) ↓0 Obsidian Vault-obsidian:2023/10/17 20:35:11->HTTP:GET to:_changes?style=all_docs&filter=replicate%2Fpull&since=3530-g1AAAACReJzLYWBgYMpgTmHgzcvPy09JdcjLz8gvLskBCScyJNX___8_K4M5iYGB7VMuUIzdxNjcxMzcAF09DhPyWIAkQwOQ-o8w6AbYIItk07Qks0R0bVkALuYsMA&limit=16 -> failed Obsidian Vault-obsidian:2023/10/17 20:35:11->TypeError:Load failed Obsidian Vault-obsidian:2023/10/17 20:35:11->Replication error Obsidian Vault-obsidian:2023/10/17 20:35:11->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:35:11->Replication stopped. Obsidian Vault-obsidian:2023/10/17 20:35:11->Replication error Obsidian Vault-obsidian:2023/10/17 20:35:11->Error:Load failed Obsidian Vault-obsidian:2023/10/17 20:35:11->HTTP:POST (1086) to:_bulk_docs -> failed Obsidian Vault-obsidian:2023/10/17 20:35:11->TypeError:Load failed ```
vrtmrz commented 8 months ago

こちらこそ早速のお試しありがとうございます!効いて良かったです! 実際に差分がある場合もあるので、多少はUPDATE DATABASEが発生すると思います。なので、こちらは一段落ですね。

レプリケーションが落ちてしまう件、Our of memoryとのことですが、fly.ioのインスタンスはswapを有効にしていますでしょうか?

fly.ioのプラットフォームがV2とやらになってから、メモリ使用に厳しくなってしまったため、インスタンス作成時に少し工夫しないといけなくなりました。 もし有効にしていない場合は、こちらのColabノートを使って作成してもらえると、メモリ不足で落ちることは減ると思います。 https://gist.github.com/vrtmrz/37c3efd7842e49947aaaa7f665e5020a

Piorimu commented 8 months ago

レプリケーションが落ちてしまう件、Our of memoryとのことですが、fly.ioのインスタンスはswapを有効にしていますでしょうか?

こちら頂いたColabノートで新しいサーバーでDBを再構築したところ、いくつかトラブルはあったものの同期することが出来ました!ありがとうございます!

起こったトラブルについては下記の通りです。何か参考になれば。

起こったトラブル

問題:PC側で再構築したとき暗号化形式をEnable v2を選択し、iPhone側で間違えてKeep v1を選択したところ、サーバーのディスク使用量が2GBを超えてしまった

解決:こちらはサーバーを作り直し、iPhone側のObsidianを再インストールして、v2で統一するようにしたところ解決しました

問題:Colabで2つめのサーバーを作成しようとしたところ、# Configure password[build]が2重に定義されている旨のエラーが発生してしまった(エラーメッセージなどをメモしていませんでした、申し訳ありません)

解決:こちらはColabのランタイムを再接続したところ解消しました


また起動時スキャンですが、iPhoneでは問題無いのですが、PC(Windows)でのみ、半角の#がファイル名に含まれているファイルが毎回UPDATE DATABASEの対象になっているようです。 自分の環境では現状問題にはなっていません(対象のファイルは7ファイルのみ)が、ご報告まで。

ともあれ、再起動の問題と同期の問題は自分の環境では一段落しました。 この度はご対応頂き、ありがとうございました。