Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only partial sync on new install, Replication error #541

Open
xulinus opened this issue Nov 16, 2024 · 3 comments
Open

Only partial sync on new install, Replication error #541

xulinus opened this issue Nov 16, 2024 · 3 comments

Comments

@xulinus
Copy link

xulinus commented Nov 16, 2024

Abstract

Only some files are synced on new install. When attempting to sync I get the error message: Replication error

Expected behaviour

  • Synchronisation ends with the message Replication completed
  • Everything synchronised

Actually happened

  • Only some files are synced on the intial sync
  • No subsequent changes of the initially synced files are synced
  • When clicking the Replicate button, it errors with Replication Error

Reproducing procedure

  1. Setup according to: https://github.com/vrtmrz/obsidian-livesync/blob/main/docs/setup_own_server.md
  2. Synchronising has begins.
  3. About two or three seconds later, we got the error Replication error.
  4. Replication has stopped. No files synchronised.

Report from the LiveSync

Report from hatch
---- Obsidian info ----
Navigator: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.7.6 Chrome/128.0.6613.186 Electron/32.2.3 Safari/537.36
FileSystem: sensitive
---- remote config ----
cluster:
  n: "1"
cors:
  credentials: "true"
  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
nouveau:
  url: http://127.0.0.1:5987
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"
  uuid: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷
  view_index_dir: ./data

---- Plug-in config ---
version:0.24.1
remoteType: ""
useCustomRequestHandler: false
couchDB_URI: self-hosted(HTTPS)
couchDB_USER: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷
couchDB_PASSWORD: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷
couchDB_DBNAME: 𝑅𝐸𝐷𝐴𝐶𝑇𝐸𝐷
liveSync: false
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: 50
batches_limit: 50
useHistory: true
disableRequestURI: true
skipOlderFilesOnSync: true
checkConflictOnlyOnOpen: false
showMergeDialogOnlyOnActive: false
syncInternalFiles: false
syncInternalFilesBeforeReplication: false
syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/
syncInternalFilesInterval: 60
additionalSuffixOfDatabaseName: c318f20ab9123b17
ignoreVersionCheck: false
lastReadUpdates: 24
deleteMetadataOfDeletedFiles: false
syncIgnoreRegEx: ""
syncOnlyRegEx: ""
customChunkSize: 50
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: 100
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: 800
usePluginSyncV2: false
usePluginEtc: false
handleFilenameCaseSensitive: false
doNotUseFixedRevisionForChunks: false
showLongerLogInsideEditor: false
sendChunksBulk: false
sendChunksBulkMaxSize: 1
useSegmenter: false
useAdvancedMode: false
usePowerUserMode: false
useEdgeCaseMode: false
enableDebugTools: false
configPassphrase: ""
preset: ""
syncMode: ONEVENTS
dummy: 0

Plug-in log

Plug-in log
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected $$isStorageInsensitive 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected $$shouldCheckCaseInsensitive 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$isUnloaded 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$isReloadingScheduled 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$getReplicator 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected $$connectRemoteCouchDB 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected $$isMobile 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected $$vaultName 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected $$getActiveFilePath 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected $$id2path 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected $$path2id 
11/16/2024, 11:00:01 AM->[ModulePouchDB]: Injected $$createPouchDBInstance 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected (All) $allOnDBUnload 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected (All) $allOnDBClose 
11/16/2024, 11:00:01 AM->[ModuleReplicatorMinIO]: Injected (Any) $anyNewReplicator 
11/16/2024, 11:00:01 AM->[ModuleReplicatorCouchDB]: Injected (Any) $anyNewReplicator 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected (Every) $everyOnInitializeDatabase 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected (Every) $everyOnInitializeDatabase 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected (Every) $everyOnResetDatabase 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected (Every) $everyOnResetDatabase 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected $$getVaultName 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected $$getSimpleStore 
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]: Injected (Every) $everyOnLayoutReady 
11/16/2024, 11:00:01 AM->[ModuleRedFlag]: Injected (Every) $everyOnLayoutReady 
11/16/2024, 11:00:01 AM->[ModuleDev]: Injected (Every) $everyOnLayoutReady 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected (Every) $everyOnFirstInitialize 
11/16/2024, 11:00:01 AM->[ModuleMigration]: Injected (Every) $everyOnFirstInitialize 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$onLiveSyncReady 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$wireUpEvents 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$onLiveSyncLoad 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$onLiveSyncUnload 
11/16/2024, 11:00:01 AM->[ModuleInteractiveConflictResolver]: Injected (All) $allScanStat 
11/16/2024, 11:00:01 AM->[ModuleCheckRemoteSize]: Injected (All) $allScanStat 
11/16/2024, 11:00:01 AM->[ModuleLocalDatabaseObsidian]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleFileHandler]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettingsAsMarkdown]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettingDialogue]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleLog]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianMenu]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianDocumentHistory]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleInteractiveConflictResolver]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleObsidianGlobalHistory]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleDev]: Injected (Every) $everyOnloadStart 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[ModuleKeyValueDB]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[ModuleLog]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[ModuleDev]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[ModuleReplicateTest]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Every) $everyOnloadAfterLoadSettings 
11/16/2024, 11:00:01 AM->[ModuleDatabaseFileAccess]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleLog]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleInputUIObsidian]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleObsidianMenu]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleRebuilder]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleSetupObsidian]: Injected (Every) $everyOnload 
11/16/2024, 11:00:01 AM->[ModuleFileHandler]: Injected (Any) $anyHandlerProcessesFileEvent 
11/16/2024, 11:00:01 AM->[ModuleLog]: Injected (All) $allStartOnUnload 
11/16/2024, 11:00:01 AM->[ModulePeriodicProcess]: Injected (All) $allOnUnload 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected (All) $allOnUnload 
11/16/2024, 11:00:01 AM->[ModuleLocalDatabaseObsidian]: Injected $$openDatabase 
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]: Injected $$realizeSettingSyncMode 
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]: Injected $$performRestart 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettings]: Injected $$clearUsedPassphrase 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettings]: Injected $$loadSettings 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettings]: Injected $$saveDeviceAndVaultName 
11/16/2024, 11:00:01 AM->[ModuleObsidianSettings]: Injected $$saveSettingData 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Any) $anyProcessOptionalFileEvent 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Any) $anyProcessOptionalFileEvent 
11/16/2024, 11:00:01 AM->[ModuleFileAccessObsidian]: Injected (Every) $everyCommitPendingFileEvent 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Any) $anyGetOptionalConflictCheckMethod 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Any) $anyGetOptionalConflictCheckMethod 
11/16/2024, 11:00:01 AM->[ModuleConflictChecker]: Injected $$queueConflictCheckIfOpen 
11/16/2024, 11:00:01 AM->[ModuleConflictChecker]: Injected $$queueConflictCheck 
11/16/2024, 11:00:01 AM->[ModuleConflictChecker]: Injected $$waitForAllConflictProcessed 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Any) $anyProcessOptionalSyncFiles 
11/16/2024, 11:00:01 AM->[ModuleFileHandler]: Injected (Any) $anyProcessReplicatedDoc 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$parseReplicationResult 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Any) $anyModuleParsedReplicationResultItem 
11/16/2024, 11:00:01 AM->[ModulePeriodicProcess]: Injected (Every) $everyBeforeRealizeSetting 
11/16/2024, 11:00:01 AM->[ModulePeriodicProcess]: Injected (Every) $everyAfterRealizeSetting 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Every) $everyRealizeSettingSyncMode 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Every) $everyRealizeSettingSyncMode 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected (Every) $everyBeforeSuspendProcess 
11/16/2024, 11:00:01 AM->[ModulePeriodicProcess]: Injected (Every) $everyBeforeSuspendProcess 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Every) $everyOnResumeProcess 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Every) $everyOnResumeProcess 
11/16/2024, 11:00:01 AM->[ModuleReplicatorCouchDB]: Injected (Every) $everyAfterResumeProcess 
11/16/2024, 11:00:01 AM->[ModulePeriodicProcess]: Injected (Every) $everyAfterResumeProcess 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Every) $everyAfterResumeProcess 
11/16/2024, 11:00:01 AM->[ModuleResolvingMismatchedTweaks]: Injected $$askResolvingMismatchedTweaks 
11/16/2024, 11:00:01 AM->[ModuleResolvingMismatchedTweaks]: Injected $$checkAndAskUseRemoteConfiguration 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected (Every) $everyBeforeReplicate 
11/16/2024, 11:00:01 AM->[ModuleReplicateTest]: Injected (Every) $everyBeforeReplicate 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Every) $everyBeforeReplicate 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Every) $everyBeforeReplicate 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$replicate 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Every) $everyOnDatabaseInitialized 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Every) $everyOnDatabaseInitialized 
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]: Injected $$initializeDatabase 
11/16/2024, 11:00:01 AM->[ModuleResolvingMismatchedTweaks]: Injected (Any) $anyAfterConnectCheckFailed 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$replicateAllToServer 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$replicateAllFromServer 
11/16/2024, 11:00:01 AM->[ModuleRemoteGovernor]: Injected $$markRemoteLocked 
11/16/2024, 11:00:01 AM->[ModuleRemoteGovernor]: Injected $$markRemoteUnlocked 
11/16/2024, 11:00:01 AM->[ModuleRemoteGovernor]: Injected $$markRemoteResolved 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected $$isFileSizeExceeded 
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]: Injected $$performFullScan 
11/16/2024, 11:00:01 AM->[ModuleInteractiveConflictResolver]: Injected (Any) $anyResolveConflictByUI 
11/16/2024, 11:00:01 AM->[ModuleConflictResolver]: Injected $$resolveConflictByDeletingRev 
11/16/2024, 11:00:01 AM->[ModuleConflictResolver]: Injected $$resolveConflict 
11/16/2024, 11:00:01 AM->[ModuleConflictResolver]: Injected (Any) $anyResolveConflictByNewest 
11/16/2024, 11:00:01 AM->[ModuleReplicator]: Injected $$waitForReplicationOnce 
11/16/2024, 11:00:01 AM->[ModuleRebuilder]: Injected $$resetLocalDatabase 
11/16/2024, 11:00:01 AM->[ModuleRebuilder]: Injected $$tryResetRemoteDatabase 
11/16/2024, 11:00:01 AM->[ModuleRebuilder]: Injected $$tryCreateRemoteDatabase 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected $$isIgnoredByIgnoreFiles 
11/16/2024, 11:00:01 AM->[ModuleTargetFilter]: Injected $$isTargetFile 
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]: Injected $$askReload 
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]: Injected $$scheduleAppReload 
11/16/2024, 11:00:01 AM->[ModuleRebuilder]: Injected (All) $allSuspendAllSync 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (All) $allSuspendExtraSync 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (All) $allSuspendExtraSync 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (All) $allAskUsingOptionalSyncFeature 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (All) $allAskUsingOptionalSyncFeature 
11/16/2024, 11:00:01 AM->[ConfigSync]: Injected (Any) $anyConfigureOptionalSyncFeature 
11/16/2024, 11:00:01 AM->[HiddenFileSync]: Injected (Any) $anyConfigureOptionalSyncFeature 
11/16/2024, 11:00:01 AM->[ModuleObsidianMenu]: Injected $$showView 
11/16/2024, 11:00:01 AM->[ModuleDatabaseFileAccess]: Injected (Every) $everyModuleTest 
11/16/2024, 11:00:01 AM->[ModuleDev]: Injected (Every) $everyModuleTest 
11/16/2024, 11:00:01 AM->[ModuleReplicateTest]: Injected (Every) $everyModuleTestMultiDevice 
11/16/2024, 11:00:01 AM->[ModuleIntegratedTest]: Injected (Every) $everyModuleTestMultiDevice 
11/16/2024, 11:00:01 AM->[ModuleDev]: Injected $$addTestResult 
11/16/2024, 11:00:01 AM->[ModuleObsidianAPI]: Injected (Any) $anyGetAppId 
11/16/2024, 11:00:01 AM->Injected   modules for ObsidianLiveSyncPlugin
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]  loading plugin
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]  Self-hosted LiveSync v0.24.1 0.24.1
11/16/2024, 11:00:01 AM->xxhash for plugin initialised
11/16/2024, 11:00:01 AM->Log window opened
11/16/2024, 11:00:01 AM->[HiddenFileSync]  Hidden file will skip 0 files
11/16/2024, 11:00:01 AM->[ModuleLocalDatabaseObsidian]  Waiting for ready...
11/16/2024, 11:00:01 AM->Cache initialized 10 / 1000000000
11/16/2024, 11:00:01 AM->Cache initialized 300 / 50000000
11/16/2024, 11:00:01 AM->Newer xxhash has been initialised
11/16/2024, 11:00:01 AM->Opening Database...
11/16/2024, 11:00:01 AM->Database info
11/16/2024, 11:00:01 AM->{
  "doc_count": 3173,
  "update_seq": 3174,
  "db_name": "ethhak-c318f20ab9123b17-livesync-v2-indexeddb",
  "auto_compaction": false,
  "adapter": "indexeddb"
}
11/16/2024, 11:00:01 AM->Database is now ready.
11/16/2024, 11:00:01 AM->[ModuleObsidianEvents]  Modifying callback of the save command
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Opening the key-value database
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Initialize and checking database files
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Checking deleted files
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the storage
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 25
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 50
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 75
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 100
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 125
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 150
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 175
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 200
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Collecting local files on the DB: 225
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Total files in the database: 225
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Total files in the storage: 225
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Total files: 225
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Files exist only in storage: 0
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Files exist only in database: 0
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Files exist both in storage and database: 225
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Synchronising...
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  UPDATE DATABASE: Nothing to do
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  UPDATE STORAGE: Nothing to do
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  SYNC DATABASE AND STORAGE
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  SYNC DATABASE AND STORAGE: DONE:10, FAILED:0, LAST:214
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  Initialized, NOW TRACKING!
11/16/2024, 11:00:01 AM->Cache initialized 300 / 50000000
11/16/2024, 11:00:01 AM->[ModuleLiveSyncMain]  Additional safety scan..
11/16/2024, 11:00:01 AM->[ModuleInteractiveConflictResolver]  Checking conflicted files
11/16/2024, 11:00:01 AM->[ModuleInitializerFile]  SYNC DATABASE AND STORAGE All done: DONE:225, FAILED:0
11/16/2024, 11:00:01 AM->[ModuleInteractiveConflictResolver]  There are no conflicted files
11/16/2024, 11:00:01 AM->[ModuleCheckRemoteSize]  Checking storage sizes
11/16/2024, 11:00:02 AM->[ModuleCheckRemoteSize]  Remote storage size: 84.39KB
11/16/2024, 11:00:02 AM->[ModuleLiveSyncMain]  Additional safety scan done
11/16/2024, 11:00:18 AM->OneShot Sync begin... (sync)
11/16/2024, 11:00:18 AM->Looking for the point last synchronized point.
11/16/2024, 11:00:18 AM->[ModuleObsidianAPI]  Just checkpoint or some server information has been missing. The 404 error shown above is not an error.
11/16/2024, 11:00:18 AM->Replication activated
11/16/2024, 11:00:18 AM->[ModuleObsidianAPI]  Just checkpoint or some server information has been missing. The 404 error shown above is not an error.
11/16/2024, 11:00:18 AM->[ModuleObsidianAPI]  HTTP:PUT (483) to:/_local/TJXugeio3gpImKJSNkHYDw%3D%3D -> failed
11/16/2024, 11:00:18 AM->TypeError:Failed to fetch
11/16/2024, 11:00:18 AM->Replication error
11/16/2024, 11:00:18 AM->Error:Failed to fetch
11/16/2024, 11:00:18 AM->Replication stopped.
11/16/2024, 11:00:18 AM->Replication error
11/16/2024, 11:00:18 AM->Error:Failed to fetch
11/16/2024, 11:00:18 AM->[ModuleObsidianAPI]  HTTP:PUT (222) to:/_local/eb.fkHR_H_ePIvoS4Vz3Dw%3D%3D -> failed
11/16/2024, 11:00:18 AM->TypeError:Failed to fetch
@vrtmrz
Copy link
Owner

vrtmrz commented Nov 27, 2024

Thank you for opening the issue!
Your configuration seems correct, and the remote storage only uses 84KB. However, It has been failed during writing the checkpoint of the replication.
Would you mind if I ask you to check the Network pane on the DevTools? It can be launched at Ctrl + Shift (Option) + i.

@dawnfantasy
Copy link

dawnfantasy commented Nov 29, 2024

I had the same issue when I setup using IBM Cloudant. The Obsidian repo is full of files.
After trying several times, I found this workaround. Works for me.
(May be add it to the Cloudant setup page?)

  1. In the "Setup" tab, turn on 'Enable power user features'.
  2. Go to "Power users" tab (muscle icon), change both "Batch size" and "Batch limit" to 2 (Don't have time to test what's the maximum it may go).
  3. Restart the sync process.

@Mithul
Copy link

Mithul commented Jan 12, 2025

I get the same issue. Setting batch size and limit to 2 worked for me as well. The network tab showed "Payload too large" 413 when the fetch error was happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants