Open CrazyTim71 opened 2 months ago
Thank you for opening the issue and sharing the detailed information!
The last screenshot indicates that the status code was 524. It possibly means A Timeout Occurred
which of the Cloudflare.
Would you mind if I ask you to check the log of Cloudflare, please?
I forgot the reason but, I disabled the proxy of my Cloudflare DNS setting for my server. Possibly this could be a related one.
Thanks for your answer. I just disabled Cloudflare and tried it again. I see less timeouts now, but the Sync is still not working. The symbol indicates that the sync is stopped:
I tried to overwrite the remote db with my local files. After that, the sync was still stopped and was changed to "on events". Therefore I applied the LiveSync preset again and reinstalled Obsidian on my phone. The replication was successfull there without any problems. The symbol shows "Synchronization in progress"
However, the changes made on my phone are not synced to my PC. My PC is always stuck on "Stopped". I think it even showed that there are new changes to pull, but failed to do so. The strange thing is that I don't see any errors in the console or the network tab. One thing I noticed is that my devices always lock the database and one is always stuck on "stopped"
Also experiencing this issue. Although I can't confirm (as I haven't looked at the logs), both my devices show the "Stopped" emoji, and my Android Device shows the warning with the "unlock the database" button (clicking it does nothing).
My PC sucessfully synchronizes all notes to my selfhosted CouchDB (behind Traefik and Cloudflare). But after setting up a second device by using the setup uri, the synchronisation doesn't work at all. The initial replication works, but then Obsidian just shows connection errors after restarting. Seems like some CORS rules are the reason for that. But I don't understand where the error comes from, because I added all the needed CORS Headers to Traefik. And it works until a second device is added.
Plugin version: 0.23.21
Report from the LiveSync
Report from hatch
``` ---- Obsidian info ---- Navigator: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.6.7 Chrome/124.0.6367.243 Electron/30.1.2 Safari/537.36 FileSystem: insensitive ---- remote config ---- cluster: n: "1" 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: 0.0.0.0 enable_cors: "true" max_http_request_size: "4294967296" port: "5984" require_valid_user: "true" admins: π πΈπ·π΄πΆππΈπ· vendor: name: The Apache Software Foundation feature_flags: partitioned||*: "true" chttpd_auth: 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.23.21 remoteType: "" useCustomRequestHandler: false couchDB_URI: self-hosted(HTTPS) 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: false trashInsteadDelete: true periodicReplication: false periodicReplicationInterval: 60 syncOnFileOpen: false encrypt: true passphrase: π πΈπ·π΄πΆππΈπ· usePathObfuscation: true doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: false batchSaveMinimumDelay: 5 batchSaveMaximumDelay: 60 deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: true showStatusOnStatusbar: true showOnlyIconsOnEditor: false usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 25 batches_limit: 25 useHistory: true disableRequestURI: true skipOlderFilesOnSync: true checkConflictOnlyOnOpen: false showMergeDialogOnlyOnActive: false syncInternalFiles: true syncInternalFilesBeforeReplication: false syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/ syncInternalFilesInterval: 60 additionalSuffixOfDatabaseName: f5e4f0dd0a1766c2 ignoreVersionCheck: false lastReadUpdates: 23 deleteMetadataOfDeletedFiles: false syncIgnoreRegEx: "" syncOnlyRegEx: "" customChunkSize: 50 readChunksOnline: false 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: 30 minimumIntervalOfReadChunksOnline: 25 hashAlg: xxhash64 suspendParseReplicationResult: false doNotSuspendOnFetching: false useIgnoreFiles: false ignoreFiles: .gitignore syncOnEditorSave: false pluginSyncExtendedSetting: {} syncMaxSizeInMB: 50 settingSyncFile: "" writeCredentialsForSettingSync: false notifyAllSettingSyncFile: false isConfigured: true settingVersion: 10 enableCompression: false accessKey: π πΈπ·π΄πΆππΈπ· bucket: π πΈπ·π΄πΆππΈπ·(0 letters) endpoint: Not configured or AWS region: π πΈπ·π΄πΆππΈπ·(4 letters) secretKey: π πΈπ·π΄πΆππΈπ· useEden: false maxChunksInEden: 10 maxTotalLengthInEden: 1024 maxAgeInEden: 10 disableCheckingConfigMismatch: false displayLanguage: "" enableChunkSplitterV2: false disableWorkerForGeneratingChunks: false processSmallFilesInUIThread: false notifyThresholdOfRemoteStorageSize: 2000 usePluginSyncV2: false usePluginEtc: false handleFilenameCaseSensitive: false doNotUseFixedRevisionForChunks: false showLongerLogInsideEditor: false sendChunksBulk: true sendChunksBulkMaxSize: 25 configPassphrase: "" preset: "" syncMode: LIVESYNC dummy: 0 ```Plug-in log
Plug-in log
``` 7.9.2024, 14:53:26->Information has been copied to clipboard 7.9.2024, 14:53:26->Just checkpoint or some server information has been missing. The 404 error shown above is not an error. 7.9.2024, 14:53:26->Replication activated 7.9.2024, 14:54:25->Scanning hidden files. 7.9.2024, 14:54:28->Hidden files scanned: 0 files had been modified 7.9.2024, 14:55:06->HTTP:POST (1971) to:_bulk_docs -> failed 7.9.2024, 14:55:06->TypeError:Failed to fetch 7.9.2024, 14:55:06->Replication paused 7.9.2024, 14:55:25->Scanning hidden files. 7.9.2024, 14:55:28->Hidden files scanned: 0 files had been modified 7.9.2024, 14:55:59->Log window opened 7.9.2024, 14:56:00->Chunks saved (with fixed): doc: .obsidian/workspace.json ,chunks: 1 (new:1, recycled:0, cached:0) 7.9.2024, 14:56:00->STORAGE --> DB:.obsidian/workspace.json: (hidden) Done ```Network log
Traefik config